btrfs: log executed command on failures
Having the complete command printed out makes debuging easier. Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
6cdcf65a2c
commit
70c480b9f1
@ -226,7 +226,7 @@ sub btrfs_cmd {
|
|||||||
} else {
|
} else {
|
||||||
$func = sub { $msg .= "$_[0]\n" };
|
$func = sub { $msg .= "$_[0]\n" };
|
||||||
}
|
}
|
||||||
run_command(['btrfs', '-q', @$cmd], errmsg => 'btrfs error', outfunc => $func);
|
run_command(['btrfs', '-q', @$cmd], errmsg => "command 'btrfs @$cmd' failed", outfunc => $func);
|
||||||
|
|
||||||
return $msg;
|
return $msg;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user