summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/fuse/fuse_device.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Refactor to simplify - no functional change.helg2018-06-271-31/+14
| | | | ok mpi@
* Remove unused fbuf parameter from fuse_device_cleanup().helg2018-06-251-30/+24
| | | | ok mpi@
* Don't timeout on fb_queue(9). The current process will blockhelg2018-06-211-10/+6
| | | | | | | | | | | | | indefinitely and cannot be interrupted or killed. This is consistent with how VFS system calls should behave. If the file system becomes unresponsive then the only sane solution is for the user to kill the file system daemon. Implementing the equivalent of nfs -osoft or -ointr to either timeout or allow the blocking FUSE operation to be interrupted can be considered in a future patch. ok mpi@
* Pass size argument to free(9).helg2018-05-171-4/+4
| | | | ok mpi@
* Use memset(3) instead of bzero(3) for consistency and as per POSIXhelg2018-05-151-4/+4
| | | | recommendation.
* Use the proper address space when using a kernel that supportshelg2018-01-221-2/+11
| | | | | | | | | Supervisor Mode Access Prevention (SMAP) compiled with FUSE_DEBUG. While here, add some sanity check to the debug function fuse_dump_buff. Thanks to Thomas Jeunet. OK mpi@, helg@
* Avoid possible NULL pointer dereference on fuseioctl()mestre2017-08-101-1/+3
| | | | | | Found by Coverity Scan (CID 1453387) OK mpi@
* Remove the unused olddp parameter from function dounmount().bluhm2017-01-101-3/+3
| | | | OK mpi@ millert@
* Use struct stat for storing attributes in fusebufs, because using structnatano2016-08-301-1/+2
| | | | | | | | | vattr in userspace is suboptimal as some related helpers are not available, e.g. VATTR_NULL() and IFTOVT(). The conversion is now done in the kernel where it belongs. As a side effect the <sys/vnode.h> include can be removed from libfuse. tweaks and ok guenther
* Straightforward uiomovei -> uiomove conversion. All size arguments forstefan2016-01-221-2/+2
| | | | | | uiomove had unsigned types already. Diff from Martin Natano.
* fairly easy size for free()deraadt2015-09-021-2/+2
|
* Convert uiomovei() with a constant size argument to uiomove().miod2015-02-101-2/+2
|
* Switch uiomovei(..., sizeof whatever, ...) to uiomove().miod2015-02-101-2/+2
|
* First step towards making uiomove() take a size_t size argument:miod2015-02-101-4/+4
| | | | | | | - rename uiomove() to uiomovei() and update all its users. - introduce uiomove(), which is similar to uiomovei() but with a size_t. - rewrite uiomovei() as an uiomove() wrapper. ok kettenis@
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-4/+4
| | | | after discussions with beck deraadt kettenis.
* Do not rely on the fact that sys/vnode.h includes all the worldmpi2014-03-181-1/+2
| | | | | | through uvm/uvm.h and add proper includes for function definitions. ok syl@
* Remove an infinite loop in fuse_device_cleanup().syl2014-01-161-6/+25
| | | | | | Spotted by pelikan@ Some input from stsp@ OK stsp@, pelikan@
* Unset fuse_mnt in fusefs_unmount after vflushing and freeing fbufs in use.pelikan2013-12-101-3/+3
| | | | | | | | 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@.
* Unmount the fuse filesystem if the communication end withsyl2013-12-031-2/+9
| | | | | | the fuse device. 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-071-3/+3
|
* Introduce fb_delete() helper and use it in FUSE code.syl2013-10-071-5/+4
|
* Add new ioctl for handling FUSE bufferssyl2013-10-071-2/+106
|
* Rework fuseread() and fusewrite().syl2013-10-071-86/+55
|
* Remove debug printfs.syl2013-08-101-7/+3
|
* Fix a panic on multiple fuse device access.syl2013-07-111-3/+8
| | | | ok tedu@
* Make fuse device clonable.syl2013-06-211-120/+114
| | | | ok tedu@
* remove extra whitespacetedu2013-06-121-5/+3
|
* add a bunch of files for ISC-licensed FUSE support. ok beck deraadttedu2013-06-031-0/+512
from Sylvestre Gallon ccna.syl gmail.com. Many thanks to Sylvestre for all the hard work.