summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2012-07-20 09:51:24 +0200
committerMiklos Szeredi <mszeredi@suse.cz>2012-07-20 09:51:24 +0200
commit2f2ac2f8d3b2a6e137eb3262673c51e59f9d7dd9 (patch)
tree41445e70ff0c2088b7085f8ab606a6b6526f588b
parent78c2cc25d5537063ae3a6f94578e1db2bb9ba0b6 (diff)
downloadfuse-2f2ac2f8d3b2a6e137eb3262673c51e59f9d7dd9.tar.gz
Move flags to the front of struct fuse_operations
-rw-r--r--include/fuse.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/include/fuse.h b/include/fuse.h
index a23dadb..7761f7c 100644
--- a/include/fuse.h
+++ b/include/fuse.h
@@ -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
@@ -447,30 +471,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
*
* flags will have FUSE_IOCTL_COMPAT set for 32bit ioctls in