summaryrefslogtreecommitdiffstats
path: root/lib/libfuse/fuse_ops.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix fuse node lookups. Currently fusefs nodes in the kernel remember thenatano2016-09-071-13/+24
| | | | | | | | | | | | | | | | | | | | parent inode number for ".." lookups. This only works until the kernel starts to reuse vnodes and the parent's vnode is reclaimed and the ino to path mapping is removed from the userland process by libfuse. Fix this by using reference counting in libfuse, so that parent mapping are retained as long as a child uses them. Also, don't free the root node. This commit resolves following issue: $ doas fuse-zip ~/Downloads/foo.zip /mnt $ ls /mnt openbsd-www $ grep -IR foo /usr/src > /dev/null # force vfs to reclaim vnodes $ ls /mnt ls: /mnt: No such file or directory $ ok tedu
* Use struct stat for storing attributes in fusebufs, because using structnatano2016-08-301-56/+31
| | | | | | | | | 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
* check return values in libfuse.syl2014-02-051-8/+234
| | | | | inputs from stsp@. ok stsp@.
* Add fuse support for IO_APPEND.syl2014-01-291-3/+1
| | | | ok beck@
* Fix .readdir() code following what is done in .getdir().syl2014-01-231-16/+12
| | | | | Issue reported by Helg Bredow and Derrik Pates, thanks ! ok pelikan@
* hook mknod() if create() implementation is not present.syl2014-01-201-3/+9
| | | | | from Derrik Pates (daemon AT now DOT ai), thanks! ok guenther@
* Add support for mknod in fuse.syl2014-01-161-1/+32
| | | | | OK tedu@ "it looks good to me" from guenther@
* Call fuse callbacks on FBT_INIT and FBT_DESTROY.syl2014-01-021-3/+21
| | | | | | | Issue reported by Helg Bredow, thanks! With inputs from tedu@ ok tedu@
* Add support for truncate in fuse.syl2013-12-201-1/+9
| | | | | | Input from millert@. Ok millert@, tedu@.
* Fix issues with dirent returning junk due to removal of bzero in version 1.14.beck2013-12-091-4/+5
| | | | | | Ensure d_name string is nul terminated and the correct length in d_namlen. noticed by pelikan@ ok syl@ guenther@
* Does not append a NUL character to buf in readlink(2).syl2013-12-031-3/+14
| | | | | | | Add some check for malloc(3) return values. From Derrik Pates (daemon AT now DOT ai), thanks. OK millert@
* Add support for FBT_RECLAIM that allow us to free the representationsyl2013-12-031-1/+18
| | | | | | of vnode in userspace. "I think it's right" from tedu@.
* Fix a big memory leak in libfuse.syl2013-11-211-11/+10
| | | | | | Spotted by sthen@ With some input from stsp@ and tested by mpk@ and sthen@ ok sthen@, stsp@
* 1) our dirent entries are now 8 byte aligned.guenther2013-10-081-4/+5
| | | | | | | | | | | 2) d_type isn't the file's st_mode, but rather a type that can be derived from the file's mode. 3) the readdir callback should be setting d_off. Assume for now that fuse-based filesystems can operate with length based offsets 4) if the file type is unknown, use DT_UNKNOWN explictly instead of assuming that's equal to zero ok syl@
* Fix some different signedness error. this commit make clang happier.syl2013-10-071-7/+8
| | | | Thanks to Pedro Martelletto.
* Remove an unused variable and a useless bzerosyl2013-10-071-3/+1
|
* Refactor fb_len and fb_err handling in libfuse.syl2013-10-071-73/+13
|
* Remove useless debug code from libfusesyl2013-10-071-9/+2
|
* Adapt libfuse to FUSE kernel changessyl2013-10-071-19/+31
|
* Remove some useless DPRINTF.syl2013-08-101-24/+2
|
* Prep for big ino_t: cast to unsigned long long and format with %ll or %qguenther2013-08-081-12/+13
| | | | httpd correction and ok kettenis@
* hard code default values in the struct stat returned by getattr.syl2013-06-141-1/+8
| | | | | | Some poor fuse client does not set all the struct stat fields... OK pirofti@ and beck@
* rename should be working now, from Sylvestre Gallontedu2013-06-051-1/+31
|
* fix readdir, from sylvestretedu2013-06-041-3/+5
|
* rcsidstedu2013-06-031-0/+1
|
* add userland fuse library. ok beck deraadttedu2013-06-031-0/+884
from Sylvestre Gallon ccna.syl gmail.com