marsadm: early abort is-device-on when not designated primary

This commit is contained in:
Thomas Schoebel-Theuer 2014-01-15 11:19:58 +01:00
parent 6798580065
commit 4c94d82caa
1 changed files with 2 additions and 0 deletions

View File

@ -439,6 +439,8 @@ sub check_mars_device {
return;
}
# !$inv
my $primary = _get_designated_primary($res);
ldie "for operation '$cmd', I should be the designated primary\n" unless $primary eq $host;
while (! -e $dev) {
my $text = get_error_text($cmd, $res);
lprint $text if $text;