mirror of
https://github.com/schoebel/mars
synced 2024-12-22 14:42:58 +00:00
marsadm: better warning for device fallback
This commit is contained in:
parent
7597ffa6ca
commit
47556d4317
@ -332,6 +332,13 @@ sub device_exists {
|
|||||||
if ($peer eq $real_host) {
|
if ($peer eq $real_host) {
|
||||||
lwarn "Unexpected fallback to local device detection $name for $peer\n";
|
lwarn "Unexpected fallback to local device detection $name for $peer\n";
|
||||||
$val = (-b $name) ? 1 : 0;
|
$val = (-b $name) ? 1 : 0;
|
||||||
|
my $pre_txt = "Unexpected fallback result: device '$name' is";
|
||||||
|
if ($val) {
|
||||||
|
my $ls = `ls -ld $name`;
|
||||||
|
lwarn "$pre_txt present as $ls\n";
|
||||||
|
} else {
|
||||||
|
lwarn "$pre_txt NOT locally present\n";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
lwarn "Cannot determine device presence for $peer\n";
|
lwarn "Cannot determine device presence for $peer\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user