From 307242f21bf3ca7a0fb0f30da45b5956f47b0250 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Mon, 26 Jan 2004 11:28:44 +0000 Subject: fix --- include/fuse.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'include/fuse.h') diff --git a/include/fuse.h b/include/fuse.h index b85f0d8..c2f0be4 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -86,7 +86,9 @@ typedef int (*fuse_dirfil_t) (fuse_dirh_t h, const char *name, int type); * * - read(), write() are not passed a filehandle, but rather a * pathname. The offset of the read and write is passed as the last - * argument, like the pread() and pwrite() system calls. + * argument, like the pread() and pwrite() system calls. (NOTE: + * read() should always return the number of bytes requested, except + * at end of file) * * - release() is called when an open file has: * 1) all file descriptors closed @@ -142,10 +144,11 @@ extern "C" { * main() function. * * This function does the following: - * - mounts the filesystem + * - parses command line options (-d -s and -h) + * - passes all options after '--' to the fusermount program + * - mounts the filesystem by calling fusermount * - installs signal handlers for INT, HUP, TERM and PIPE * - registers an exit handler to unmount the filesystem on program exit - * - parses command line options (-d -s and -h) * - creates a fuse handle * - registers the operations * - calls either the single-threaded or the multi-threaded event loop -- cgit v1.2.3