|
|
@ -2631,6 +2631,10 @@ void TDEHardwareDevices::updateExistingDeviceInformation(TDEGenericDevice* exist
|
|
|
|
if (filesystemtype.upper() == "SWAP") {
|
|
|
|
if (filesystemtype.upper() == "SWAP") {
|
|
|
|
diskstatus = diskstatus & ~TDEDiskDeviceStatus::Mountable;
|
|
|
|
diskstatus = diskstatus & ~TDEDiskDeviceStatus::Mountable;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Partition tables cannot be mounted
|
|
|
|
|
|
|
|
if (TQString(udev_device_get_property_value(dev, "ID_PART_TABLE_TYPE")) != "") {
|
|
|
|
|
|
|
|
diskstatus = diskstatus & ~TDEDiskDeviceStatus::Mountable;
|
|
|
|
|
|
|
|
}
|
|
|
|
// If certain disk types do not report the presence of a filesystem, they are likely not mountable
|
|
|
|
// If certain disk types do not report the presence of a filesystem, they are likely not mountable
|
|
|
|
if ((disktype & TDEDiskDeviceType::HDD) || (disktype & TDEDiskDeviceType::Optical)) {
|
|
|
|
if ((disktype & TDEDiskDeviceType::HDD) || (disktype & TDEDiskDeviceType::Optical)) {
|
|
|
|
if (!(diskstatus & TDEDiskDeviceStatus::ContainsFilesystem)) {
|
|
|
|
if (!(diskstatus & TDEDiskDeviceStatus::ContainsFilesystem)) {
|
|
|
|