Btrfs: don't write any data into a readonly device when scrub
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 24 Jul 2014 03:37:07 +0000 (11:37 +0800)
committerChris Mason <clm@fb.com>
Tue, 19 Aug 2014 15:52:17 +0000 (08:52 -0700)
commit5d68da3b8ee6eb2257aa4b8d885581782278ae93
tree0656b0f5fa96f81c042467ee971a1cedeb1320f9
parentff61d17c6324d1b483fbbc5144f09668c24ff60c
Btrfs: don't write any data into a readonly device when scrub

We should not write data into a readonly device especially seed device when
doing scrub, skip those devices.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/scrub.c