Hide underlying partitions of non-active device mapper devices from the media:/ tdeioslave

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/2/head
Slávek Banko 8 years ago
parent 90bad2e814
commit 8d53affe8e

@ -171,7 +171,8 @@ 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 if (sdevice->checkDiskStatus(TDEDiskDeviceStatus::UsedByDevice)
|| (sdevice->fileSystemUsage().upper() == "RAID")) {
//
}
else {

Loading…
Cancel
Save