]> git.ipfire.org Git - thirdparty/mdadm.git/commit
policy: support devices with multiple paths.
authorNeilBrown <neilb@suse.com>
Fri, 9 Nov 2018 06:12:33 +0000 (17:12 +1100)
committerJes Sorensen <jsorensen@fb.com>
Thu, 6 Dec 2018 12:43:19 +0000 (07:43 -0500)
commitcd72f9d114da206baa01fd56ff2d8ffcc08f3239
treee25e7196fe543444bf0acc76b46d4e9a21e82439
parent6b6112842030309c297a521918d1a2e982426fa3
policy: support devices with multiple paths.

As new releases of Linux some time change the name of
a path, some distros keep "legacy" names as well.  This
is useful, but confuses mdadm which assumes each device has
precisely one path.

So change this assumption:  allow a disk to have several
paths, and allow any to match when looking for a policy
which matches a disk.

Reported-and-tested-by: Mariusz Tkaczyk <mariusz.tkaczyk@intel.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Incremental.c
mdadm.h
policy.c