summaryrefslogtreecommitdiff
path: root/include/uapi/linux/raid/md_u.h
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2025-01-02 19:28:41 +0800
committerSong Liu <song@kernel.org>2025-01-13 07:36:29 -0800
commit127186cfb184eaccdfe948e6da66940cfa03efc5 (patch)
tree59e8bab857c62243013dce937c52a953cac90dda /include/uapi/linux/raid/md_u.h
parente494e451611a3de6ae95f99e8339210c157d70fb (diff)
downloadlwn-127186cfb184eaccdfe948e6da66940cfa03efc5.tar.gz
lwn-127186cfb184eaccdfe948e6da66940cfa03efc5.zip
md: reintroduce md-linear
THe md-linear is removed by commit 849d18e27be9 ("md: Remove deprecated CONFIG_MD_LINEAR") because it has been marked as deprecated for a long time. However, md-linear is used widely for underlying disks with different size, sadly we didn't know this until now, and it's true useful to create partitions and assemble multiple raid and then append one to the other. People have to use dm-linear in this case now, however, they will prefer to minimize the number of involved modules. Fixes: 849d18e27be9 ("md: Remove deprecated CONFIG_MD_LINEAR") Cc: stable@vger.kernel.org Signed-off-by: Yu Kuai <yukuai3@huawei.com> Acked-by: Coly Li <colyli@kernel.org> Acked-by: Mike Snitzer <snitzer@kernel.org> Link: https://lore.kernel.org/r/20250102112841.1227111-1-yukuai1@huaweicloud.com Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'include/uapi/linux/raid/md_u.h')
-rw-r--r--include/uapi/linux/raid/md_u.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/raid/md_u.h b/include/uapi/linux/raid/md_u.h
index 7be89a4906e7..a893010735fb 100644
--- a/include/uapi/linux/raid/md_u.h
+++ b/include/uapi/linux/raid/md_u.h
@@ -103,6 +103,8 @@ typedef struct mdu_array_info_s {
} mdu_array_info_t;
+#define LEVEL_LINEAR (-1)
+
/* we need a value for 'no level specified' and 0
* means 'raid0', so we need something else. This is
* for internal use only