summaryrefslogtreecommitdiffstats
path: root/sys/miscfs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Add -o max_read=XXX support in fuse. This is needed by usmb to have asyl2014-05-203-8/+12
| | | | | | working read() and write(). ok tedu@
* Add some consistency in fuse error handling. We need to return ENXIOsyl2014-05-191-34/+80
| | | | | | | | when the fuse communication channel is broken and ENOSYS when the libfuse callback does not exist. Reported by Helg Bredow, thanks! ok tedu@
* Include <sys/vmmeter.h> directly instead of relying on it beingmpi2014-05-061-6/+3
| | | | | | | | | | | | | | pulled by <uvm/uvm_extern.h> and turn uvm_total() into a private function. The preferred way to get memory stats is through the VM_UVMEXP sysctl(3) since VM_METER is just a wrapper on top of it. In the kernel, use `uvmexp' directly instead of uvm_total(). This change does not remove <sys/vmmeter.h> from <uvm/uvm_extern.h> to give some more time to port maintainers to fix their ports. ok guenther@ as part of a larger diff.
* Do not rely on the fact that sys/vnode.h includes all the worldmpi2014-03-184-4/+8
| | | | | | through uvm/uvm.h and add proper includes for function definitions. ok syl@
* Replace the vnode struct vattr cache by VOP_GETATTR() calls.syl2014-02-013-12/+17
| | | | ok tedu@
* Add fuse support for IO_APPEND.syl2014-01-291-1/+12
| | | | ok beck@
* naughty guenther didn't compiletedu2014-01-211-3/+1
|
* Threads can't be zombies, only processes, so change zombproc to zombprocess,guenther2014-01-201-21/+10
| | | | | | | | make it a list of processes, and change P_NOZOMBIE and P_STOPPED from thread flags to process flags. Add allprocess list for the code that just wants to see processes. ok tedu@
* Do not complain if release is not implemented in fuse client.syl2014-01-201-2/+2
| | | | ok millert@.
* Move p_textvp from struct proc to struct process so that the exit codeguenther2014-01-201-3/+3
| | | | | | can be further simplified. ok kettenis@
* Remove an infinite loop in fuse_device_cleanup().syl2014-01-161-6/+25
| | | | | | Spotted by pelikan@ Some input from stsp@ OK stsp@, pelikan@
* Add support for mknod in fuse.syl2014-01-162-3/+66
| | | | | OK tedu@ "it looks good to me" from guenther@
* Add support for truncate in fuse.syl2013-12-201-2/+4
| | | | | | Input from millert@. Ok millert@, tedu@.
* Unset fuse_mnt in fusefs_unmount after vflushing and freeing fbufs in use.pelikan2013-12-103-10/+10
| | | | | | | | This way, if fuse unmounts a FS without FBT_DESTROY, the fuse_mnt pointer is already invalidated. Also, on weird unmount situations with vnodes in use, vflush() them before doing fuse_device_cleanup(). Tested with ntfs-3g, ok syl@.
* Add support for FBT_RECLAIM that allow us to free the representationsyl2013-12-031-1/+13
| | | | | | of vnode in userspace. "I think it's right" from tedu@.
* Unmount the fuse filesystem if the communication end withsyl2013-12-031-2/+9
| | | | | | the fuse device. ok sthen@
* Add some missing check to know if the communication channel withsyl2013-12-033-11/+24
| | | | | | libfuse is still open before sending fusebufs. ok sthen@
* Remove some double free on fusebuf datas.syl2013-11-281-1/+3
| | | | Found the hard way and ok mpk@
* use printf(9) consistently in FUSEsyl2013-10-074-10/+10
|
* Add kqueue's support for FUSE.syl2013-10-071-3/+80
| | | | tested with ajacoutot@ on gvfs+nautilus.
* Introduce fb_delete() helper and use it in FUSE code.syl2013-10-076-71/+68
|
* Use full 64-bit UUIDs in FUSE.syl2013-10-071-2/+2
| | | | Thanks to Pedro Martelletto.
* Allocate fb_dat in fb_setup(9)syl2013-10-071-1/+6
|
* Add new ioctl for handling FUSE bufferssyl2013-10-072-3/+117
|
* Rework fuseread() and fusewrite().syl2013-10-075-121/+86
|
* Format string fixes: Cast time_t to long longsf2013-10-011-3/+4
| | | | and mnt_stat.f_ctime is long long, too
* size_t could not be < 0.syl2013-09-171-2/+2
| | | | Thanks to Pedro Martelletto.
* Remove debug printfs.syl2013-08-106-99/+11
|
* Fix a panic on multiple fuse device access.syl2013-07-111-3/+8
| | | | ok tedu@
* cast time_t to long long, time_t is signed, tv_nsec is longsf2013-07-031-3/+3
| | | | ok deraadt@
* Make fuse device clonable.syl2013-06-212-122/+132
| | | | ok tedu@
* remove extra whitespacetedu2013-06-124-15/+11
|
* move fuse sysctl defines up and add _KERNEL. from Sylvestre Gallontedu2013-06-092-18/+21
|
* rename should be working now, from Sylvestre Gallontedu2013-06-052-53/+27
|
* delete a printf, from sylvestretedu2013-06-041-2/+1
|
* Convert some internal APIs to use timespecs instead of timevalsguenther2013-06-031-2/+2
| | | | ok matthew@ deraadt@
* add a bunch of files for ISC-licensed FUSE support. ok beck deraadttedu2013-06-038-0/+2713
| | | | | from Sylvestre Gallon ccna.syl gmail.com. Many thanks to Sylvestre for all the hard work.
* Add an f_mntfromspec member to struct statfs, which specifies the name ofjsing2013-04-151-1/+4
| | | | | | | | | | | | | the special provided when the mount was requested. This may be the same as the special that was actually used for the mount (e.g. in the case of a device node) or it may be different (e.g. in the case of a DUID). Whilst here, change f_ctime to a 64 bit type and remove the pointless f_spare members. Compatibility goo courtesy of guenther@ ok krw@ millert@
* Add support for _PC_TIMESTAMP_RESOLUTION for ffs/mfs, cd9600, ext2,guenther2013-03-281-1/+4
| | | | | | | msdos, NFS, fifos and devices, plus support for querying it in getconf(2) and the requisite pathconf(2) manpage blurb ok tedu@
* Handle the pathconf _PC_PATH_MAX, _PC_PIPE_BUF, _PC_ASYNC_IO,guenther2013-03-282-17/+2
| | | | | | | | | | | _PC_PRIO_IO, and _PC_SYNC_IO names in VOP_PATHCONF(), as they're fs-independent for us. Since we don't support latter three on any fs, we can also define the related _POSIX_{ASYNC,PRIO,SYNC}_IO symbols in <unistd.h> (via sys/unistd.h) with value -1. Also, zap pointless tty-only values from procfs(!). ok beck@, deraadt@
* Cleanup VFS mount string handling:jsing2012-09-101-5/+4
| | | | | | | | | | | - Avoid using copyinstr() without checking the return value. - sys_mount() has already copied the path in, so pass this to the filesystem mount code so that it does not have to copy it in again. - Avoid copyinstr()/bzero() dance when we can simply bzero() and strlcpy(). ok krw@
* Cleanup our filesystem pathconf() code a little bit to make it easiermatthew2012-06-202-15/+21
| | | | | | to diff against FreeBSD's. From Brad; no object file change on amd64.
* Make the KERN_NPROCS and KERN_MAXPROC sysctl()s and the RLIMIT_NPROC rlimitguenther2012-04-101-3/+3
| | | | | | | | count processes instead of threads. New sysctl()s KERN_NTHREADS and KERN_MAXTHREAD count and limit threads. The nprocs and maxproc kernel variables are replaced by nprocess, maxprocess, nthreads, and maxthread. ok tedu@ mikeb@
* Make rusage totals, itimers, and profile settings per-process insteadguenther2012-03-231-3/+3
| | | | | | | of per-rthread. Handling of per-thread tick and runtime counters inspired by how FreeBSD does it. ok kettenis@
* Add PS_EXITING to better differentiate between the process exiting andguenther2012-03-101-2/+2
| | | | the main thread exiting. c.f. regress/sys/kern/main-thread-exited/
* First steps for making ptrace work with rthreads:guenther2012-02-201-2/+2
| | | | | | | | | | - move the P_TRACED and P_INEXEC flags, and p_oppid, p_ptmask, and p_ptstat member from struct proc to struct process - sort the PT_* requests into those that take a PID vs those that can also take a TID - stub in PT_GET_THREAD_FIRST and PT_GET_THREAD_NEXT ok kettenis@
* Remove the ability to ptrace via procfs, as no one is using it, so fixingguenther2011-12-245-409/+17
| | | | | | | | and extending it to support rthreads would be a waste of time. Also, don't show rthreads in the process listing in procfs. Reassurances that compat_linux doesn't need this from ajacoutot@ ok kettenis@
* move the specfs code to a place people can see it; ok guenther thib krwderaadt2011-07-043-867/+0
|
* Fix another kqfilter return value.nicm2011-07-041-2/+2
| | | | ok deraadt
* Nuke the useless D_KQFILTER flag and just check that d_kqfilter isnicm2011-07-041-2/+2
| | | | | | filled in. Move D_CLONE down to 0x0001 as suggested by thib. ok deraadt thib