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:34 +0100 |
commit | 8d23840b4d4ee6f7a33023ea2bc81cf7cf08c673 (patch) | |
tree | 3a8cdb5da99f3be45dd98a9368e020f9ddce151d | |
parent | e0f0d0936ffd3d57571453a0c3fce72a90be1dce (diff) | |
download | tdebase-8d23840b4d4ee6f7a33023ea2bc81cf7cf08c673.tar.gz tdebase-8d23840b4d4ee6f7a33023ea2bc81cf7cf08c673.zip |
Hide underlying partitions of non-active device mapper devices from the media:/ tdeioslave
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 8d53affe8e249450df8263a0e9a32b4bf9dc4134)
-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 a7c01d868..89eb42479 100644 --- a/tdeioslave/media/mediamanager/tdehardwarebackend.cpp +++ b/tdeioslave/media/mediamanager/tdehardwarebackend.cpp @@ -163,7 +163,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 { |