diff options
author | Stefan Behrens <sbehrens@giantdisaster.de> | 2012-11-06 14:52:18 +0100 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2012-12-12 17:15:44 -0500 |
commit | 30d9861ff9520e2a112eae71029bc9f7e915a441 (patch) | |
tree | ba826aaeee18acacd5871fc47774abc25f072e62 /fs/btrfs/ctree.h | |
parent | 472262f35a6b3407e761b700d74c53530e5f144d (diff) | |
download | op-kernel-dev-30d9861ff9520e2a112eae71029bc9f7e915a441.zip op-kernel-dev-30d9861ff9520e2a112eae71029bc9f7e915a441.tar.gz |
Btrfs: optionally avoid reads from device replace source drive
It is desirable to be able to configure the device replace
procedure to avoid reading the source drive (the one to be
copied) whenever possible. This is useful when the number of
read errors on this disk is high, because it would delay the
copy procedure alot. Therefore there is an option to avoid
reading from the source disk unless the repair procedure
really needs to access it. The regular read req asks for
mapping the block with mirror_num == 0, in this case the
source disk is avoided whenever possible. The repair code
selects the mirror_num explicitly (mirror_num != 0), this
case is not changed by this commit.
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
0 files changed, 0 insertions, 0 deletions