dm raid: constructor fails on non-zero incompat_features
authorHeinz Mauelshagen <heinzm@redhat.com>
Wed, 3 Aug 2016 15:47:04 +0000 (17:47 +0200)
committerMike Snitzer <snitzer@redhat.com>
Wed, 3 Aug 2016 16:36:54 +0000 (12:36 -0400)
commitb2a4872a45280217149324e3bbef228cd5a0a270
tree437d36f7b390c02d1af30d296c50374535ad85cf
parentf15f64d65bc0a4cc0973b5a30854bb5091d34153
dm raid: constructor fails on non-zero incompat_features

When lvm2 userspace requests a RaidLV repair, it sets the rebuild
constructor flag on the new replacement DataLVs but does not clear the
respective MetaLVs.  Hence the superblock that is loaded from such new
MetaLVs may have a non-zero incompat_features member and the constructor
will fail with false-positive on incompat_features.

Solve by initializing the incompat_features member properly.

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c