]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common: posix_fallocate on ZFS returns EINVAL
authorWillem Jan Withagen <wjw@digiware.nl>
Sun, 11 Feb 2018 21:06:46 +0000 (22:06 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Fri, 13 Apr 2018 07:26:54 +0000 (09:26 +0200)
commit1230e696c4424b1744db9972133a369a3fe2a996
tree7e9c7e109ef1b2b914db24c5b4334c53af435edb
parent34232b347bba241c8e33f6271192bb6b37e07650
common: posix_fallocate on ZFS returns EINVAL

But even still it would not work on any COW FS.
So reorganised the code to have a common routine
that in the end will allocate a file on disk if needed

FileStore would not build when there was no HAVE_POSIX_FALLOCATE
other than on Apple. With ceph_posix_fallocate FileStore will also
fallback to manually allocating the required file.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/CMakeLists.txt
src/common/compat.cc [new file with mode: 0644]
src/include/compat.h
src/os/bluestore/BlueStore.cc
src/os/filestore/FileJournal.cc