GetDeviceWithID
status_t GetDeviceWithID(partition_id id,
if (roster.GetDeviceWithID(id, &device) == B_OK && device.IsFile()) {
} else if (roster.GetDeviceWithID(item->ID(), &device) == B_OK) {
} else if (fDDRoster.GetDeviceWithID(id, &device) == B_OK) {
} else if (fDDRoster.GetDeviceWithID(targetPartitionID, &device) == B_OK) {
} else if (fDDRoster.GetDeviceWithID(sourcePartitionID, &device) == B_OK) {
if (roster.GetDeviceWithID(id, &device) == B_OK
if (roster.GetDeviceWithID(id, &device) == B_OK && device.IsFile()) {
if (BDiskDeviceRoster().GetDeviceWithID(id, device) == B_OK) {
status_t error = roster.GetDeviceWithID(id, &device);