]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Manage.c
Don't remove md devices with standard names.
authorNeilBrown <neilb@suse.de>
Tue, 31 Aug 2010 05:21:40 +0000 (15:21 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 31 Aug 2010 05:21:40 +0000 (15:21 +1000)
commitb1702f4826e29419fa368fe63dca38422a01fc7e
tree45a076f9c2d93182f478f3c2a13bd400ad641ca4
parent6df6a774bff2fc6e2ab3f4092620ab7657c984aa
Don't remove md devices with standard names.

If udev is not in use, we create device in /dev when assembling
arrays and remove them when stopping the array.

However it may not always be correct to remove the device.  If
the array was started with kernel auto-detect, them mdadm didn't
create anything and so shouldn't remove anything.

We don't record whether we created things, so just don't remove
anything with a 'standard' name.  Only remove symlinks to the
standard name as we almost certainly created those.

Reported-by: Petre Rodan <petre.rodan@avira.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Manage.c