diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-20 15:45:32 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-20 15:45:32 -0700 |
commit | 1d9f26f3736cc4703c2e988d87f5dd119bcd736d (patch) | |
tree | a2e7aabb5ce872585d0005eed196de9c0fdb029c /include/fuse.h | |
parent | 8ee553dac0297cfd75cbdd2d9cfdce37e22ef4ee (diff) | |
download | libfuse-1d9f26f3736cc4703c2e988d87f5dd119bcd736d.tar.gz |
Turn fuse_operations.nopath_flag into fuse_config.nullpath_ok
Modifying struct fuse_config in the init() handler is the canonical way
to adjust file-system implementation specific settings. There is no need
to have flags in struct fuse_operations.
Diffstat (limited to 'include/fuse.h')
-rw-r--r-- | include/fuse.h | 38 |
1 files changed, 13 insertions, 25 deletions
diff --git a/include/fuse.h b/include/fuse.h index 3c13c14..e8ff936 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -244,13 +244,25 @@ struct fuse_config { double ac_attr_timeout; /** + * If this option is given the file-system handlers for the + * following operations will not receive path information: + * read, write, flush, release, fsync, readdir, releasedir, + * fsyncdir, lock, ioctl and poll. + * + * For the truncate, getattr, chmod, chown and utimens + * operations the path will be provided only if the file is + * not currently open (i.e., when the struct fuse_file_info + * argument is NULL). + */ + int nullpath_ok; + + /** * The remaining options are used by libfuse internally and * should not be touched. */ int show_help; char *modules; int debug; - int nopath; }; @@ -277,30 +289,6 @@ struct fuse_config { * 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, lock, ioctl and poll - * - * For the following operations, the path will not be - * calculated only if the file is currently open (i.e., the - * struct fuse_file_info argument is non-NULL): - * - * truncate, getattr, chmod, chown, utimens - * - * 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; - - /** - * Reserved flags, don't set - */ - unsigned int flag_reserved:31; - /** Get file attributes. * * Similar to stat(). The 'st_dev' and 'st_blksize' fields are |