diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2010-06-15 17:55:37 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2010-06-15 17:55:37 +0000 |
commit | ca14187b22fb3551f049969da69c0ce33e4d35e4 (patch) | |
tree | 3309fb5466b887872eda7635f6b4ce158cc8039c /include | |
parent | aebdeefa64b76db225e4bf23f4d07a8169a7c0c3 (diff) | |
download | android_external_fuse-ca14187b22fb3551f049969da69c0ce33e4d35e4.tar.gz android_external_fuse-ca14187b22fb3551f049969da69c0ce33e4d35e4.tar.bz2 android_external_fuse-ca14187b22fb3551f049969da69c0ce33e4d35e4.zip |
* Add a nopath option and flag, indicating that path argument
need not be calculated for the following operations: read, write,
flush, release, fsync, readdir, releasedir, fsyncdir, ftruncate,
fgetattr, lock, ioctl and poll.
Diffstat (limited to 'include')
-rw-r--r-- | include/fuse.h | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/include/fuse.h b/include/fuse.h index 7429922..51ccb89 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -449,18 +449,35 @@ struct fuse_operations { int (*bmap) (const char *, size_t blocksize, uint64_t *idx); /** - * Flag indicating, that the filesystem can accept a NULL path + * 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 + * fsyncdir, ftruncate, fgetattr, lock, ioctl and poll + * + * If this flag is set these operations continue to work on + * unlinked files even if "-ohard_remove" option was specified. + */ + unsigned int flag_nullpath_ok:1; + + /** + * 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 + * + * Closely related to flag_nullpath_ok, but 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_nullpath_ok : 1; + unsigned int flag_nopath:1; /** * Reserved flags, don't set */ - unsigned int flag_reserved : 31; + unsigned int flag_reserved:30; /** * Ioctl |