Skip to content

Commit

Permalink
Ignore device mapper devices when scanning for SMART supporting devices.
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Theile <votdev@gmx.de>
  • Loading branch information
votdev committed Oct 16, 2021
1 parent a097dd9 commit b582397
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ class Smart extends \OMV\Rpc\ServiceAbstract {
]);
// Get all existing hard disks devices.
if (FALSE === ($devs = \OMV\System\Storage\StorageDevice::enumerate(
OMV_STORAGE_DEVICE_TYPE_ALL & ~(OMV_STORAGE_DEVICE_TYPE_LOOPDEVICE |
OMV_STORAGE_DEVICE_TYPE_SOFTWARERAID)))) {
OMV_STORAGE_DEVICE_TYPE_ALL & ~(OMV_STORAGE_DEVICE_TYPE_LOOPDEVICE |
OMV_STORAGE_DEVICE_TYPE_SOFTWARERAID |
OMV_STORAGE_DEVICE_TYPE_DEVICEMAPPER)))) {
throw new \OMV\Exception("Failed to get list of storage devices");
}
// Prepare result.
Expand Down

0 comments on commit b582397

Please sign in to comment.