zed: Fix mpath autoreplace on Centos 7
commit515710a1e1a11c7d1aec28adac0c486eae4519f1
authorTony Hutter <hutter2@llnl.gov>
Fri, 18 Mar 2022 21:06:40 +0000 (18 14:06 -0700)
committerGitHub <noreply@github.com>
Fri, 18 Mar 2022 21:06:40 +0000 (18 14:06 -0700)
treebd7ed1ded4c7e03e186404d7aa41004e09219175
parentd42979c6ef1ec10b041c3394d969643f8862f7c3
zed: Fix mpath autoreplace on Centos 7

A prior commit included a udev check for MPATH_DEVICE_READY to
determine if a path was multipath when doing an autoreplace:

    f2f6c18 zed: Misc multipath autoreplace fixes

However, MPATH_DEVICE_READY is not provided by the older version of
udev that's on Centos 7 (it is on Centos 8).

This patch instead looks for 'mpath-' in the UUID, which works on
both Centos 7 and 8.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #13222
lib/libzutil/os/linux/zutil_device_path_os.c