mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-25 14:05:18 +00:00
mpath: Update path in CheckPool function
https://bugzilla.redhat.com/show_bug.cgi?id=1230664 Per the devmapper docs, use "/dev/mapper" or "/dev/dm-n" in order to determine if a device is under control of DM Multipath. So add "/dev/mapper" to the virFileExists, leaving the "/dev/mpath" as a "legacy" option since it appears for a while it was the preferred mechanism, but is no longer maintained
This commit is contained in:
parent
c79ebf53b5
commit
dbad001899
@ -248,7 +248,8 @@ static int
|
|||||||
virStorageBackendMpathCheckPool(virStoragePoolObjPtr pool ATTRIBUTE_UNUSED,
|
virStorageBackendMpathCheckPool(virStoragePoolObjPtr pool ATTRIBUTE_UNUSED,
|
||||||
bool *isActive)
|
bool *isActive)
|
||||||
{
|
{
|
||||||
*isActive = virFileExists("/dev/mpath");
|
*isActive = virFileExists("/dev/mapper") ||
|
||||||
|
virFileExists("/dev/mpath");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user