diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2012-09-18 17:14:37 +0800 |
---|---|---|
committer | root <root@localhost.localdomain> | 2012-10-04 16:26:33 -0400 |
commit | 3defb823843ac6071e38dbd89603344885e7a8aa (patch) | |
tree | 2ac9ece7912fc942c76cc25333a21aec78f66f21 /ctree.h | |
parent | 162df1e30c7c0492ae9fb551d74452e643f5fea2 (diff) |
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 <path>
Original-Signed-off-by: Zhou Bo <zhoub-fnst@cn.fujitsu.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Diffstat (limited to 'ctree.h')
-rw-r--r-- | ctree.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |