From 96f718bb7eeb9e2047223efc7b30cbc0ec8b0ded Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 12 Jul 2014 17:12:30 -0500 Subject: Fix accidental reversion of commit 0702f6 --- tdeioslave/media/mediamanager/tdehardwarebackend.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tdeioslave/media') diff --git a/tdeioslave/media/mediamanager/tdehardwarebackend.cpp b/tdeioslave/media/mediamanager/tdehardwarebackend.cpp index 08bde4d9e..0252fb114 100644 --- a/tdeioslave/media/mediamanager/tdehardwarebackend.cpp +++ b/tdeioslave/media/mediamanager/tdehardwarebackend.cpp @@ -152,7 +152,13 @@ void TDEBackend::AddDevice(TDEStorageDevice * sdevice, bool allowNotification) && !(sdevice->isDiskOfType(TDEDiskDeviceType::CDAudio)) && !(sdevice->checkDiskStatus(TDEDiskDeviceStatus::Blank)) ) { - // + // + } + /* 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 -- cgit v1.2.1