Set hotpluggable flag for flash disks instead of removable

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit f8fbb3bd78)
pull/16/head
Slávek Banko 9 years ago
parent 9b33264c99
commit 762f90beac

@ -2664,7 +2664,7 @@ void TDEHardwareDevices::updateExistingDeviceInformation(TDEGenericDevice* exist
|| (disktype & TDEDiskDeviceType::SDMMC)) || (disktype & TDEDiskDeviceType::SDMMC))
&& !(diskstatus & TDEDiskDeviceStatus::Removable) && !(diskstatus & TDEDiskDeviceStatus::Removable)
&& !(diskstatus & TDEDiskDeviceStatus::Hotpluggable)) { && !(diskstatus & TDEDiskDeviceStatus::Hotpluggable)) {
diskstatus = diskstatus | TDEDiskDeviceStatus::Removable; diskstatus = diskstatus | TDEDiskDeviceStatus::Hotpluggable;
} }
if ((filesystemtype.upper() != "CRYPTO_LUKS") && (filesystemtype.upper() != "CRYPTO") && (filesystemtype.upper() != "SWAP") && (!filesystemtype.isNull())) { if ((filesystemtype.upper() != "CRYPTO_LUKS") && (filesystemtype.upper() != "CRYPTO") && (filesystemtype.upper() != "SWAP") && (!filesystemtype.isNull())) {

Loading…
Cancel
Save