aboutsummaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)AuthorLines
2017-09-11fuse_kern_unmount(): close fd before calling umountNikolaus Rath-1/+1
This is what the Linux version does, and it fixes a timeout under FreeBSD when the kernel sends a FUSE_DESTROY request that is never answered.
2017-08-25do_init(): print missing capabilities if there are any.Nikolaus Rath-1/+2
2017-08-24Dropped support for building with autotoolsNikolaus Rath-43/+0
It's just too much pain to keep it working.
2017-08-24Add idle_threads mount option.Joseph Dodge-12/+58
2017-08-24Allow inode cache invalidation in high-level APISławek Rudnicki-0/+41
We re-introduce the functionality of invalidating the caches for an inode specified by path by adding a new routine fuse_invalidate_path. This is useful for network-based file systems which use the high-level API, enabling them to notify the kernel about external changes. This is a revival of Miklos Szeredi's original code for the fuse_invalidate routine.
2017-08-23fuse_loop_mt(): on error, return errno rather than -1.Nikolaus Rath-1/+1
2017-08-23fuse_loop(): don't return non-zero if there was no errorNikolaus Rath-0/+4
2017-08-22Document and unify error codes of fuse_lowlevel_notify_*Nikolaus Rath-3/+9
2017-08-22Fix two compiler warnings.Nikolaus Rath-1/+1
2017-08-22Allow building without iconv.Nikolaus Rath-1/+7
cfg.has('HAVE_ICONV') was always true.
2017-08-14directly call fuse_new_31() instead of fuse_new() internallyuserwithuid-3/+4
this fixes building with lto, which failed since commit 503e32d01e4db00e90d7acfd81ab05386559069f
2017-08-11fuse_lib_init(): don't set FUSE_CAP_EXPORT_SUPPORT unconditionallyNikolaus Rath-1/+2
FreeBSD kernel does not support this.
2017-08-11fuse_kern_unmount(): fix variable type.Nikolaus Rath-1/+2
2017-08-11Fix unused variable warnings under FreeBSD.Nikolaus Rath-2/+2
2017-08-07Fix support for FUSE_POSIX_ACLMarcin Sulikowski-0/+2
The kernel may set the FUSE_POSIX_ACL flag in the FUSE_INIT request to notify the userspace daemon that the OS does support POSIX ACLs for FUSE file systems. If the filesystem implementation wants to enable POSIX ACLs, it has to reply with the FUSE_POSIX_ACL flag set. However, the reply to the kernel never includes this flag, even if the implementation expresses the need by setting the FUSE_CAP_POSIX_ACL flag in the fuse_conn_info::want variable passed to its init callback. We modify the library to handle requests for FUSE_CAP_POSIX_ACL correctly, i.e., set the FUSE_POSIX_ACL flag in the FUSE_INIT reply to the kernel. Signed-off-by: Marcin Sulikowski <marcin.sulikowski@editshare.com>
2017-08-06Released 3.1.1Nikolaus Rath-1/+1
2017-08-03Simplify and fix FreeBSD fsname handlingNikolaus Rath-29/+10
This should simplify the code a lot. It also corrects a bug in that the (former) add_default_fsname() function actually set the -osubtype option.
2017-08-03Simply #ifdefsNikolaus Rath-53/+0
mount_bsd.c is only used when compiling for *BSD, and FreeBSD is the only BSD that supports FUSE. So there really is no need to check if this file is compiled under FreeBSD.
2017-08-03FreeBSD: supprt fsname= optionBaptiste Daroussin-0/+30
2017-08-03FreeBSD: use unmount(2) and add missing FreeBSD mount optionBaptiste Daroussin-0/+12
2017-08-01Fix compiler warnings of gcc-5.4.xBanglang-1/+1
Signed-off-by: Banglang <banglang.huang@foxmail.com>
2017-07-13Only declare fuse_new_30() when FUSE_USE_VERSION == 30Nikolaus Rath-24/+26
This function shouldn't be called when using a newer fuse version, so we should not define it in that case.
2017-07-13fuse_new_30(): call fuse_new_31(), not fuse_new()Nikolaus Rath-1/+1
I believe this function call is resolved by the compiler, not the linker, so this seems safer. Thanks to Chris Clayton for spotting this.
2017-07-08Fixup symbol versioning for GCC 4.xNikolaus Rath-4/+7
GCC 4.8 doesn't like to rename fuse_new_30 to fuse_new, if we also define an implementation for fuse_new.
2017-07-08Added public fuse_lib_help(), bumped minor versionNikolaus Rath-53/+111
2017-07-08Fixed description of struct fuse_conn_info->time_granNikolaus Rath-1/+2
At least on Linux kernel 4.9, a value of zero gives more than 1-sec accuracy.
2017-07-07Don't use emacs' python-mode for meson filesNikolaus Rath-3/+0
There is a proper meson-mode now.
2017-07-06Don't redefine FUSE_USE_VERSIONNikolaus Rath-4/+0
It's already set in meson.build as compiler flag.
2017-06-05getgroups(): clarify codeNikolaus Rath-1/+1
read() return value should always be positive or -1. However, since we cast to unsigned a little later, it's clearer to check for non-negativity.
2017-06-05Fix comparison of integers of different signsAngelo G. Del Regno-4/+4
Some variables of different size and sign were getting compared without any safe casting. The build system also throws warnings at this and, being this library used for filesystems, it's really important to ensure stability.
2017-05-25Remove fuse_fs_fgetattr and fuse_fs_ftruncate from linker scriptpablomh-2/+0
They were removed from source here: https://github.com/libfuse/libfuse/commit/73b6ff4b75cf1228ea61262c293fcb2fda5dfeea
2017-05-24lib/meson.build: don't crash if there's no libdlNikolaus Rath-1/+1
For example, FreeBSD doesn't have it. Fixes: #173.
2017-05-24fuse_signals.c: use new do_nothing function instead of SIG_IGNNikolaus Rath-2/+12
Fixes: #160.
2017-05-24Released libfuse 3.0.2Nikolaus Rath-1/+1
2017-04-20make buffer size match kernel max transfer sizeCarlos Maiolino-3/+5
Currently libfuse has a hardcoded buffer limit to 128kib, while fuse kernel module has a limit up to 32 pages. This patch changes buffer limit to match the current page size, instead of assuming 4096 bytes pages, enabling architectures with bigger pages to use larger buffers, improving performance. Also, add a new macro (HEADER_SIZE) to specify the space needed to accommodate the header, making it easier to understand why those extra 4096 bytes are needed Signed-off-by: Carlos Maiolino <cmaiolino-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-04-14Set default options before parsingTej Chajed-5/+5
2017-04-10Released 3.0.1Nikolaus Rath-1/+1
2017-03-03Optimize fuse_fs_read. (#145)amosonn-10/+34
Redundant copy when only op.read is available removed.
2017-01-12Added experimental support for building with Meson+NinjaNikolaus Rath-1/+48
2016-12-23Set IGNORE_MTAB when running under NetBSDNikolaus Rath-3/+4
Apparently, NetBSD does not have /etc/mtab. Setting IGNORE_MTAB in this case makes the code a little nicer. See also https://github.com/libfuse/libfuse/pull/123
2016-12-23Memory leak fixed in file : mount_bsd.citsdeepak-4/+14
2016-11-29Improve documentation of fuse_session_unmountNikolaus Rath-1/+6
2016-11-29Return signal value if session loop is terminated by signal and improve ↵Nikolaus Rath-1/+9
documentation
2016-11-28Rename more things from fuse to fuse3Przemysław Pawełczyk-4/+4
2016-11-22Make handling of -oallow_root easier to understandNikolaus Rath-37/+20
-oallow_root is handled in userspace, and requires passing -oallow_other to the kernel. This patch should make the code easier to understand and avoid the confusion that gave rise to issue #86.
2016-11-22Add support for FUSE_HANDLE_KILLPRIVNikolaus Rath-0/+3
Fixes #116.
2016-11-22Add support for FUSE_POSIX_ACLNikolaus Rath-0/+2
Fixes #117.
2016-11-22Added support for FUSE_PARALLEL_DIROPSNikolaus Rath-0/+3
Enabled by default since we haven't released libfuse 3.0 yet :-). Fixes #112.
2016-11-16Enable more capabilities by default, and document defaults.Nikolaus Rath-1/+11
Fixes #112.
2016-11-16Abort if fs requests capabilities not supported by kernel.Nikolaus Rath-0/+9
See also issue #114.