Commit Graph

848 Commits

Author SHA1 Message Date
Miklos Szeredi
9b2ab7ebed Open /dev/null for write
Open /dev/null for write instead of read for redirecting stdout and
stderr
2010-11-08 15:47:36 +01:00
Miklos Szeredi
bd99f9cf24 Fix check for read-only fs in mtab update 2010-11-08 15:35:35 +01:00
Natanael Copa
41bc6c9372 Use LTLIBICONV when linking libfuse
This fixes building against uclibc + libiconv.

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
2010-10-14 12:26:22 +02:00
mkmm@gmx-topmail.de
ec4a01f943 add missing argument check in ulockmgr.c
Add missing argument check in ulockmgr.c to prevent calling
ulockmgr_server with illegal arguments. This would cause an ever growing
list of ulockmgr_server processes with an endless list of open files which
finally exceeds the open file handle limit.

It appears samba is sometimes calling flock with illegal / weired values.
2010-10-05 13:00:06 +02:00
Miklos Szeredi
824b4ce6ac Fix ambiguous symbol version for fuse_chan_new
fuse_versionscript included fuse_chan_new in both FUSE_2.4 and
FUSE_2.6.  Remove the FUSE_2.4, which is invalid.

Reported by Raymes Khoury, who discovered this with the gold linker
2010-09-28 20:04:02 +02:00
Miklos Szeredi
555d6b5043 Fix option escaping for fusermount.
If the "fsname=" option contained a comma then the option parser in
fusermount was confused (Novell bugzilla #641480).  Fix by escaping
commas when passing them over to fusermount.

Reported by Jan Engelhardt
2010-09-28 19:22:24 +02:00
Miklos Szeredi
64222fbcbd Add NetBSD support
The bulk of it is just about adding ifdef __NetBSD__ where there is
already an ifdef __FreeBSD__

Add a arch=netbsd to deal with NetBSD specifics. I suggests that
arch=bsd could be renamed to arch=freebsd

NetBSD specific linking with -lperfuse

NetBSD patches to lib/mount.c. It turned to be less itrusive to patch
mount;c than mount_bsd.c. I suggest mount_bsd.c could be renamed to 
mount_freebsd.c

Patch from Emmanuel Dreyfus
2010-08-27 17:16:54 +02:00
Miklos Szeredi
7cc73a47dd cuse: fix minor typos in error messages
This basically was a
    %s/fuse:/cuse:/
to remove some apparent copy/paste errors.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
2010-08-27 13:29:54 +02:00
Miklos Szeredi
2709f9a53d libfuse: add buffer interface
Add a generic buffer interface for use with I/O.  Buffer vectors are
supplied and each buffer in the vector may be a memory pointer or a
file descriptor.

The fuse_reply_fd() interface is converted to using buffers.
2010-07-12 17:17:25 +02:00
Miklos Szeredi
5454e4fa74 Add .gitignore files
Add .gitignore files and delete .cvsignore files.
2010-06-24 13:40:31 +02:00
Miklos Szeredi
ed5d070739 update fuse_kernel.h 2010-06-23 08:56:01 +00:00
Miklos Szeredi
8b2a7f59b3 * Make the number of max background requests and congestion
threshold tunable.
2010-06-23 08:33:32 +00:00
Miklos Szeredi
1091d73a28 Add fuse_reply_fd() reply function to the low level interface 2010-06-17 11:54:26 +00:00
Miklos Szeredi
ca14187b22 * Add a nopath option and flag, indicating that path argument
need not be calculated for the following operations: read, write,
flush, release, fsync, readdir, releasedir, fsyncdir, ftruncate,
fgetattr, lock, ioctl and poll.
2010-06-15 17:55:37 +00:00
Miklos Szeredi
aebdeefa64 * Fix out-of-source build. 2010-06-15 17:49:13 +00:00
Miklos Szeredi
6433d1b8cb * Remove "chmod root" from install of fusermount 2010-06-01 09:45:52 +00:00
Miklos Szeredi
754c488d98 * Fix checking for symlinks in umount from /tmp. Reported by Al
Viro

* Fix umounting if /tmp is a symlink.  Reported by Franco Broi
2010-04-26 15:29:08 +00:00
Miklos Szeredi
83eadc2fa3 *** empty log message *** 2010-02-18 14:13:10 +00:00
Miklos Szeredi
b21279ff36 * Fix definition of FUSE_OPT_ENT for C++. Reported by Tim
Bruylants
2010-02-18 14:07:09 +00:00
Miklos Szeredi
bba1ff4cf6 * Fix stack alignment for clone() 2010-02-18 11:05:13 +00:00
Miklos Szeredi
96fd197a5e add bug report credits 2010-02-01 15:01:24 +00:00
Miklos Szeredi
0197ce4041 * Released 2.8.3
* Using --no-canonicalize with umount(8) conflicts with the race
        fix, sinceit assumes the supplied path is absolute, while the race
        fix relies on the path being relative to the current directory
2010-02-01 14:52:30 +00:00
Miklos Szeredi
054635595a * Released 2.8.2 2010-01-26 20:46:45 +00:00
Miklos Szeredi
8b3a0c74a1 * Fix race if two "fusermount -u" instances are run in parallel.
Reported by Dan Rosenberg

* Make sure that the path to be unmounted doesn't refer to a
symlink
2010-01-26 18:20:13 +00:00
Miklos Szeredi
d29bc735ad * Fix compile error on FreeBSD. Patch by Jay Sullivan 2010-01-14 09:54:42 +00:00
Miklos Szeredi
4c3d9b1957 * Use '--no-canonicalize' option of mount(8) (available in
util-linux-ng version 2.17 or greater) to avoid calling
readling(2) on the newly mounted filesystem before the mount
procedure is finished.  This has caused a deadlock if audit was
enabled in the kernel.  Also use '--no-canonicalize' for umount to
avoid touching the mounted filesystem.
2009-12-23 12:51:40 +00:00
Miklos Szeredi
e61b775a5a Doc fix 2009-11-02 10:17:24 +00:00
Miklos Szeredi
003bbc6ad3 * Released 2.8.1 2009-09-11 10:48:52 +00:00
Miklos Szeredi
b290c7f304 Fix missing versioned symbol fuse_get_context@FUSE_2.2 2009-08-25 09:07:59 +00:00
Miklos Szeredi
6972376812 * Add missing fuse_session_data to versionscript
* Make sure all global symbols are prefixed with "fuse_" or "cuse_"

* Released 2.8.0
2009-08-18 16:13:33 +00:00
Miklos Szeredi
7960e99ebb * Add missing pthread link for libulockmgr. Patch by Petr Salinger 2009-07-16 17:14:51 +00:00
Miklos Szeredi
3846394e7a * Clarify how the protocol version should be negotiated between
kernel and userspace.  Notably libfuse didn't correctly handle the
case when the supported major versions didn't match
2009-07-16 11:07:31 +00:00
Miklos Szeredi
37a90f29e8 * Released 2.8.0-pre3 2009-07-06 11:48:34 +00:00
Miklos Szeredi
2db5be456f * fusermount: Do not silently ignore command line arguments.
Patch by Sebastian Harl
2009-07-02 12:52:27 +00:00
Miklos Szeredi
24b35c3d97 * The context is extended with a 'umask' field. The umask is sent
for mknod, mkdir and create requests by linux kernel version
2.6.31 or later, otherwise the umask is set to zero.  Also
introduce a new feature flag: FUSE_CAP_DONT_MASK.  If the kernel
supports this feature, then this flag will be set in conn->capable
in the ->init() method.  If the filesystem sets this flag in in
conn->want, then the create modes will not be masked.

* Add low level interfaces for lookup cache and attribute
invalidation.  This feature is available in linux kernels 2.6.31
or later.  Patch by John Muir

* Kernel interface version is now 7.12
2009-07-02 12:26:36 +00:00
Csaba Henk
5bd3ba41e5 fix compiler warning 2009-07-01 21:57:33 +00:00
Miklos Szeredi
ecd073bd70 Add fuse_getgroups (high level lib) and fuse_req_getgroups (low
level lib) functions to query the supplementary group IDs for the
current request.  Currently this is implemented on Linux by
reading from the /proc filesystem.
2009-06-19 10:27:38 +00:00
Miklos Szeredi
17d1cf6956 Add "noforget" option to high level lib.
Add "no_remote_lock" option to disable remote file locking
2009-06-18 11:29:14 +00:00
Miklos Szeredi
dcd8b569bc *** empty log message *** 2009-06-18 11:20:07 +00:00
Miklos Szeredi
6ae8980d69 CUSE patches from Tejun Heo (add new files) 2009-06-18 11:19:14 +00:00
Miklos Szeredi
ae9bfde712 CUSE patches from Tejun Heo 2009-06-18 11:11:54 +00:00
Miklos Szeredi
bc53eddb2f Add missing fuse_reply_bmap to versionscript. Debian Bug#531329. Reported by Goswin Brederlow 2009-06-18 09:26:22 +00:00
Miklos Szeredi
0db74cc67c Don't call forget_node() if the lookup was negative and write()
for the reply returned ENOENT.  Reported by John Haxby
2009-05-27 10:17:24 +00:00
Miklos Szeredi
78cbfe5972 Add FUSE_CAP_EXPORT_SUPPORT to fuse_common.h 2009-05-25 15:02:52 +00:00
Miklos Szeredi
5be4599b70 Fix 'make install-strip'. Reported by Dominick Layfield 2009-05-08 12:04:50 +00:00
Miklos Szeredi
2b99e9d97d Fix missing newlines in some printfs 2009-05-08 11:49:38 +00:00
Miklos Szeredi
1de24725e4 documentation update 2009-02-06 14:04:10 +00:00
Miklos Szeredi
f9fa25e977 Released 2.8.0-pre2 2009-01-05 15:43:58 +00:00
Miklos Szeredi
c335f925d7 * Add missing setattr flags to <fuse_lowlevel.h>.
* Only pass valid flags to ->setattr().
2008-12-08 21:53:35 +00:00
Miklos Szeredi
5f722fa8f6 * Implement poll support. Patch by Tejun Heo 2008-12-08 19:26:53 +00:00