]> git.baikalelectronics.ru Git - kernel.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)
committerNeilBrown <neilb@suse.de>
Tue, 30 Apr 2013 04:49:32 +0000 (14:49 +1000)
commita83edf07706bd28986f4525c71f70998fcb7665a
treec90d17b5b5e776da04d6a8b106a4ff3890992f3c
parent6f0b807de497e2ee25a8cb817f7daba30da50471
md: bad block list should default to disabled.

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.

Cc: stable@vger.kernel.org (3.1+)
Reported-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c