Eric Engestrom [Sat, 2 Apr 2016 16:38:47 +0000 (17:38 +0100)]
Fix spelling mistake
Nikolaus Rath [Wed, 23 Mar 2016 16:24:23 +0000 (09:24 -0700)]
Merge pull request #24 from jblumsch/doc-statfs-frsize
doc fix: The f_frsize field is not ignored by the statfs operation
Winfried Koehler [Thu, 10 Mar 2016 11:19:59 +0000 (12:19 +0100)]
cuse_lowlevel.setup(): fix double free of local variable 'args'
Signed-off-by: Winfried Koehler <w_scan@gmx-topmail.de>
Jan Blumschein [Wed, 9 Mar 2016 18:35:32 +0000 (19:35 +0100)]
fuse.h doc fix: The f_frsize field is not ignored by the statfs operation.
Apparently f_frsize has been passed on transparently since
2b4781100812d42e704c39c51303cd28ad3f9aa6 (Nov 28, 2005).
Nikolaus Rath [Tue, 1 Mar 2016 17:09:17 +0000 (09:09 -0800)]
Improve description of issue #15.
Nikolaus Rath [Tue, 2 Feb 2016 16:58:27 +0000 (08:58 -0800)]
Fix description of bug #15.
Nikolaus Rath [Mon, 1 Feb 2016 17:08:26 +0000 (09:08 -0800)]
Document bug #15.
Nikolaus Rath [Fri, 29 Jan 2016 02:00:24 +0000 (18:00 -0800)]
Include documentation in tarball.
Nikolaus Rath [Fri, 29 Jan 2016 00:39:02 +0000 (16:39 -0800)]
Remove "credits" section, we now have an AUTHORS file.
Nikolaus Rath [Thu, 14 Jan 2016 18:58:27 +0000 (10:58 -0800)]
Removed placeholder README file and switch automake to foreign flavor.
The GNU flavor merely requires to existence of some files (including
README, but we prefer README.md), so there seems to be little point
in using it.
Nikolaus Rath [Thu, 14 Jan 2016 18:39:08 +0000 (10:39 -0800)]
Removed hopelessly outdated files.
Nikolaus Rath [Thu, 14 Jan 2016 18:14:35 +0000 (10:14 -0800)]
Update makeconf.sh
Describe why manual copying of config.rpath is necessary, and fail
with a more helpful message if it can't be found.
Remove code for systems without autoreconf - it's apparently not used
by anyone since it has been broken for quite some time (there is no
`kernel` directory anymore).
Nikolaus Rath [Thu, 14 Jan 2016 17:55:47 +0000 (09:55 -0800)]
Update maintainer and contributor list
Nikolaus Rath [Thu, 14 Jan 2016 17:23:18 +0000 (09:23 -0800)]
Extend write_buf documentation
Nikolaus Rath [Thu, 14 Jan 2016 17:21:51 +0000 (09:21 -0800)]
Initialize padding to zero.
This should prevent some valgrind warnings.
Nikolaus Rath [Tue, 22 Dec 2015 03:17:47 +0000 (19:17 -0800)]
Updated homepage URL and added download location.
Nikolaus Rath [Sun, 20 Dec 2015 21:52:30 +0000 (13:52 -0800)]
Migrated README to README.md for Markdown rendering on GitHub.
Miklos Szeredi [Tue, 29 Sep 2015 15:51:32 +0000 (17:51 +0200)]
Merge branch 'clone_fd'
Miklos Szeredi [Fri, 14 Aug 2015 04:51:59 +0000 (06:51 +0200)]
Merge git://git.code.sf.net/u/xophmeister/fuse
Christopher Harrison [Wed, 12 Aug 2015 13:55:13 +0000 (14:55 +0100)]
Canonicalised whitespace and added ChangeLog entry
Miklos Szeredi [Wed, 12 Aug 2015 09:51:39 +0000 (11:51 +0200)]
libfuse: fix warning mount.c:receive_fd()
Reported by Albert Berger
Christopher Harrison [Thu, 30 Jul 2015 10:05:34 +0000 (11:05 +0100)]
Added fuse_pkgversion function
Returns the full PACKAGE_VERSION string, per autoconf
Miklos Szeredi [Mon, 29 Jun 2015 16:08:07 +0000 (18:08 +0200)]
libfuse: fix possible memory leak
Reported by Jose R. Guzman
Ikey Doherty [Fri, 22 May 2015 12:53:25 +0000 (13:53 +0100)]
Use system directory for system-wide udev rules by default
This ensures that fuse functions correctly on stateless operating systems
without requiring use of the site configuration directory (/etc/).
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
Miklos Szeredi [Fri, 22 May 2015 08:58:43 +0000 (10:58 +0200)]
libfuse: fix exec environment for mount and umount
Found by Tavis Ormandy (CVE-2015-3202).
Miklos Szeredi [Mon, 18 May 2015 14:55:20 +0000 (16:55 +0200)]
libfuse: add "clone_fd" option
This creates a separate device file descriptor for each processing thread,
which might improve performance.
Miklos Szeredi [Mon, 18 May 2015 14:55:20 +0000 (16:55 +0200)]
libfuse: get ref for req
While the request lives don't free the channel associated with the request,
the answer will need to be written on the channel.
Miklos Szeredi [Mon, 18 May 2015 14:55:20 +0000 (16:55 +0200)]
libfuse: refcount fuse_chan objects
New functions: fuse_chan_get(), fuse_chan_put(). Removed function:
fuse_chan_destroy().
Miklos Szeredi [Thu, 23 Apr 2015 12:13:18 +0000 (14:13 +0200)]
libfuse: add FUSE_CAP_NO_OPEN_SUPPORT flag to ->init()
Miklos Szeredi [Thu, 26 Feb 2015 16:12:30 +0000 (17:12 +0100)]
libfuse: fix handling of '.' and '..' in highlevel readdirplus
Miklos Szeredi [Thu, 26 Feb 2015 15:57:41 +0000 (16:57 +0100)]
libfuse: fix fuse_remove_signal_handlers()
to properly restore the default signal handler.
Reported by: Chris Johnson <johnsocg@gmail.com>
Miklos Szeredi [Tue, 25 Nov 2014 15:20:14 +0000 (16:20 +0100)]
Fix docs of lowlevel readdirplus()
Reported by Michael j Theall.
Miklos Szeredi [Mon, 21 Jul 2014 16:53:04 +0000 (18:53 +0200)]
libfuse: highlevel API: fix directory file handle passed to ioctl() method
Reported by Eric Biggers
Miklos Szeredi [Tue, 15 Jul 2014 16:03:24 +0000 (18:03 +0200)]
ChangeLog fix
Miklos Szeredi [Tue, 15 Jul 2014 16:02:19 +0000 (18:02 +0200)]
libfuse: add flags to ->rename()
See renameat2() system call in linux-3.15 and later kernels.
Miklos Szeredi [Tue, 15 Jul 2014 15:41:02 +0000 (17:41 +0200)]
libfuse: allow setting ctime in ->setattr()
Miklos Szeredi [Tue, 15 Jul 2014 15:11:08 +0000 (17:11 +0200)]
libfuse: add "time_gran" option
This allows the filesystem to specify the time granularity it
supports when the kernel is responsible for updating times
("writeback_cache" option).
Miklos Szeredi [Tue, 15 Jul 2014 14:03:12 +0000 (16:03 +0200)]
fusermount, libfuse: send value as unsigned in "user_id=" and "group_id="
...options. Uids/gids larger than
2147483647 would result in EINVAL when
mounting the filesystem. This also needs a fix in the kernel.
Miklos Szeredi [Tue, 15 Jul 2014 09:57:37 +0000 (11:57 +0200)]
libfuse: document deadlock avoidance for fuse_notify_inval_entry()
and fuse_notify_delete()
Reported by Han-Wen Nienhuys
Miklos Szeredi [Wed, 26 Mar 2014 15:46:38 +0000 (16:46 +0100)]
Initilaize stat buffer passed to ->getattr() and ->fgetattr()
to zero in all cases.
Reported by Daniel Iwan.
Miklos Szeredi [Tue, 18 Mar 2014 11:01:45 +0000 (12:01 +0100)]
compile fix for fuse_lo-plus
Miklos Szeredi [Mon, 17 Mar 2014 10:51:43 +0000 (11:51 +0100)]
compile fix
Eric Wong [Wed, 5 Mar 2014 13:45:44 +0000 (14:45 +0100)]
libfuse: implement readdirplus for high-level API
Reuse the old "readdir" callback, but add a flags argument, that has
FUSE_READDIR_PLUS in case this is a "plus" version. Filesystems can safely
ignore this flag, but if they want they can add optimizations based on it:
i.e. only retrieve the full attributes in PLUS mode.
The filler function is also given a flags argument and the filesystem can
set FUSE_FILL_DIR_PLUS if all the attributes in "stat" are valid.
Miklos Szeredi [Thu, 27 Feb 2014 14:02:12 +0000 (15:02 +0100)]
Allocate buffer when splicing from the fuse device
Was broken by commit
561d7054d856 "libfuse: remove fuse_chan_bufsize()".
Miklos Szeredi [Fri, 21 Feb 2014 16:52:36 +0000 (17:52 +0100)]
libfuse: added fuse_lo-plus.c to the examples
Fabrice Bauzac [Mon, 23 Sep 2013 14:57:50 +0000 (16:57 +0200)]
fuse: use dlsym() instead of relying on ld.so constructor functions
Miklos Szeredi [Wed, 29 Jan 2014 13:13:36 +0000 (14:13 +0100)]
libfuse: Add "async_dio" and "writeback_cache" options
Asynchronous direct I/O is supported by linux kernels 3.13 and
later, writeback caching is supported by 3.14 and later.
Miklos Szeredi [Wed, 11 Dec 2013 14:43:45 +0000 (15:43 +0100)]
"pkg-config fuse3 --libs" gives the wrong library name
Reported-by: Michael j Theall
Miklos Szeredi [Fri, 29 Nov 2013 16:58:03 +0000 (17:58 +0100)]
Fix fuse_add_direntry_plus()
Fabrice Bauzac [Fri, 2 Aug 2013 09:15:54 +0000 (11:15 +0200)]
Advertize the existence of some "configure" env vars.
Advertize the existence of env vars MOUNT_FUSE_PATH, UDEV_RULES_PATH
and INIT_D_PATH in the execution of ./configure.
Miklos Szeredi [Fri, 20 Sep 2013 11:57:41 +0000 (13:57 +0200)]
test: add a realdir option
Fabrice Bauzac [Fri, 2 Aug 2013 08:19:41 +0000 (10:19 +0200)]
libfuse: add the "subdir-objects" automake option
to fix a warning issued by automake 1.14.
Miklos Szeredi [Mon, 26 Aug 2013 10:11:42 +0000 (12:11 +0200)]
Merge remote-tracking branch 'origin/fuse_2_9_bugfix'
Daniel Thau [Mon, 26 Aug 2013 09:57:16 +0000 (11:57 +0200)]
Add missing includes
This allows compiling fuse with musl.
Miklos Szeredi [Mon, 26 Aug 2013 09:33:33 +0000 (11:33 +0200)]
Don't close -1 fd in fuse_chan_destroy()
Valgrind warns on close(-1). So don't do this (happens if fuse_chan_clearfd()
was called on the channel).
Miklos Szeredi [Mon, 26 Aug 2013 09:23:08 +0000 (11:23 +0200)]
Change generation and nlookup from 'unsigned long' to 'uint64_t'
Miklos Szeredi [Fri, 26 Jul 2013 14:20:28 +0000 (16:20 +0200)]
Print help on stdout instead of stderr
Miklos Szeredi [Thu, 25 Jul 2013 15:58:48 +0000 (17:58 +0200)]
ulockmgr: strip ulockmgr support from this source package
Distribute ulockmgr separately. It is not needed for the building of
libfuse, only fusexmp_fh. Check ulockmgr library in ./configure and if not
disable remote-lock suport in fusexmp_fh.
Miklos Szeredi [Thu, 25 Jul 2013 14:54:42 +0000 (16:54 +0200)]
libfuse: fuse -> fuse3
Allow 2.X and 3.X to coexist. Includes are now stored under
/usr/include/fuse3 and library is named libfuse3.*. Invoke pkg-config with
"fuse3" as the first argument to build with version 3 of the library.
Miklos Szeredi [Thu, 25 Jul 2013 09:38:28 +0000 (11:38 +0200)]
Use AC_PROG_CC_STDC instead of AC_PROG_CC
We do need a C99 compiler
Miklos Szeredi [Wed, 24 Jul 2013 15:09:26 +0000 (17:09 +0200)]
libfuse: remove "-D_FILE_OFFSET_BITS=64" from fuse.pc
add AC_SYS_LARGEFILE to your configure.ac instead.
Miklos Szeredi [Thu, 18 Jul 2013 13:45:58 +0000 (15:45 +0200)]
libfuse: clean up struct fuse_file_info
Remove 'fh_old' which was an ABI compatibility field for a long time.
Make 'writepage' a bitfield.
Miklos Szeredi [Wed, 17 Jul 2013 13:58:53 +0000 (15:58 +0200)]
Documentation fixes
Miklos Szeredi [Wed, 17 Jul 2013 13:14:55 +0000 (15:14 +0200)]
Merge https://github.com/qknight/fuse-fuse
Joachim Schiele [Tue, 2 Jul 2013 15:37:29 +0000 (17:37 +0200)]
rewrote c++ style comments to c style coments mentioned by Miklos Szeredi
Miklos Szeredi [Mon, 1 Jul 2013 08:48:51 +0000 (10:48 +0200)]
Released 2.9.3
Miklos Szeredi [Mon, 1 Jul 2013 08:18:49 +0000 (10:18 +0200)]
libfuse: don't close fd if it's -1
This prevents a valgrind warning.
Miklos Szeredi [Thu, 20 Jun 2013 09:43:02 +0000 (11:43 +0200)]
libfuse: fix multiple close of device fd
- fuse_kern_unmount closes handle (e.g. 19)
- a thread in my process opens a file - the OS assigns newly freed
handle (i.e. 19)
- fuse_kern_chan_destroy closes the same handle (i.e. 19)
- a thread in my process opens another file - the OS assigns newly
freed handle (i.e. 19)
- * MAYHEM *
Reported by Dan Greenfield
Miklos Szeredi [Fri, 21 Jun 2013 16:20:23 +0000 (18:20 +0200)]
libfuse: remove session and chan abstractions
There's actually just one type of channel and session, so we don't need the
generic callback functions.
Miklos Szeredi [Fri, 21 Jun 2013 16:17:27 +0000 (18:17 +0200)]
libfuse: remove fuse_chan_bufsize()
Remove fuse_chan_bufsize() from the lowlevel API.
fuse_session_receive_buf() is now responsible for allocating memory for the
buffer.
Miklos Szeredi [Fri, 21 Jun 2013 16:17:27 +0000 (18:17 +0200)]
libfuse: remove fuse_chan_(send|receive)
Move the fuse_chan_ops.send and .receive implementations to fuse_lowlevel.c. The abstraction wasn't actually useful and made the the splice implementation more difficult.
Remove fuse_chan_ops.send and fuse_chan_ops.receive.
Miklos Szeredi [Fri, 21 Jun 2013 12:03:08 +0000 (14:03 +0200)]
libfuse: set FD_CLOEXEC also when receiving device fd from fusermount
Miklos Szeredi [Fri, 21 Jun 2013 11:35:30 +0000 (13:35 +0200)]
libfuse: clean up fuse_chan
Clean up fuse_chan related interfaces. Remove the following from the
lowlevel library API:
struct fuse_chan_ops;
fuse_chan_new();
fuse_chan_session();
fuse_chan_recv();
fuse_chan_send();
Miklos Szeredi [Fri, 21 Jun 2013 11:35:30 +0000 (13:35 +0200)]
libfuse: clean up fuse_session
Clean up fuse_session related interfaces. Remove the following from the
lowlevel library API:
struct fuse_session_ops;
fuse_session_new();
fuse_session_process();
fuse_session_data();
Miklos Szeredi [Fri, 21 Jun 2013 11:35:30 +0000 (13:35 +0200)]
libfuse: replace fuse_session_next_chan
Replace fuse_session_next_chan() with fuse_session_chan(), as multiple
channels per session were never actually supported and probably never will.
Joachim Schiele [Thu, 20 Jun 2013 17:18:18 +0000 (19:18 +0200)]
- added a doxygen main page
- modified all examples to be included in doxygen
- modified the API documentation to have more details
- added the 490px_FUSE_structure.svg.png (c) wikipedia
Miklos Szeredi [Thu, 20 Jun 2013 09:43:02 +0000 (11:43 +0200)]
libfuse: fix multiple close of device fd
- fuse_kern_unmount closes handle (e.g. 19)
- a thread in my process opens a file - the OS assigns newly freed
handle (i.e. 19)
- fuse_kern_chan_destroy closes the same handle (i.e. 19)
- a thread in my process opens another file - the OS assigns newly
freed handle (i.e. 19)
- * MAYHEM *
Reported by Dan Greenfield
Miklos Szeredi [Thu, 20 Jun 2013 09:43:02 +0000 (11:43 +0200)]
libfuse: remove channel user data
Nikolaus Rath [Mon, 20 May 2013 12:44:59 +0000 (14:44 +0200)]
libfuse: fix readdirplus doc
Returning entry in readdir does not result in bump of lookup count.
Returning entry in readdirplus DOES result in increase of lookup count by
1. You need to provide valid nodeid and valid stat structure (with at least
valid type) for each entry.
Miklos Szeredi [Mon, 20 May 2013 12:38:37 +0000 (14:38 +0200)]
fuse: synchronize fuse_kernel.h header with the linux kernel
Check for __KERNEL__ instead of __linux__ and use the standard int
types instead of the linux specific ones.
Miklos Szeredi [Tue, 19 Mar 2013 16:33:46 +0000 (17:33 +0100)]
Merge branch 'fuse_2_9_bugfix'
Miklos Szeredi [Tue, 19 Mar 2013 16:16:14 +0000 (17:16 +0100)]
libfuse: fix thread cancel race
Exiting a worker my race with cancelling that same worker. This caused a
segmenation fault.
Reported and tested by Anatol Pomozov
Miklos Szeredi [Fri, 22 Feb 2013 13:30:22 +0000 (14:30 +0100)]
remove real fuse_main() symbol
Miklos Szeredi [Fri, 22 Feb 2013 13:26:20 +0000 (14:26 +0100)]
clean fuse_chan_receive from versionscript
Miklos Szeredi [Thu, 21 Feb 2013 08:43:44 +0000 (09:43 +0100)]
fix fi->fh format strings
Miklos Szeredi [Wed, 20 Feb 2013 20:58:41 +0000 (21:58 +0100)]
Fix nodeid format strings
Richard W.M. Jones [Tue, 20 Mar 2012 10:51:23 +0000 (10:51 +0000)]
libfuse: don't force -D_FILE_OFFSET_BITS=64 in pkgconfig file.
FUSE_CFLAGS defines -D_FILE_OFFSET_BITS=64. There are three problems
with this:
(1) A larger program using libfuse might have modules compiled with
and without FUSE_CFLAGS, which, if LFS is not enabled and the platform
is 32 bit, would result in a fatal mix of 32 and 64 bit off_t. (This
would, of course, be a bug, but I think there is a better way to
detect this -- see below)
(2) Programs may need to be adjusted to support LFS. It's the
intention of the LFS standard that the _programmer_ enables LFS once
the program has been checked/adjusted.
(3) _FILE_OFFSET_BITS does not need to be defined at all on 64 bit
Linux. 64 bit off_t is the default there.
So I think it's better not to force -D_FILE_OFFSET_BITS=64, and
because of (3) I also think you shouldn't test for it.
However off_t must still be 64 bits, so how to enforce that? C1X will
define static assertions[1], and these can be used to check the size
of off_t.
Not all compilers support static assertions yet, although several do.
Therefore I have surrounded the static assertion with a conservative
check that the compiler is GCC >= 4.6. In the long run, this test can
be removed and you can just use 'static_assert'.
Miklos Szeredi [Wed, 20 Feb 2013 14:59:08 +0000 (15:59 +0100)]
cuse: clean includes
Richard W.M. Jones [Mon, 2 Apr 2012 18:04:02 +0000 (19:04 +0100)]
libfuse: use O_CLOEXEC flag when opening /dev/fuse device
Miklos Szeredi [Wed, 20 Feb 2013 14:59:08 +0000 (15:59 +0100)]
libfuse: 64bit fuse_ino_t
Change the type of fuse_ino_t from 'unsigned long' to 'uint64_t'. This only
changes the size on 32bit architectures.
Miklos Szeredi [Tue, 19 Feb 2013 13:14:40 +0000 (14:14 +0100)]
fuse_daemonize(): chdir to "/" even if not running in the background
for consistency.
Reported by Vladimir Rutsky
Miklos Szeredi [Mon, 18 Feb 2013 15:24:11 +0000 (16:24 +0100)]
fuse_opt_parse(): fix memory leak
when storing a newly allocated string for format "%s", free the previous value
stored at that location.
Reported by Marco Schuster
Miklos Szeredi [Mon, 18 Feb 2013 13:43:08 +0000 (14:43 +0100)]
Add "nopath" to help.
Miklos Szeredi [Fri, 8 Feb 2013 07:25:10 +0000 (08:25 +0100)]
remove <utime.h> include from <fuse.h>
Miklos Szeredi [Fri, 8 Feb 2013 07:15:55 +0000 (08:15 +0100)]
libfuse: remove struct fuse_cmd
Miklos Szeredi [Fri, 8 Feb 2013 07:04:50 +0000 (08:04 +0100)]
update .gitignore
Miklos Szeredi [Fri, 8 Feb 2013 07:03:02 +0000 (08:03 +0100)]
libfuse: remove deprecated fuse_operations.utime_omit_ok
Miklos Szeredi [Fri, 8 Feb 2013 07:03:02 +0000 (08:03 +0100)]
libfuse: remove deprecated fuse_operations.utime()
Miklos Szeredi [Fri, 8 Feb 2013 07:03:02 +0000 (08:03 +0100)]
libfuse: remove deprecated fuse_operations.getdir()
Miklos Szeredi [Fri, 8 Feb 2013 07:03:02 +0000 (08:03 +0100)]
libfuse: remove deprecated fuse_lowlevel_is_lib_option()