From 9aaa10700b4c60fa04979b8c473ca86ad6cb975f Mon Sep 17 00:00:00 2001 From: koraynilay Date: Sat, 4 Oct 2025 17:27:32 +0200 Subject: [PATCH] btrfs-progs: convert: print target fs label when using -L/--copy-label Signed-off-by: koraynilay --- convert/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert/main.c b/convert/main.c index e279e3d40..02677070d 100644 --- a/convert/main.c +++ b/convert/main.c @@ -1250,7 +1250,7 @@ static int do_convert(const char *devname, u32 convert_flags, u32 nodesize, uuid_unparse(cctx.fs_uuid, fsid_str); printf(" UUID: %s\n", fsid_str); printf("Target filesystem:\n"); - printf(" Label: %s\n", fslabel); + printf(" Label: %s\n", (convert_flags & CONVERT_FLAG_COPY_LABEL) ? cctx.label : fslabel); printf(" Blocksize: %u\n", blocksize); printf(" Nodesize: %u\n", nodesize); printf(" UUID: %s\n", mkfs_cfg.fs_uuid);