summaryrefslogtreecommitdiff
path: root/cmds-subvolume.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-06-02 17:48:32 +0200
committerDavid Sterba <dsterba@suse.cz>2015-06-03 12:52:52 +0200
commit67db275e904aa95a40c5e85470b37eebd3b5f7b5 (patch)
tree5e2aeb49c403778a33707bb2938a2db947d7aa0b /cmds-subvolume.c
parent420afa3edc3325912ee72d951af7228f66ed1831 (diff)
btrfs-progs: subvol show: print received uuid
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'cmds-subvolume.c')
-rw-r--r--cmds-subvolume.c6
1 files changed, 6 insertions, 0 deletions
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;