[sheepdog] [PATCH v2] sheepfs: use 'big_writes' option only when the version of libfuse is equal or greater than 2.8.0
MORITA Kazutaka
morita.kazutaka at gmail.com
Wed Aug 28 17:37:33 CEST 2013
At Wed, 28 Aug 2013 17:00:36 +0800,
Robin Dong wrote:
>
> When using sheepfs on rhel5 environment, it will report:
>
> fuse: unknown option `big_writes'
>
> because the 'big_writes' option is only supported by libfuse with version >= 2.8.0.
>
> So we should use pkg-config to check version of libfuse.
>
> Signed-off-by: RobinDong <sanbai at taobao.com>
> ---
> configure.ac | 3 +++
> sheepfs/core.c | 2 ++
> 2 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 9e878f5..6ebd6a1 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -323,6 +323,9 @@ if test "x${enable_sheepfs}" = xyes; then
> [#define _FILE_OFFSET_BITS 64])
> AC_DEFINE_UNQUOTED([HAVE_SHEEPFS], 1, [have sheepfs])
> PACKAGE_FEATURES="$PACKAGE_FEATURES sheepfs"
> + if [[[ `pkg-config --modversion fuse|sed s/\\\.//g` -ge 280 ]]]; then
`pkg-config --exists 'fuse >= 2.8.0'` looks simpler.
Thanks,
Kazutaka
More information about the sheepdog
mailing list