fix loopback mounting fuse files
authorMiklos Szeredi <miklos@szeredi.hu>
Fri, 6 Feb 2004 17:02:08 +0000 (17:02 +0000)
committerMiklos Szeredi <miklos@szeredi.hu>
Fri, 6 Feb 2004 17:02:08 +0000 (17:02 +0000)
ChangeLog
kernel/file.c

index 2a569ed6b4174f59fbf864530abe22dd46339435..97c281e9ed3cf1f19646c7d2cf0a863974650c38 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,8 @@
        * Readpage calls flush_dcache_page() after storing data
 
        * Use i_size_read/write for accessing inode->i_size
+
+       * Make loopback mount of a fuse file work
        
 2004-02-04  Miklos Szeredi <mszeredi@inf.bme.hu>
 
index 594d7126043dec623f65e2a602027e9de71565d2..99e7ada448908210d5b1e569e503b09a9068822c 100644 (file)
@@ -462,12 +462,15 @@ static int fuse_commit_write(struct file *file, struct page *page,
 }
 
 static struct file_operations fuse_file_operations = {
-       .open =         fuse_open,
-       .release =      fuse_release,
-       .fsync =        fuse_fsync,
-       .read =         fuse_file_read,
-       .write =        generic_file_write,
-       .mmap =         generic_file_mmap,
+       .read           = fuse_file_read,
+       .write          = generic_file_write,
+       .mmap           = generic_file_mmap,
+       .open           = fuse_open,
+       .release        = fuse_release,
+       .fsync          = fuse_fsync,
+#ifdef KERNEL_2_6
+       .sendfile       = generic_file_sendfile,
+#endif
 };
 
 static struct address_space_operations fuse_file_aops  = {