]> Pileus Git - ~andy/linux/commit
Btrfs: optionally avoid reads from device replace source drive
authorStefan Behrens <sbehrens@giantdisaster.de>
Tue, 6 Nov 2012 13:52:18 +0000 (14:52 +0100)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 12 Dec 2012 22:15:44 +0000 (17:15 -0500)
commit30d9861ff9520e2a112eae71029bc9f7e915a441
treeba826aaeee18acacd5871fc47774abc25f072e62
parent472262f35a6b3407e761b700d74c53530e5f144d
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>
fs/btrfs/volumes.c