projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
420afa3
)
btrfs-progs: subvol show: print received uuid
author
David Sterba
<dsterba@suse.cz>
Tue, 2 Jun 2015 15:48:32 +0000
(17:48 +0200)
committer
David Sterba
<dsterba@suse.cz>
Wed, 3 Jun 2015 10:52:52 +0000
(12:52 +0200)
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-subvolume.c
patch
|
blob
|
history
diff --git
a/cmds-subvolume.c
b/cmds-subvolume.c
index 3d5a766f868ba18e06888696a5f89232e16d6284..fa6d56cbebb7a8834396296cee9c7cda61cbcfeb 100644
(file)
--- 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;