mirror_zfs/lib/libzutil
Tony Hutter 515710a1e1
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
2022-03-18 14:06:40 -07:00
..
os zed: Fix mpath autoreplace on Centos 7 2022-03-18 14:06:40 -07:00
Makefile.am libtpool: -Wno-clobbered 2022-02-18 09:34:25 -08:00
zutil_device_path.c libzutil: add zfs_{base,dir}name() 2021-06-11 09:10:05 -07:00
zutil_import.c Rename fallthrough to zfs_fallthrough 2022-02-15 08:58:59 -08:00
zutil_import.h OpenZFS restructuring - libzutil 2019-10-03 10:20:44 -07:00
zutil_nicenum.c zed: Control NVMe fault LEDs 2021-11-09 16:50:18 -08:00
zutil_pool.c Add libzutil for libzfs or libzpool consumers 2018-11-05 11:22:33 -08:00