diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2008-02-08 17:22:15 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2008-02-08 17:22:15 +0000 |
commit | 30ece080006087a7e615cce3f7fc51b6d8a5d5bf (patch) | |
tree | 5d60a4679f82a1bb941356278d87abe2b9560d1b /include | |
parent | b20d88bbbc6e5ae67f0c99595859fd653949a3aa (diff) |
Support receiving file handle from kernel in GETATTR request; Allow operations with a NULL path argument, if the filesystem supports it
Diffstat (limited to 'include')
-rw-r--r-- | include/fuse.h | 14 | ||||
-rw-r--r-- | include/fuse_common.h | 2 |
2 files changed, 15 insertions, 1 deletions
diff --git a/include/fuse.h b/include/fuse.h index b7708c7..384a7b4 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -423,6 +423,20 @@ struct fuse_operations { * Introduced in version 2.6 */ int (*bmap) (const char *, size_t blocksize, uint64_t *idx); + + /** + * Flag indicating, that the filesystem can accept a NULL path + * as the first argument for the following operations: + * + * read, write, flush, release, fsync, readdir, releasedir, + * fsyncdir, ftruncate, fgetattr and lock + */ + unsigned int flag_nullpath_ok : 1; + + /** + * Reserved flags, don't set + */ + unsigned int flag_reserved : 31; }; /** Extra context that may be needed by some filesystems diff --git a/include/fuse_common.h b/include/fuse_common.h index 8d4ba2b..5f50d60 100644 --- a/include/fuse_common.h +++ b/include/fuse_common.h @@ -22,7 +22,7 @@ #define FUSE_MAJOR_VERSION 2 /** Minor version of FUSE library interface */ -#define FUSE_MINOR_VERSION 7 +#define FUSE_MINOR_VERSION 8 #define FUSE_MAKE_VERSION(maj, min) ((maj) * 10 + (min)) #define FUSE_VERSION FUSE_MAKE_VERSION(FUSE_MAJOR_VERSION, FUSE_MINOR_VERSION) |