summaryrefslogtreecommitdiff
path: root/sys/miscfs/fuse
AgeCommit message (Collapse)Author
2016-03-27When pulling and unmounting an umass USB stick, the file systemAlexander Bluhm
could end up in an inconsistent state. The fstype dependent mp->mnt_data was NULL, but the general mp was still listed as a valid mount point. Next access to the file system would crash with a NULL pointer dereference. If closing the device fails, the mount point must go away anyway. There is nothing we can do about it. Remove the workaround for the EIO error in the general unmount code, but do not generate any error in the file system specific unmount functions. OK natano@ beck@
2016-03-19Remove the unused flags argument from VOP_UNLOCK().natano
torture tested on amd64, i386 and macppc ok beck mpi stefan "the change looks right" deraadt
2016-03-17Set mnt_data to NULL after freeing the file system specific mount point.Alexander Bluhm
OK krw@ natano@ as part of a larger diff
2016-02-25Replace a usage of ROOTINO ((ufsino_t)2 with FUSE_ROOTINO ((ino_t)1).natano
The FUSE_ROOTINO define is used everywhere else in fuse, so the mismatch caused a file handle for the filesystem root to be falsely rejected with ESTALE. ok stefan@
2016-02-25fuse doesn't support NFS; prevent a uvm fault caused by claiming otherwisenatano
ok stefan@
2016-01-22Straightforward uiomovei -> uiomove conversion. All size arguments forStefan Kempf
uiomove had unsigned types already. Diff from Martin Natano.
2015-09-23remove lockmgr_printinfo stubs. from Martin NatanoTed Unangst
2015-09-02fairly easy size for free()Theo de Raadt
2015-07-19basic fh functions. better than panicing!Ted Unangst
from Martin Natano
2015-04-17Tweaks utimensat/futimens handling to always update ctime, even when bothPhilip Guenther
atime and mtime are UTIME_OMIT (at least for ufs, tmpfs, and ext2fs), and to correctly handle a timestamp of -1. ok millert@
2015-03-14Remove some includes include-what-you-use claims don'tJonathan Gray
have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
2015-02-19set the eofflag in readdir like we're supposed to.Ted Unangst
from Martin Natano
2015-02-10Convert uiomovei() with a constant size argument to uiomove().Miod Vallat
2015-02-10Switch uiomovei(..., sizeof whatever, ...) to uiomove().Miod Vallat
2015-02-10First step towards making uiomove() take a size_t size argument:Miod Vallat
- 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@
2014-12-23knfTed Unangst
2014-12-23convert from nointr to waitokTed Unangst
2014-12-16primary change: move uvm_vnode out of vnode, keeping only a pointer.Ted Unangst
objective: vnode.h doesn't include uvm_extern.h anymore. followup changes: include uvm_extern.h or lock.h where necessary. ok and help from deraadt
2014-12-03use arc4random_buf() instead of (r << 32) | r; discussed with matthewTheo de Raadt
2014-11-18move arc4random prototype to systm.h. more appropriate for most codeTed Unangst
to include that than rdnvar.h. ok deraadt dlg
2014-10-03EOPNOTSUPP for quotactl. from Martin NatanoTed Unangst
2014-09-14remove uneeded proc.h includesJonathan Gray
ok mpi@ kspillner@
2014-08-10fix kqueue read/write filters for msdosfs and fusefsJonathan Gray
ok tedu@
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
after discussions with beck deraadt kettenis.
2014-06-04In fusefs_unmount() we need to send the FBT_DESTROY fusebuf only ifSylvestre Gallon
vflush(9) succeed. Problem reported by Helg Bredow. OK sthen@
2014-05-20Add -o max_read=XXX support in fuse. This is needed by usmb to have aSylvestre Gallon
working read() and write(). ok tedu@
2014-05-19Add some consistency in fuse error handling. We need to return ENXIOSylvestre Gallon
when the fuse communication channel is broken and ENOSYS when the libfuse callback does not exist. Reported by Helg Bredow, thanks! ok tedu@
2014-03-18Do not rely on the fact that sys/vnode.h includes all the worldMartin Pieuchot
through uvm/uvm.h and add proper includes for function definitions. ok syl@
2014-02-01Replace the vnode struct vattr cache by VOP_GETATTR() calls.Sylvestre Gallon
ok tedu@
2014-01-29Add fuse support for IO_APPEND.Sylvestre Gallon
ok beck@
2014-01-20Do not complain if release is not implemented in fuse client.Sylvestre Gallon
ok millert@.
2014-01-16Remove an infinite loop in fuse_device_cleanup().Sylvestre Gallon
Spotted by pelikan@ Some input from stsp@ OK stsp@, pelikan@
2014-01-16Add support for mknod in fuse.Sylvestre Gallon
OK tedu@ "it looks good to me" from guenther@
2013-12-20Add support for truncate in fuse.Sylvestre Gallon
Input from millert@. Ok millert@, tedu@.
2013-12-10Unset fuse_mnt in fusefs_unmount after vflushing and freeing fbufs in use.pelikan
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@.
2013-12-03Add support for FBT_RECLAIM that allow us to free the representationSylvestre Gallon
of vnode in userspace. "I think it's right" from tedu@.
2013-12-03Unmount the fuse filesystem if the communication end withSylvestre Gallon
the fuse device. ok sthen@
2013-12-03Add some missing check to know if the communication channel withSylvestre Gallon
libfuse is still open before sending fusebufs. ok sthen@
2013-11-28Remove some double free on fusebuf datas.Sylvestre Gallon
Found the hard way and ok mpk@
2013-10-07use printf(9) consistently in FUSESylvestre Gallon
2013-10-07Add kqueue's support for FUSE.Sylvestre Gallon
tested with ajacoutot@ on gvfs+nautilus.
2013-10-07Introduce fb_delete() helper and use it in FUSE code.Sylvestre Gallon
2013-10-07Use full 64-bit UUIDs in FUSE.Sylvestre Gallon
Thanks to Pedro Martelletto.
2013-10-07Allocate fb_dat in fb_setup(9)Sylvestre Gallon
2013-10-07Add new ioctl for handling FUSE buffersSylvestre Gallon
2013-10-07Rework fuseread() and fusewrite().Sylvestre Gallon
2013-09-17size_t could not be < 0.Sylvestre Gallon
Thanks to Pedro Martelletto.
2013-08-10Remove debug printfs.Sylvestre Gallon
2013-07-11Fix a panic on multiple fuse device access.syl
ok tedu@
2013-06-21Make fuse device clonable.syl
ok tedu@