summaryrefslogtreecommitdiff
path: root/lib/raid
diff options
context:
space:
mode:
authorHeinz Mauelshagen <heinzm@redhat.com>2017-02-28 22:46:25 +0100
committerHeinz Mauelshagen <heinzm@redhat.com>2017-02-28 22:46:25 +0100
commitce1e5b99915cf45530e25628f02537136045c938 (patch)
treea94aa2bd1096a52b3e44056aa22b529b5e44561e /lib/raid
parent80a6de616a19e1be2e4125878ee904e5a1eeedf9 (diff)
downloadlvm2-ce1e5b99915cf45530e25628f02537136045c938.tar.gz
lvconvert: adjust reshaping check to target version
https://git.kernel.org/cgit/linux/kernel/git/device-mapper/linux-dm.git/commit/?h=dm-4.11&id=b08c6076782 sets the dm-raid target version to 1.10.1. Adjust the condition to set RAID_RESHAPE_FEATURE to it. Related: rhbz834579 Related: rhbz1191935 Related: rhbz1191978
Diffstat (limited to 'lib/raid')
-rw-r--r--lib/raid/raid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/raid/raid.c b/lib/raid/raid.c
index 9ab2e6c6f..68154540e 100644
--- a/lib/raid/raid.c
+++ b/lib/raid/raid.c
@@ -496,7 +496,7 @@ static int _raid_target_present(struct cmd_context *cmd,
SEG_TYPE_NAME_RAID4);
if (maj > 1 ||
- (maj == 1 && (min > 10 || (min == 10 && patchlevel >= 2))))
+ (maj == 1 && (min > 10 || (min == 10 && patchlevel >= 1))))
_raid_attrs |= RAID_FEATURE_RESHAPE;
}