The B_DISK_DEVICE_IS_FILE flag is cleared by KDiskDevice and needs to be reset.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33383 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2009-10-01 03:04:32 +00:00
parent 80ea5e3508
commit 3c4721f516

View File

@ -89,7 +89,16 @@ KFileDiskDevice::SetTo(const char *filePath, const char *devicePath)
error = set_string(fFilePath, filePath);
if (error != B_OK)
return error;
return KDiskDevice::SetTo(devicePath);
error = KDiskDevice::SetTo(devicePath);
if (error != B_OK)
return error;
// reset the B_DISK_DEVICE_IS_FILE flag -- KDiskDevice::SetTo() has cleared
// it
SetDeviceFlags(DeviceFlags() | B_DISK_DEVICE_IS_FILE);
return B_OK;
}
// Unset