btrfs-progs: set fixed with for printing uuids of subvolumes
The tabular output format looks better if the empty uuids are aligned with the other. In the list output (now default) it's not that nice but the whole list format is not nice anyway. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
7b533f161c
commit
e4c6772f69
|
@ -1340,21 +1340,21 @@ static void print_subvolume_column(struct root_info *subv,
|
|||
strcpy(uuidparse, "-");
|
||||
else
|
||||
uuid_unparse(subv->uuid, uuidparse);
|
||||
printf("%s", uuidparse);
|
||||
printf("%-36s", uuidparse);
|
||||
break;
|
||||
case BTRFS_LIST_PUUID:
|
||||
if (uuid_is_null(subv->puuid))
|
||||
strcpy(uuidparse, "-");
|
||||
else
|
||||
uuid_unparse(subv->puuid, uuidparse);
|
||||
printf("%s", uuidparse);
|
||||
printf("%-36s", uuidparse);
|
||||
break;
|
||||
case BTRFS_LIST_RUUID:
|
||||
if (uuid_is_null(subv->ruuid))
|
||||
strcpy(uuidparse, "-");
|
||||
else
|
||||
uuid_unparse(subv->ruuid, uuidparse);
|
||||
printf("%s", uuidparse);
|
||||
printf("%-36s", uuidparse);
|
||||
break;
|
||||
case BTRFS_LIST_PATH:
|
||||
BUG_ON(!subv->full_path);
|
||||
|
|
Loading…
Reference in New Issue