]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdmon: allow --takeover when original was started with --offroot
authorNeilBrown <neilb@suse.de>
Mon, 20 Aug 2012 00:37:21 +0000 (10:37 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 20 Aug 2012 00:37:21 +0000 (10:37 +1000)
commita99d3469713138f050cccb8657c24a05ffa7057e
treece4ffd9448c2e471bf915aa69f0001cfca0e0ec1
parentbcd2b4485a373943e8c618aba6ba87846356e73e
mdmon: allow --takeover when original was started with --offroot

As --offroot causes ARGV[0] to be changed, we need to be more
lenient when checking that the mdmon we are about to kill really
is mdmon.  i.e. allow name to be "@dmon" instead.

Signed-off-by: NeilBrown <neilb@suse.de>
mdmon.c