libfuse: allow disabling adaptive readdirplus
authorEric Wong <normalperson@yhbt.net>
Thu, 7 Feb 2013 02:52:41 +0000 (02:52 +0000)
committerMiklos Szeredi <mszeredi@suse.cz>
Thu, 7 Feb 2013 13:59:28 +0000 (14:59 +0100)
commitc66e7f4e71a10e0a06d903d11acad8cc6b99c16a
tree811911c9279e6d55152d0c2e03fd91970e2219a6
parent1bea285a3a586c97597b1f690f14051ff63f3f0b
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
include/fuse_kernel.h
lib/fuse_i.h
lib/fuse_lowlevel.c