]> git.ipfire.org Git - thirdparty/mdadm.git/commit
fix: Allowed to assemble 2 volumes with the same names from config file.
authorLukasz Orlowski <lukasz.orlowski@intel.com>
Mon, 7 Nov 2011 01:20:34 +0000 (12:20 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 7 Nov 2011 01:20:34 +0000 (12:20 +1100)
commit7c3367585ec04e249dca1d6e64afcb2be9723a9b
treecfcb56337396111fb6cfe62f6fdde590f8fe21da
parent4584621ab439f009d7f6a3e61b7cc91c0374065f
fix: Allowed to assemble 2 volumes with the same names from config file.

mdadm allowes to assemble 2 volumes with the same names based on the
config file. The issue is fixed by iterating over the list of md device
identifiers and comparing the names of md devices against each other,
detecting identical names and blocking the assembly should the same names
be found.
Now having detected duplicate names, mdadm terminates without assembling
the container, displaying appropriate prompt.

Signed-off-by: Lukasz Orlowski <lukasz.orlowski@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
config.c
mdadm.c
mdadm.h