Loading src/client/fuse/fuse_client.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -333,7 +333,6 @@ write_handler(fuse_req_t req, fuse_ino_t ino, const char* buf, size_t size, static void create_handler(fuse_req_t req, fuse_ino_t parent, const char* name, mode_t mode, struct fuse_file_info* fi) { fuse_log(FUSE_LOG_DEBUG, "create handler \n"); auto* ud = udata(req); auto* parent_inode = get_inode(parent); if(!parent_inode) { Loading @@ -341,6 +340,7 @@ create_handler(fuse_req_t req, fuse_ino_t parent, const char* name, mode_t mode, return; } std::string path = get_path(parent_inode, name); fuse_log(FUSE_LOG_DEBUG, "create handler %s\n", path.c_str()); int rc = gkfs::syscall::gkfs_create(path, mode); int errno_bu = errno; if(rc == -1) { Loading @@ -359,7 +359,6 @@ create_handler(fuse_req_t req, fuse_ino_t parent, const char* name, mode_t mode, struct stat st; int sc = gkfs::syscall::gkfs_stat(path, &st); if(sc == -1) { fuse_log(FUSE_LOG_DEBUG, "thats why its not allowed \n"); fuse_reply_err(req, ENOENT); return; } Loading Loading
src/client/fuse/fuse_client.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -333,7 +333,6 @@ write_handler(fuse_req_t req, fuse_ino_t ino, const char* buf, size_t size, static void create_handler(fuse_req_t req, fuse_ino_t parent, const char* name, mode_t mode, struct fuse_file_info* fi) { fuse_log(FUSE_LOG_DEBUG, "create handler \n"); auto* ud = udata(req); auto* parent_inode = get_inode(parent); if(!parent_inode) { Loading @@ -341,6 +340,7 @@ create_handler(fuse_req_t req, fuse_ino_t parent, const char* name, mode_t mode, return; } std::string path = get_path(parent_inode, name); fuse_log(FUSE_LOG_DEBUG, "create handler %s\n", path.c_str()); int rc = gkfs::syscall::gkfs_create(path, mode); int errno_bu = errno; if(rc == -1) { Loading @@ -359,7 +359,6 @@ create_handler(fuse_req_t req, fuse_ino_t parent, const char* name, mode_t mode, struct stat st; int sc = gkfs::syscall::gkfs_stat(path, &st); if(sc == -1) { fuse_log(FUSE_LOG_DEBUG, "thats why its not allowed \n"); fuse_reply_err(req, ENOENT); return; } Loading