summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-06-02 17:57:56 +0200
committerDavid Sterba <dsterba@suse.cz>2015-06-03 12:52:56 +0200
commitd020af5235e32a16e5645e133fd7df565eb04675 (patch)
tree2c1c2abb28311412fd7196a673e90a237ec4ad55
parent67db275e904aa95a40c5e85470b37eebd3b5f7b5 (diff)
btrfs-progs: subvol show: tweak output
- capitalize UUID - print otime with timezone - rename 'Object ID' to 'Subvolume ID' - add ID to Parent and Top level Signed-off-by: David Sterba <dsterba@suse.cz>
-rw-r--r--cmds-subvolume.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/cmds-subvolume.c b/cmds-subvolume.c
index fa6d56cb..c4c61ea4 100644
--- a/cmds-subvolume.c
+++ b/cmds-subvolume.c
@@ -966,34 +966,34 @@ static int cmd_subvol_show(int argc, char **argv)
strcpy(uuidparse, "-");
else
uuid_unparse(get_ri.uuid, uuidparse);
- printf("\tuuid: \t\t\t%s\n", uuidparse);
+ printf("\tUUID: \t\t\t%s\n", uuidparse);
if (uuid_is_null(get_ri.puuid))
strcpy(uuidparse, "-");
else
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);
+ printf("\tReceived UUID: \t\t%s\n", uuidparse);
if (get_ri.otime) {
struct tm tm;
localtime_r(&get_ri.otime, &tm);
- strftime(tstr, 256, "%Y-%m-%d %X", &tm);
+ strftime(tstr, 256, "%Y-%m-%d %X %z", &tm);
} else
strcpy(tstr, "-");
printf("\tCreation time: \t\t%s\n", tstr);
- printf("\tObject ID: \t\t%llu\n", get_ri.root_id);
- printf("\tGeneration (Gen): \t%llu\n", get_ri.gen);
+ printf("\tSubvolume ID: \t\t%llu\n", get_ri.root_id);
+ printf("\tGeneration: \t\t%llu\n", get_ri.gen);
printf("\tGen at creation: \t%llu\n", get_ri.ogen);
- printf("\tParent: \t\t%llu\n", get_ri.ref_tree);
- printf("\tTop Level: \t\t%llu\n", get_ri.top_id);
+ printf("\tParent ID: \t\t%llu\n", get_ri.ref_tree);
+ printf("\tTop level ID: \t\t%llu\n", get_ri.top_id);
if (get_ri.flags & BTRFS_ROOT_SUBVOL_RDONLY)
printf("\tFlags: \t\t\treadonly\n");