]> git.baikalelectronics.ru Git - kernel.git/commit
dm raid: fix table line argument order in status
authorHeinz Mauelshagen <heinzm@redhat.com>
Sat, 18 Mar 2017 00:39:12 +0000 (01:39 +0100)
committerMike Snitzer <snitzer@redhat.com>
Mon, 27 Mar 2017 15:45:26 +0000 (11:45 -0400)
commitfae90c309c61641335cefd42b20adf5f23212ceb
tree87f6c3f8d3167467ea2e9cefdd977ee4381ae1d7
parent45b5fbd05425c08a6dbb3c8e40d35fe58479a6b5
dm raid: fix table line argument order in status

Commit 41acb7cce ("dm raid: enhance status interface and fixup
takeover/raid0") added new table line arguments and introduced an
ordering flaw.  The sequence of the raid10_copies and raid10_format
raid parameters got reversed which causes lvm2 userspace to fail by
falsely assuming a changed table line.

Sequence those 2 parameters as before so that old lvm2 can function
properly with new kernels by adjusting the table line output as
documented in Documentation/device-mapper/dm-raid.txt.

Also, add missing version 1.10.1 highlight to the documention.

Fixes: 41acb7cce ("dm raid: enhance status interface and fixup takeover/raid0")
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Documentation/device-mapper/dm-raid.txt
drivers/md/dm-raid.c