diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2014-10-23 06:42:50 (GMT) |
---|---|---|
committer | Miao Xie <miaox@cn.fujitsu.com> | 2014-12-03 02:18:45 (GMT) |
commit | af8e2d1df9848b39dd86b1e696bf8781d2020a88 (patch) | |
tree | 0abf72105056f1c5fe7038c37f4c5d63ea29c875 /fs/btrfs/volumes.h | |
parent | b89e1b012c7f81123344058d5f245b844464d30c (diff) | |
download | linux-af8e2d1df9848b39dd86b1e696bf8781d2020a88.tar.xz |
Btrfs, scrub: repair the common data on RAID5/6 if it is corrupted
This patch implement the RAID5/6 common data repair function, the
implementation is similar to the scrub on the other RAID such as
RAID1, the differentia is that we don't read the data from the
mirror, we use the data repair function of RAID5/6.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
-rw-r--r-- | fs/btrfs/volumes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index 08980fa..01094bb 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h @@ -393,6 +393,10 @@ int btrfs_account_dev_extents_size(struct btrfs_device *device, u64 start, int btrfs_map_block(struct btrfs_fs_info *fs_info, int rw, u64 logical, u64 *length, struct btrfs_bio **bbio_ret, int mirror_num); +int btrfs_map_sblock(struct btrfs_fs_info *fs_info, int rw, + u64 logical, u64 *length, + struct btrfs_bio **bbio_ret, int mirror_num, + u64 **raid_map_ret); int btrfs_rmap_block(struct btrfs_mapping_tree *map_tree, u64 chunk_start, u64 physical, u64 devid, u64 **logical, int *naddrs, int *stripe_len); |