diff options
author | Anand Jain <anand.jain@oracle.com> | 2013-02-01 15:56:32 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-02-01 16:55:06 +0100 |
commit | d9a085ba83b5a0cad19f915cf4f9d6d9840136d8 (patch) | |
tree | 10f1a0337c28194e2ec8b1bcf839a805289d7927 | |
parent | 28909327c3cc57d62964446ca737d954b151c227 (diff) |
Btrfs-progs: add subvol flags to print
This patch adds the flags row which as of now will show if the
subvol/snapshot is readonly.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
-rw-r--r-- | cmds-subvolume.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmds-subvolume.c b/cmds-subvolume.c index c1ccc7aa..9f78c0e7 100644 --- a/cmds-subvolume.c +++ b/cmds-subvolume.c @@ -874,6 +874,11 @@ static int cmd_subvol_show(int argc, char **argv) printf("\tParent: \t\t%llu\n", get_ri.ref_tree); printf("\tTop Level: \t\t%llu\n", get_ri.top_id); + if (get_ri.flags & BTRFS_ROOT_SUBVOL_RDONLY) + printf("\tFlags: \t\t\treadonly\n"); + else + printf("\tFlags: \t\t\t-\n"); + /* print the snapshots of the given subvol if any*/ printf("\tSnapshot(s):\n"); filter_set = btrfs_list_alloc_filter_set(); |