[haiku-commits] Re: haiku: hrev48138 - headers/private/kernel src/system/kernel/disk_device_manager

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 29 Oct 2014 08:16:18 +0100

Am 28.10.2014 23:54, schrieb pulkomandy@xxxxxxxxxxxxx:
+       if (partition->IsMounted() || partition->IsChildMounted())
+               return B_BAD_DATA;

Nice change, but B_BAD_DATA is not the error code I would expect here; there is hopefully no data corruption.
Either B_BAD_VALUE, or B_BUSY (I'd prefer the latter).

Bye,
   Axel.


Other related posts: