storage: When fs_mount_volume returns < 0, it's a status_t.
The "mount" command which calls fs_mount_volume direclty handled this properly, but this class did not; which meant that user-visible error messages about partitions failing to mount just said "general system error" instead of the real one. Fixes #14540.
This commit is contained in:
@@ -572,7 +572,7 @@ BPartition::Mount(const char* mountPoint, uint32 mountFlags,
|
|||||||
if (device >= 0)
|
if (device >= 0)
|
||||||
return Device()->Update();
|
return Device()->Update();
|
||||||
|
|
||||||
return B_ERROR;
|
return device;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user