From ccf1880efa559c3f2d8b397c863504f9801a7e5e Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Tue, 15 Mar 2016 18:05:39 +0100 Subject: [PATCH] Do not filter out PED_DEVICE_UNKNOWN devices as if they were read-only. This is necessary because libparted still reports NVME devices as PED_DEVICE_UNKNOWN. --- src/plugins/libparted/libpartedbackend.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/plugins/libparted/libpartedbackend.cpp b/src/plugins/libparted/libpartedbackend.cpp index 1ea663e..0560f8d 100644 --- a/src/plugins/libparted/libpartedbackend.cpp +++ b/src/plugins/libparted/libpartedbackend.cpp @@ -432,7 +432,6 @@ QList LibPartedBackend::scanDevices(bool excludeReadOnly) continue; if (excludeReadOnly && ( pedDevice->type == PED_DEVICE_LOOP || - pedDevice->type == PED_DEVICE_UNKNOWN || pedDevice->read_only)) continue;