diff options
author | Gregory Farnum <gfarnum@redhat.com> | 2020-04-22 07:08:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-22 07:08:15 +0200 |
commit | ce0845c5293c8a492a839523497e6aed85d9a256 (patch) | |
tree | 560e10ce20ccf566e4021296f950260358ab857a /src/include | |
parent | Merge pull request #34274 from ukernel/wip-44801 (diff) | |
parent | ceph-fuse: link to libfuse3 if fuse3 is installed (diff) | |
download | ceph-ce0845c5293c8a492a839523497e6aed85d9a256.tar.xz ceph-ce0845c5293c8a492a839523497e6aed85d9a256.zip |
Merge pull request #34531 from lxbsz/libfuse3
ceph-fuse: link to libfuse3 and pass `-o big_writes` to libfuse if libfuse < 3.0.0
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ceph_fuse.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/include/ceph_fuse.h b/src/include/ceph_fuse.h new file mode 100644 index 00000000000..45881930b87 --- /dev/null +++ b/src/include/ceph_fuse.h @@ -0,0 +1,32 @@ +// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- +// vim: ts=8 sw=2 smarttab +/* + * Ceph - scalable distributed file system + * + * Copyright (C) 2012 Inktank Storage, Inc. + * Copyright (C) 2014 Red Hat <contact@redhat.com> + * + * This is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software + * Foundation. See file COPYING. + */ +#ifndef CEPH_FUSE_H +#define CEPH_FUSE_H + +#define FUSE_USE_VERSION 30 +#include "acconfig.h" +#include <fuse.h> + +static inline int filler_compat(fuse_fill_dir_t filler, + void *buf, const char *name, + const struct stat *stbuf, + off_t off) +{ + return filler(buf, name, stbuf, off +#if FUSE_VERSION >= FUSE_MAKE_VERSION(3, 0) + , static_cast<enum fuse_fill_dir_flags>(0) +#endif + ); +} +#endif /* CEPH_FUSE_H */ |