Hide underlying partitions/devices in use by device mapper and friends from the media:/ tdeioslave

pull/2/head
Timothy Pearson 10 years ago
parent d8bc25b05d
commit 119d2fdb65

@ -154,6 +154,12 @@ void TDEBackend::AddDevice(TDEStorageDevice * sdevice, bool allowNotification)
) {
//
}
/* We also don't display devices that underlie other devices;
/* e.g. the raw partition of a device mapper volume
*/
else if (sdevice->checkDiskStatus(TDEDiskDeviceStatus::UsedByDevice)) {
//
}
else {
// Create medium
Medium* medium = new Medium(sdevice->uniqueID(), driveUDIFromDeviceUID(sdevice->uniqueID()), "");

Loading…
Cancel
Save