Skip to content

Commit 03b0d70

Browse files
koraynilaykdave
authored andcommitted
btrfs-progs: convert: print target fs label when using -L/--copy-label
I noticed that when using btrfs-convert with -L/--copy-label it doesn't show the target label in the starting recap and I think it would be useful (or at least, I expected it to show it). Pull-request: #1042 Signed-off-by: koraynilay <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 1c7b11c commit 03b0d70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

convert/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,7 @@ static int do_convert(const char *devname, u32 convert_flags, u32 nodesize,
12501250
uuid_unparse(cctx.fs_uuid, fsid_str);
12511251
printf(" UUID: %s\n", fsid_str);
12521252
printf("Target filesystem:\n");
1253-
printf(" Label: %s\n", fslabel);
1253+
printf(" Label: %s\n", (convert_flags & CONVERT_FLAG_COPY_LABEL) ? cctx.label : fslabel);
12541254
printf(" Blocksize: %u\n", blocksize);
12551255
printf(" Nodesize: %u\n", nodesize);
12561256
printf(" UUID: %s\n", mkfs_cfg.fs_uuid);

0 commit comments

Comments
 (0)