]> sourceware.org Git - lvm2.git/commit
raid: adjust to misordered raid table line output
authorHeinz Mauelshagen <heinzm@redhat.com>
Thu, 23 Mar 2017 00:20:00 +0000 (01:20 +0100)
committerHeinz Mauelshagen <heinzm@redhat.com>
Thu, 23 Mar 2017 00:20:00 +0000 (01:20 +0100)
commitb84bf3e8cd95e74bc39c7e661a6e010fdccb5078
tree46aa140bb03a581b49e17085ee9e38c6d1431e9e
parent1bf90dac77765fa742964adab4aec3f0a58241de
raid: adjust to misordered raid table line output

This commit supersedes reverted 1e4462dbfbd2bbe3590936df24b3ccd83110b158
to avoid changes to liblvm and the libdm API completely.

The libdevmapper interface compares existing table line retrieved from
the kernel to new table line created to decide if it can suppress a reload.
Any difference between input and output of the table line is taken to be a
change thus causing a table reload.

The dm-raid target started to misorder the raid parameters (e.g. 'raid10_copies')
starting with dm-raid target version 1.9.0 up to (excluding) 1.11.0.  This causes
runtime failures (limited to raid10 as of tests) and needs to be reversed to allow
e.g. old lvm2 uspace to run properly.

Check for the aforementioned version range in libdm and adjust creation of the table line
to the respective (mis)ordered sequence inside and correct order outside the range
(as described for the raid target in the kernels Documentation/device-mapper/dm-raid.txt).
libdm/libdm-deptree.c
This page took 0.030052 seconds and 5 git commands to generate.