summaryrefslogtreecommitdiffstats
path: root/lib/libfuse (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Generate pkg-config files at build time like everything else. Thisnatano2016-09-141-2/+3
| | | | | | | avoids permission problems due to the build and install stages being run by different users. ok deraadt jasper
* Fix fuse node lookups. Currently fusefs nodes in the kernel remember thenatano2016-09-073-26/+69
| | | | | | | | | | | | | | | | | | | | 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
* only regen pkg-config files when required; ok jaspernatano2016-09-041-2/+4
|
* Use struct stat for storing attributes in fusebufs, because using structnatano2016-08-302-59/+35
| | | | | | | | | 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
* Pull in <sys/time.h> for struct timespecguenther2016-08-271-1/+2
| | | | ok deraadt@
* NUL-terminate argv when parsing options, following otherokan2016-05-241-2/+3
| | | | | | | | implementations; fixes issue when exec*() is used for fuse_args, notably in sshfs; from Hiltjo Posthuma and reminded by ray. ok mpi@
* Add missing strdup NULL checks; from Ray Lai.okan2016-05-242-3/+9
| | | | ok mpi@ beck@ mlarkin@
* update links; from rayjmc2016-05-181-5/+7
|
* for some time now mandoc has not required MLINKS to functionjmc2016-03-301-18/+1
| | | | | | | | | | | | correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
* remove NULL-check before free()mmcc2015-12-241-3/+2
|
* missing deref on char check. from David Bindermantedu2015-10-191-2/+2
|
* When an option is not recognized call the processing function withmpi2015-08-241-4/+6
| | | | | | | | | FUSE_OPT_KEY_OPT, while here fix the last argument of a call in fuse_opt_parse(). Diff from ThiƩbaud Weksteen <thiebaud AT weksteen DOT fr>, thanks! ok syl@, ajacoutot@
* Skip mountpoint checking in case we only want the version or helpajacoutot2015-07-071-3/+3
| | | | | | (-V, -h). ok syl@ mikeb@
* Unbreak option parsing:ajacoutot2015-07-071-1/+8
| | | | | | | | | | | | | fuse_opt_pase is called with an opaque void * and struct fuse_opt. If val has a positive value and off != -1, we modify the opaque void * at the offset off to put it val. This matches what the GNU libfuse does. fixes (at least) simple-mtpfs option parsing diff from slacker syl@, thanks! "it can't get worse than not working" mikeb@ ok miod@ sthen@
* Remove -Werror from the Makefile: as it happened with asprintf, itreyk2015-06-031-2/+2
| | | | | | | | breaks the tree if any new compiler warnings get enabled, especially with -Wall. We do not want to use it in the tree, except for some very special places. As discussed with deraadt@
* It is better to check the asprintf return value for -1 instead of thereyk2015-06-031-5/+5
| | | | | | | input buffer for NULL. Found by adding __attribute((__warn_unused_result__)) to asprintf. OK deraadt@
* Add a stub option for big_writes. This is needed by gvfs.ajacoutot2015-02-101-1/+2
| | | | committing on behalf of slacker syl@
* SIZE_MAX is standard, we should be using it in preference to themillert2015-02-061-2/+3
| | | | obsolete SIZE_T_MAX. OK miod@ beck@
* Move to the <limits.h> universe.deraadt2015-01-161-2/+2
| | | | review by millert, binary checking process with doug, concept with guenther
* use reallocarray(); ok dougderaadt2014-10-081-2/+2
|
* Add -o max_read=XXX support in fuse. This is needed by usmb to have asyl2014-05-201-1/+2
| | | | | | working read() and write(). ok tedu@
* Add support for -o XXX or -oXXX options in libfuse.syl2014-05-203-22/+59
| | | | inputs from tedu@, ok tedu@
* as reported by Helg, should use realpath for mounts. ok guenther syltedu2014-05-191-3/+3
|
* Add support for 255 character file names in fuse.syl2014-04-283-8/+12
| | | | | from Helg Bredow, thanks! input/OK reyk@
* Init outargs only once, and fix a bad bzero().syl2014-04-151-3/+3
| | | | Spotted by jsg@, ok jsg@
* Warn the user if there is a missing mountpoint parameter.syl2014-03-241-2/+4
| | | | ok ajacoutot@, tedu@, pelikan@
* Allow libfuse to compile with WARNINGS=yes. No functional change.syl2014-02-051-3/+4
| | | | ok tedu@
* check return values in libfuse.syl2014-02-054-14/+245
| | | | | 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@
* Mark fuse_opt_parse()'s third argument as a point to const, to match thejca2014-01-212-7/+7
| | | | reference FUSE implementation. ok syl@
* Include fuse_opt.h in fuse.h.syl2014-01-201-1/+3
| | | | | Reported by Helg Bredow (xx404 AT msn DOT com), thanks ! ok millert@
* 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@.
* define FUSE_{MAJOR,MINOR}_VERSION which many fuse helpers assume is defined.jasper2013-12-171-1/+3
| | | | ok syl@
* Remove an attempt to free a non-heap object.syl2013-12-101-3/+3
| | | | | from David Hill thanks. ok stsp@.
* 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-033-3/+56
| | | | | | 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@
* Document the negative errno quirk used by callbacks in struct fuse_operations.stsp2013-11-131-1/+6
| | | | ok syl
* In fuse_loop(), use ssize_t to store return values from read(2) and write(2).stsp2013-11-111-6/+6
| | | | ok syl@
* Simplify fuse_unmount(). No functional change.stsp2013-11-091-7/+3
| | | | ok jung@
* Properly check realpath() return value during argv processing in libfuse.stsp2013-11-091-3/+8
| | | | tweak & ok syl@
* add fuse_invalidate() and fuse_setup() functions.syl2013-11-072-11/+33
| | | | ok tedu@
* Handle fuse client private data. Needed by encfs.syl2013-11-063-3/+6
| | | | | | Bump shlib_version. ok stsp@.
* fuse_opt_insert_arg() can take empty string as argument.syl2013-11-041-2/+2
| | | | | unbreak ntfs-3g. ok pirofti@
* Update the fuse_opt to have option like -h working.syl2013-11-023-52/+184
| | | | ok ajacoutot@