Commit Graph

926 Commits

Author SHA1 Message Date
Miklos Szeredi
e3f95263a7 Add support for ioctl on directories
Reported by Antonio SJ Musumeci
2011-12-05 15:21:28 +01:00
Miklos Szeredi
6b12905b10 Make lock argument of fuse_reply_lock const
Low level API: lock argument of fuse_reply_lock should have a
'const' qualifier.

Reported by Shachar Sharon
2011-12-05 13:31:42 +01:00
Miklos Szeredi
ae43094c13 Fix the following compile error
fusermount.c: In function 'clone_newns':
fusermount.c:315:2: warning: implicit declaration of function 'clone' [-Wimplicit-function-declaration]
fusermount.c:315:44: error: 'CLONE_NEWNS' undeclared (first use in this function)
fusermount.c:315:44: note: each undeclared identifier is reported only once for each function it appears in
fusermount.c:317:1: warning: control reaches end of non-void function [-Wreturn-type]
2011-11-17 12:36:38 +01:00
Miklos Szeredi
42d5c66b0b Reply with ENOMEM in case of failure to allocate request
Reply to request with ENOMEM in case of failure to allocate request
structure.  Otherwise the task issuing the request will just freeze up
until the filesystem daemon is killed.  Reported by Stephan Kulow
2011-10-23 10:07:20 +02:00
Anatol Pomozov
7728b36a83 Replace daemon() function with fork()
daemon() is a BSD-ism. Although it is available on many platforms
it is not a standard function. Some platforms (e.g. MacOSX) deprecated
it.

It is safer just to use fork() function that is a part of POSIX.
2011-09-23 13:28:51 +02:00
Miklos Szeredi
0131407f4e Don't ignore --disable-mtab
If configured with --disable-mtab then don't call mount(8) from
libfuse to update the mtab.

Reported by: James Sierp
2011-08-31 12:55:06 +02:00
therealneworld@gmail.com
394380fe50 add lru for remember option
Use LRU list for cleaning up the cache if the "remember=T" option was
given.
2011-08-24 18:01:17 +02:00
Miklos Szeredi
8edeaa3f29 Add ->flock() operation to low and high level interfaces
This fixes problems with emulating flock() with POSIX locking.
Reported by Sebastian Pipping.

As with lock/setlk/getlk most filesystems don't need to implement
this, as the kernel takes care of file locking.  The only reason to
implement locking operations is for network filesystems which want
file locking to work between clients.
2011-07-06 12:12:01 +02:00
Sebastian Pipping
c605b5f73c utimens must not follow symlinks
Make xmp_utimens of examples "fusexmp" and "fusexmp_fh" not follow
symlinks as other layers do that already.
2011-07-04 13:01:35 +02:00
Miklos Szeredi
fe16912e9b In ./configure check if umount support --fake and --no-canonicalize
options and warn othewise
2011-06-02 16:16:39 +02:00
therealneworld@gmail.com
94c2b63955 add "remember" option
This works similar to "noforget" except that eventually the node will
be allowed to expire from the cache.
2011-06-02 14:27:02 +02:00
Miklos Szeredi
4a9f6ab480 Check if splice/vmsplice are supported 2011-05-27 12:12:31 +02:00
Miklos Szeredi
42043986ae Update COPYING* 2011-05-26 15:36:35 +02:00
Miklos Szeredi
8ddce72c2c Update NEWS 2011-05-26 14:07:12 +02:00
Miklos Szeredi
e4e0b2ba94 Fix lost ChangeLog entry. 2011-05-26 13:57:57 +02:00
Miklos Szeredi
3b91a5041a Remove -lrt -ldl from fuse.pc for dynamic linking
Remove -lrt -ldl from fuse.pc for dynamic linking since libfuse.so is
already linked with these libraries.

Reported by: Nikolaus Rath
2011-05-26 11:17:51 +02:00
Reuben Hawkins
e8f6d78d03 adding details to utimens doxygen comments
modified:   include/fuse.h
2011-05-25 11:30:43 +02:00
Reuben Hawkins
54f93a7a1d Spell checking comments, etc...
...with the help of vim :set spell

modified:   FAQ
modified:   include/fuse.h
modified:   include/fuse_common.h
modified:   include/fuse_opt.h
modified:   lib/fuse_kern_chan.c
modified:   util/fusermount.c
2011-05-25 11:30:43 +02:00
Reuben Hawkins
1193a39c08 cleaning up warnings
fprintf(stderr, whatever); -> fprintf(stderr, "%s", whatever);
checking return values on chdir and lockf where we weren't already

modified:   example/cusexmp.c
modified:   example/fioclient.c
modified:   util/fusermount.c
2011-05-23 11:15:56 +02:00
Reuben Hawkins
d523ae8421 Cleaner build output
Add m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)]) for cleaner
build output.  The verbose output is still available with 'make V=1'
2011-05-20 10:45:32 +02:00
Miklos Szeredi
49e85dee59 Fix ioctl ABI
Fix the ambiguity of ioctl ABI on the kernel/userspace boundary
for 32bit vs. 64bit userspace
2011-05-19 15:36:20 +02:00
Miklos Szeredi
7819846300 Add ->forget_multi() operation
Add ->forget_multi() operation to the lowlevel API.  The filesystem
may implement this to process multiple forget requests in one call
2011-05-19 15:30:01 +02:00
Miklos Szeredi
d915a6b4a8 Allow batching of forget requests
This allows forget requests to be processed faster and doesn't require
a modification to fuse filesystems.  Reported by Terje Malmedal
2011-05-19 15:26:37 +02:00
Miklos Szeredi
9c526a7a54 Fix splice_read 2011-05-19 15:09:43 +02:00
Miklos Szeredi
a785697e03 Disable splice by default
Disable splice by default, add "splice_read", "splice_write" and
"splice_move" options.  Keep the "no_splice_*" variants, which can
disable splice even if the filesystem explicitly enables it.
2011-05-19 14:49:26 +02:00
Miklos Szeredi
d84fc1f429 Don't hide output of /bin/mount 2011-05-19 13:03:56 +02:00
Max Krasnyansky
bc2d367edb Added changelog entry for the auto_unmount option 2011-04-15 15:19:51 -07:00
Max Krasnyansky
22ccf0576c fusermount: Added support for auto_unmount option
When this option is specified fusermount will become a daemon and wait for the
parent to exit or die, which causes control fd to get closed. It will then try
to unmount the original mountpoint.
2011-04-15 15:14:49 -07:00
Max Krasnyansky
9ca8283f6f libfuse: Added support for auto_unmount option
This change adds support for "auto_unmount" option to libfuse.
auto_umount option unmounts the fs automatically on application
termination, whether normal or not (segfault, etc).

When auto_unmount option is specified libfuse will alway use
fusermount for mounting the fs. This change is selfcontained but
for complete functionaly it requires auto_unmount support in
fusermount tool.
2011-04-15 15:10:04 -07:00
Miklos Szeredi
5e1b193239 Update ChangeLog
Patches by Laszlo Papp fixing various issues found by the Coverity
checker.
2011-03-30 19:38:22 +02:00
Laszlo Papp
dba9185999 Check the 'mtablock' for negative value 2011-03-30 19:34:59 +02:00
Laszlo Papp
20c31c48b4 Fix a potential null pointer dereference issue 2011-03-30 19:34:59 +02:00
Laszlo Papp
db5d46976b Fix a potential resource leak (newargv) 2011-03-30 19:34:58 +02:00
Laszlo Papp
c470934043 Initialize an allocated, but uninitialized memory 2011-03-30 19:34:58 +02:00
Laszlo Papp
9deaced060 Initialize the variable properly before passing to any function 2011-03-30 19:34:58 +02:00
Miklos Szeredi
e63a9d8ee6 fusermount: clean up do_mount() function 2011-03-30 19:34:58 +02:00
Miklos Szeredi
2d96d62d3b Remove unnecessary variable assignment 2011-03-30 19:34:58 +02:00
Laszlo Papp
81fee822a0 Eliminate the unused value 2011-03-30 19:34:58 +02:00
Miklos Szeredi
7fdc732a19 Fix use after free if fuse_reply...() returned ENOENT 2011-03-30 19:34:58 +02:00
Laszlo Papp
60eb44ee5e Fix resource leaks in fusermount 2011-03-30 19:34:58 +02:00
Laszlo Papp
3a48e06de9 Fix a possible resource leak (free the old up) 2011-03-30 19:34:58 +02:00
Laszlo Papp
a7a026043b Do not pass NULL to xstrdup 2011-03-30 19:34:58 +02:00
Laszlo Papp
61aff393dc Check the return value properly before passing it to any function 2011-03-30 19:34:58 +02:00
Laszlo Papp
2621a3a467 Fix a potential resource leak 2011-03-30 19:34:58 +02:00
Laszlo Papp
87a0a37be9 Use the return value for error check 2011-03-30 19:34:58 +02:00
Laszlo Papp
b812c4c406 Check the return value after an open syscall 2011-03-30 19:34:58 +02:00
Laszlo Papp
b0ceaa0670 Check the negative return value after an open syscall 2011-03-30 19:34:58 +02:00
Miklos Szeredi
d6bec4020f In case of failure to add to /etc/mtab don't umount.
Reported by Marc Deslauriers
2011-03-11 13:51:49 +01:00
Miklos Szeredi
2250aae7bc Revert "Fix cleanup in case of failed mount"
This reverts commit bf5ffb5fd8.

Cleanup of mount doesn't work the way it was envisioned, because the
kernel doesn't follow mounts on the umount() call, hence it will find
a non-mounted directory.
2011-03-11 13:46:13 +01:00
Miklos Szeredi
337a2e4b24 Add -onoforget to help output 2011-02-17 14:22:38 +01:00