diff options
author | Chris Mason <chris.mason@oracle.com> | 2012-03-28 12:05:27 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2012-03-28 12:05:27 -0400 |
commit | 1957076ab4fefa47b6efed3da541bc974c83eed7 (patch) | |
tree | 880941c193093ab3691a0baebc36858c3becd455 | |
parent | 19cf368342249b8579345241709e3772540ca220 (diff) | |
download | btrfs-progs-dangerdonteveruse.tar.gz |
Add incompat flag for big metadata blocksdangerdonteveruse
Signed-off-by: Chris Mason <chris.mason@oracle.com>
-rw-r--r-- | ctree.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -412,6 +412,20 @@ struct btrfs_super_block { #define BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL (1ULL << 1) #define BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS (1ULL << 2) #define BTRFS_FEATURE_INCOMPAT_COMPRESS_LZO (1ULL << 3) +/* + * some patches floated around with a second compression method + * lets save that incompat here for when they do get in + * Note we don't actually support it, we're just reserving the + * number + */ +#define BTRFS_FEATURE_INCOMPAT_COMPRESS_LZOv2 (1ULL << 4) + +/* + * older kernels tried to do bigger metadata blocks, but the + * code was pretty buggy. Lets not let them try anymore. + */ +#define BTRFS_FEATURE_INCOMPAT_BIG_METADATA (1ULL << 5) + #define BTRFS_FEATURE_COMPAT_SUPP 0ULL #define BTRFS_FEATURE_COMPAT_RO_SUPP 0ULL @@ -419,6 +433,7 @@ struct btrfs_super_block { (BTRFS_FEATURE_INCOMPAT_MIXED_BACKREF | \ BTRFS_FEATURE_INCOMPAT_DEFAULT_SUBVOL | \ BTRFS_FEATURE_INCOMPAT_COMPRESS_LZO | \ + BTRFS_FEATURE_INCOMPAT_BIG_METADATA | \ BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS) /* |