diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-01-31 17:45:22 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-01-31 17:45:22 +0100 |
commit | 8d53affe8e249450df8263a0e9a32b4bf9dc4134 (patch) | |
tree | 13562fe81968201c869b93d6f6589cdac5431e14 | |
parent | 90bad2e8140e362df33ea371ab28f128359e90cb (diff) | |
download | tdebase-8d53affe8e249450df8263a0e9a32b4bf9dc4134.tar.gz tdebase-8d53affe8e249450df8263a0e9a32b4bf9dc4134.zip |
Hide underlying partitions of non-active device mapper devices from the media:/ tdeioslave
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r-- | tdeioslave/media/mediamanager/tdehardwarebackend.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tdeioslave/media/mediamanager/tdehardwarebackend.cpp b/tdeioslave/media/mediamanager/tdehardwarebackend.cpp index 8db7587c9..bd3a61af9 100644 --- a/tdeioslave/media/mediamanager/tdehardwarebackend.cpp +++ b/tdeioslave/media/mediamanager/tdehardwarebackend.cpp @@ -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 { |