Refactor
This commit is contained in:
parent
6b8c205916
commit
f86db75948
@ -327,7 +327,7 @@ int CryFuse::access(const path &path, int mask) {
|
|||||||
int CryFuse::create(const path &path, mode_t mode, fuse_file_info *fileinfo) {
|
int CryFuse::create(const path &path, mode_t mode, fuse_file_info *fileinfo) {
|
||||||
//printf("create(%s, %d, _)\n", path.c_str(), mode);
|
//printf("create(%s, %d, _)\n", path.c_str(), mode);
|
||||||
try {
|
try {
|
||||||
fileinfo->fh = _device->createFile(path, mode);
|
fileinfo->fh = _device->createAndOpenFile(path, mode);
|
||||||
return 0;
|
return 0;
|
||||||
} catch (CryErrnoException &e) {
|
} catch (CryErrnoException &e) {
|
||||||
return -e.getErrno();
|
return -e.getErrno();
|
||||||
|
Loading…
Reference in New Issue
Block a user