From c66e7f4e71a10e0a06d903d11acad8cc6b99c16a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 7 Feb 2013 02:52:41 +0000 Subject: libfuse: allow disabling adaptive readdirplus This switches the -o no_readdirplus option to a tristate string: -o readdirplus=(yes|no|auto) Telling the kernel to always use readdirplus is beneficial to filesystems (e.g. GlusterFS) where the cost to perform readdir and readdirplus are identical. The default remains "auto" (if supported). --- include/fuse_common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/fuse_common.h') diff --git a/include/fuse_common.h b/include/fuse_common.h index cb2d8cf..78d3ce4 100644 --- a/include/fuse_common.h +++ b/include/fuse_common.h @@ -118,6 +118,7 @@ struct fuse_file_info { #define FUSE_CAP_IOCTL_DIR (1 << 11) #define FUSE_CAP_AUTO_INVAL_DATA (1 << 12) #define FUSE_CAP_READDIRPLUS (1 << 13) +#define FUSE_CAP_READDIRPLUS_AUTO (1 << 14) /** * Ioctl flags -- cgit v1.2.3