Add Hidden storage device attribute

This relates to Bug 2211
pull/16/head
Timothy Pearson 10 years ago
parent 777f25f20f
commit 7b66a28f37

@ -2497,6 +2497,10 @@ void TDEHardwareDevices::updateExistingDeviceInformation(TDEGenericDevice* exist
sdevice->internalSetDiskType(disktype);
device = classifyUnknownDeviceByExternalRules(dev, device, true); // Check external rules for possible subtype overrides
disktype = sdevice->diskType(); // The type can be overridden by an external rule
if (TQString(udev_device_get_property_value(dev, "UDISKS_IGNORE")) == "1") {
diskstatus = diskstatus | TDEDiskDeviceStatus::Hidden;
}
if ((disktype & TDEDiskDeviceType::CDROM)
|| (disktype & TDEDiskDeviceType::CDR)

@ -105,6 +105,7 @@ enum TDEDiskDeviceStatus {
UsesDevice = 0x00000020,
ContainsFilesystem = 0x00000040,
Hotpluggable = 0x00000080,
Hidden = 0x00000100,
Other = 0x80000000
};

Loading…
Cancel
Save