btrfs-progs: subvol show: print received uuid

Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
David Sterba 2015-06-02 17:48:32 +02:00
parent 420afa3edc
commit 67db275e90
1 changed files with 6 additions and 0 deletions

View File

@ -974,6 +974,12 @@ static int cmd_subvol_show(int argc, char **argv)
uuid_unparse(get_ri.puuid, uuidparse); uuid_unparse(get_ri.puuid, uuidparse);
printf("\tParent uuid: \t\t%s\n", uuidparse); printf("\tParent uuid: \t\t%s\n", uuidparse);
if (uuid_is_null(get_ri.ruuid))
strcpy(uuidparse, "-");
else
uuid_unparse(get_ri.ruuid, uuidparse);
printf("\tReceived uuid: \t\t%s\n", uuidparse);
if (get_ri.otime) { if (get_ri.otime) {
struct tm tm; struct tm tm;