Change error code for already mounted partition to B_BAD_VALUE.
As Axel pointed out, B_BAD_DATA is not the correct code here. B_BUSY could be used but I wantd a code different from the existing one for "partition already being initialized".
This commit is contained in:
parent
d1ae01d79b
commit
f26118f286
@ -1250,7 +1250,7 @@ _user_uninitialize_partition(partition_id partitionID, int32* _changeCounter)
|
||||
return B_BUSY;
|
||||
|
||||
if (partition->IsMounted() || partition->IsChildMounted())
|
||||
return B_BAD_DATA;
|
||||
return B_BAD_VALUE;
|
||||
|
||||
KDiskSystem* diskSystem = partition->DiskSystem();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user