Loading fs/src/fuse_ops/directory.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -84,7 +84,7 @@ int adafs_readdir(const char* p, void* buf, fuse_fill_dir_t filler, off_t offset // visualizing current and parent dir filler(buf, ".", nullptr, 0, FUSE_FILL_DIR_PLUS); filler(buf, "..", nullptr, 0, FUSE_FILL_DIR_PLUS); for (auto& dentry : *dentries) { for (const auto& dentry : *dentries) { // XXX I have no idea what the last parameter really does... ADAFS_DATA->logger->debug("readdir entries: dentry: {}", dentry); filler(buf, dentry.c_str(), nullptr, 0, FUSE_FILL_DIR_PLUS); Loading fs/src/main.h +1 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ struct adafs_data { #define ADAFS_ROOT_INODE 1 namespace util { boost::filesystem::path adafs_fullpath(const std::string& path); bfs::path adafs_fullpath(const std::string& path); int init_inode_no(); Loading fs/src/util.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ namespace util { ino_t generate_inode_no() { std::lock_guard<std::mutex> inode_lock(ADAFS_DATA->inode_mutex); return (ino_t) ++ADAFS_DATA->inode_count; return static_cast<ino_t>(++ADAFS_DATA->inode_count); } // XXX error handling Loading Loading
fs/src/fuse_ops/directory.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -84,7 +84,7 @@ int adafs_readdir(const char* p, void* buf, fuse_fill_dir_t filler, off_t offset // visualizing current and parent dir filler(buf, ".", nullptr, 0, FUSE_FILL_DIR_PLUS); filler(buf, "..", nullptr, 0, FUSE_FILL_DIR_PLUS); for (auto& dentry : *dentries) { for (const auto& dentry : *dentries) { // XXX I have no idea what the last parameter really does... ADAFS_DATA->logger->debug("readdir entries: dentry: {}", dentry); filler(buf, dentry.c_str(), nullptr, 0, FUSE_FILL_DIR_PLUS); Loading
fs/src/main.h +1 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ struct adafs_data { #define ADAFS_ROOT_INODE 1 namespace util { boost::filesystem::path adafs_fullpath(const std::string& path); bfs::path adafs_fullpath(const std::string& path); int init_inode_no(); Loading
fs/src/util.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ namespace util { ino_t generate_inode_no() { std::lock_guard<std::mutex> inode_lock(ADAFS_DATA->inode_mutex); return (ino_t) ++ADAFS_DATA->inode_count; return static_cast<ino_t>(++ADAFS_DATA->inode_count); } // XXX error handling Loading