diff options
author | Chris Mason <chris.mason@oracle.com> | 2012-02-21 21:20:54 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2012-02-22 10:59:55 -0500 |
commit | e22827e9bb9634540d32bf29b23b26989e384902 (patch) | |
tree | bb51c2126f2779bd9209a6397b2d78ba19b6e2f9 /volumes.h | |
parent | 8f01235dd8cf65c064f1b979d24a989ca296ea33 (diff) |
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 <chris.mason@oracle.com>
Diffstat (limited to 'volumes.h')
-rw-r--r-- | volumes.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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))) |