diff options
author | Anand Avati <avati@redhat.com> | 2012-07-18 15:50:35 -0700 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-07-19 09:05:30 -0700 |
commit | 7018d7178e366146881d693e0159e13307e888ee (patch) | |
tree | 811ae5e3eb754bba1c6a30d37fa0ee3e87141a99 /libglusterfs | |
parent | 00bd49b6c97b6b81fa55be3dc49459080d7c3b1b (diff) |
fuse-bridge: expose negative entry caching of FUSE
Fuse kernel module supports caching negative entries, enabled
by specifying a timeout while returning ENOENT to lookup. This
patch enables the functionality to be enabled with the command
line.
Also fixed a typo bug in mount.glusterfs.in.
Change-Id: I47eab2834cca9a05887266358afbf504bbb4c489
BUG: 841417
Signed-off-by: Anand Avati <avati@redhat.com>
Reviewed-on: http://review.gluster.com/3696
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/glusterfs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h index d14666fb63d..5bd5d5437fe 100644 --- a/libglusterfs/src/glusterfs.h +++ b/libglusterfs/src/glusterfs.h @@ -66,6 +66,7 @@ #define ZR_MOUNTPOINT_OPT "mountpoint" #define ZR_ATTR_TIMEOUT_OPT "attribute-timeout" #define ZR_ENTRY_TIMEOUT_OPT "entry-timeout" +#define ZR_NEGATIVE_TIMEOUT_OPT "negative-timeout" #define ZR_DIRECT_IO_OPT "direct-io-mode" #define ZR_STRICT_VOLFILE_CHECK "strict-volfile-check" #define ZR_DUMP_FUSE "dump-fuse" @@ -293,6 +294,7 @@ struct _cmd_args { int fuse_direct_io_mode; int volfile_check; double fuse_entry_timeout; + double fuse_negative_timeout; double fuse_attribute_timeout; char *volume_name; int fuse_nodev; |