Move flags to the front of struct fuse_operations
authorMiklos Szeredi <mszeredi@suse.cz>
Fri, 20 Jul 2012 07:51:24 +0000 (09:51 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Fri, 20 Jul 2012 07:51:24 +0000 (09:51 +0200)
include/fuse.h

index a23dadbbc6ba6131f131aa7a601c67241c346619..7761f7ce55d46b418379c87c5ed0df22c603fd1f 100644 (file)
@@ -79,6 +79,30 @@ typedef int (*fuse_dirfil_t) (fuse_dirh_t h, const char *name, int type,
  * is also a snapshot of the relevant wiki pages in the doc/ folder.
  */
 struct fuse_operations {
+       /**
+        * Flag indicating that the path need not be calculated for
+        * the following operations:
+        *
+        * read, write, flush, release, fsync, readdir, releasedir,
+        * fsyncdir, ftruncate, fgetattr, lock, ioctl and poll
+        *
+        * If this flag is set then the path will not be calculaged even if the
+        * file wasn't unlinked.  However the path can still be non-NULL if it
+        * needs to be calculated for some other reason.
+        */
+       unsigned int flag_nopath:1;
+
+       /**
+        * Flag indicating that the filesystem accepts special
+        * UTIME_NOW and UTIME_OMIT values in its utimens operation.
+        */
+       unsigned int flag_utime_omit_ok:1;
+
+       /**
+        * Reserved flags, don't set
+        */
+       unsigned int flag_reserved:30;
+
        /** Get file attributes.
         *
         * Similar to stat().  The 'st_dev' and 'st_blksize' fields are
@@ -446,30 +470,6 @@ struct fuse_operations {
         */
        int (*bmap) (const char *, size_t blocksize, uint64_t *idx);
 
-       /**
-        * Flag indicating that the path need not be calculated for
-        * the following operations:
-        *
-        * read, write, flush, release, fsync, readdir, releasedir,
-        * fsyncdir, ftruncate, fgetattr, lock, ioctl and poll
-        *
-        * If this flag is set then the path will not be calculaged even if the
-        * file wasn't unlinked.  However the path can still be non-NULL if it
-        * needs to be calculated for some other reason.
-        */
-       unsigned int flag_nopath:1;
-
-       /**
-        * Flag indicating that the filesystem accepts special
-        * UTIME_NOW and UTIME_OMIT values in its utimens operation.
-        */
-       unsigned int flag_utime_omit_ok:1;
-
-       /**
-        * Reserved flags, don't set
-        */
-       unsigned int flag_reserved:30;
-
        /**
         * Ioctl
         *