summaryrefslogtreecommitdiffstats
path: root/tdeioslave/media/mediamanager
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-01-31 17:45:22 +0100
committerSlávek Banko <slavek.banko@axis.cz>2016-01-31 17:45:22 +0100
commit8d53affe8e249450df8263a0e9a32b4bf9dc4134 (patch)
tree13562fe81968201c869b93d6f6589cdac5431e14 /tdeioslave/media/mediamanager
parent90bad2e8140e362df33ea371ab28f128359e90cb (diff)
downloadtdebase-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>
Diffstat (limited to 'tdeioslave/media/mediamanager')
-rw-r--r--tdeioslave/media/mediamanager/tdehardwarebackend.cpp3
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 {