mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-26 06:50:46 +00:00
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>
This commit is contained in:
parent
28909327c3
commit
d9a085ba83
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user