]> git.baikalelectronics.ru Git - kernel.git/commit
dm raid: fix compat_features validation
authorAndy Whitcroft <apw@canonical.com>
Tue, 11 Oct 2016 14:16:57 +0000 (15:16 +0100)
committerMike Snitzer <snitzer@redhat.com>
Tue, 11 Oct 2016 19:19:17 +0000 (15:19 -0400)
commit78aebe4c2b289bb73020c7ebc77b8520ad36636f
tree1f702006c71af767cae937939a5bcc5ae4d3ca59
parent76a94c6d097930adfaa61b493b62be996143987b
dm raid: fix compat_features validation

In 5cf7af41a13ca4 ("dm raid: add raid level takeover support") a new
compatible feature flag was added.  Validation for these compat_features
was added but this only passes for new raid mappings with this feature
flag.  This causes previously created raid mappings to be failed at
import.

Check compat_features for the only valid combination.

Fixes: 5cf7af41a13ca4 ("dm raid: add raid level takeover support")
Cc: stable@vger.kernel.org # v4.8
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c