]> git.kernelconcepts.de Git - karo-tx-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 02:51:56 +0000 (19:51 -0700)
commit6cd670f0ff34d314b88b8b7cc1c1b45617f08a78
tree6a2167528d40e2faed471195230bf8fc1ffc070d
parent02d1a16d6d89faa6f78625ea17be9f0b995e44ab
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