From 3defb823843ac6071e38dbd89603344885e7a8aa Mon Sep 17 00:00:00 2001 From: Miao Xie Date: Tue, 18 Sep 2012 17:14:37 +0800 Subject: Btrfs-progs: enhance btrfs subvol list only to show read-only snapshots We want 'btrfs subvolume list' only to list readonly subvolumes, this patch set introduces a new option 'r' to implement it. You can use the command like that: btrfs subvolume list -r Original-Signed-off-by: Zhou Bo Signed-off-by: Miao Xie --- ctree.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ctree.h') diff --git a/ctree.h b/ctree.h index c55d0338..4bb66fff 100644 --- a/ctree.h +++ b/ctree.h @@ -139,6 +139,8 @@ static int btrfs_csum_sizes[] = { 4, 0 }; #define BTRFS_FT_XATTR 8 #define BTRFS_FT_MAX 9 +#define BTRFS_ROOT_SUBVOL_RDONLY (1ULL << 0) + /* * the key defines the order in the tree, and so it also defines (optimal) * block layout. objectid corresonds to the inode number. The flags -- cgit v1.2.3