Add mmap() and munmap() methods to low level API
[fuse.git] / ChangeLog
blob636dddcf3b0fb955009117543b2b5849e98e296d
1 2011-12-06  Miklos Szeredi <miklos@szeredi.hu>
3         * Add mmap() and munmap() methods to low level API.  Currently
4         this is only useful for CUSE
6         * Update retrieve_reply() method
8 2011-12-05  Miklos Szeredi <miklos@szeredi.hu>
10         * Low level API: lock argument of fuse_reply_lock should have a
11         'const' qualifier.  Reported by Shachar Sharon
13         * Add support for ioctl on directories.  Reported by Antonio SJ
14         Musumeci
16 2011-10-13  Miklos Szeredi <miklos@szeredi.hu>
18         * Reply to request with ENOMEM in case of failure to allocate
19         request structure.  Otherwise the task issuing the request will
20         just freeze up until the filesystem daemon is killed.  Reported by
21         Stephan Kulow
23 2011-09-23  Miklos Szeredi <miklos@szeredi.hu>
25         * Replace daemon() function with fork().  Patch by Anatol Pomozov
27 2011-08-26  Miklos Szeredi <miklos@szeredi.hu>
29         * If configured with --disable-mtab then don't call mount(8) from
30         libfuse to update the mtab.  Reported by: James Sierp
32 2011-08-24  Miklos Szeredi <miklos@szeredi.hu>
34         * Use LRU list for cleaning up the cache if the "remember=T"
35         option was given.  Patch by therealneworld@gmail.com
37 2011-07-06  Miklos Szeredi <miklos@szeredi.hu>
39         * Add ->flock() operation to low and high level interfaces.  This
40         fixes problems with emulating flock() with POSIX locking.
41         Reported by Sebastian Pipping.  As with lock/setlk/getlk most
42         filesystems don't need to implement this, as the kernel takes care
43         of file locking.  The only reason to implement locking operations
44         is for network filesystems which want file locking to work between
45         clients.
47 2011-07-02  Sebastian Pipping <sebastian@pipping.org>
49         * Make xmp_utimens of examples "fusexmp" and "fusexmp_fh"
50         not follow symlinks as other layers do that already.
52 2011-06-02  Miklos Szeredi <miklos@szeredi.hu>
54         * Add "remember" option.  This works similar to "noforget" except
55         that eventually the node will be allowed to expire from the cache.
56         Patch by therealneworld@gmail.com
58 2011-05-27  Miklos Szeredi <miklos@szeredi.hu>
60         * Check if splice/vmsplice are supported
62 2011-05-26  Miklos Szeredi <miklos@szeredi.hu>
64         * Remove -lrt -ldl from fuse.pc for dynamic linking since
65         libfuse.so is already linked with these libraries.  Reported by:
66         Nikolaus Rath
68 2011-05-20  Miklos Szeredi <miklos@szeredi.hu>
70         * Cleaner build output.  Patch by Reuben Hawkins
72 2011-05-19  Miklos Szeredi <miklos@szeredi.hu>
74         * Disable splice by default, add "splice_read", "splice_write" and
75         "splice_move" options.  Keep the "no_splice_*" variants, which can
76         disable splice even if the filesystem explicitly enables it.
78 2011-04-15  Max Krasnyansky <maxk@kernel.org>
79         * Added support for "auto_unmount" option which unmounts the
80         filesystem automatically on process exit (or crash).
82 2011-03-30  Miklos Szeredi <miklos@szeredi.hu>
84         * Patches by Laszlo Papp fixing various issues found by the
85         Coverity checker
87 2011-03-11  Miklos Szeredi <miklos@szeredi.hu>
89         * In case of failure to add to /etc/mtab don't umount.  Reported
90         by Marc Deslauriers
92 2011-02-02  Miklos Szeredi <miklos@szeredi.hu>
94         * libfuse: In fuse_session_loop_mt() don't pause when exiting the
95         worker threads.  The pause() was added in 2.2.1 to prevent
96         segfault on pthread_cancel() on an exited, detached thread.  Now
97         worker threads are not detached and pthread_cancel() should work
98         fine even after the thread exited.  Reported by Boris Protopopov
100 2011-01-31  Miklos Szeredi <miklos@szeredi.hu>
102         * fusermount: chdir to / before performing mount/umount
104         * fusermount: only allow mount and umount if util-linux supports
105         --no-canonicalize
107 2010-12-16  Miklos Szeredi <miklos@szeredi.hu>
109         * Highlevel lib: allow hash tables to shrink
111         * Highlevel lib: add slab allocation for node cache.  This will
112         allow the memory used by the filesystem to grow and shrink
113         depending on how many inodes are currently cached.
115 2010-12-13  Miklos Szeredi <miklos@szeredi.hu>
117         * Highlevel lib: use dynamically resized hash table for looking up
118         by name and node ID.
120 2010-12-07  Miklos Szeredi <miklos@szeredi.hu>
122         * Allow batching of forget requests.  This allows forget requests
123         to be processed faster and doesn't require a modification to fuse
124         filesystems.  Reported by Terje Malmedal
126         * Add ->forget_multi() operation to the lowlevel API.  The
127         filesystem may implement this to process multiple forget requests
128         in one call
130         * Fix the ambiguity of ioctl ABI on the kernel/userspace boundary
131         for 32bit vs. 64bit userspace
133 2010-11-10  Miklos Szeredi <miklos@szeredi.hu>
135         * Add new write_buf() method to the highlevel API.  Similarly to
136         the lowlevel write_buf() method, this allows implementing zero
137         copy writes.
139         * Add a new read_buf() method to the highlevel API.  This allows
140         returning a generic buffer from the read method, which in turn
141         allows zero copy reads.
143         * In fusexmp_fh implement the ->read_buf() and ->write_buf()
144         methods.  Leave the ->read() and ->write() implementations for
145         reference, even though they are not necessary.
147 2010-11-08  Miklos Szeredi <miklos@szeredi.hu>
149         * Fix check for read-only fs in mtab update
151         * Open /dev/null for write instead of read for redirecting stdout
152         and stderr
154         * If umount(8) supports --fake and --no-canonicalize (util-linux-ng
155         version 2.18 or later), and umount(2) supports the
156         UMOUNT_NOFOLLOW flag (linux kernel version 2.6.35 or later)  then,
157         "fusermount -u" will call the umount(2) system call and use
158         "umount --fake ..." to update /etc/mtab
160         * Added --disable-legacy-umount option to configure.  This
161         disables the runtime checking of umount(8) version.  When built
162         with this option then "fusermount -u" will fail if umount(8)
163         doesn't support the --fake and --no-canonicalize options.
165         * Fix fuse_buf_copy() if already at the end of the buffers
167         * Add new ->write_buf() method to low level interface.  This
168         allows passig a generic buffer, either containing a memory buffer
169         or a file descriptor.  This allows implementing zero copy writes.
171         * Add fuse_session_receive_buf() and fuse_session_process_buf()
172         which may be used in event loop implementations to replace
173         fuse_chan_recv() and fuse_session_process() respectively.
175         * Remove unnecessary restoring of current working directory in
176         "fusermount -u"
178         * Add ctx->pid to debug output
180         * Fix st_nlink value in high level lib if file is unlinked but
181         still open
183         * libfuse: add store request.  Request data to be stored in the
184         kernel buffers for a given inode.
186         * libfuse: add retrieve request.  Retrieve data stored in the
187         kernel buffers for a given inode.
189 2010-10-14  Miklos Szeredi <miklos@szeredi.hu>
191         * Use LTLIBICONV when linking libfuse.  This fixes building against
192         uclibc + libiconv.  Patch by Natanael Copa
194 2010-10-05  Miklos Szeredi <miklos@szeredi.hu>
196         * Add missing argument check in ulockmgr.c to prevent calling
197         ulockmgr_server with illegal arguments. This would cause an ever
198         growing list of ulockmgr_server processes with an endless list of
199         open files which finally exceeds the open file handle limit.
200         Patch by Markus Ammer
202 2010-09-28  Miklos Szeredi <miklos@szeredi.hu>
204         * Fix ambiguous symbol version for fuse_chan_new.
205         fuse_versionscript included fuse_chan_new in both FUSE_2.4 and
206         FUSE_2.6.  Remove the FUSE_2.4, which is invalid.
208 2010-09-28  Miklos Szeredi <miklos@szeredi.hu>
210         * Fix option escaping for fusermount.  If the "fsname=" option
211         contained a comma then the option parser in fusermount was
212         confused (Novell bugzilla #641480).  Fix by escaping commas when
213         passing them over to fusermount.  Reported by Jan Engelhardt
215 2010-08-27  Miklos Szeredi <miklos@szeredi.hu>
217         * Add NetBSD support.  Patch from Emmanuel Dreyfus
219 2010-07-12  Miklos Szeredi <miklos@szeredi.hu>
221         * libfuse: add buffer interface.  Add a generic buffer interface
222         for use with I/O.  Buffer vectors are supplied and each buffer in
223         the vector may be a memory pointer or a file descriptor.
225         * The fuse_reply_fd() interface is converted to using buffers.
227 2010-06-23  Miklos Szeredi <miklos@szeredi.hu>
229         * Make the number of max background requests and congestion
230         threshold tunable.  New options are "max_background" and
231         "congestion_threshold".  Only effective on linux kernel versions
232         2.6.32 or greater.  Patch by Csaba Henk
234 2010-06-17  Miklos Szeredi <miklos@szeredi.hu>
236         * Add fuse_reply_fd() reply function to the low level interface.
237         On linux version 2.6.35 or greater this will use splice() to move
238         data directly from a file descriptor to the fuse device without
239         needing to go though a userspace buffer.  With the
240         FUSE_REPLY_FD_MOVE flag the kernel will attempt to move the data
241         directly into the filesystem's cache.  On earlier kernels it will
242         fall back to an intermediate buffer.  The options
243         "no_splice_write" and "no_splice_move" can be used to disable
244         splicing and moving respectively.
246 2010-06-15  Miklos Szeredi <miklos@szeredi.hu>
248         * Fix out-of-source build.  Patch by Jörg Faschingbauer
250         * Add a "nopath" option and flag, indicating that path argument
251         need not be calculated for the following operations: read, write,
252         flush, release, fsync, readdir, releasedir, fsyncdir, ftruncate,
253         fgetattr, lock, ioctl and poll.
255 2010-05-10  Miklos Szeredi <miklos@szeredi.hu>
257         * Remove "chmod root" from install of fusermount.  Reported by
258         Lucas C. Villa Real
260 2010-04-26  Miklos Szeredi <miklos@szeredi.hu>
262         * Released 2.8.4
264 2010-04-26  Miklos Szeredi <miklos@szeredi.hu>
266         * Fix checking for symlinks in umount from /tmp.  Reported by Al
267         Viro
269         * Fix umounting if /tmp is a symlink.  Reported by Franco Broi
271 2010-02-18  Miklos Szeredi <miklos@szeredi.hu>
273         * Fix definition of FUSE_OPT_END for C++.  Reported by Tim
274         Bruylants
276 2010-02-03  Miklos Szeredi <miklos@szeredi.hu>
278         * Fix stack alignment for clone()
280 2010-02-01  Miklos Szeredi <miklos@szeredi.hu>
282         * Released 2.8.3
284 2010-02-01  Miklos Szeredi <miklos@szeredi.hu>
286         * Using "--no-canonicalize" with umount(8) conflicts with the race
287         fix, sinceit assumes the supplied path is absolute, while the race
288         fix relies on the path being relative to the current directory.
289         Reported by Tom Rindborg
291 2010-01-26  Miklos Szeredi <miklos@szeredi.hu>
293         * Released 2.8.2
295 2010-01-21  Miklos Szeredi <miklos@szeredi.hu>
297         * Fix race if two "fusermount -u" instances are run in parallel.
298         Reported by Dan Rosenberg
300         * Make sure that the path to be unmounted doesn't refer to a
301         symlink
303 2010-01-14  Miklos Szeredi <miklos@szeredi.hu>
305         * Fix compile error on FreeBSD.  Patch by Jay Sullivan
307 2009-12-17  Miklos Szeredi <miklos@szeredi.hu>
309         * Use '--no-canonicalize' option of mount(8) (available in
310         util-linux-ng version 2.17 or greater) to avoid calling
311         readling(2) on the newly mounted filesystem before the mount
312         procedure is finished.  This has caused a deadlock if "audit" was
313         enabled in the kernel.  Also use '--no-canonicalize' for umount to
314         avoid touching the mounted filesystem.
316 2009-09-11  Miklos Szeredi <miklos@szeredi.hu>
318         * Released 2.8.1
320 2009-08-25  Miklos Szeredi <miklos@szeredi.hu>
322         * Fix missing versioned symbol fuse_get_context@FUSE_2.2
324 2009-08-18  Miklos Szeredi <miklos@szeredi.hu>
326         * Released 2.8.0
328 2009-08-18  Miklos Szeredi <miklos@szeredi.hu>
330         * Add missing fuse_session_data to versionscript
332         * Make sure all global symbols are prefixed with "fuse_" or "cuse_"
334 2009-07-16  Miklos Szeredi <miklos@szeredi.hu>
336         * Clarify how the protocol version should be negotiated between
337         kernel and userspace.  Notably libfuse didn't correctly handle the
338         case when the supported major versions didn't match
340         * Add missing pthread link for libulockmgr.  Patch by  Petr Salinger
342 2009-07-02  Miklos Szeredi <miklos@szeredi.hu>
344         * The context is extended with a 'umask' field.  The umask is sent
345         for mknod, mkdir and create requests by linux kernel version
346         2.6.31 or later, otherwise the umask is set to zero.  Also
347         introduce a new feature flag: FUSE_CAP_DONT_MASK.  If the kernel
348         supports this feature, then this flag will be set in conn->capable
349         in the ->init() method.  If the filesystem sets this flag in in
350         conn->want, then the create modes will not be masked.
352         * Add low level interfaces for lookup cache and attribute
353         invalidation.  This feature is available in linux kernels 2.6.31
354         or later.  Patch by John Muir
356         * Kernel interface version is now 7.12
358         * fusermount: Do not silently ignore command line arguments.
359         Patch by Sebastian Harl
361 2009-06-19  Miklos Szeredi <miklos@szeredi.hu>
363         * Released 2.8.0-pre3
365 2009-06-19  Miklos Szeredi <miklos@szeredi.hu>
367         * Add fuse_getgroups (high level lib) and fuse_req_getgroups (low
368         level lib) functions to query the supplementary group IDs for the
369         current request.  Currently this is implemented on Linux by
370         reading from the /proc filesystem.
372 2009-06-18  Miklos Szeredi <miklos@szeredi.hu>
374         * Add "noforget" option to high level lib to prevent ESTALE errors
375         on NFS exported filesystems.  This result in paths being cached
376         forever, resulting in ever growing memory usage.  Use with care.
378         * Add "no_remote_lock" option to disable remote file locking even
379         if the filesystem implements it.  With this option locking
380         primitives (flock, lockf, fcntl(F_SETLK)) will still work, but
381         will ignore remotely locked files.
383         * CUSE patches from Tejun Heo:
385         * Unrestricted ioctl support left some debris.  Clean them up:
386           o No reason to pass around pointer to flags.  Pass flags directly.
387           o Clean up comment and prototype parameter names.
388           o fuse_lib_ioctl() didn't reply when get_path() failed.  Fix it.
389           o Remove unused variables {in|out}_iov from fuse_lib_ioctl().
391         * Add fuse_reply_ioctl_iov()
393         * Move fuse_session, fuse_req and fuse_ll definitions to fuse_i.h
394         and make send_reply_iov() and fuse_setup_common() global (also in
395         fuse_i.h).  These will be used by CUSE support.
397         * Restructure fuse_ll_process()
399         * Implement libfuse side of CUSE support.  CUSE uses subset of FUSE
400         operations as dir operations don't make sense for CUSE where one
401         instance implements single character device.
403         CUSE support comes with its own cuse_lowevel_ops and related
404         initialization and helper functions.  Except for initialization, it
405         usage is basically identical to FUSE.
407         This patch also adds example/cusexmp.c which can create a character
408         device with name and device number specified on command line.  The
409         created device itself is pretty boring.  It's a bit bucket supporting
410         read, write and access via ioctl.
412 2009-06-16  Miklos Szeredi <miklos@szeredi.hu>
414         * Add missing fuse_reply_bmap to versionscript.  Debian
415         Bug#531329.  Reported by Goswin Brederlow
417 2009-05-27  Miklos Szeredi <miklos@szeredi.hu>
419         * Don't call forget_node() if the lookup was negative and write()
420         for the reply returned ENOENT.  Reported by John Haxby
422 2009-05-25  Miklos Szeredi <miklos@szeredi.hu>
424         * Add FUSE_CAP_EXPORT_SUPPORT to fuse_common.h
426 2009-05-08  Miklos Szeredi <miklos@szeredi.hu>
428         * Fix missing newlines in some printfs
430         * Fix 'make install-strip'.  Reported by Dominick Layfield
432 2009-01-05  Miklos Szeredi <miklos@szeredi.hu>
434         * Released 2.8.0-pre2
436 2008-12-08  Miklos Szeredi <miklos@szeredi.hu>
438         * Implement poll support.  Patch by Tejun Heo
440         * Add missing setattr flags to <fuse_lowlevel.h>.
442         * Only pass valid flags to ->setattr().
444 2008-12-05  Miklos Szeredi <miklos@szeredi.hu>
446         * Implement ioctl support.  On high level interface only
447         "restricted" ioctls are supported (which are defined with the
448         _IO(), _IOR(), _IOW() or _IOWR() macros).  Unrestricted ioctls
449         will only be allwed to CUSE (Character Device in Userspace)
450         servers.  Patch by Tejun Heo
452 2008-11-28  Miklos Szeredi <miklos@szeredi.hu>
454         * If open sets fi->nonseekable, libfuse will tell the kernel that
455         the file is not seekable.  Patch by Tejun Heo
457 2008-11-19  Miklos Szeredi <miklos@szeredi.hu>
459         * lowlevel lib: fix deadlock if fuse_reply_* is called from the
460         interrupt handling function.  Reported by Tero Marttila
462 2008-10-16  Miklos Szeredi <miklos@szeredi.hu>
464         * Allow commas in options to be escaped with a backslash
466         * Add new function: fuse_opt_add_opt_escaped()
468         * Add missing fuse_reply_bmap() to the version script
470 2008-10-14  Miklos Szeredi <miklos@szeredi.hu>
472         * Pass current file flags to read and write operations
474 2008-07-24  Miklos Szeredi <miklos@szeredi.hu>
476         * Clean up debug output in highlevel lib
478 2008-07-10  Miklos Szeredi <miklos@szeredi.hu>
480         * Released 2.8.0-pre1
482 2008-06-27  Miklos Szeredi <miklos@szeredi.hu>
484         * Fix handling of (no)suid and (no)dev options if filesystem is
485         mounted from /etc/fstab or via mount(8).  Reported by Jan Ondrej.
487         * Skip calling mount(8) if /etc/mtab doesn't exist or if it's on a
488         read-only filesystem.  This works around issues with certain mount
489         implementations.  Reported by Szabolcs Szakacsits.
491 2008-06-16  Miklos Szeredi <miklos@szeredi.hu>
493         * Remove fuse kernel module sources.  Linux 2.6.27 will support
494         NFS exporting.
496 2008-06-10  Miklos Szeredi <miklos@szeredi.hu>
498         * Fix theoretical infinite loops in libfuse.  Reported by Szabolcs
499         Szakacsits
501         * Fix missing <sys/param.h> include for PATH_MAX.  Reported by
502         Szabolcs Szakacsits
504 2008-05-23  Miklos Szeredi <miklos@szeredi.hu>
506         * Fix mounting over symlink.  Reported by Szabolcs Szakacsits
508 2008-05-09  Miklos Szeredi <miklos@szeredi.hu>
510         * Don't allow bigger than 4kB writes by default on 2.6.26 and
511         later kernels, so that filesystems not expecting this are not
512         broken on a kernel upgrade.  Provide a 'big_writes' mount option
513         to enable this feature.  In future API revisions this may become
514         the default.
516 2008-04-09  Miklos Szeredi <miklos@szeredi.hu>
518         * Update warning message for missing newline at end of fuse.conf
520         * Update debug message for successful operation to not include the
521         string "error:"
523 2008-04-08  Miklos Szeredi <miklos@szeredi.hu>
525         * Update error message for missing mountpoint parameter.  Reported
526         by Allen Pulsifer
528 2008-04-04  Miklos Szeredi <miklos@szeredi.hu>
530         * Print library version information to debug output
532         * Highlevel lib: don't limit paths to 4095 characters
534 2008-03-25  Miklos Szeredi <miklos@szeredi.hu>
536         * Fix memory leaks on mount.  Patch by Szabolcs Szakacsits
538 2008-03-19  Miklos Szeredi <miklos@szeredi.hu>
540         * Fix missing pthread_mutex_destroy in error path of
541         fuse_lib_opendir().  Patch by Szabolcs Szakacsits
543 2008-03-07  Miklos Szeredi <miklos@szeredi.hu>
545         * Add queuing on contention to per-node lock algorithm, to avoid
546         starvation.
548         * Only enable cancelation when reading a request, otherwise
549         cancellation could happen with a mutex held, which could hang the
550         process on umount
552 2008-02-08  Miklos Szeredi <miklos@szeredi.hu>
554         * Block SIGCHLD when executing mount and umount
556         * fusexmp_fh: avoid unnecessary seeking in readdir
558         * Update kernel interface to 7.9:
560         * Support receiving file handle from kernel in GETATTR request
562         * Allow operations with a NULL path argument, if the filesystem
563         supports it
565         * Add support atomic open(O_TRUNC)
567         * Support the st_blksize field in struct stat
569         * If the "FUSE_THREAD_STACK" environment is set, initialize the
570         stack size of threads by this value.  Patch by Florin Malita
572         * Add per-node locking, instead of a global tree lock to protect
573         the path from changing during operations.  Original patch by
574         Rodrigo Castro
576 2008-02-03  Csaba Henk <csaba.henk@creo.hu>
578         * lib/mount_bsd.c:
579         - string formatting fixes
580         - exit if mounting has failed
581           (in FreeBSD a mount failure is not critical per se, as the daemon
582           still could be mounted externally, but waiting for such an event
583           is more confusing than fruitful)
584         - ditch the kvm(8) stuff and simply use forced unmount which just
585           won't block
586         - prettify option specifications
587         - add "-onosync_unmount" kernel option
589 2008-01-07  Csaba Henk <csaba.henk@creo.hu>
591         * lib/mount_bsd.c:
592         - refine device closing in a race-free way
593         - add support for "-osubtype" on FreeBSD
595         * makeconf.sh: make it work under FreeBSD
597 2008-01-03  Csaba Henk <csaba.henk@creo.hu>
599         * lib/mount_bsd.c: close device before unmount
600         (cf. lib/mount.c rev. 1.43) and fix some warnings 
602 2007-12-23  Miklos Szeredi <miklos@szeredi.hu>
604         * Fix './configure --disable-static'.  Patch from Ismail Dönmez
606 2007-12-17  Miklos Szeredi <miklos@szeredi.hu>
608         * Released 2.7.2
610 2007-12-12  Miklos Szeredi <miklos@szeredi.hu>
612         * Fix kernel module compile for 2.6.24
614         * Invalidate attributes of parent directory after create(), since
615         the modification time changes.  Invalidate attributes on rename,
616         since some filesystems may update st_ctime.  Reported by Szabolcs
617         Szakacsits
619         * Fix NFS exporting to handle 64bit node IDs
621         * Disable old symbol versions if __UCLIBC__ is defined.  If a
622         symbol in a library has multiple versions, the runtime linker in
623         uClibc seems to randomly choose between them.
625         * Remove erroneous 'fuse_opt_insert_arg@FUSE_2_5' from
626         fuse_version_script.  fuse_opt_free_args() was added in fuse-2.6.
628         * Close fuse device file descriptor before calling umount(),
629         preventing a deadlock when umount is synchronous.  Reported by
630         Szabolcs Szakacsits
632 2007-11-12  Miklos Szeredi <miklos@szeredi.hu>
634         * 'fusermount -u' did not umount the filesystem if /etc/mtab was a
635         symlink.  This bug was introduced in 2.7.1 by "Don't call
636         /bin/[u]mount if /etc/mtab is a symlink".  Found by robertsong.
638 2007-10-16  Miklos Szeredi <miklos@szeredi.hu>
640         * Released 2.7.1
642 2007-10-16  Miklos Szeredi <miklos@szeredi.hu>
644         * Clarify licence version to be "LGPLv2" for the library
646         * kernel fixes:
648         * After mount set nlink attribute for the root inode to 1
650         * Fix wake up of task waiting for a reserved request
652         * Fix allowing setattr, listxattr and statfs for other users
654 2007-09-18  Miklos Szeredi <miklos@szeredi.hu>
656         * Add missing context initialization in fuse_fs_chmod().  Bug
657         found by "iohead"
659         * Fix kernel module compilation for 2.6.23.  Based on patch by
660         Marian Marinov
662 2007-09-04  Philippe Elie  <phil.el@wanadoo.fr>
664         * lib/fuse_lowlevel.c: fix a fuse_req leak in do_forget()
666 2007-07-31  Miklos Szeredi <miklos@szeredi.hu>
668         * Work around hotplug issue, that it calls filesystem with file
669         descriptors 0, 1 and 2 not open.  Tracked down by Leif Johnson
671 2007-07-25  Miklos Szeredi <miklos@szeredi.hu>
673         * Don't call /bin/[u]mount if /etc/mtab is a symlink.  Reported by
674         Tomas M
676         * Also don't touch /etc/mtab if it is within the mounted
677         filesystem.  Suggested by Jeffrey Law
679 2007-07-12  Miklos Szeredi <miklos@szeredi.hu>
681         * Reset args->argc in fuse_opt_free_args().  Patch by Lucas
682         C. Villa Real
684 2007-07-02  Miklos Szeredi <miklos@szeredi.hu>
686         * Released 2.7.0
688 2007-07-02  Miklos Szeredi <miklos@szeredi.hu>
690         * Accept a NULL "op" for fuse_main(), etc.  This is useful if
691         filesystem is only invoking fuse to print a help message, or
692         version.  Fixes RedHat bugzilla #217343
694 2007-06-22  Miklos Szeredi <miklos@szeredi.hu>
696         * lib: fix locking when loading a filesystem module
698 2007-06-21  Miklos Szeredi <miklos@szeredi.hu>
700         * Add fs subtype support to mount.fuse
702 2007-06-20  Miklos Szeredi <miklos@szeredi.hu>
704         * Add fs subtype support to libfuse and fusermount
706 2007-06-19  Miklos Szeredi <miklos@szeredi.hu>
708         * kernel: sync with mainline (2.6.22)
710 2007-06-18  Miklos Szeredi <miklos@szeredi.hu>
712         * Send debug output to stderr instead of stdout.  Patch by Jan
713         Engelhardt
715 2007-06-03  Miklos Szeredi <miklos@szeredi.hu>
717         * libulockmgr: Work around a kernel bug in recv(), causing it to
718         sometimes return zero even if data was available on the socket.
720 2007-05-29  Miklos Szeredi <miklos@szeredi.hu>
722         * lib: optimization: store parent pointer in node instead of
723         parent id
725 2007-05-25  Miklos Szeredi <miklos@szeredi.hu>
727         * lib: don't create new thread for each FORGET request.  FORGET
728         messages sometimes caused so many threads to be created, that
729         process virtual memory space ran out.  Reported by Chris AtLee
731 2007-05-24  Miklos Szeredi <miklos@szeredi.hu>
733         * lib: fix memory leak on thread creation failure in multithreaded
734         event loop.  Found by Chris AtLee
736 2007-05-23  Miklos Szeredi <miklos@szeredi.hu>
738         * lowlevel lib: add fuse_reply_iov function, which is similar to
739         fuse_reply_buf, but accepts a vector of buffers.  Patch by Roger
740         Willcocks
742 2007-05-21  Miklos Szeredi <miklos@szeredi.hu>
744         * Fix Oops or error if a regular file is created with mknod(2) on
745         a fuse filesystem.  Kernels 2.6.18 onward are affected.  Thanks to
746         J. Cameijo Cerdeira for the report
748 2007-05-11  Csaba Henk <csaba.henk@creo.hu>
750         * libfuse: fix return value of fuse_loop()/fuse_loop_mt().
751         Error reported by Csaba Henk, fix by Miklos Szeredi
753         * libfuse: fix unlock in flush
755         * libfuse: do unlocking on RELEASE+FLUSH
757 2007-05-03  Miklos Szeredi <miklos@szeredi.hu>
759         * Released 2.7.0-rc1
761 2007-05-02  Miklos Szeredi <miklos@szeredi.hu>
763         * kernel: sync with mainline:
765         * Use invalidate_mapping_pages() if available
767         * Fix BUG when invalid file type is supplied in mount. Patch by
768         Timo Savola
770 2007-04-27  Miklos Szeredi <miklos@szeredi.hu>
772         * libfuse: call umount(8) directly instead of fusermount if
773         possible
775         * Clean up init script, make it LSB compliant
777 2007-04-26  Miklos Szeredi <miklos@szeredi.hu>
779         * In multithreaded loop, use a semaphore instead of SIGHUP to wake
780         up the main thread on umount.  This is more elegant, and works
781         even if signals are blocked.
783 2007-04-25  Miklos Szeredi <miklos@szeredi.hu>
785         * Improve mounting support in libfuse:
786          - check non-empty mountpoint
787          - only fall back to fusermount when necessary
789 2007-04-23  Miklos Szeredi <miklos@szeredi.hu>
791         * Don't chdir to "/" in foreground mode, it causes more trouble
792         than it's worth
794 2007-04-18  Miklos Szeredi <miklos@szeredi.hu>
796         * Replace utils/mount.fuse "sh" script with a "C" program
798 2007-04-15  Miklos Szeredi <miklos@szeredi.hu>
800         * Add -lulockmgr to compilation comment in fusexmp_fh.c
802 2007-04-05  Miklos Szeredi <miklos@szeredi.hu>
804         * Check for iconv.  Patch by Csaba Henk
806         * Add direct umounting
808         * Use "fusectl" as the device for the fusectl filesystem.  Debian
809         Bug#417945.  Reported by Laurent Bonnaud
811 2007-04-01  Csaba Henk <csaba.henk@creo.hu>
813         * Fix some FreeBSD related macros.
815 2007-03-30  Miklos Szeredi <miklos@szeredi.hu>
817         * Add support for direct mounting by libfuse.  Fall back on
818         calling fusermount if it doesn't work
820 2007-03-14  Miklos Szeredi <miklos@szeredi.hu>
822         * Released 2.7.0-pre1
824 2007-03-05  Miklos Szeredi <miklos@szeredi.hu>
826         * Correctly handle O_APPEND in direct IO mode.  Reported by Greg
827         Bruno
829         * mount.fuse should use /bin/bash.  Debian Bug#413403.  Reported
830         by Thomas Weinbrenner
832 2007-02-26  Miklos Szeredi <miklos@szeredi.hu>
834         * Fix detection of installed fuse in init script.  Reported and
835         fix suggested by Davide Canova
837 2007-02-05  Miklos Szeredi <miklos@szeredi.hu>
839         * Fix 2.6.9 RHEL kernels, which have compatibility mutex.h, but
840         don't define mutex_destroy(), bummer.  Patch from Phil Schwan
842 2007-02-04  Miklos Szeredi <miklos@szeredi.hu>
844         * Compile fuseblk for kernels which don't have an option to turn
845         off the block layer (CONFIG_BLOCK).  Reported by Szakacsits
846         Szabolcs
848 2007-02-03  Miklos Szeredi <miklos@szeredi.hu>
850         * Add filesystem stacking support to high level API.  Filesystem
851         modules can be built into libfuse or loaded from shared object
852         (.so) files
854         * Add 'subdir' and 'iconv' built in modules
856         * lib/fuse.c: Fix locking for the reply code in create and open
858 2007-02-02  Miklos Szeredi <miklos@szeredi.hu>
860         * kernel: make it compile on "strange" kernels which have emulated
861         mutexes via <linux/mutex.h> but no i_mutex.  Reported by Tomasz
862         Mateja
864 2007-01-28  Miklos Szeredi <miklos@szeredi.hu>
866         * kernel: fix BUG in control filesystem if it is umounted and
867         mounted again, while some fuse filesystems are present.
868         Bugreport from Florent Mertens
870         * kernel: sync with mainline, support 2.6.20
872 2007-01-22  Miklos Szeredi <miklos@szeredi.hu>
874         * lib/Makefile.am: actually link libfuse against libfuse_libs
876 2007-01-19  Miklos Szeredi <miklos@szeredi.hu>
878         * Build fix for 2.6.16 vanila and 2.6.15 FC5 kernels.  Patch from
879         Ian Abbott
881 2007-01-18  Miklos Szeredi <miklos@szeredi.hu>
883         * Fix abort in fuse_new() compatibility API for opts == NULL case.
884         Novell bugzilla #233870.  Patch from Takashi Iwai.
886 2007-01-13  Miklos Szeredi <miklos@szeredi.hu>
888         * Fix option parsing in mount.fuse.  Patch from Jens M. Noedler
890 2007-01-02  Miklos Szeredi <miklos@szeredi.hu>
892         * Fix unaligned access in file desctriptor passing in libfuse,
893         fusermount and ulockmgr.  Debian bug ID: 404904.  Reported and
894         tested by Sebastian Fontius
896 2006-12-16  Miklos Szeredi <miklos@szeredi.hu>
898         * kernel: don't keep unreferenced inodes in the icache.
900 2006-12-15  Miklos Szeredi <miklos@szeredi.hu>
902         * fusermount: Fix detection of fuseblk.  Reported by Szakacsits
903         Szabolcs
905         * lib: Fix use after free in fuse_flush().  Reported by Ron
906         Lindman
908 2006-12-10  Miklos Szeredi <miklos@szeredi.hu>
910         * mount.fuse: add "setuid=USER" option which does a "su - USER"
911         for the filesystem
913         * fusermount: use "/bin/mount -f" to add entry to /etc/mtab, and
914         "/bin/umount" to remove entry from /etc/mtab.  This gets rid of
915         the ugly code dealing with mtab, as well as a possible race
916         between fusermount and mount trying to modify /etc/mtab at the
917         same time
919         * Fix "buffer size too small: 4" warning for users of the
920         fuse_loop_mt_proc() function.
922 2006-12-04  Miklos Szeredi <miklos@szeredi.hu>
924         * Fix warnings with gcc-4.1 on 64bit archs.  Report from
925         Harshavardhana
927         * Add extra warning options, and fix resulting warnings
929         * Really fix fuse_teardown problem
931 2006-12-02  Miklos Szeredi <miklos@szeredi.hu>
933         * Add -lrt to fuse.pc (if needed) to fix static linking against
934         libfuse.  Reported by Szakacsits Szabolcs
936 2006-12-01  Miklos Szeredi <miklos@szeredi.hu>
938         * Released 2.6.1
940 2006-11-30  Miklos Szeredi <miklos@szeredi.hu>
942         * Fix API version 21 and 22 compatibility for fuse_teardown.
943         Reported by Bgs
945 2006-11-29  Miklos Szeredi <miklos@szeredi.hu>
947         * fusermount: Print a more helpful message in case the kernel
948         doesn't support the 'fuseblk' filesystem type.  This has been
949         biting ntfs-3g users.  Reported by Yura Pakhuchiy
951         * kernel: fix build problem for "make -C ...".  Reported by
952         Stephen Bryant
954 2006-11-19  Miklos Szeredi <miklos@szeredi.hu>
956         * Fix bug in certain error paths of lookup routines.  The request
957         object was reused for sending FORGET, which is illegal.  This bug
958         could cause an Oops in linux-2.6.18 or in fuse-2.6.0, and might
959         silently corrupt memory in earlier versions.  Report and test
960         program by Russ Cox
962 2006-11-11  Miklos Szeredi <miklos@szeredi.hu>
964         * Print an error if an incompatible kernel interface version is
965         detected in INIT.  This will only show if filesystem is started
966         with -d or -f
968         * Fix order of fuse_destroy()/fuse_unmount() in error cleanup of
969         fuse_setup_common().  Reported by Szakacsits Szabolcs
971 2006-11-06  Miklos Szeredi <miklos@szeredi.hu>
973         * Fix recursive locking in fuse_create().  Thanks to Takuya
974         Ishibashi for the bug report
976 2006-10-28  Miklos Szeredi <miklos@szeredi.hu>
978         * Fix automake problem.  Patch from Nix
980 2006-10-26  Miklos Szeredi <miklos@szeredi.hu>
982         * Fix mount.fuse to use /bin/sh instead of /bin/bash, which is not
983         always available on embedded systems.  Patch from Paul Smith
985         * Fix util/Makefile.am, so that failure to run update-rc.d or
986         device creation doesn't cause make to fail.  Reported by Paul
987         Smith
989 2006-10-21  Miklos Szeredi <miklos@szeredi.hu>
991         * Released 2.6.0
993 2006-10-18  Miklos Szeredi <miklos@szeredi.hu>
995         * fusermount: don't try to create a lock file if /etc/mtab is a
996         symlink.  Report and patch from Alexei Sheplyakov (debian bug
997         #393693)
999 2006-10-17  Miklos Szeredi <miklos@szeredi.hu>
1001         * Minor changes, sync with mainline tree
1003 2006-10-16  Miklos Szeredi <miklos@szeredi.hu>
1005         * Released 2.6.0-rc3
1007 2006-10-15  Miklos Szeredi <miklos@szeredi.hu>
1009         * kernel: cleanups
1011 2006-10-13  Miklos Szeredi <miklos@szeredi.hu>
1013         * kernel: Fix compilation on patched 2.6.18 (fc6) and 2.6.19.
1014         Report from David Shaw
1016         * lib: Fix lost error on renaming a file. Report from David Shaw
1018         * lib: Fix lost error on hiding open files (renaming to
1019         .fuse_hiddenXXXX)
1021         * kernel: Fix a rare hang on SMP/32bit on heavy filesystem
1022         activity.  The cause of the bug was that some calls to
1023         i_size_write() were not protected by a lock, and hence
1024         i_size_seqcount could become corrupted.  This caused subsequent
1025         calls to i_size_read() to spin forever.  This is a long standing
1026         bug was probably introduced in version 2.2, and thought to be
1027         related to NFS exporting (it's not).  It was reported by various
1028         people, but Dana Henriksen has finally helped me to track it down,
1029         so big thanks to him
1031         * kernel: Protect against truncation of a swapfile
1033 2006-10-10  Miklos Szeredi <miklos@szeredi.hu>
1035         * kernel: Check for signature of super_operations->umount_begin().
1036         Ubuntu kernel 2.6.17 seems to use the new signature found in
1037         2.6.18.  Thanks to Florent Mertens for the report
1039 2006-10-08  Miklos Szeredi <miklos@szeredi.hu>
1041         * Make sure inode numers wrap around at 2^32.  This is needed on
1042         dual 64bit/32bit architectures, because 32bit applications using
1043         the non-largefile interface would otherwise break (EOVERFLOW error
1044         would be returned by the stat() system call family)
1046         * ulockmgr: handle the case, when a locking operation fails
1047         because no more file desctriptors are available in
1048         ulockmgr_server.  Also work around a Linux kernel bug (known to
1049         exist for all Linux kernel versions <= 2.6.18) which may cause
1050         sent file descriptors to be lost in the above case
1052         * ulockmgr: optimize file descriptor use
1054         * restore needed cpp flags to util/Makefile.am
1056         * Install udev rules as 99-fuse.rules instead of 60-fuse.rules
1058         * Minor clean up of udev rules
1060         * Add a synchronous DESTROY message to kernel interface.  This is
1061         invoked from umount, when the final instance of the filesystem is
1062         released.  It is only sent for filesystems mounted with the
1063         'blkdev' option for security reasons.
1065         * If the DESTROY message is received, call the filesystem's
1066         ->destroy() method.  In this case it's not called from session
1067         destruction as it would be otherwise.
1069 2006-10-01  Miklos Szeredi <miklos@szeredi.hu>
1071         * Released 2.6.0-rc2
1073 2006-10-01  Miklos Szeredi <miklos@szeredi.hu>
1075         * Add support for FLUSH+RELEASE operation for FreeBSD.  Original
1076         patch by Csaba Henk
1078         * Add init script to insert fuse module and mount the control
1079         filesystem.  The script is installed as /etc/init.d/fuse and on
1080         debian based systems (where update-rc.d is available) symlinks
1081         from /etc/rc*.d/ are also installed.
1083         * Include '#define FUSE_USE_VERSION=XX' into examples so they
1084         become more self contained.
1086 2006-09-30  Miklos Szeredi <miklos@szeredi.hu>
1088         * API changes:
1090         * Move lock_owner from a separate argument into fuse_file_info
1092         * Add a flag to fuse_file_info indicating (1) a highlevel lock
1093         operation (unlock all) was initiated by a flush, (2) a lowlevel
1094         release operation should perform a flush as well.
1096         * fusermount: revert modprobe change (2006-08-18) since it
1097         doesn't work reliably with udev
1099         * Add support for block device backed filesystems.  This mode is
1100         selected with the 'blkdev' option, which is privileged.
1102         * Add support for the bmap (FIBMAP ioctl) operation on block
1103         device backed filesystems.  This allows swapon and lilo to work on
1104         such filesystems.
1106         * kernel changes:
1108         * Drop support for kernels earlier than 2.6.9.  Kernel module from
1109         previous (2.5.x) release can be used with library from this
1110         release
1112         * In fuse_dentry_revalidate() use dget_parent() instead of
1113         dereferencing d_parent, since there's no protection against parent
1114         changing and going away
1116         * Protect nlookup from concurrent updates
1118         * In lookup if a directory alias exists but is unused,
1119         then get rid of it, otherwise return -EBUSY.
1121         * In mkdir if a directory alias exists, return success, but leave
1122         dentry negative.  In reality this could happen if a remote rename
1123         immediately followed the mkdir.
1125         * Don't BUG in fuse_iget() if multiple retries are needed to get a
1126         good inode.  This could happen if several lookups are racing for
1127         the same inode.
1129 2006-09-29  Miklos Szeredi <miklos@szeredi.hu>
1131         * Fix compilation on 2.6.9.  Report from Troy Ayers
1133 2006-09-27  Miklos Szeredi <miklos@szeredi.hu>
1135         * Fix Oops in fuse_readpages().  Reported by David Shaw
1137 2006-09-24  Csaba Henk <csaba.henk@creo.hu>
1139         * Add support for nanosec times on FreeBSD
1141         * Fix FreeBSD compatibility issues
1143 2006-09-23  Miklos Szeredi <miklos@szeredi.hu>
1145         * Fix one more compatibility bug.  Thanks to Ricardo Correia
1147         * Fix utimens compilation with uClibc.  Patch from Jamie Guinan
1149 2006-09-22  Miklos Szeredi <miklos@szeredi.hu>
1151         * Fixed several compatibility bugs in low level interface.
1152         Reported by Ricardo Correia
1154         * Add workaround for ARM caching bug
1156 2006-09-16  Miklos Szeredi <miklos@szeredi.hu>
1158         * Rename new utimes() method to more logical utimens()
1160 2006-09-14  Miklos Szeredi <miklos@szeredi.hu>
1162         * Fuse tried to unlink already unlinked hidden files.  Bug
1163         reported by Milan Svoboda
1165 2006-09-10  Miklos Szeredi <miklos@szeredi.hu>
1167         * Released 2.6.0-rc1
1169 2006-09-10  Miklos Szeredi <miklos@szeredi.hu>
1171         * kernel: Fix unlock on close for kernels < 2.6.18
1173         * Add ulockmgr library & server.  This can be used for handling
1174         file locking requests either directly from libfuse or over a
1175         network, etc.  This first version is not optimized and the number
1176         of file descriptors it uses may get out of hand
1178 2006-09-07  Miklos Szeredi <miklos@szeredi.hu>
1180         * lib: Add interrupt support to high level library, which may be
1181         enabled with the 'intr' mount option.
1183         * When an operation is interrupted the thread handling that
1184         operation will receive SIGUSR1 (or other signal specified with the
1185         'intr_signal=N' option).  The library installs a no-op signal
1186         handler for this signal, unless there's already a handler
1187         installed.
1189         * The filesystem may query interrupt status (regardless of 'intr')
1190         with the fuse_interrupted() function.
1192         * mount.fuse: initialize $HOME if not set.  Report from Sven Goldt
1194 2006-09-03  Miklos Szeredi <miklos@szeredi.hu>
1196         * lib: Multithreaded loop now allows unlimited number of threads.
1197         This is needed for locking operations which may block
1198         indefinitely.  Also the kernel now doesn't limit the number of
1199         outstanding requests so the library shouldn't do so either.
1201 2006-09-01  Miklos Szeredi <miklos@szeredi.hu>
1203         * Fix recursive lock bug in interrupt handling
1205         * Add utimes() method to highlevel interface, which supports
1206         setting times with nanosecond resolution
1208 2006-08-18  Miklos Szeredi <miklos@szeredi.hu>
1210         * kernel: fix page leak if fuse_readpages() failed in it's
1211         initialization.  Bug found and original patch from Alexander
1212         Zarochentsev
1214         * For linux kernels >=2.6.18 (2.6.19 if using the fuse module from
1215         the kernel tree) the statfs method will receive the path within
1216         the filesystem on which the stat(v)fs syscall was called
1218         * fusermount: try to modprobe fuse module if invoked by root and
1219         unable to open device.  This is needed with udev, since the device
1220         node will be created only when the module is inserted, hence
1221         module autoloading won't work.  Reported by Szakacsits Szabolcs
1223 2006-07-30  Miklos Szeredi <miklos@szeredi.hu>
1225         * fusermount: if selinux is active, restore the original file's
1226         security context in unmount_rename().  Redhat bugzilla id 188561.
1227         Patch from Yves Perrenoud
1229         * Add POSIX file locking operation to high level library
1231         * Initialize context for unlink of hidden files on umount.  Bug
1232         reported by Tim Stoakes
1234 2006-07-14  Miklos Szeredi <miklos@szeredi.hu>
1236         * Multiple release() calls can race with each other, resulting in
1237         the hidden file being deleted before the last release finishes.
1238         Bug found and patch tested by Mark Huijgen
1240 2006-07-05  Miklos Szeredi <miklos@szeredi.hu>
1242         * fusermount: if /dev/fuse doesn't exist, suggest modprobing fuse;
1243         this makes sense on systems using udev.  Reported by Szakacsits
1244         Szabolcs
1246 2006-06-29  Miklos Szeredi <miklos@szeredi.hu>
1248         * Released 2.6.0-pre3
1250 2006-06-29  Miklos Szeredi <miklos@szeredi.hu>
1252         * Support in kernel module for file locking and interruption.  The
1253         same functionality is available in official kernels >= 2.6.18
1255 2006-06-28  Miklos Szeredi <miklos@szeredi.hu>
1257         * Add POSIX file locking support
1259         * Add request interruption
1261 2006-06-06  Miklos Szeredi <miklos@szeredi.hu>
1263         * Add missing pthread_rwlock_destroy().  Patch from Remy Blank
1265 2006-06-05  Remy Blank <remy.blank@pobox.com>
1267         * lib: canonicalize mount point in fuse_helper_opt_proc() so that
1268         unmounting succeeds even if mount point was relative.
1270 2006-06-04  Csaba Henk <csaba.henk@creo.hu>
1272         * lib: fix emergency umount in helper.c when malloc fails.
1273         (The way it was done would end up in a segfault.)
1275 2006-06-01  Csaba Henk <csaba.henk@creo.hu>
1277         * lib: adjust threading related compiler flags.
1278         Switch to "-pthread" from "-lpthread" as that's the preferred
1279         one on several platforms. Consulted with Terrence Cole and
1280         Miklos Szeredi
1282 2006-05-08  Miklos Szeredi <miklos@szeredi.hu>
1284         * lib: search fusermount in installation directory (bindir) as
1285         well as in PATH.
1287 2006-05-03  Miklos Szeredi <miklos@szeredi.hu>
1289         * lib: fix compilation if CLOCK_MONOTONIC is not defined.
1290         Reported by Christian Magnusson
1292 2006-04-23  Csaba Henk <csaba.henk@creo.hu>
1294         * lib: make FreeBSD mount routine recognize if kernel features
1295         backgrounded init and if it does, run the mount util in foreground
1296         (similarly to Linux)
1298 2006-04-21  Miklos Szeredi <miklos@szeredi.hu>
1300         * kernel: fix fput deadlock fix, the lockless solution could lead
1301         to "VFS: busy inodes after umount..."
1303         * kernel: fix race between checking and setting file->private_data
1304         for the device.  Found by Al Viro
1306 2006-04-11  Miklos Szeredi <miklos@szeredi.hu>
1308         * kernel: remove request pool, instead allocate requests on
1309         demand.  Account the number of background requests, and if they go
1310         over a limit, block the allocation of new requests.
1312         * kernel: fix deadlock if backgrounded request holds the last
1313         reference to the super block
1315         * kernel: don't use fuse_reset_request() during direct I/O
1317 2006-04-06  Csaba Henk <csaba.henk@creo.hu>
1319         * lib: Let FreeBSD mount option parsing routine recognize "no"
1320         prefixes for FUSE specific options as well
1322 2006-04-01  Miklos Szeredi <miklos@szeredi.hu>
1324         * lib: Add missing rwlock initialization.  Patch by Ryan Bradetich
1326 2006-03-17  Miklos Szeredi <miklos@szeredi.hu>
1328         * API changes:
1330         * fuse_main(), fuse_setup() and fuse_new() have an additionl
1331         user_data parameter
1333         * fuse_mount() returns a 'struct fuse_chan' pointer instead of a
1334         file descriptor
1336         * fuse_unmount() receives a 'struct fuse_chan' pointer.  It
1337         destroys the given channel
1339         * fuse_teardown() no longer has a file descriptor parameter
1341         * new exported functions: fuse_session_remove_chan(),
1342         fuse_get_session(), fuse_daemonize()
1344         * fuse_chan_recv() may now return a new channel which will be used
1345         to send the reply
1347 2006-03-16  Miklos Szeredi <miklos@szeredi.hu>
1349         * Released 2.6.0-pre2
1351 2006-03-16  Miklos Szeredi <miklos@szeredi.hu>
1353         * Don't unmount if already unmounted.  This fixes a problem seen
1354         in the following situation: Lazy unmount a busy filesystem; Mount
1355         a new one in top; When the first finally unmounts, the second also
1356         unmounts.  Reported by Franco Broi
1358 2006-03-15  Miklos Szeredi <miklos@szeredi.hu>
1360         * lowlevel lib: use indirect function calls instead of a
1361         switch/case construct.  Besides increased efficiency it helps
1362         maintainability & readability too.  Patch from Florin Malita
1364 2006-03-13  Miklos Szeredi <miklos@szeredi.hu>
1366         * kernel: replace global spinlock with a per-connection spinlock
1368 2006-03-10  Miklos Szeredi <miklos@szeredi.hu>
1370         * Fix source compatibility breakage for fuse_unmount().  Report
1371         from Yura Pakhuchiy
1373 2006-03-02  Miklos Szeredi <miklos@szeredi.hu>
1375         * Fix O_ASYNC handling in fuse_dev_release().  From Jeff Dike
1377 2006-03-01  Miklos Szeredi <miklos@szeredi.hu>
1379         * Add O_ASYNC and O_NONBLOCK support to FUSE device.  Patch by
1380         Jeff Dike
1382         * Renamed fuse_chan_receive() to fuse_chan_recv() and changed
1383         interface to return -errno in case of error.
1385 2006-03-01  Csaba Henk <csaba.henk@creo.hu>
1387         * libfuse: pass device file descriptor to fuse_unmount(), rewrite
1388         FreeBSD implementation so that it uses libc (sysctl backed) instead
1389         of an embdedded script (kmem backed). Adjust the control flow of
1390         hello_ll so that device doesn't get closed before unmount attempt.
1392 2006-02-25  Miklos Szeredi <miklos@szeredi.hu>
1394         * Lowlevel lib: return all-zero statvfs data if filesystem doesn't
1395         implement method.  This is needed on FreeBSD, and nicer on Linux
1396         too.  Highlevel lib already did this.  Reported by Csaba Henk
1398         * Fix negative entry handling.  There was a bug, that negative
1399         lookups with timeouts (nodeid == 0) returned -EIO.
1401 2006-02-23  Miklos Szeredi <miklos@szeredi.hu>
1403         * Fix race between RELEASE and UNLINK, which might leave
1404         .fuse_hidden* files around
1406 2006-02-21  Miklos Szeredi <miklos@szeredi.hu>
1408         * fusexmp_fh: implement flush() method and call close() on the
1409         open file descriptor.  This is needed if used on an NFS
1410         filesystem, which buffers data until file is closed.  Franco Broi
1411         spotted the situation when 'cp -p' failed to set the modification
1412         time because of this.
1414 2006-02-20  Miklos Szeredi <miklos@szeredi.hu>
1416         * Released 2.6.0-pre1
1418 2006-02-19  Miklos Szeredi <miklos@szeredi.hu>
1420         * libfuse: fix use-after-free bug in interruptred reply_entry().
1421         Patch from John Muir
1423         * libfuse: fix wrong symbol versioning for fuse_mount.  Debian bug
1424         ID: 352631.  Found by Stéphane Rosi
1426 2006-02-17  Miklos Szeredi <miklos@szeredi.hu>
1428         * Lowlevel lib: Unify fuse_dirent_size() and fuse_add_dirent()
1429         into a single function fuse_add_direntry().  This cleans up the
1430         interface and makes it possible to do stacking.
1432 2006-02-16  Miklos Szeredi <miklos@szeredi.hu>
1434         * Fix rare race betweeen abort and release caused by failed iget()
1435         in fuse_create_open().
1437         * Add 'ac_attr_timeout' option e.g. for filesystems which do their
1438         own attribute caching.
1440 2006-02-15  Miklos Szeredi <miklos@szeredi.hu>
1442         * Work around FreeBSD runtime linker "feature" which binds an old
1443         version of a symbol to internal references if the symbol has more
1444         than one version.  This resulted in infinite recursion in
1445         fuse_lowlevel_new_compat25().
1447 2006-02-10  Csaba Henk <csaba.henk@creo.hu>
1449         * Refine clock_gettime() querying so that linker options
1450         shall be set as it's appropriate for the target platform.
1452 2006-02-09  Miklos Szeredi <miklos@szeredi.hu>
1454         * Fix udev rule syntax.  Reported by Nix
1456 2006-02-08  Miklos Szeredi <miklos@szeredi.hu>
1458         * In some cases udev rule seems to be ineffective when installed
1459         as 40-fuse.rules but work as 60-fuse.rules.  Reported by John Hunt
1461 2006-02-03  Miklos Szeredi <miklos@szeredi.hu>
1463         * Fix compilation when build directory is different from source
1464         directory.  Reported by Frédéric L. W. Meunier
1466 2006-02-02  Miklos Szeredi <miklos@szeredi.hu>
1468         * Fix even bigger bug introduced in fix for request_end() on
1469         2006-01-14.  Reported by Gal Rosen
1471 2006-01-30  Miklos Szeredi <miklos@szeredi.hu>
1473         * highlevel-lib: add 'auto_cache' option.  This caches file data
1474         based on modification time and size
1476 2006-01-20  Miklos Szeredi <miklos@szeredi.hu>
1478         * Sanitize storage type and help message in mount_bsd.c.  Patch
1479         from Csaba Henk
1481         * fuse_opt: add new helper constants FUSE_OPT_KEY_KEEP and
1482         FUSE_OPT_KEY_DISCARD
1484         * Add options 'max_readahead', 'sync_read' and 'async_read'
1486         * Kernel ABI version 7.6:
1488         * Negotiate the 'max_readahead' value and 'async_read' flags with
1489         userspace in the INIT method
1491         * Add connection info to ->init() methods to both lowlevel and
1492         highlevel API
1494         * Fall back to synchronous read() behavior if either library or
1495         userspace filesystem is using the old interface version.  This is
1496         needed so non-updated filesystems won't be confused by the
1497         different read() behavior
1499 2006-01-19  Miklos Szeredi <miklos@szeredi.hu>
1501         * lib: if "fsname=" option was given, pass it to fusermount
1503         * fuse_opt: add new fuse_opt_insert_arg() function, which is
1504         needed by filesystems to implement some argument manipulations
1505         correctly
1507         * fuse_opt: fix memory leak in handling "--" option
1509 2006-01-18  Miklos Szeredi <miklos@szeredi.hu>
1511         * kernel: fix detection of case when fuse is not configured into
1512         the kernel either as module or built-in
1514         * fuse_opt.h: fix incompatibility with C++ compilers by renaming
1515         'template' structure member to 'templ'.  Reported by Takashi Iwai
1517         * fuse.h: fix compatibility bugs.  Patch by Yura Pakhuchiy
1519         * kernel: support version 2.6.16 (i_sem -> i_mutex)
1521 2006-01-16  Miklos Szeredi <miklos@szeredi.hu>
1523         * Added (again) asynchronous readpages support
1525         * Each connection now shows up under /sys/fs/fuse/connections
1527         * Connection attributes exported to sysfs: 'waiting' number of
1528         waiting requests; 'abort' abort the connection
1530         * Connection may be aborted through either the sysfs interface or
1531         with 'umount -f mountpoint'
1533 2006-01-14  Miklos Szeredi <miklos@szeredi.hu>
1535         * Released 2.5.0
1537 2006-01-14  Miklos Szeredi <miklos@szeredi.hu>
1539         * kernel: fix a couple of bugs
1541         * Order of request_end() and fuse_copy_finish() was wrong.
1542         Posthumous note: Franco Broi managed to exploit this, though it
1543         seemed quite impossible
1545         * request_end() used request pointer after decrementing refcount
1547         * Clearing ->connected or ->mounted connection flags could race
1548         with setting other bitfields not protected with a lock
1550 2006-01-10  Miklos Szeredi <miklos@szeredi.hu>
1552         * kernel: add necessary compile flags for 2.4.X/x86_64.
1553         Report from Sean Ziegeler
1555 2006-01-09  Miklos Szeredi <miklos@szeredi.hu>
1557         * Released 2.5.0-pre2
1559 2006-01-09  Miklos Szeredi <miklos@szeredi.hu>
1561         * Applied patch from Csaba Henk, to update mount_bsd to new
1562         fuse_mount() semantics
1564         * Ignore auto,noauto,... options in mount.fuse.  Reported by Frank
1565         Steiner and Don Taber
1567         * fusermount: add 'dirsync' mount option
1569 2006-01-07  Miklos Szeredi <miklos@szeredi.hu>
1571         * Improved help reporting and added version reporting to library
1573 2006-01-06  Miklos Szeredi <miklos@szeredi.hu>
1575         * Change working directory to "/" even if running in the
1576         foreground.  Patch from Jonathan Brandmeyer
1578         * Changed lots of functions to use 'struct fuse_args' instead of
1579         separate argc and argv
1581         * Added fuse_parse_cmdline(), fuse_set_signal_handlers() and
1582         fuse_remove_signal_handlers() functions, so that it's now pretty
1583         easy to get all the functionality of fuse_main() with a filesystem
1584         using the lowlevel API.
1586 2006-01-02  Miklos Szeredi <miklos@szeredi.hu>
1588         * mount.fuse: the 'user' option should be ignored. Report and
1589         solution from Mattd.
1591         * mount.fuse: export PATH in the right place. Report and patch
1592         from Hannes Schweizer
1594 2005-12-16  Miklos Szeredi <miklos@szeredi.hu>
1596         * Clean up the option parsing interface slightly, by creating an
1597         "argument list" structure, that contains the argument vector and
1598         count
1600 2005-12-15  Miklos Szeredi <miklos@szeredi.hu>
1602         * fusermount: check if /mnt/mtab is a symlink and don't modify it
1603         in that case
1605         * kernel: simplify request size limiting. INIT only contains
1606         maximum write size, maximum path component size remains fixed at
1607         1024 bytes, and maximum xattr size depends on read buffer.
1609 2005-12-14  Miklos Szeredi <miklos@szeredi.hu>
1611         * Fix readdir() failure on x86_64, of 32bit programs compiled
1612         without largefile support.  Bug report and help from Anthony
1613         Kolasny
1615         * If lookup returns invalid mode, return -EIO instead of creating
1616         a regular file
1618         * Add current output argument vector to option processing
1619         function
1621 2005-12-12  Miklos Szeredi <miklos@szeredi.hu>
1623         * Fix stale code in ifdef FreeBSD.  Patch from Csaba Henk
1625 2005-12-09  Miklos Szeredi <miklos@szeredi.hu>
1627         * Released 2.5.0-pre1
1629 2005-12-09  Miklos Szeredi <miklos@szeredi.hu>
1631         * libfuse: added option parsing interface, defined in
1632         <fuse_opt.h>.
1634 2005-12-07  Miklos Szeredi <miklos@szeredi.hu>
1636         * Return EIO for file operations (read, write, fsync, flush) on
1637         open files whose inode has become "bad".  Inodes will be marked
1638         "bad" if their type changes.  Bug report by Csaba Henk
1640 2005-12-06  Miklos Szeredi <miklos@szeredi.hu>
1642         * Use bigger request buffer size.  write() did not work on archs
1643         with > 4k page size, Bug report by Mark Haney
1645         * ABI version 7.5:
1647         * Extend INIT reply with data size limits
1649 2005-12-02  Miklos Szeredi <miklos@szeredi.hu>
1651         * Fix memory leak in fuse_read_cmd()/fuse_process_cmd().  Bug
1652         reported by Vincenzo Ciancia
1654         * Handle exit-by-umount in fuse_read_cmd()
1656 2005-11-29  Miklos Szeredi <miklos@szeredi.hu>
1658         * Check if '-msoft-float' option is supported by compiler when
1659         configuring for a 2.4.x kernel.  Bug report by Mark Haney
1661         * In multithreaded loop send a TERM signal to the main thread if
1662         one of the other threads exit.  Needed on FreeBSD for a clean exit
1663         on umount.  Should not cause any harm on Linux either
1665 2005-11-28  Miklos Szeredi <miklos@szeredi.hu>
1667         * Fix bug in 32-bit file handle compatibility
1669 2005-11-27  Miklos Szeredi <miklos@szeredi.hu>
1671         * Block TERM, INT, HUP and QUIT signals in all but the main
1672         thread.  According to POSIX it's not specified which thread will
1673         receive these signals.
1675         * Kernel changes:
1677         * Check for directory aliasing on mkdir, not just on lookup
1679         * Check for special node ID values in create+open operation
1681         * Sync with -mm: readv, writev, aio_read and aio_write methods
1682         added to file operations
1684         * Cleanups: lookup code, page offset calculation
1686         * ABI stepped to 7.4, changes:
1688         * frsize member added to fuse_kstatfs structure
1690         * added support for negative entry caching: on lowlevel API if
1691         fuse_entry_param::ino is set to zero in reply to a lookup request,
1692         the kernel will cache the dentry for the specified amount of time.
1694         * libfuse: added 'negative_timeout' option: specifies how much
1695         negative entries should be cached.  Default is zero, to be
1696         compatible with prior versions
1698 2005-11-22  Miklos Szeredi <miklos@szeredi.hu>
1700         * Add detection of mainline FUSE code in running kernel
1702 2005-11-21  Miklos Szeredi <miklos@szeredi.hu>
1704         * Don't use async cancelation in multithreaded loop.  This makes
1705         it more portable to systems where read() is not async cancel safe.
1706         Report from Andriy Gapon
1708 2005-11-20  Miklos Szeredi <miklos@szeredi.hu>
1710         * Warn if API version 11 compatibility is requested
1712 2005-11-17  Miklos Szeredi <miklos@szeredi.hu>
1714         * More FreeBSD merge
1716         * fusermount: don't allow mountpoints with '\n', '\t', or '\\' in
1717         them, because it corrupts /etc/mtab.  Found by Thomas Biege
1718         CVE-2005-3531
1720         * libfuse: don't use system() to invoke 'fusermount -u ...'
1721         because it breaks mountpoints with spaces in them into multiple
1722         arguments
1724 2005-11-16  Miklos Szeredi <miklos@szeredi.hu>
1726         * Merge library part of FreeBSD port.  Patch by Csaba Henk
1728 2005-11-11  Miklos Szeredi <miklos@szeredi.hu>
1730         * Use 64bit type for file handle, so the full range supported by
1731         the kernel interface is available to applications
1733 2005-11-10  Miklos Szeredi <miklos@szeredi.hu>
1735         * Moved mountpoint argument checking from fuse_parse_cmdline() to
1736         fuse_mount() in preparation to FreeBSD merge.
1738 2005-11-08  Miklos Szeredi <miklos@szeredi.hu>
1740         * Remove unneeded close() from fuse_teardown().  Spotted by Csaba
1741         Henk.
1743 2005-11-07  Miklos Szeredi <miklos@szeredi.hu>
1745         * Make the statfs change backwards compatible.
1747 2005-11-06  Miklos Szeredi <miklos@szeredi.hu>
1749         * Change ->statfs() method to use 'struct statvfs' instead of
1750         'struct statfs'.  This makes the API more portable since statvfs()
1751         is defined by POSIX.
1753 2005-10-28  Miklos Szeredi <miklos@szeredi.hu>
1755         * Add fgetattr() method, which currently will only be called after
1756         a successful call to a create() method.
1758 2005-10-26  Miklos Szeredi <miklos@szeredi.hu>
1760         * Change kernel ABI version to 7.3
1762         * Add ACCESS operation.  This is called from the access() system
1763         call if 'default_permissions' mount option is not given, and is
1764         not called on kernels 2.4.*
1766         * Add atomic CREATE+OPEN operation.  This will only work with
1767         2.6.15 (presumably) or later Linux kernels.
1769         * Add ftruncate() method.  This will only work with 2.6.15
1770         (presumably) or later Linux kernels.
1772         * Fix kernel module compile if kernel source and build directories
1773         differ.  Report and initial patch by John Eastman
1775 2005-10-18  Miklos Szeredi <miklos@szeredi.hu>
1777         * lib: optimize buffer reallocation in fill_dir.
1779 2005-10-17  Miklos Szeredi <miklos@szeredi.hu>
1781         * Released 2.4.1
1783 2005-10-14  Miklos Szeredi <miklos@szeredi.hu>
1785         * libfuse: add debug for write result (by Shaun Jackman) and
1786         warnings for too large read/write result
1788 2005-10-11  Miklos Szeredi <miklos@szeredi.hu>
1790         * Spelling fixes, thanks to Ioannis Barkas
1792 2005-10-10  Miklos Szeredi <miklos@szeredi.hu>
1794         * fuse_common.h: use extern "C".  Thanks to Valient Gough for the
1795         patch
1797 2005-10-07  Miklos Szeredi <miklos@szeredi.hu>
1799         * highlevel-lib: init() and destroy() methods didn't have an
1800         initialized fuse_context.  Bug reported by Tim Stoakes
1802 2005-10-04  Miklos Szeredi <miklos@szeredi.hu>
1804         * Released 2.4.0
1806 2005-10-03  Miklos Szeredi <miklos@szeredi.hu>
1808         * Add documentation to fuse_lowlevel.h
1810         * API cleanups:
1812         * Remove definitions of unused FATTR_CTIME / FUSE_SET_ATTR_CTIME
1814         * Move fuse_mount() and fuse_unmount() to fuse_common.h
1816         * Change the return type of fuse_reply_none() from int to void.
1818 2005-09-30  Miklos Szeredi <miklos@szeredi.hu>
1820         * kernel: NFS exporting leaked dentries.  Bug found and fixed by
1821         Akshat Aranya.
1823 2005-09-29  Miklos Szeredi <miklos@szeredi.hu>
1825         * fusermount: fix error message, when unable to open /dev/fuse.
1826         Report by Balázs Pozsár
1828 2005-09-28  Miklos Szeredi <miklos@szeredi.hu>
1830         * UClibc fixes from Christian Magnusson
1832 2005-09-27  Miklos Szeredi <miklos@szeredi.hu>
1834         * Added NAME="%k" to util/udev.rules.  Fix by Mattias Wadman.
1836 2005-09-26  Miklos Szeredi <miklos@szeredi.hu>
1838         * Released 2.4.0-rc1
1840 2005-09-26  Miklos Szeredi <miklos@szeredi.hu>
1842         * fusermount: allow user umount in the case when /etc/mtab is a
1843         symlink to /proc/mounts.  Reported by Balázs Pozsár.
1845 2005-09-23  Miklos Szeredi <miklos@szeredi.hu>
1847         * Check for special node ID values in lookup and creation
1849 2005-09-22  Miklos Szeredi <miklos@szeredi.hu>
1851         * Slight optimization in returning EINVAL error in case of an open
1852         with O_DIRECT flag.
1854 2005-09-20  Miklos Szeredi <miklos@szeredi.hu>
1856         * Remove '--enable-auto-modprobe' configure flag.  Module
1857         auto-loading is now handled by the kernel.
1859 2005-09-15  Miklos Szeredi <miklos@szeredi.hu>
1861         * Install UDEV rule file, so /dev/fuse is created with mode 0666.
1862         Help from Jens M. Noedler.
1864 2005-09-14  Miklos Szeredi <miklos@szeredi.hu>
1866         * Add memory cleanup on thread exit
1868 2005-09-13  Miklos Szeredi <miklos@szeredi.hu>
1870         * Set umask to zero in fusexmp and fusexmp_fh, so that
1871         files/directories are created with the requested mode.
1873 2005-09-12  Miklos Szeredi <miklos@szeredi.hu>
1875         * Don't ignore read error in multithreaded loop
1877 2005-09-08  Miklos Szeredi <miklos@szeredi.hu>
1879         * Released 2.4.0-pre2
1881 2005-09-08  Miklos Szeredi <miklos@szeredi.hu>
1883         * Revert lock and access operations.  Postpone these until 2.5.
1885 2005-09-02  Miklos Szeredi <miklos@szeredi.hu>
1887         * Fix compile warning on 2.6.13 and later
1889         * Fix compilation on old kernels
1891 2005-08-19  Miklos Szeredi <miklos@szeredi.hu>
1893         * lib: always refresh directory contents after rewinddir() to
1894         conform to SUS.  Bug found by John Muir.
1896 2005-08-15  Miklos Szeredi <miklos@szeredi.hu>
1898         * Released 2.4.0-pre1
1900 2005-08-14  Miklos Szeredi <miklos@szeredi.hu>
1902         * lib: cleaned up (or messed up, depending on your POV) the low
1903         level library API.  Hopefully this is close to the final form.
1905 2005-08-05  Miklos Szeredi <miklos@szeredi.hu>
1907         * fusermount: don't allow empty mountpoint argument, which defeats
1908         automatic umounting in fuse_main().  Bugreport by Václav Jůza
1910 2005-08-03  Miklos Szeredi <miklos@szeredi.hu>
1912         * fix warnings in fuse.h and fuse_lowlevel.h if -Wshadow compiler
1913         option is used (Paul Alfille).
1915 2005-08-02  Miklos Szeredi <miklos@szeredi.hu>
1917         * highlevel-lib: added mount options "attr_timeout" and
1918         "entry_timeout".  These options control the length of time file
1919         attributes and entries (names) are cached.  Both default to 1.0
1920         second.
1922         * kernel: correctly handle zero timeout for attributes and entries
1924 2005-08-01  Miklos Szeredi <miklos@szeredi.hu>
1926         * Added missing symbols to versionscript (Joshua J. Berry)
1928         * kernel: implement two flags, open can set: 'direct_io' and
1929         'keep_cache'.  These correspond exactly to mount options
1930         'direct_io' and 'kernel_cache', but allow a per-open setting.
1932         * Move 'direct_io' and 'kernel_cache' mount option handling to
1933         userspace.  For both mount options, if the option is given, then
1934         the respective open flag is set, otherwise the open flag is left
1935         unmodified (so the filesystem can set it).
1937         * lib (highlevel): make open method optional
1939 2005-07-28  Miklos Szeredi <miklos@szeredi.hu>
1941         * kernel: invalidate attributes for read/readdir/readlink
1942         operations
1944         * kernel: detect newer UML kernels
1946 2005-07-26  Miklos Szeredi <miklos@szeredi.hu>
1948         * Make the installation path of fuse.ko and mount.fuse
1949         configurable through INSTALL_MOD_PATH and MOUNT_FUSE_PATH
1950         environment variables.  Requirement and help from Csaba Henk.
1952 2005-07-22  Miklos Szeredi <miklos@szeredi.hu>
1954         * Fix bug, that causes filesystem requests to hang when unique
1955         request counter becomes negative.  This happens after
1956         2,147,483,648 operations, so most people won't care.  Thanks to
1957         Franco Broi for the report and testing.
1959 2005-07-21  Miklos Szeredi <miklos@szeredi.hu>
1961         * Don't change mtime/ctime/atime to local time on read/write.
1962         Bug reported by Ben Grimm
1964         * Install fuse_common.h and fuse_lowlevel.h.  Report by Christian
1965         Magnusson
1967         * fusermount: use getopt_long() for option parsing.  It allows the
1968         use of '--' to stop argument scanning, so fusermount can now
1969         operate on directories whose names begin with a '-'.  Patch by
1970         Adam Connell
1972 2005-07-15  Miklos Szeredi <miklos@szeredi.hu>
1974         * fusermount: add '-v', '--version' and '--help' options
1976         * add inode based API
1978 2005-07-12  Miklos Szeredi <miklos@szeredi.hu>
1980         * lib: don't block signals in worker threads.  Problem noticed by
1981         Usarin Heininga
1983 2005-07-07  Miklos Szeredi <miklos@szeredi.hu>
1985         * lib: don't allow both 'allow_other' and 'allow_root' options to
1986         be given
1988 2005-07-06  Miklos Szeredi <miklos@szeredi.hu>
1990         * fusermount: check if mountpoint is empty (only '.' and '..' for
1991         directories, and size = 0 for regular files).  If "nonempty"
1992         option is given, omit this check.  This is useful, so users don't
1993         accidentally hide data (e.g. from backup programs).  Thanks to
1994         Frank van Maarseveen for pointing this out.
1996         * kernel: check if mandatory mount options ('fd', 'rootmode',
1997         'user_id', 'group_id') are all given
1999         * lib: simplify 'readdir_ino' handling
2001         * lib: add mount options 'umask=M', 'uid=N', 'gid=N'
2003 2005-07-03  Miklos Szeredi <miklos@szeredi.hu>
2005         * kernel: clean up 'direct_io' code
2007 2005-06-28  Miklos Szeredi <miklos@szeredi.hu>
2009         * Add 'mount.fuse' written by Petr Klima
2011         * '/dev/fuse' is created by 'make install' if does not yet exist
2013 2005-06-20  Miklos Szeredi <miklos@szeredi.hu>
2015         * Fix UCLIBC compile error.  Patch by Christian Magnusson
2017 2005-06-08  Miklos Szeredi <miklos@szeredi.hu>
2019         * Enable the auto-loading of the module via access to the
2020         corresponding device file.  Patch by Takashi Iwai.
2022         * Allow mounting a regular file (over a regular file) for
2023         unprivleged users.
2025         * Do not create temporary device file.  Require "/dev/fuse" to
2026         exist, and be readable/writable by the mounting user.
2028 2005-06-02  Miklos Szeredi <miklos@szeredi.hu>
2030         * Released 2.3.0
2032 2005-06-02  Miklos Szeredi <miklos@szeredi.hu>
2034         * Fix serious information leak: if the filesystem returns a short
2035         byte count to a read request, and there are non-zero number of
2036         pages which are not filled at all, these pages will not be zeroed.
2037         Hence the user can read out previous memory contents.  Found by
2038         Sven Tantau.
2040 2005-05-27  Miklos Szeredi <miklos@szeredi.hu>
2042         * Add "readdir_ino" mount option, which tries to fill in the d_ino
2043         field in struct dirent.  This mount option is ignored if "use_ino"
2044         is used.  It helps some programs (e.g. 'pwd' used over NFS from a
2045         non-Linux OS).  Patch by David Shaw.
2047 2005-05-12  Miklos Szeredi <miklos@szeredi.hu>
2049         * Released 2.3-rc1
2051 2005-05-12  Miklos Szeredi <miklos@szeredi.hu>
2053         * File save in krusader and other editors doesn't work with sshfs,
2054         because open() is interrupted by a periodic signal, and open()
2055         restarts forever, without any progress.  This could just be fixed
2056         in open(), but the problem is more generic: if signals are
2057         received more often than the filesystem can get the request to
2058         userspace, it will never finish.  This is probably only a
2059         theoretical problem, nevertheless I'm removing the possibility to
2060         interrupt requests with anything other than SIGKILL, even before
2061         being sent to userspace.  Bugreport by Eduard Czimbalmos.
2063 2005-05-09  Miklos Szeredi <miklos@szeredi.hu>
2065         * libfuse: add "tree_lock" rwlock, that is locked for write in
2066         rename, unlink and rmdir, and locked for read in all other
2067         operations.  This should fix the rename/release race reported by
2068         Valient Gough and others.  The solution is very coarse, a finer
2069         grained locking scheme could be implemented, but it would be much
2070         more complex.  Let's see whether this is good enough.
2072 2005-05-09  Miklos Szeredi <miklos@szeredi.hu>
2074         * Released 2.3-pre7
2076 2005-05-08  Miklos Szeredi <miklos@szeredi.hu>
2078         * Better fix for out of order FORGET messages.  Now the
2079         LOOKUP/FORGET messages are balanced exactly (one FORGET can
2080         balance many lookups), so the order no longer matters.  This
2081         changes the kernel ABI slightly, but the library remains backward
2082         compatible.
2084 2005-05-06  Miklos Szeredi <miklos@szeredi.hu>
2086         * Fix abort for out of order FORGET messages.  Again.  Spotted by
2087         Franco Broi again.  Sorry :)
2089 2005-04-29  Miklos Szeredi <miklos@szeredi.hu>
2091         * Released 2.3-pre6
2093 2005-04-29  Miklos Szeredi <miklos@szeredi.hu>
2095         * Make fusermount work with fuse kernel modules not yet supporting
2096         the "group_id" option (added for the purpose of stricter
2097         permission checking).
2099 2005-04-28  Miklos Szeredi <miklos@szeredi.hu>
2101         * Check for hard-linked directories in lookup.  This could cause
2102         problems in the VFS, which assumes that such objects never exist.
2104         * Make checking of permission for other users more strict.  Now
2105         the same privilege is required for the mount owner as for ptrace
2106         on the process performing the filesystem operation.
2108 2005-04-23  Miklos Szeredi <miklos@szeredi.hu>
2110         * Released 2.3-pre5
2112 2005-04-22  Miklos Szeredi <miklos@szeredi.hu>
2114         * Add -msoft-float to kernel module compile flags for 2.4.X.  This
2115         is needed on certain architectures.  Report from Chris Kirby
2117         * Fix buggy behavior of open(..., O_CREAT|O_EXCL) if interrupted.
2118         Reported by David Shaw
2120         * Remove "allow_root" option from kernel module, and implement
2121         it's functionality in the library
2123         * Fix Oops caused by premature release of fuse_conn.  Clean up
2124         related code, to be more readable
2126         * Sendfile should not use page cache if "direct_io" mount option
2127         is given
2129 2005-04-08  Miklos Szeredi <miklos@szeredi.hu>
2131         * Fix Oops in case of nfs export.  Spotted by David Shaw
2133         * Fix another Oops in case of write over nfs with direct_io turned
2134         on.  Again spotted by David Shaw
2136 2005-04-07  Miklos Szeredi <miklos@szeredi.hu>
2138         * Released 2.3-pre4
2140 2005-04-07  Miklos Szeredi <miklos@szeredi.hu>
2142         * lib: finalized new readdir() interface, which now supersedes the
2143         getdir() method.
2145 2005-04-03  Miklos Szeredi <miklos@szeredi.hu>
2147         * Released 2.3-pre3
2149 2005-04-03  Miklos Szeredi <miklos@szeredi.hu>
2151         * Implement backward compatibility with version 5 kernel ABI
2153 2005-04-01  Miklos Szeredi <miklos@szeredi.hu>
2155         * Released 2.3-pre2
2157 2005-04-01  Miklos Szeredi <miklos@szeredi.hu>
2159         * kernel: fix dirent offset handling
2161         * lib: add readdir and releasedir methods
2163         * lib: use fh field of fuse_file_info in opendir, readdir,
2164         releasedir and fsyncdir methods
2166         * lib: check kernel API version and bail out of it's old.  This
2167         will be properly fixed in the next release
2169 2005-03-31  Miklos Szeredi <miklos@szeredi.hu>
2171         * Released 2.3-pre1
2173 2005-03-31  Miklos Szeredi <miklos@szeredi.hu>
2175         * kernel API: add padding to structures, so 64bit and 32bit
2176         compiler will return the same size
2178         * kernel API: add offset field to fuse_dirent.  This will allow
2179         more sophisticated readdir interface for userspace
2181         * kernel API: change major number to 6
2183         * kernel: fix warnings on 64bit archs
2185         * kernel: in case of API version mismatch, return ECONNREFUSED
2187 2005-03-24  Miklos Szeredi <miklos@szeredi.hu>
2189         * kernel: trivial cleanups
2191 2005-03-21  Miklos Szeredi <miklos@szeredi.hu>
2193         * Add fsyncdir() operation
2195 2005-03-19  Miklos Szeredi <miklos@szeredi.hu>
2197         * kernel: add locking to background list (fixes previous fix)
2199 2005-03-18  Miklos Szeredi <miklos@szeredi.hu>
2201         * kernel: fix bug which could cause leave busy inodes after
2202         unmount, and Oops.
2204 2005-03-08  Miklos Szeredi <miklos@szeredi.hu>
2206         * examples: add -lpthread to link flags to work around valgrind
2207         quirk
2209         * lib: don't exit threads, so cancelation doesn't cause segfault
2211 2005-03-04  Miklos Szeredi <miklos@szeredi.hu>
2213         * kernel: fix nasty bug which could cause an Oops under certain
2214         situations.  Found by Magnus Johansson
2216 2005-02-28  Miklos Szeredi <miklos@szeredi.hu>
2218         * libfuse: added opendir() method.  This can be used in case
2219         permission checking in getdir() is too late.  Thanks to Usarin
2220         Heininga for pointing out this deficiency
2222         * libfuse: added init() and destroy() methods to fuse_operations
2224         * kernel: llseek() method for files and directories made explicit
2226         * kernel: fixed inode leak in NFS export in case of nodeid
2227         wrapping
2229 2005-02-15  Miklos Szeredi <miklos@szeredi.hu>
2231         * libfuse: clean up some unitialized memory found with valgrind
2233         * Add -lpthread to Libs in fuse.pc.  Valgrind seems to need an
2234         explicitly linked libpthread for applications
2236 2005-02-10  Miklos Szeredi <miklos@szeredi.hu>
2238         * fusermount: set umask, otherwise /etc/mtab will have
2239         unpredictable permission.  Spotted by Jindrich Kolorenc
2241         * fusermount: set owner and group of /etc/mtab to original values
2242         on unmount
2244         * libfuse: add 'use_ino' option to help.  Patch by Valient Gough
2246 2005-02-07  Miklos Szeredi <miklos@szeredi.hu>
2248         * Cleaned up directory reading (temporary file is not used)
2250 2005-02-02  Miklos Szeredi <miklos@szeredi.hu>
2252         * Released 2.2
2254 2005-02-02  Miklos Szeredi <miklos@szeredi.hu>
2256         * Fix possible race when operation is interrupted
2258 2005-01-28  Miklos Szeredi <miklos@szeredi.hu>
2260         * Fix compilation on 2.6.7
2262 2005-01-26  Miklos Szeredi <miklos@szeredi.hu>
2264         * Released 2.2-pre6
2266 2005-01-26  Miklos Szeredi <miklos@szeredi.hu>
2268         * Fix bug in link() operation which caused the wrong path to be
2269         passed as the first argument.  Found by Anton Altaparmakov
2271 2005-01-21  Miklos Szeredi <miklos@szeredi.hu>
2273         * LIB: fix double reply in readdir operation
2275         * fusermount: fix uid checking bug.  Patch by Adam Connell
2277         * KERNEL: fix compile on various RedHat patched 2.4 kernels.
2278         Patch by Keshava Gowda
2280 2005-01-20  Miklos Szeredi <miklos@szeredi.hu>
2282         * KERNEL: provide correct llseek semantics for fuse device (fixes
2283         a bug on Progeny 2.4.20 kernel).  Reported by Valient Gough
2285 2005-01-20  Miklos Szeredi <miklos@szeredi.hu>
2287         * Released 2.2-pre5 (matches kernel 2.6.11-rc1-mm2)
2289 2005-01-18  Miklos Szeredi <miklos@szeredi.hu>
2291         * KERNEL ABI: remove GETDIR operation, and add OPENDIR, READDIR
2292         and RELEASEDIR.  This ends the ugly hack of passing a file
2293         descriptor to the kernel, and actually makes the code simpler.
2295 2005-01-17  Miklos Szeredi <miklos@szeredi.hu>
2297         * Released 2.2-pre4
2299 2005-01-17  Miklos Szeredi <miklos@szeredi.hu>
2301         * fusermount: remove capability setting, which was the cause of
2302         problems for some users.  It seems that FS related capabilities
2303         are removed by setfsuid(), so this isn't even needed.
2305 2005-01-15  Miklos Szeredi <miklos@szeredi.hu>
2307         * fix compilation on 2.4 kernels (reported by Valient Gough)
2309         * fix failure to unmount bug (found by David Shaw)
2311         * fusermount: improve parsing of /etc/fuse.conf
2313 2005-01-13  Miklos Szeredi <miklos@szeredi.hu>
2315         * Remove 'mount_max' and 'user_allow_other' module options.  These
2316         are now checked by fusermount, and can be set in /etc/fuse.conf
2318         * KERNEL: change check for fsid == 0 to capable(CAP_DAC_OVERRIDE)
2320 2005-01-11  Miklos Szeredi <miklos@szeredi.hu>
2322         * KERNEL: fix possible inode allocation problem, where
2323         sizeof(struct inode) is not aligned (found by Mike Waychison)
2325         * KERNEL: use new follow_link/put_link methods
2327         * KERNEL: cosmetic fixes
2329 2005-01-10  Miklos Szeredi <miklos@szeredi.hu>
2331         * Released 2.2-pre3
2333 2005-01-10  Miklos Szeredi <miklos@szeredi.hu>
2335         * Add missing code that was accidently left out
2337 2005-01-09  Miklos Szeredi <miklos@szeredi.hu>
2339         * Released 2.2-pre2
2341 2005-01-09  Miklos Szeredi <miklos@szeredi.hu>
2343         * Change "uid" mount option to "user_id" to avoid confusion with a
2344         mount option "uid" commonly used by many filesystems
2346 2005-01-09  Miklos Szeredi <miklos@szeredi.hu>
2348         * Released 2.2-pre1
2350 2005-01-09  Miklos Szeredi <miklos@szeredi.hu>
2352         * If FUSE is configured in the kernel, don't build it by default
2354 2005-01-07  Miklos Szeredi <miklos@szeredi.hu>
2356         * Compile fix by Christian Magnusson
2358 2005-01-05  Miklos Szeredi <miklos@szeredi.hu>
2360         * Fix compilation for 2.6.{0-5} kernels
2362 2005-01-04  Miklos Szeredi <miklos@szeredi.hu>
2364         * KERNEL: if request is interrupted, still keep reference to used
2365         inode(s) and file, so that FORGET and RELEASE are not sent until
2366         userspace finishes the request.
2368         * remove /{sys,proc}/fs/fuse/version, and instead add an INIT
2369         request with the same information, which is more flexible,
2370         simpler, works on embedded systems.
2372 2004-12-16  Miklos Szeredi <miklos@szeredi.hu>
2374         * KERNEL ABI: update interface to make it independent of type
2375         sizes.  This will help on 64 bit architectures which can run
2376         legacy 32 bit applications.
2378         * KERNEL ABI: add "len" field to request headers.  This will allow
2379         sending/receiving requests in multiple chunks.
2381         * KERNEL: handle file type change more intelligently
2383         * LIB: "-o debug" option should disable backgrounding (fix by
2384         Fabien Reygrobellet)
2386 2004-12-13  Miklos Szeredi <miklos@szeredi.hu>
2388         * KERNEL: invalidate dentry/attributes if interrupted request
2389         could leave filesystem in an unknown state.
2391 2004-12-12  Miklos Szeredi <miklos@szeredi.hu>
2393         * KERNEL: lots of cleanups related to avoiding possible deadlocks.
2394         These will cause some regressions, but stability is considered
2395         more important.  If any of these features turns out to be
2396         important, it can be readded with the deadlock problems addressed.
2398         * Make all requests interruptible (only with SIGKILL currently).
2399         This can be used to break any deadlock produced by the userspace
2400         filesystem accessing it's own exported files.  The RELEASE request
2401         is special, because if it's interrupted before sending it to
2402         userspace it is still sent, but the reply is not awaited.
2404         * If request is interrupted before being sent to userspace, and if
2405         it hasn't yet got any side effects, it is always restarted,
2406         regardless of the SA_RESTART flag.  This makes these interruptions
2407         transparent to the process.
2409         * Remove shared-writable mmap support, which was prone to an
2410         out-of-memory deadlock situation
2412         * Remove INVALIDATE userspace initiated request
2414         * Make readpages() synchronous.  Asynchronous requests are
2415         deadlock prone, since they cannot be interrupted.
2417         * Add readv/writev support to fuse device operations
2419         * Remove some printks, which userspace FS can use for a DoS
2420         against syslog
2422         * Remove 'large_read' mount option from 2.6 in kernel, check it in
2423         fusermount instead
2425         * LIB: improve compatibility with a fuse.h header installed in
2426         ${prefix}/include which in turn includes the real header.
2428         * LIB: improve compatibility by defining fuse_main() (which is now
2429         not used), so old configure scripts find it.
2431 2004-12-10  Miklos Szeredi <miklos@szeredi.hu>
2433         * When mounting on a subdirectory of / don't duplicate slashes at
2434         the beggining of path (spotted by David Shaw)
2436 2004-12-09  Miklos Szeredi <miklos@szeredi.hu>
2438         * Fix bug causing garbage in mount options (spotted by David Shaw)
2440 2004-12-07  Miklos Szeredi <miklos@szeredi.hu>
2442         * Add 'writepage' flag to 'fuse_file_info'.
2444         * More comments in fuse.h
2446         * Get rid of double underscores
2448 2004-12-04  Miklos Szeredi <miklos@szeredi.hu>
2450         * Add -D_FILE_OFFSET_BITS=64 to cflags provided by pkg-config
2452         * helper.c: add -ho option, which only displays the options not
2453         the usage header.  This can be used by filesystems which have
2454         their own options.
2456 2004-12-03  Miklos Szeredi <miklos@szeredi.hu>
2458         * Add source compatibility to 2.1 and 1.1 APIs.  To select betwen
2459         versions simply define FUSE_USE_VERSION to 22, 21 or 11 before
2460         including the fuse header
2462         * Add binary compatibility to 2.1 version of library with symbol
2463         versioning
2465 2004-12-03  Miklos Szeredi <miklos@szeredi.hu>
2467         * Released 2.1
2469 2004-12-01  Miklos Szeredi <miklos@szeredi.hu>
2471         * kernel: clean up writing functions
2473         * kernel: no allocation on write in direct_io mode
2475         * move linux/fuse.h to fuse_kernel.h
2477 2004-11-30  Miklos Szeredi <miklos@szeredi.hu>
2479         * kernel: clean up reading functions
2481 2004-11-29  Miklos Szeredi <miklos@szeredi.hu>
2483         * kernel: make readpage() uninterruptible
2485         * kernel: check readonly filesystem flag in fuse_permission
2487         * lib: don't die if version file not found and new style device
2488         exists
2490         * lib: add '-r' option, which is short for '-o ro'
2492         * fusermount: simplify device opening
2494         * kernel: when direct_io is turend on, copy data directly to
2495         destination without itermediate buffer.  More efficient and safer,
2496         since no allocation is done.
2498         * fusermount: fix warning if fuse module is not loaded
2500         * kernel: use /dev/fuse on 2.4 too
2502 2004-11-26  Miklos Szeredi <miklos@szeredi.hu>
2504         * libfuse API change: open, read, write, flush, fsync and release
2505         are passed a 'struct fuse_file_info' pointer containing the open
2506         flags (open and release), and the file handle.  Verion changed to
2507         3.0.
2509 2004-11-23  Miklos Szeredi <miklos@szeredi.hu>
2511         * More cleanups in the kernel
2513         * The 10,229 charater device number has been assigned for FUSE
2515         * Version file checking fix (reported by Christian Magnusson)
2517         * fusermount: opening the fuse device now doesn't need /sys.
2519         * Optimize reading by controlling the maximum readahead based on
2520         the 'max_read' mount option
2522         * fixes for UCLIBC (Christian Magnusson)
2524 2004-11-19  Miklos Szeredi <miklos@szeredi.hu>
2526         * Cleaned up kernel in preparation for merge into mainline:
2528         * Use /sys/fs/fuse/version instead of /proc/fs/fuse/version
2530         * Use real device (/dev/fuse) instead of /proc/fs/fuse/dev
2532         * __user annotations for sparse
2534         * allocate individual pages instead of kmalloc in fuse_readdir,
2535         fuse_read and fuse_write.
2537         * Fix NFS export in case "use_ino" mount option is given
2539         * Make libfuse and fusermount compatible with future versions
2541         * fusermount: properly add mount options to /etc/mtab
2543 2004-11-15  Miklos Szeredi <miklos@szeredi.hu>
2545         * fusermount: do not resolve last component of mountpoint on if it
2546         is '.' or '..'.  This new path resolvation is now done on mount as
2547         well as unmount.  This enables relative paths to work on unmount.
2549         * fusermount: parse common mount options like "ro", "rw", etc...
2551         * Allow module params to be changed through sysfs
2553 2004-11-14  Miklos Szeredi <miklos@szeredi.hu>
2555         * Released 2.1-pre1
2557 2004-11-14  Miklos Szeredi <miklos@szeredi.hu>
2559         * Fix bug in fuse_readpages() causing Oops in certain situations.
2560         Bug found by Vincenzo Ciancia.
2562         * Fix compilation with kernels versions > 2.6.9.
2564 2004-11-11  Miklos Szeredi <miklos@szeredi.hu>
2566         * Check kernel interface version in fusermount to prevent
2567         strangeness in case of mismatch.
2569         * No need to allocate fuse_conn until actual mount happens
2571         * Fix potential race between umount and fuse_invalidate
2573         * Check superblock of proc file in addition to inode number
2575         * Fix race between request_send_noreply() and fuse_dev_release()
2577 2004-11-10  Miklos Szeredi <miklos@szeredi.hu>
2579         * Separate configure for the kernel directory
2581         * Don't allow write to return more than 'count'
2583         * Extend kernel interface for future use
2585 2004-11-09  Miklos Szeredi <miklos@szeredi.hu>
2587         * Fix 'makeconf.sh' to use autoreconf if available
2589 2004-11-08  Miklos Szeredi <miklos@szeredi.hu>
2591         * Add ino argument to 'fuse_dirfil_t'.  NOTE: This breaks source
2592         compatibility with earlier versions.  To compile earier versions
2593         just add '-DFUSE_DIRFIL_COMPAT' compile flag or fix the source.
2594         Do not use the "use_ino" mount flag with filesystems compiled with
2595         FUSE_DIRFIL_COMPAT.
2597         * Add pkg-config support.  To compile a FUSE based filesystem you
2598         can do  "gcc -Wall `pkg-config --cflags --libs fuse` myfs.c -o myfs"
2599         or similar.  Note, that the PKG_CONFIG_PATH environment variable
2600         usually needs to be set to "/usr/local/lib/pkgconfig".
2602         * fuse.h is now installed in ${prefix}/include/fuse/
2604 2004-11-02  Miklos Szeredi <miklos@szeredi.hu>
2606         * Added "use_ino" mount option.  This enables the filesystems to
2607         set the st_ino field on files
2609 2004-11-01  Miklos Szeredi <miklos@szeredi.hu>
2611         * Fix compile problems with ancient (<=2.4.18) kernels (reported
2612         by Jeremy Smith)
2614         * Add "allow_root" mount option.  Patch by Yaroslav Rastrigin
2616         * Clear the 'exited' flag when mail loop is finished
2618 2004-10-28  Miklos Szeredi <miklos@szeredi.hu>
2620         * Make xattr functions work under 2.6 (bug found by Vincenzo
2621         Ciancia)
2623 2004-10-26  Miklos Szeredi <miklos@szeredi.hu>
2625         * Reset request in fuse_flush() (bugreport by David Shaw)
2627 2004-10-21  Miklos Szeredi <miklos@szeredi.hu>
2629         * fuse_main() now does not exit on error, rather it returns an
2630         error code
2632         * Exported __fuse_setup() and __fuse_teardown() functions, which
2633         make it easier to implement a custom event loop.
2635         * Use daemon() call to background the filesystem after mounting.
2636         This function closes the standard input, output and error and
2637         changes the current working directory to "/".
2639 2004-10-14  Miklos Szeredi <miklos@szeredi.hu>
2641         * Released 1.9
2643 2004-10-09  Miklos Szeredi <miklos@szeredi.hu>
2645         * Don't allow fuse_flush() to be interrupted (bug found by David
2646         Shaw)
2648 2004-09-27  Miklos Szeredi <miklos@szeredi.hu>
2650         * Add PID to fuse_context.  Patch by Steven James
2652         * Change file handle type to 'unsigned long' in kernel interface
2654 2004-09-22  Miklos Szeredi <miklos@szeredi.hu>
2656         * A slight API change: fuse_get_context() doesn't need the "fuse"
2657         pointer, but the returned context contains it instead.  The
2658         fuse_get() function is not needed anymore, so it's removed.
2660         * Fix mounting and umounting FUSE filesystem under another FUSE
2661         filesystem by non-root (bug spotted by Valient Gough)
2663 2004-09-21  Miklos Szeredi <miklos@szeredi.hu>
2665         * Fix deadlock in case of memory allocation failure.  Patch by
2666         Christian Magnusson
2668 2004-09-16  Miklos Szeredi <miklos@szeredi.hu>
2670         * Check memory allocation failures in libfuse
2672 2004-09-14  Miklos Szeredi <miklos@szeredi.hu>
2674         * Check temporary file creation failure in do_getdir().  Bug
2675         spotted by Terje Oseberg
2677 2004-09-13  Miklos Szeredi <miklos@szeredi.hu>
2679         * Allow "large_read" option for 2.6 kernels but warn of deprecation
2681         * Make requests non-interruptible so race with FORGET is avoided.
2682         This is only a temporary solution
2684         * Support compiling FUSE kernel module on 2.4.x UML kernels
2686 2004-09-09  Miklos Szeredi <miklos@szeredi.hu>
2688         * Fix bug in case two FORGETs for the same node are executed in
2689         the wrong order.  Bug spotted and endured for months by Franco
2690         Broi, and logfile for solution provided by Terje Oseberg
2692 2004-09-01  Miklos Szeredi <miklos@szeredi.hu>
2694         * Add -D_REENTRANT to the compile flags
2696         * Add documentation of fuse internals by Terje Oseberg
2698 2004-08-16  Miklos Szeredi <miklos@szeredi.hu>
2700         * Change release method to be non-interruptible.  Fixes bug
2701         causing missing release() call when program which has opened files
2702         is killed (reported by Franco Broi and David Shaw)
2704 2004-07-29  Miklos Szeredi <miklos@szeredi.hu>
2706         * Add fuse_invalidate() to library API
2708 2004-07-26  Miklos Szeredi <miklos@szeredi.hu>
2710         * Check permissions in setattr if 'default_permissions' flag is
2711         set.  Bug spotted by Damjan Lango
2713 2004-07-24  Miklos Szeredi <miklos@szeredi.hu>
2715         * 'large_read' mount option removed for 2.6 kernels, since the
2716         default (dynamic read size) is better
2718         * Extend kernel API with file handles.  A file handle is returned
2719         by open, and passed to read, write, flush, fsync and release.
2720         This is currently only used for debug output in the library.
2722         * Security changes:
2724         * Change the current directory to the mountpoint before checking
2725         the permissions and mount filesystem on "."
2727         * By default don't modprobe the fuse module for non-root.  The old
2728         behavior can be restored with the '--enable-auto-modprobe' flag of
2729         ./configure
2731         * By default don't allow shared writable mappings for non-root.
2732         The old behavior can be restored with the 'user_mmap=1' module
2733         parameter
2735 2004-07-23  Miklos Szeredi <miklos@szeredi.hu>
2737         * Clean up mount option passing to fusermount and to fuse_new()
2738         BEWARE: this changes the userspace API slightly, and the command
2739         line usage of programs using fuse_main()
2741 2004-07-20  Miklos Szeredi <miklos@szeredi.hu>
2743         * Optimize reading under 2.6 kernels by issuing multiple page
2744         asynchronous read requests
2746 2004-07-18  Miklos Szeredi <miklos@szeredi.hu>
2748         * Only use redirty_page_for_writepage() for kernels >= 2.6.6
2750 2004-07-16  Miklos Szeredi <miklos@szeredi.hu>
2752         * Separate directory entry and inode attribute validity timer
2754         * New write semaphore to stop page writeback during truncate
2756         * Fsync now waits for all writes to complete before sending the
2757         request
2759         * Optimization: if a page is completely written by
2760         fuse_commit_write(), clear the dirty flag and set the uptodate
2761         flag for that page
2763         * Some memory cleanup at exit
2765 2004-07-13  Miklos Szeredi <miklos@szeredi.hu>
2767         * Add FUSE_HARD_REMOVE flag, and '-i' option to fuse main, which
2768         disable the "hide if open" behavior of unlink/rename.
2770         * If temporary buffer allocation fails in raw read, fall back to a
2771         smaller buffer
2773 2004-07-12  Miklos Szeredi <miklos@szeredi.hu>
2775         * Fix bug in do_open() in libfuse: open count was incremented
2776         after the reply is sent so it could race with unlink/forget and
2777         cause an abort.
2779 2004-07-08  Miklos Szeredi <miklos@szeredi.hu>
2781         * When performing create or remove operation, refresh the parent's
2782         attributes on next revalidate, as i_nlink (and maybe size/time)
2783         could be inacurate.
2785         * Use redirty_page_for_writepage() in fuse_writepage() for skipped
2786         pages (2.6 only)
2788         * Set set_page_dirty address space operation (2.6 only)
2790 2004-07-06  Miklos Szeredi <miklos@szeredi.hu>
2792         * Minor fix in read:  print debug info even if read size is zero
2794 2004-07-04  Miklos Szeredi <miklos@szeredi.hu>
2796         * Fix race between truncate and writepage (fsx-linux now runs
2797         without error)
2799 2004-07-02  Miklos Szeredi <miklos@szeredi.hu>
2801         * Fix kernel hang on mkfifo under 2.4 kernels (spotted and patch
2802         by Mattias Wadman)
2804         * Added option for direct read/write (-r)
2806         * Fix revalidate time setting for newly created inodes
2808         * Remove uid==0 check for '-x' option in fusermount (kernel checks
2809         this)
2811         * fuse_main() only installs handlers for signals (out of INT, HUP,
2812         TERM, PIPE), for which no handler has yet been installed
2814         * Add module option 'user_allow_other' which if set to non-zero
2815         will allow non root user to specify the 'allow_other' mount option
2816         ('-x' option of fusermount)
2818         * Fix deadlock between page writeback completion and truncate
2819         (bug found by Valient Gough with the fsx-linux utility)
2821 2004-07-01  Miklos Szeredi <miklos@szeredi.hu>
2823         * Change passing fuse include dir to 2.6 kernel make system more
2824         robust (fixes compile problems seen on SuSE 9.1 with updated 2.6
2825         kernel)
2827 2004-06-30  Miklos Szeredi <miklos@szeredi.hu>
2829         * Acquire inode->i_sem before open and release methods to prevent
2830         concurrent rename or unlink operations.
2832         * Make __fuse_read_cmd() read only one command.  This allows
2833         multiplexing the fuse file descriptor with other event sources
2834         using select() or poll() (patch by Jeff Harris)
2836         * Export 'exited' flag with __fuse_exited() (patch by Jeff Harris)
2838 2004-06-27  Miklos Szeredi <miklos@szeredi.hu>
2840         * Fix file offset wrap around at 4G when doing large reads
2842 2004-06-24  Miklos Szeredi <miklos@szeredi.hu>
2844         * Fix memory leak in open (Valient Gough)
2846 2004-06-24  Miklos Szeredi <miklos@szeredi.hu>
2848         * Add "close after delete" support to libfuse (patch by Valient
2849         Gough)
2851         * Cancel all worker threads before exit in multithreaded mode
2853 2004-06-23  Miklos Szeredi <miklos@szeredi.hu>
2855         * Fix locking bugs
2857         * Don't send reply to RELEASE
2859         * Work with newer libtool (1.5a)
2861         * Check for st_atim member of struct stat
2863 2004-06-22  Miklos Szeredi <miklos@szeredi.hu>
2865         * No request allocation needed on inode and file release
2867 2004-06-21  Miklos Szeredi <miklos@szeredi.hu>
2869         * Fix possible inode leak in userspace in case of unfinished
2870         lookup/mknod/mkdir/symlink/link operation.
2872 2004-06-20  Miklos Szeredi <miklos@szeredi.hu>
2874         * Fix some races and cleanups in fuse_read_super()
2876 2004-06-19  Miklos Szeredi <miklos@szeredi.hu>
2878         * Requests are allocated at open time
2880 2004-06-03  Miklos Szeredi <miklos@szeredi.hu>
2882         * Build shared library as well as static (using libtool)
2884         * Change FUSE_MINOR_VERSION from 1 to 0.  I know it's illegal but
2885         there has not been a release with the previous minor number, and I
2886         hope nobody is using it for anything.
2888         * Change fuse_main(), so that default behavior is to go into
2889         background if mount is successful.  '-f' and '-d' options disable
2890         backgrounding.  This fixes the "Why does my FUSE daemon hang?"
2891         newbie complaint.
2893         * Cache ENOSYS (function not implemented) errors on *xattr, flush
2894         and fsync
2896         * Don't call getdir method from open() only from first readdir().
2897         Open is sometimes just used to store the current directory
2898         (e.g. find)
2900 2004-05-18  Miklos Szeredi <miklos@szeredi.hu>
2902         * Added flush() call
2904 2004-05-04  Miklos Szeredi <miklos@szeredi.hu>
2906         * Extended attributes support for 2.4 (patch by Cody Pisto)
2908 2004-04-20  Miklos Szeredi <miklos@szeredi.hu>
2910         * Fixed parser with modversions (Mattias Wadman)
2912 2004-04-19  Miklos Szeredi <miklos@szeredi.hu>
2914         * Added mount option parser to 2.4 build
2916 2004-04-13  Miklos Szeredi <miklos@szeredi.hu>
2918         * Replaced binary mount data with text options
2920         * Show FUSE specific mount options in /proc/mounts
2922         * Check in fuse.h whether _FILE_OFFSET_BITS is set to 64
2924 2004-04-09  Miklos Szeredi <miklos@szeredi.hu>
2926         * Check some limits so userspace won't get too big requests
2928 2004-04-05  Miklos Szeredi <miklos@szeredi.hu>
2930         * Kill compile warning
2932         * Upgraded user-mount patch for 2.6.5
2934 2004-04-02  Miklos Szeredi <miklos@szeredi.hu>
2936         * Add detection of user-mode-linux to configure
2938 2004-03-31  Miklos Szeredi <miklos@szeredi.hu>
2940         * fixed zero size case for getxattr and listxattr
2942 2004-03-30  Miklos Szeredi <miklos@szeredi.hu>
2944         * new fusermount flag '-z': lazy unmount, default is not lazy
2946         * Extended attributes operations added (getxattr, setxattr,
2947         listxattr, removexattr)
2949 2004-03-25  Miklos Szeredi <miklos@szeredi.hu>
2951         * If filesystem doesn't define a statfs operation, then an
2952         all-zero default statfs is returned instead of ENOSYS
2954 2004-03-24  Miklos Szeredi <miklos@szeredi.hu>
2956         * Add FS_BINARY_MOUNTDATA filesystem flag for kernels > 2.6.4
2958 2004-03-09  Miklos Szeredi <miklos@szeredi.hu>
2960         * Fix for uClinux (Christian Magnusson)
2962 2004-03-02  Miklos Szeredi <miklos@szeredi.hu>
2964         * fuse_main() adds "-n progname" to the fusermount command line
2966         * More kernel interface changes:
2968         * Lookup/getattr return cache timeout values
2970 2004-02-25  Miklos Szeredi <miklos@szeredi.hu>
2972         * Clean up option parsing in fuse_main()
2974         * Added fuse_get() function which returns the fuse object created
2975         by fuse_main()
2977 2004-02-20  Miklos Szeredi <miklos@szeredi.hu>
2979         * removed old way of mounting (fusermount mountpoint program)
2981         * more kernel interface changes:
2983         * added nanosecond precision to file times
2985         * removed interface version from mount data
2987         * added /proc/fs/fuse/version which contains MAJOR.MINOR
2989 2004-02-19  Miklos Szeredi <miklos@szeredi.hu>
2991         * statfs library API changed to match other methods.  Since this
2992           is not backward compatible FUSE_MAJOR_VERSION is changed to 2
2994         * kernel interface changes follow:
2996         * statfs changed to 64 bits, added 'bavail' field
2998         * add generation number to lookup result
3000         * optimized mknod/mkdir/symlink/link (no separate lookup is
3001         needed)
3003         * rdev size increased to 32 bits for mknod
3005         * kernel interface version changed to 3.1
3007 2004-02-18  Miklos Szeredi <miklos@szeredi.hu>
3009         * user-mount upgraded for 2.6.3 kernel
3011 2004-02-17  Miklos Szeredi <miklos@szeredi.hu>
3013         * Added user-mount.2.6.2-rc3.patch
3015         * Add FS_SAFE flag to fuse filesystem
3017         * fusermount should allow (un)mounting for non-root even if not
3018         suid-root
3020 2004-02-12  Miklos Szeredi <miklos@szeredi.hu>
3022         * Remove MS_PERMISSION mount flag (that means something else now)
3024 2004-02-10  Miklos Szeredi <miklos@szeredi.hu>
3026         * Added check for i_size_read/write functions to configure.in
3027         (patch by Valient Gough)
3029 2004-02-06  Miklos Szeredi <miklos@szeredi.hu>
3031         * Fixed writing >= 2G files
3033         * Check file size on open (with generic_file_open())
3035         * Readpage calls flush_dcache_page() after storing data
3037         * Use i_size_read/write for accessing inode->i_size
3039         * Make loopback mount of a fuse file work
3041 2004-02-04  Miklos Szeredi <miklos@szeredi.hu>
3043         * Released 1.1
3045 2004-01-29  Miklos Szeredi <miklos@szeredi.hu>
3047         * Properly check if the inode exists in fuse_invalidate
3049 2004-01-27  Miklos Szeredi <miklos@szeredi.hu>
3051         * Added -q option for fusermount
3053         * fuse_unmount() now uses -q option of fusermount, so no error is
3054         printed if the cause of the program exit is that the filesystem
3055         has already been unmounted
3057         * Fix i_nlink correctness after rmdir/unlink
3059 2004-01-26  Miklos Szeredi <miklos@szeredi.hu>
3061         * Released 1.1-pre2
3063 2004-01-26  Miklos Szeredi <miklos@szeredi.hu>
3065         * Fix typo (thanks Marcos Dione)
3067         * Compile fixes for 2.4 kernels
3069 2004-01-23  Miklos Szeredi <miklos@szeredi.hu>
3071         * Fix CONFIG_MODVERSIONS compile on 2.6
3073 2004-01-22  Miklos Szeredi <miklos@szeredi.hu>
3075         * Write all pending data before a RELEASE operation
3077         * Suppress 'Bad file descriptor' warning on exit
3079         * Replaced fusermount option '-d xxx' with '-n xxx' so it doesn't
3080         get confused with '-d' of fuse_main() (sorry about this change)
3082         * New fusermount option '-l' which enables big reads.  Big reads
3083         are now disabled by default.
3085         * fuse_main() can accept fusermount arguments after a '--'
3087 2004-01-19  Miklos Szeredi <miklos@szeredi.hu>
3089         * Support for exporting filesystem over NFS (see README.NFS)
3091 2004-01-14  Miklos Szeredi <miklos@szeredi.hu>
3093         * Support non-blocking writepage on 2.6.  This makes FUSE behave
3094         much more nicely in low-memory situations
3096         * Fix 32-bit dev handling in getattr and mknod for 2.6 kernels.
3097         (Note: the mknod method does not yet use 32bit device number)
3099 2004-01-13  Miklos Szeredi <miklos@szeredi.hu>
3101         * Code cleanups
3103 2004-01-07  Miklos Szeredi <miklos@szeredi.hu>
3105         * Released 1.1-pre1
3107 2004-01-06  Miklos Szeredi <miklos@szeredi.hu>
3109         * Integrated 2.6 kernel support patch by Michael Grigoriev
3111         * Improvements and cleanups for 2.6 kernels
3113 2004-01-05  Miklos Szeredi <miklos@szeredi.hu>
3115         * Added -d option to fusermount
3117 2003-12-15  Miklos Szeredi <miklos@szeredi.hu>
3119         * Added major+minor version to library API, and minor version to
3120           kernel API
3122 2003-12-13  David McNab <david@rebirthing.co.nz>
3124         * Implemented fsync support in examples/example.py
3126         * Implemented 'fsync' and 'statfs' methods in python
3127           interface
3129 2003-12-12  Miklos Szeredi <miklos@szeredi.hu>
3131         * Make it compile on 2.4.19.
3133         * Add fsync operation (write file failed on xemacs & vi)
3135 2003-12-12  David McNab <david@rebirthing.co.nz>
3137         * Added distutils support to the python module, as per standard
3138           python development practice
3140 2003-12-11  Miklos Szeredi <miklos@szeredi.hu>
3142         * Add file locking for mount/unmount (based on patch by Valient
3143         Gough)
3145 2003-12-11  David McNab <david@rebirthing.co.nz>
3147         * Python filesystem - was broken with python2.3, now fixed:
3148            - changed PyTuple_* calls to PySequence_*, because os.lstat
3149              is no longer returning a pure tuple
3150            - changed PyInt_Check() calls to also call PyLong_Check,
3151              to cover for cases (eg os.lstat) where longs are returned
3152            - Added support for file 'release' handling, which IMO is
3153              essential since this signals to a FS that writes to a file
3154              are complete (and therefore the file can now be disposed of
3155              meaningfully at the python filesystem's discretion)
3156            - Added '__init__' handler to base Fuse class, which allows
3157              your Python class to know the mountpoint and mount args,
3158              as attributes myfs.mountpoint, myfs.optlist, myfs.optdict
3160         * General:
3161            - added 'mount.fuse' script (in util/ dir), which is meant to be
3162              symlinked from /sbin, and which allows FUSE filesystems to
3163              be mounted with the 'mount' command, and listed in fstab;
3164              also, mount arguments get passed to your filesystem
3167 2003-11-04  Miklos Szeredi <miklos@szeredi.hu>
3169         * Fix kernel version detection (again).  Bugreport by Peter Levart
3171 2003-11-03  Miklos Szeredi <miklos@szeredi.hu>
3173         * Applied read combining patch by Michael Grigoriev (tested by
3174         Valient Gough and Vincent Wagelaar)
3176 2003-10-22  Miklos Szeredi <miklos@szeredi.hu>
3178         * Mtab handling fix in fusermount by "Valient Gough" (SF patch
3179         #766443)
3181 2003-10-13  Miklos Szeredi <miklos@szeredi.hu>
3183         * Error code fixes in kernel module
3185 2003-10-04  Miklos Szeredi <miklos@szeredi.hu>
3187         * kernel version detection fix
3189         * fusermount now uses "lazy" umount option
3191         * fusermount can use modprobe with module-init-tools
3193 2003-09-08  Miklos Szeredi <miklos@szeredi.hu>
3195         * Integrated caching patch by Michael Grigoriev
3197         * Added "Filesystems" file with descriptions of projects using
3198         FUSE
3200         * Added patch by Michael Grigoriev to allow compliation of FUSE
3201         kernel module for 2.6 kernels
3203 2003-06-02  Miklos Szeredi <miklos@szeredi.hu>
3205         * And another spec-file fix by Achim Settelmeier
3207 2003-05-26  Miklos Szeredi <miklos@szeredi.hu>
3209         * Spec-file fix by Achim Settelmeier
3211 2003-03-10  Miklos Szeredi <miklos@szeredi.hu>
3213         * Fix umount oops (found by Samuli Kärkkäinen)
3215 2003-03-05  Miklos Szeredi <miklos@szeredi.hu>
3217         * Merge of fuse_redhat.spec and fuse.spec by Achim Settelmeier
3219 2003-03-04  Miklos Szeredi <miklos@szeredi.hu>
3221         * Updated fuse.spec file (Achim Settelmeier)
3223 2003-02-19  Miklos Szeredi <miklos@szeredi.hu>
3225         * Version 1.0 released
3227 2003-02-12  Miklos Szeredi <miklos@szeredi.hu>
3229         * SuSE compilation fix by Juan-Mariano de Goyeneche
3231 2002-12-10  Miklos Szeredi <miklos@szeredi.hu>
3233         * The release() VFS call is now exported to the FUSE interface
3235 2002-12-05  Miklos Szeredi <miklos@szeredi.hu>
3237         * 64 bit file offset fixes in the fuse kernel module
3239         * Added function 'fuse_exit()' which can be used to exit the main
3240         loop
3242 2002-12-03  Miklos Szeredi <miklos@szeredi.hu>
3244         * Added _FILE_OFFSET_BITS=64 define to fuse.h.  Note, that this is
3245         an incompatible interface change.
3247 2002-10-28  Miklos Szeredi <miklos@szeredi.hu>
3249         * Portablility fix (bug reported by C. Chris Erway)
3251 2002-10-25  Miklos Szeredi <miklos@szeredi.hu>
3253         * Use Mark Glines' fd passing method for default operation instead
3254         of old reexec
3256 2002-10-22  Miklos Szeredi <miklos@szeredi.hu>
3258         * fix "Stale NFS file handle" bug caused by changes in 2.4.19
3260 2002-10-22  Miklos Szeredi <miklos@szeredi.hu>
3262         * fix incompatiblity with Red Hat kernels, with help from Nathan
3263         Thompson-Amato.
3265 2002-04-18  Mark Glines <mark@glines.org>
3267         * added an alternative to fuse_mount(), called
3268       fuse_mount_ioslave(), which does not need to reexec the
3269       FUSE program.
3270         * added a small helper util needed by fuse_mount_ioslave().
3272 2002-03-16  Mark Glines <mark@glines.org>
3274         * use struct fuse_statfs everywhere possible to avoid problems
3275       with the headerfiles changing struct statfs member sizes
3277 2002-03-01  Miklos Szeredi <miklos@szeredi.hu>
3279         * Another RPM spec file for RedHat >= 7 by Ian Pilcher
3281 2002-01-14  Miklos Szeredi <miklos@szeredi.hu>
3283         * RPM support by Achim Settelmeier
3285 2002-01-09  Miklos Szeredi <miklos@szeredi.hu>
3287         * Version 0.95 released
3289 2002-01-09  Miklos Szeredi <miklos@szeredi.hu>
3291         * Revaidate all path components not just the last, this means a
3292         very small performance penalty for being more up-to-date.
3294 2002-01-08  Miklos Szeredi <miklos@szeredi.hu>
3296         * Update and fix python interface
3298 2002-01-07  Mark Glines <mark@glines.org>
3300         * Added statfs() support to kernel, lib, examples, and perl!
3302 2001-12-26  Miklos Szeredi <miklos@szeredi.hu>
3304         * Better cross compilation support
3306         * Ported to Compaq IPAQ
3308 2001-12-20  Miklos Szeredi <miklos@szeredi.hu>
3310         * Added function fuse_get_context() to library API (inspired by
3311         patch from Matt Ryan)
3313         * Added flags to fusermount and to kernel interface to control
3314         permission checking
3316         * Integrated fuse_set_operations() into fuse_new()
3318 2001-12-08  Miklos Szeredi <miklos@szeredi.hu>
3320         * Applied header protection + extern "C" patch by Roland
3321         Bauerschmidt
3323 2001-12-02  Miklos Szeredi <miklos@szeredi.hu>
3325         * Added perl bindings by Mark Glines
3327 2001-11-21  Miklos Szeredi <miklos@szeredi.hu>
3329         * Cleaned up way of mounting simple filesystems.
3331         * fuse_main() helper function added
3333 2001-11-18  Miklos Szeredi <miklos@szeredi.hu>
3335         * Optimized read/write operations, so that minimal copying of data
3336         is done
3338 2001-11-14  Miklos Szeredi <miklos@szeredi.hu>
3340         * Python bindings by Jeff Epler added
3342 2001-11-13  Miklos Szeredi <miklos@szeredi.hu>
3344         * Fixed vfsmount reference leak in fuse_follow_link
3346         * FS blocksize is set to PAGE_CACHE_SIZE, blksize attribute from
3347         userspace is ignored
3349 2001-11-09  Miklos Szeredi <miklos@szeredi.hu>
3351         * Started ChangeLog