tdehwlib: Fix the flag setting whether the storage device contains the file system.

This resolves bug 2232, bug 2607 and bug 2946.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit dfe3c9649f)
r14.0.x
Slávek Banko 6 years ago
parent 33c3818ac5
commit 9ce98047ff
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -2697,7 +2697,7 @@ void TDEHardwareDevices::updateExistingDeviceInformation(TDEGenericDevice* exist
diskstatus = diskstatus | TDEDiskDeviceStatus::Hotpluggable; 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.isEmpty())) {
diskstatus = diskstatus | TDEDiskDeviceStatus::ContainsFilesystem; diskstatus = diskstatus | TDEDiskDeviceStatus::ContainsFilesystem;
} }
else { else {

Loading…
Cancel
Save