* Inode::Create() should also better check if creating the file cache succeeded.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35273 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2679,6 +2679,9 @@ Inode::Create(Transaction& transaction, Inode* parent, const char* name,
|
|||||||
inode->Size()));
|
inode->Size()));
|
||||||
inode->SetMap(file_map_create(volume->ID(), inode->ID(),
|
inode->SetMap(file_map_create(volume->ID(), inode->ID(),
|
||||||
inode->Size()));
|
inode->Size()));
|
||||||
|
|
||||||
|
if (inode->FileCache() == NULL || inode->Map() == NULL)
|
||||||
|
return B_NO_MEMORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Everything worked well until this point, we have a fully
|
// Everything worked well until this point, we have a fully
|
||||||
|
|||||||
Reference in New Issue
Block a user