]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
md: add feature flag MD_FEATURE_RAID0_LAYOUT
authorNeilBrown <neilb@suse.de>
Wed, 18 Dec 2019 14:31:23 +0000 (07:31 -0700)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 29 Jan 2020 02:24:25 +0000 (21:24 -0500)
commit5119d26591f28a2db503669e29b2ce7c11310b52
treec4bda7af0e27291c8749e0cb6ab4808464237642
parentf670c30e51d5f3506593385026d1c977bc18d2d3
md: add feature flag MD_FEATURE_RAID0_LAYOUT

BugLink: https://bugs.launchpad.net/bugs/1850540
Due to a bug introduced in Linux 3.14 we cannot determine the
correctly layout for a multi-zone RAID0 array - there are two
possibilities.

It is possible to tell the kernel which to chose using a module
parameter, but this can be clumsy to use.  It would be best if
the choice were recorded in the metadata.
So add a feature flag for this purpose.
If it is set, then the 'layout' field of the superblock is used
to determine which layout to use.

If this flag is not set, then mddev->layout gets set to -1,
which causes the module parameter to be required.

Acked-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Song Liu <songliubraving@fb.com>
(cherry picked from commit 33f2c35a54dfd75ad0e7e86918dcbe4de799a56c)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/md/md.c
drivers/md/raid0.c
include/uapi/linux/raid/md_p.h