From 70c480b9f1f09c1bc3428d4ce3632a1a0113e6e4 Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval Date: Tue, 9 Jul 2024 13:49:18 +0200 Subject: [PATCH] btrfs: log executed command on failures Having the complete command printed out makes debuging easier. Signed-off-by: Maximiliano Sandoval --- src/PVE/Storage/BTRFSPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/Storage/BTRFSPlugin.pm b/src/PVE/Storage/BTRFSPlugin.pm index 42815cb..c4b5bcd 100644 --- a/src/PVE/Storage/BTRFSPlugin.pm +++ b/src/PVE/Storage/BTRFSPlugin.pm @@ -226,7 +226,7 @@ sub btrfs_cmd { } else { $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; }