mkdir
This commit is contained in:
parent
bfd7d20c8b
commit
c5e8c37588
@ -80,12 +80,14 @@ int CryFuse::mknod(const path &path, mode_t mode, dev_t rdev) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO
|
|
||||||
int CryFuse::mkdir(const path &path, mode_t mode) {
|
int CryFuse::mkdir(const path &path, mode_t mode) {
|
||||||
//printf("mkdir(%s, %d)\n", path.c_str(), mode);
|
//printf("mkdir(%s, %d)\n", path.c_str(), mode);
|
||||||
auto real_path = _device->RootDir() / path;
|
try {
|
||||||
int retstat = ::mkdir(real_path.c_str(), mode);
|
_device->mkdir(path, mode);
|
||||||
return errcode_map(retstat);
|
return 0;
|
||||||
|
} catch(cryfs::CryErrnoException &e) {
|
||||||
|
return -e.getErrno();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO
|
//TODO
|
||||||
|
Loading…
Reference in New Issue
Block a user