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)
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

Simple merge