aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2023-12-04 22:01:48 +0100
committerDavid Sterba <dsterba@suse.com>2023-12-05 17:08:42 +0100
commit5c91264d2dfc07c0e6e20f4168d7d7853047e2a9 (patch)
treee3d46405499a82f997bfc9b3ed5316eca2960614
parent8b9684f9653dfcfa3421068820027161e194c5a1 (diff)
downloadbtrfs-progs-5c91264d2dfc07c0e6e20f4168d7d7853047e2a9.tar.gz
btrfs-progs: subvol delete: print the id of the deleted subvolume
Currently the path of deleted subvolume is printed, we should also print the numeric id as it's another identifier commonly found and can be used for a cross reference. In connection with the qgroup deletion it's making the output clear: ... Delete subvolume 258 (no-commit): '/mnt/subv1' Delete qgroup 0/258 ... Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--cmds/subvolume.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds/subvolume.c b/cmds/subvolume.c
index 95044eb1..0c34c30d 100644
--- a/cmds/subvolume.c
+++ b/cmds/subvolume.c
@@ -510,7 +510,8 @@ again:
goto out;
}
- pr_verbose(LOG_DEFAULT, "Delete subvolume (%s): ",
+ pr_verbose(LOG_DEFAULT, "Delete subvolume %" PRIu64 " (%s): ",
+ target_subvol_id,
commit_mode == COMMIT_EACH ||
(commit_mode == COMMIT_AFTER && cnt + 1 == argc) ?
"commit" : "no-commit");