]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore/bluestore_tool: use boost::filesystem as an alternative
authorKefu Chai <kchai@redhat.com>
Fri, 21 May 2021 04:10:50 +0000 (04:10 +0000)
committerKefu Chai <kchai@redhat.com>
Fri, 21 May 2021 10:51:00 +0000 (18:51 +0800)
commit9dedabde520907f99727edf9f916ebb55ccdaa87
treea03332a8fc612d6b1719d71f3e7ec0cf4f7d7dfc
parentd4c65a368c9cf35e01604fc3321f867cbe3e4109
os/bluestore/bluestore_tool: use boost::filesystem as an alternative

the libstdc++ shipped with GCC 7.5 does not have good support of
std::filesystem, among other things, it does not offer
std::filesystem::weakly_canonical(). but boost::filesystem does.
and boost::filesystem is compatible with std::filesystem to some
degree. so let's use it if <filesystem> is not available, we can
take it as a signal that std::filesystem is not quite ready yet.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/os/CMakeLists.txt
src/os/bluestore/bluestore_tool.cc