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:
parent
d6bc0fdbdb
commit
906af5f58c
|
@ -572,7 +572,7 @@ BPartition::Mount(const char* mountPoint, uint32 mountFlags,
|
|||
if (device >= 0)
|
||||
return Device()->Update();
|
||||
|
||||
return B_ERROR;
|
||||
return device;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue