From 67db275e904aa95a40c5e85470b37eebd3b5f7b5 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 2 Jun 2015 17:48:32 +0200 Subject: btrfs-progs: subvol show: print received uuid Signed-off-by: David Sterba --- cmds-subvolume.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmds-subvolume.c b/cmds-subvolume.c index 3d5a766f..fa6d56cb 100644 --- a/cmds-subvolume.c +++ b/cmds-subvolume.c @@ -974,6 +974,12 @@ static int cmd_subvol_show(int argc, char **argv) uuid_unparse(get_ri.puuid, 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) { struct tm tm; -- cgit v1.2.3