From e22827e9bb9634540d32bf29b23b26989e384902 Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Tue, 21 Feb 2012 21:20:54 -0500 Subject: btrfsck: add early code to handle corrupted block groups This is mostly disabled, but it is step one in handling corrupted block groups in the extent allocation tree. Signed-off-by: Chris Mason --- volumes.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'volumes.h') diff --git a/volumes.h b/volumes.h index d7fcef66..9ff6182e 100644 --- a/volumes.h +++ b/volumes.h @@ -18,6 +18,7 @@ #ifndef __BTRFS_VOLUMES_ #define __BTRFS_VOLUMES_ + struct btrfs_device { struct list_head dev_list; struct btrfs_root *dev_root; @@ -88,6 +89,18 @@ struct btrfs_multi_bio { struct btrfs_bio_stripe stripes[]; }; +struct map_lookup { + struct cache_extent ce; + u64 type; + int io_align; + int io_width; + int stripe_len; + int sector_size; + int num_stripes; + int sub_stripes; + struct btrfs_bio_stripe stripes[]; +}; + #define btrfs_multi_bio_size(n) (sizeof(struct btrfs_multi_bio) + \ (sizeof(struct btrfs_bio_stripe) * (n))) -- cgit v1.2.3