]> www.infradead.org Git - users/dwmw2/linux.git/commit
md: bad block list should default to disabled.
authorNeilBrown <neilb@suse.de>
Wed, 24 Apr 2013 01:42:44 +0000 (11:42 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2013 03:33:12 +0000 (20:33 -0700)
commitaaf49388fdf26e315e62f67614c77dceb319c837
tree9b31f5d96cf882403d9cca6fc0790997a2567df4
parent17f978ddc76d3163bc4dd2d6bf7dd848065b4c78
md: bad block list should default to disabled.

commit 486adf72ccc0c235754923d47a2270c5dcb0c98b upstream.

Maintenance of a bad-block-list currently defaults to 'enabled'
and is then disabled when it cannot be supported.
This is backwards and causes problem for dm-raid which didn't know
to disable it.

So fix the defaults, and only enabled for v1.x metadata which
explicitly has bad blocks enabled.

The problem with dm-raid has been present since badblock support was
added in v3.1, so this patch is suitable for any -stable from 3.1
onwards.

Reported-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/md.c