btrfs-progs: mkfs: print device uuid if set from command line
Print the device uuid in the summary in case it's specified on the command line, not always as it would be confusing and is not usually needed. Can be found in 'btrfs inspect-internal dump-super' as device_item.uuid . Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
3f27e60866
commit
d8032c3b8b
1 changed files with 2 additions and 0 deletions
|
@ -1964,6 +1964,8 @@ raid_groups:
|
|||
update_chunk_allocation(fs_info, &allocation);
|
||||
printf("Label: %s\n", label);
|
||||
printf("UUID: %s\n", mkfs_cfg.fs_uuid);
|
||||
if (dev_uuid[0] != 0)
|
||||
printf("Device UUID: %s\n", mkfs_cfg.dev_uuid);
|
||||
printf("Node size: %u\n", nodesize);
|
||||
printf("Sector size: %u\n", sectorsize);
|
||||
printf("Filesystem size: %s\n",
|
||||
|
|
Loading…
Reference in a new issue