]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephfs: make ceph_fallocate() platform independent 41580/head
authorSven Anderson <sven@redhat.com>
Thu, 27 May 2021 16:42:52 +0000 (18:42 +0200)
committerSven Anderson <sven@anderson.de>
Thu, 27 May 2021 19:20:56 +0000 (21:20 +0200)
commita297fb713419da7079225626b81dbc0e8444902f
treecbff89d455ff2415c909bca782a055a0959139be
parent9b4ae60d20b46768128f038031b937592574e493
cephfs: make ceph_fallocate() platform independent

Until now the implementation of Client::_fallocate() was depending on
the GNU/Linux specific mode flags FALLOC_FL_KEEP_SIZE and
FALLOC_FL_PUNCH_HOLE.  This is technically not necessary and prevents
user-space applications on non-Linux platforms to make use of
ceph_fallocate() without good reason.  This change defines the flags
with hard-coded values in case they have not been defined by system
headers.

Signed-off-by: Sven Anderson <sven@redhat.com>
src/client/Client.cc
src/include/cephfs/ceph_ll_client.h