]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfd8d3c7d2926001a478b2aaa0bca2fed08827e2d
tree0656b0f5fa96f81c042467ee971a1cedeb1320f9
parent4ebe0edb639b7643c0c05d7b341239e067a41c47
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