Loading ifs/src/daemon/adafs_daemon.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ bool init_environment() { ADAFS_DATA->blocks_state(MDATA_USE_BLOCKS); // Create metadentry for root directory try { create_metadentry(ADAFS_DATA->mountdir(), S_IFDIR | 777); create_metadentry("/", S_IFDIR | 777); } catch (const std::exception& e ) { ADAFS_DATA->spdlogger()->error("{}() Unable to write root metadentry to KV store: {}", __func__, e.what()); return false; Loading ifs/src/global/path_util.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ bool is_absolute_path(const std::string& path) { } bool has_trailing_slash(const std::string& path) { return (path.back() == PSP); return (path.size() > 1) && (path.back() == PSP); } /* Make an absolute path relative to a root path Loading Loading
ifs/src/daemon/adafs_daemon.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -76,7 +76,7 @@ bool init_environment() { ADAFS_DATA->blocks_state(MDATA_USE_BLOCKS); // Create metadentry for root directory try { create_metadentry(ADAFS_DATA->mountdir(), S_IFDIR | 777); create_metadentry("/", S_IFDIR | 777); } catch (const std::exception& e ) { ADAFS_DATA->spdlogger()->error("{}() Unable to write root metadentry to KV store: {}", __func__, e.what()); return false; Loading
ifs/src/global/path_util.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ bool is_absolute_path(const std::string& path) { } bool has_trailing_slash(const std::string& path) { return (path.back() == PSP); return (path.size() > 1) && (path.back() == PSP); } /* Make an absolute path relative to a root path Loading