nfs4: Fix #9556: wrong error handling in CreateObject
This commit is contained in:
@@ -409,16 +409,16 @@ Inode::CreateObject(const char* name, const char* path, int mode, FileType type,
|
|||||||
uint64 fileID;
|
uint64 fileID;
|
||||||
FileHandle handle;
|
FileHandle handle;
|
||||||
|
|
||||||
status_t result = NFS4Inode::CreateObject(name, path, mode, type, &changeInfo,
|
status_t result = NFS4Inode::CreateObject(name, path, mode, type,
|
||||||
&fileID, &handle);
|
&changeInfo, &fileID, &handle);
|
||||||
if (result != B_OK)
|
if (result != B_OK)
|
||||||
return B_OK;
|
return result;
|
||||||
|
|
||||||
fFileSystem->Root()->MakeInfoInvalid();
|
fFileSystem->Root()->MakeInfoInvalid();
|
||||||
|
|
||||||
result = ChildAdded(name, fileID, handle);
|
result = ChildAdded(name, fileID, handle);
|
||||||
if (result != B_OK)
|
if (result != B_OK)
|
||||||
return B_OK;
|
return result;
|
||||||
|
|
||||||
fCache->Lock();
|
fCache->Lock();
|
||||||
if (fCache->Valid()) {
|
if (fCache->Valid()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user