Added potential log message for rmdir

This commit is contained in:
Sebastian Messmer 2015-09-29 18:48:59 +02:00
parent 6d8ffbb5bc
commit 188bbe0c6d

View File

@ -285,24 +285,28 @@ int Fuse::mkdir(const bf::path &path, mode_t mode) {
std::cerr << "AssertFailed in Fuse::mkdir: " << e.what() << std::endl;
return -EIO;
} catch(fspp::fuse::FuseErrnoException &e) {
std::cerr << "FuseError in Fuse::mkdir: "<<e.what() << std::endl;
return -e.getErrno();
}
}
int Fuse::unlink(const bf::path &path) {
//printf("unlink(%s)\n", path.c_str());
printf("unlink(%s)\n", path.c_str());
try {
_fs->unlink(path);
printf("unlink done\n");
return 0;
} catch(const cpputils::AssertFailed &e) {
std::cerr << "AssertFailed in Fuse::unlink: " << e.what() << std::endl;
return -EIO;
} catch(fspp::fuse::FuseErrnoException &e) {
std::cerr << "FuseError in Fuse::unlink: " << e.what() << std::endl;
return -e.getErrno();
}
}
int Fuse::rmdir(const bf::path &path) {
//printf("rmdir(%s)\n", path.c_str());
try {
_fs->rmdir(path);
return 0;