From: Miklos Szeredi Date: Wed, 10 Nov 2004 14:20:28 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: fuse_2_1_pre0~2 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1f3000144ef554809d896727bc571edf76710df3;p=qemu-gpiodev%2Flibfuse.git *** empty log message *** --- diff --git a/AUTHORS b/AUTHORS index 978027e..cfdba8e 100644 --- a/AUTHORS +++ b/AUTHORS @@ -2,15 +2,3 @@ FUSE core --------- Miklos Szeredi - - -Python bindings ---------------- - -Jeff Epler - - -Perl bindings -------------- - -Mark Glines diff --git a/BUGS b/BUGS deleted file mode 100644 index 5fdce02..0000000 --- a/BUGS +++ /dev/null @@ -1,10 +0,0 @@ -- It is allowed to mount a directory on a non-directory. - -- I want really low priority for my cached pages. Can they start out - 'old' so they will be thrown out on the first oportunity? - -- File size change could cause some strange behavior WRT the page - cache. - -- User can cause nasty DoS by not replying to WRITE requests and thus - blocking writepage() indefinitely. diff --git a/ChangeLog b/ChangeLog index 72d93af..c801303 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,10 @@ * Separate configure for the kernel directory + * Don't allow write to return more than 'count' + + * Extend kernel interface for future use + 2004-11-09 Miklos Szeredi * Split 2.0 branch diff --git a/Makefile.am b/Makefile.am index aaf5098..28f5b32 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,7 +6,7 @@ EXTRA_DIST = \ fuse.pc.in \ README* \ Filesystems \ - BUGS \ + FAQ \ doc/how-fuse-works pkgconfigdir = $(libdir)/pkgconfig diff --git a/NEWS b/NEWS index 13a84e1..512ccbc 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,15 @@ +What is new in 2.1 + +* Bug fixes + +* Improved support for filesystems implementing a custom event-loop + +* Add 'pkg-config' support + +* Kernel module can be compiled separately + +============================================================================ + What is new in 1.9 * Lots of bugs fixed @@ -20,6 +32,8 @@ What is new in 1.9 * Extended attributes support +============================================================================ + What is new in 1.3 * Thanks to user bugreports and stress testing with LTP and sfx-linux @@ -35,6 +49,8 @@ What is new in 1.2 * Other bugfixes +============================================================================ + What is new in 1.1 * Support for the 2.6 kernels @@ -50,6 +66,7 @@ What is new in 1.1 * Bugfixes +============================================================================ What is new in 1.0 diff --git a/README-2.6 b/README-2.6 deleted file mode 100644 index 8cc4fa1..0000000 --- a/README-2.6 +++ /dev/null @@ -1,4 +0,0 @@ -To use kbuild, you need write access to .tmp_versions/ and -.__modpost.cmd in KERNELDIR. - -HINT: chmod them 1777 diff --git a/kernel/Makefile.in b/kernel/Makefile.in index 2f7b74b..42d1807 100644 --- a/kernel/Makefile.in +++ b/kernel/Makefile.in @@ -6,7 +6,7 @@ mkdir_p = mkdir -p majver = @majver@ VERSION = @PACKAGE_VERSION@ -DISTFILES = Makefile.in configure.ac configure config.h.in makeconf.sh \ +DISTFILES = Makefile.in configure.ac configure config.h.in ../install-sh \ dev.c dir.c file.c inode.c util.c fuse_i.h COMPATDISTFILES = compat/parser.c compat/parser.h LINUXDISTFILES = linux/fuse.h diff --git a/kernel/configure.ac b/kernel/configure.ac index 8dce5bd..0dad9cb 100644 --- a/kernel/configure.ac +++ b/kernel/configure.ac @@ -1,6 +1,8 @@ AC_INIT(fuse-kernel, 2.1-pre0) AC_CONFIG_HEADERS([config.h]) +AC_PROG_INSTALL + AC_MSG_CHECKING([kernel source directory]) kernelsrc= AC_ARG_WITH(kernel, diff --git a/kernel/file.c b/kernel/file.c index f4e0b56..aa6662b 100644 --- a/kernel/file.c +++ b/kernel/file.c @@ -614,8 +614,12 @@ static ssize_t fuse_send_write(struct fuse_req *req, int writepage, req->out.args[0].value = &outarg; request_send(fc, req); res = req->out.h.error; - if (!res) - return outarg.size; + if (!res) { + if (outarg.size > count) + return -EPROTO; + else + return outarg.size; + } else return res; } diff --git a/kernel/linux/fuse.h b/kernel/linux/fuse.h index 9c08b60..e2a4124 100644 --- a/kernel/linux/fuse.h +++ b/kernel/linux/fuse.h @@ -24,7 +24,7 @@ #define FUSE_VERSION_FILE "/proc/fs/fuse/version" struct fuse_attr { - unsigned long _user_ino; /* unused, for forward compatibility */ + unsigned long _user_ino; unsigned int mode; unsigned int nlink; unsigned int uid; @@ -146,6 +146,9 @@ struct fuse_open_in { struct fuse_open_out { unsigned long fh; + unsigned long _data_valid; + unsigned long _data_valid_nsec; + unsigned int _open_flags; }; struct fuse_release_in { @@ -155,6 +158,7 @@ struct fuse_release_in { struct fuse_flush_in { unsigned long fh; + unsigned int _nref; }; struct fuse_read_in { @@ -214,7 +218,7 @@ struct fuse_user_header { int unique; /* zero */ enum fuse_opcode opcode; unsigned long ino; - unsigned long _user_ino; /* unused, for forward compatibility */ + unsigned long _user_ino; }; struct fuse_dirent {