From 7018d7178e366146881d693e0159e13307e888ee Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Wed, 18 Jul 2012 15:50:35 -0700 Subject: 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 Reviewed-on: http://review.gluster.com/3696 Tested-by: Gluster Build System Reviewed-by: Brian Foster --- libglusterfs/src/glusterfs.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libglusterfs') diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h index d14666fb6..5bd5d5437 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; -- cgit