Commit 2b8b89c
committed
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 <[email protected]>
Signed-off-by: Tony Hutter <[email protected]>
Closes #132221 parent 90abfdf commit 2b8b89c
1 file changed
+4
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
616 | | - | |
617 | | - | |
| 616 | + | |
618 | 617 | | |
619 | 618 | | |
620 | 619 | | |
621 | 620 | | |
622 | 621 | | |
623 | 622 | | |
624 | | - | |
| 623 | + | |
625 | 624 | | |
626 | 625 | | |
627 | 626 | | |
628 | 627 | | |
629 | 628 | | |
630 | | - | |
631 | 629 | | |
632 | 630 | | |
633 | 631 | | |
634 | | - | |
635 | | - | |
636 | | - | |
| 632 | + | |
| 633 | + | |
637 | 634 | | |
638 | 635 | | |
639 | 636 | | |
| |||
0 commit comments