]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mdadm.h
conditionally remove map_dev from find_free_devnum
authorNeilBrown <neilb@suse.de>
Sun, 6 Jan 2013 23:17:04 +0000 (10:17 +1100)
committerNeilBrown <neilb@suse.de>
Sun, 6 Jan 2013 23:17:04 +0000 (10:17 +1100)
commit06d2ffc3e266eea0cbd157ccc3e497c7b9f4bdd3
tree1d328642932691c9d1912a53062014ba5fea1c07
parent6d388a88163a8f532513e73dd035892ea8a8ead2
conditionally remove map_dev from find_free_devnum

map_dev can be slow so it is best to not call it when
not necessary.
The final test in "find_free_devnum" is not relevant when
udev is being used, so remove the test in that case.

Signed-off-by: NeilBrown <neilb@suse.de>
lib.c
mdadm.h
mdopen.c
util.c