summaryrefslogtreecommitdiff
path: root/ctree.h
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fb.com>2015-02-06 13:03:12 -0500
committerJosef Bacik <jbacik@fb.com>2015-02-09 14:53:15 -0500
commit797a937e5dd8db0092add633a80f3cd698e182df (patch)
tree8b2b49b5b4ecee6632f5fb92207979db10627590 /ctree.h
parentc7e3b63b7e231ed1d9a47ca735a7ead112b47078 (diff)
Btrfs-progs: Introduce metadump_v2
The METADUMP super flag makes us skip doing the chunk tree reading which isn't helpful for the new restore since we have a valid chunk tree. But we still want to have a way for the kernel to know that this is a metadump restore so it doesn't do things like verify data checksums. We also want to skip some of the device extent checks in fsck since those will obviously not match. Thanks, Signed-off-by: Josef Bacik <jbacik@fb.com>
Diffstat (limited to 'ctree.h')
-rw-r--r--ctree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctree.h b/ctree.h
index 2d2988b1..be30cb63 100644
--- a/ctree.h
+++ b/ctree.h
@@ -309,6 +309,7 @@ static inline unsigned long btrfs_chunk_item_size(int num_stripes)
#define BTRFS_HEADER_FLAG_RELOC (1ULL << 1)
#define BTRFS_SUPER_FLAG_SEEDING (1ULL << 32)
#define BTRFS_SUPER_FLAG_METADUMP (1ULL << 33)
+#define BTRFS_SUPER_FLAG_METADUMP_V2 (1ULL << 34)
#define BTRFS_BACKREF_REV_MAX 256
#define BTRFS_BACKREF_REV_SHIFT 56