md: Remove deprecated flavors
Subsystems (3)
Song Liu
maintainercover md: Remove deprecated flavors
Linear, multipath, and faulty have been marked as deprecated for 2.5 years. Let's remove them.
Thanks,
Song
Song Liu (3):
md: Remove deprecated CONFIG_MD_LINEAR
md: Remove deprecated CONFIG_MD_MULTIPATH
md: Remove deprecated CONFIG_MD_FAULTY
drivers/md/Kconfig | 34 --- drivers/md/Makefile | 10 +- drivers/md/md-autodetect.c | 8 +- drivers/md/md-faulty.c | 365 -------------------------- drivers/md/md-linear.c | 318 ---------------------- drivers/md/md-multipath.c | 463 --------------------------------- drivers/md/md.c | 186 ++++++------- include/uapi/linux/raid/md_p.h | 8 +- include/uapi/linux/raid/md_u.h | 11 +- 9 files changed, 91 insertions(+), 1312 deletions(-) delete mode 100644 drivers/md/md-faulty.c delete mode 100644 drivers/md/md-linear.c delete mode 100644 drivers/md/md-multipath.c
--
2.34.1
Song Liu
maintainerPATCH 1/3 md: Remove deprecated CONFIG_MD_LINEAR
md-linear has been marked as deprecated for 2.5 years. Remove it.
--- drivers/md/Kconfig | 13 -- drivers/md/Makefile | 6 +- drivers/md/md-autodetect.c | 8 +- drivers/md/md-linear.c | 318 --------------------------------- drivers/md/md.c | 2 +- include/uapi/linux/raid/md_p.h | 8 +- include/uapi/linux/raid/md_u.h | 7 +- 7 files changed, 8 insertions(+), 354 deletions(-) delete mode 100644 drivers/md/md-linear.c
drivers/md/Kconfig +0 -13
@@ -61,19 +61,6 @@ config MD_BITMAP_FILE various kernel APIs and can only work with files on a file system not actually sitting on the MD device. -config MD_LINEAR - tristate "Linear (append) mode (deprecated)" - depends on BLK_DEV_MD - help - If you say Y here, then your multiple devices driver will be able to - use the so-called linear mode, i.e. it will combine the hard disk - partitions by simply appending one to the other. - - To compile this as a module, choose M here: the module - will be called linear. - - If unsure, say Y. - config MD_RAID0 tristate "RAID-0 (striping) mode" depends on BLK_DEV_MD
drivers/md/Makefile +2 -4
@@ -29,16 +29,14 @@ dm-zoned-y += dm-zoned-target.o dm-zoned-metadata.o dm-zoned-reclaim.o md-mod-y += md.o md-bitmap.o raid456-y += raid5.o raid5-cache.o raid5-ppl.o -linear-y += md-linear.o multipath-y += md-multipath.o faulty-y += md-faulty.o # Note: link order is important. All raid personalities -# and must come before md.o, as they each initialise -# themselves, and md.o may use the personalities when it +# and must come before md.o, as they each initialise +# themselves, and md.o may use the personalities when it # auto-initialised. -obj-$(CONFIG_MD_LINEAR) += linear.o obj-$(CONFIG_MD_RAID0) += raid0.o obj-$(CONFIG_MD_RAID1) += raid1.o obj-$(CONFIG_MD_RAID10) += raid10.o
drivers/md/md-autodetect.c +2 -6
@@ -49,7 +49,6 @@ static int md_setup_ents __initdata;* instead of just one. -- KTK * 18May2000: Added support for persistent-superblock arrays: * md=n,0,factor,fault,device-list uses RAID0 for device n -* md=n,-1,factor,fault,device-list uses LINEAR for device n * md=n,device-list reads a RAID superblock from the devices * elements in device-list are read by name_to_kdev_t so can be * a hex number or something like /dev/hda1 /dev/sdb
@@ -88,7 +87,7 @@ static int __init md_setup(char *str) md_setup_ents++;switch (get_option (&str, &level)) {/* RAID level */ case 2 :/* could be 0 or -1.. */ -if (level ==0 || level ==LEVEL_LINEAR ) { +if (level ==0 ) {if (get_option (&str, &factor) !=2 ||/* Chunk Size */ get_option (&str, &fault) !=2 ) {printk (KERN_WARNING "md: Too few arguments supplied to md=.\n" );
@@ -96,10 +95,7 @@ static int __init md_setup(char *str) } md_setup_args[ent].level = level; md_setup_args[ent].chunk =1 << (factor+12 ); -if (level ==LEVEL_LINEAR ) - pername ="linear" ; -else - pername ="raid0" ; + pername ="raid0" ;break ; } fallthrough;
drivers/md/md-linear.c deleted +0 -318
318 lines not on this page · raw message
drivers/md/md.c +1 -1
@@ -8090,7 +8090,7 @@ void md_error(struct mddev *mddev, struct md_rdev *rdev)return ; mddev->pers->error_handler (mddev, rdev); -if (mddev->pers->level ==0 || mddev->pers->level ==LEVEL_LINEAR ) +if (mddev->pers->level ==0 )return ;if (mddev->degraded && !test_bit (MD_BROKEN , &mddev->flags))
include/uapi/linux/raid/md_p.h +2 -6
@@ -2,15 +2,11 @@/* md_p.h : physical layout of Linux RAID devices Copyright (C) 1996-98 Ingo Molnar, Gadi Oxman -+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. -- You should have received a copy of the GNU General Public License -(for example /usr/src/linux/COPYING); if not, write to the Free -Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef _MD_P_H
@@ -237,7 +233,7 @@ struct mdp_superblock_1 {char set_name[32 ];/* set and interpreted by user-space */ __le64 ctime;/* lo 40 bits are seconds, top 24 are microseconds or 0*/ -__le32 level;/* -4 (multipath), -1 (linear), 0,1,4,5 */ +__le32 level;/* -4 (multipath), 0,1,4,5 */ __le32 layout;/* only for raid5 and raid10 currently */ __le64 size;/* used size of component devices, in 512byte sectors */
include/uapi/linux/raid/md_u.h +1 -6
@@ -2,15 +2,11 @@/* md_u.h : user <=> kernel API between Linux raidtools and RAID drivers Copyright (C) 1998 Ingo Molnar -+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. -- You should have received a copy of the GNU General Public License -(for example /usr/src/linux/COPYING); if not, write to the Free -Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef _UAPI_MD_U_H
@@ -109,7 +105,6 @@ typedef struct mdu_array_info_s {/* non-obvious values for 'level' */ #define LEVEL_MULTIPATH (-4) -#define LEVEL_LINEAR (-1)#define LEVEL_FAULTY (-5)/* we need a value for 'no level specified' and 0
Signature · 1 line
2.34.1
Re: [PATCH 1/3] md: Remove deprecated CONFIG_MD_LINEAR
Looks good:
Re: [PATCH 1/3] md: Remove deprecated CONFIG_MD_LINEAR
In reply to Song LiuQuoted 18 lines · Song Liu
md-linear has been marked as deprecated for 2.5 years. Remove it.
Cc Christoph Hellwig <[email protected]>Cc Jens Axboe <[email protected]>Cc Neil Brown <[email protected]>Cc Guoqing Jiang <[email protected]>Cc Mateusz Grzonka <[email protected]>Cc Jes Sorensen <[email protected]>Signed-off-by Song Liu <[email protected]>--- drivers/md/Kconfig | 13 -- drivers/md/Makefile | 6 +- drivers/md/md-autodetect.c | 8 +- drivers/md/md-linear.c | 318 --------------------------------- drivers/md/md.c | 2 +- include/uapi/linux/raid/md_p.h | 8 +- include/uapi/linux/raid/md_u.h | 7 +- 7 files changed, 8 insertions(+), 354 deletions(-)
Quoted 2 lines
delete mode 100644
drivers/md/md-linear.c
Cheers,
Hannes
Signature · 5 lines
Dr. Hannes Reinecke Kernel Storage Architect [email protected] +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Ivo Totev, Andrew McDonald, Werner Knoblich
Re: [PATCH 1/3] md: Remove deprecated CONFIG_MD_LINEAR
In reply to Song LiuHi Song,
Quoted 9 lines · Song Liu
md-linear has been marked as deprecated for 2.5 years. Remove it.
Cc Christoph Hellwig <[email protected]>Cc Jens Axboe <[email protected]>Cc Neil Brown <[email protected]>Cc Guoqing Jiang <[email protected]>Cc Mateusz Grzonka <[email protected]>Cc Jes Sorensen <[email protected]>Signed-off-by Song Liu <[email protected]>
Thanks for your patch, which is now commit 849d18e27be9a125 ("md:
Remove deprecated CONFIG_MD_LINEAR") upstream.
Quoted 9 lines
drivers/md/Kconfig +0
-3@@ -61,19 +61,6 @@ config MD_BITMAP_FILE various kernel APIs and can only work with files on a file system not actually sitting on the MD device. -config MD_LINEAR - tristate "Linear (append) mode (deprecated)" - depends on BLK_DEV_MD
drivers/md/Kconfig config MD_BITMAP_FILE · line 76
Quoted 10 lines
drivers/md/Kconfig +0
-10- help - If you say Y here, then your multiple devices driver will be able to - use the so-called linear mode, i.e. it will combine the hard disk - partitions by simply appending one to the other. - - To compile this as a module, choose M here: the module - will be called linear. - - If unsure, say Y. -
Is this what you need to recover data from disks salvaged from a commercial NAS configured in JBOD mode?
If yes, and there is no better way to do that, you probably do not want to drop this support. Actual NAS systems running Linux might use this as well.
drivers/md/Kconfig config MD_BITMAP_FILE · line 66
Quoted 3 lines
drivers/md/Kconfig +0
-0config MD_RAID0 tristate "RAID-0 (striping) mode" depends on BLK_DEV_MD
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Song Liu
maintainerRe: [PATCH 1/3] md: Remove deprecated CONFIG_MD_LINEAR
Hi Geert,
Quoted 1 line · Geert Uytterhoeven
[...]
Quoted 18 lines
Quoted 18 lines
drivers/md/Kconfig +0
-11@@ -61,19 +61,6 @@ config MD_BITMAP_FILE various kernel APIs and can only work with files on a file system not actually sitting on the MD device. -config MD_LINEAR - tristate "Linear (append) mode (deprecated)" - depends on BLK_DEV_MD - help - If you say Y here, then your multiple devices driver will be able to - use the so-called linear mode, i.e. it will combine the hard disk - partitions by simply appending one to the other. - - To compile this as a module, choose M here: the module - will be called linear. -
Quoted 8 lines
drivers/md/Kconfig config MD_BITMAP_FILE · line 76
Quoted 2 lines
drivers/md/Kconfig +0
-2- If unsure, say Y. -Is this what you need to recover data from disks salvaged from a commercial NAS configured in JBOD mode?
If yes, and there is no better way to do that, you probably do not want to drop this support. Actual NAS systems running Linux might use this as well.
Thanks for the heads-up. I honestly don't know about this use case. Where can I find/get more information about it?
Thanks,
Song
Re: [PATCH 1/3] md: Remove deprecated CONFIG_MD_LINEAR
Quoted 2 lines · Song Liu
Thanks for the heads-up. I honestly don't know about this use case. Where can I find/get more information about it?
What NAS uses md linear?
Either way you can always set up a dm-linear table to get at the data.
Jens Axboe
maintainerRe: [PATCH 1/3] md: Remove deprecated CONFIG_MD_LINEAR
Quoted 8 lines · Christoph Hellwig
Quoted 2 lines · Song Liu
Thanks for the heads-up. I honestly don't know about this use case. Where can I find/get more information about it?
What NAS uses md linear?
Either way you can always set up a dm-linear table to get at the data.
Or just boot an older kernel... Seems like a bit of a contrived use case to cater to.
Signature · 1 line
Jens Axboe
Re: [PATCH 1/3] md: Remove deprecated CONFIG_MD_LINEAR
In reply to Christoph HellwigHi Christoph,
Quoted 5 lines · Christoph Hellwig
Quoted 2 lines · Song Liu
Thanks for the heads-up. I honestly don't know about this use case. Where can I find/get more information about it?
What NAS uses md linear?
No idea, I was just wondering....
Lots of NASes sold support JBOD (yes, I know I should not use anything that lacks mirroring for data I care about ;-)
Quoted 2 lines
Either way you can always set up a dm-linear table to get at the data.
If dm-linear offers the same functionality, I have no objection.
Note to self: learn about the difference between dm and md, finally...
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Song Liu
maintainerPATCH 2/3 md: Remove deprecated CONFIG_MD_MULTIPATH
In reply to Song Liumd-multipath has been marked as deprecated for 2.5 years. Remove it.
--- drivers/md/Kconfig | 11 - drivers/md/Makefile | 2 - drivers/md/md-multipath.c | 463 --------------------------------- drivers/md/md.c | 185 ++++++------- include/uapi/linux/raid/md_p.h | 2 +- include/uapi/linux/raid/md_u.h | 1 - 6 files changed, 81 insertions(+), 583 deletions(-) delete mode 100644 drivers/md/md-multipath.c
drivers/md/Kconfig +0 -11
@@ -159,17 +159,6 @@ config MD_RAID456 If unsure, say Y. -config MD_MULTIPATH - tristate "Multipath I/O support (deprecated)" - depends on BLK_DEV_MD - help - MD_MULTIPATH provides a simple multi-path personality for use - the MD framework. It is not under active development. New - projects should consider using DM_MULTIPATH which has more - features and more testing. - - If unsure, say N. - config MD_FAULTY tristate "Faulty test module for MD (deprecated)" depends on BLK_DEV_MD
drivers/md/Makefile +0 -2
@@ -29,7 +29,6 @@ dm-zoned-y += dm-zoned-target.o dm-zoned-metadata.o dm-zoned-reclaim.o md-mod-y += md.o md-bitmap.o raid456-y += raid5.o raid5-cache.o raid5-ppl.o -multipath-y += md-multipath.o faulty-y += md-faulty.o # Note: link order is important. All raid personalities
@@ -41,7 +40,6 @@ obj-$(CONFIG_MD_RAID0) += raid0.o obj-$(CONFIG_MD_RAID1) += raid1.o obj-$(CONFIG_MD_RAID10) += raid10.o obj-$(CONFIG_MD_RAID456) += raid456.o -obj-$(CONFIG_MD_MULTIPATH) += multipath.o obj-$(CONFIG_MD_FAULTY) += faulty.o obj-$(CONFIG_MD_CLUSTER) += md-cluster.o obj-$(CONFIG_BCACHE) += bcache/
drivers/md/md-multipath.c deleted +0 -463
463 lines not on this page · raw message
drivers/md/md.c +80 -105
237 lines not on this page · raw message
include/uapi/linux/raid/md_p.h +1 -1
@@ -233,7 +233,7 @@ struct mdp_superblock_1 {char set_name[32 ];/* set and interpreted by user-space */ __le64 ctime;/* lo 40 bits are seconds, top 24 are microseconds or 0*/ -__le32 level;/* -4 (multipath), 0,1,4,5 */ +__le32 level;/* 0,1,4,5 */ __le32 layout;/* only for raid5 and raid10 currently */ __le64 size;/* used size of component devices, in 512byte sectors */
include/uapi/linux/raid/md_u.h +0 -1
@@ -104,7 +104,6 @@ typedef struct mdu_array_info_s { } mdu_array_info_t;/* non-obvious values for 'level' */ -#define LEVEL_MULTIPATH (-4)#define LEVEL_FAULTY (-5)/* we need a value for 'no level specified' and 0
Signature · 1 line
2.34.1
Re: [PATCH 2/3] md: Remove deprecated CONFIG_MD_MULTIPATH
Looks good:
Re: [PATCH 2/3] md: Remove deprecated CONFIG_MD_MULTIPATH
In reply to Song LiuQuoted 17 lines · Song Liu
md-multipath has been marked as deprecated for 2.5 years. Remove it.
Cc Christoph Hellwig <[email protected]>Cc Jens Axboe <[email protected]>Cc Neil Brown <[email protected]>Cc Guoqing Jiang <[email protected]>Cc Mateusz Grzonka <[email protected]>Cc Jes Sorensen <[email protected]>Signed-off-by Song Liu <[email protected]>--- drivers/md/Kconfig | 11 - drivers/md/Makefile | 2 - drivers/md/md-multipath.c | 463 --------------------------------- drivers/md/md.c | 185 ++++++------- include/uapi/linux/raid/md_p.h | 2 +- include/uapi/linux/raid/md_u.h | 1 - 6 files changed, 81 insertions(+), 583 deletions(-)
Quoted 2 lines
delete mode 100644
drivers/md/md-multipath.c
About time :-)
Cheers,
Hannes
Signature · 5 lines
Dr. Hannes Reinecke Kernel Storage Architect [email protected] +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Ivo Totev, Andrew McDonald, Werner Knoblich
Song Liu
maintainerPATCH 3/3 md: Remove deprecated CONFIG_MD_FAULTY
In reply to Song Liumd-faulty has been marked as deprecated for 2.5 years. Remove it.
--- drivers/md/Kconfig | 10 - drivers/md/Makefile | 2 - drivers/md/md-faulty.c | 365 --------------------------------- include/uapi/linux/raid/md_u.h | 3 - 4 files changed, 380 deletions(-) delete mode 100644 drivers/md/md-faulty.c
drivers/md/Kconfig +0 -10
@@ -159,16 +159,6 @@ config MD_RAID456 If unsure, say Y. -config MD_FAULTY - tristate "Faulty test module for MD (deprecated)" - depends on BLK_DEV_MD - help - The "faulty" module allows for a block device that occasionally returns - read or write errors. It is useful for testing. - - In unsure, say N. - - config MD_CLUSTER tristate "Cluster Support for MD" depends on BLK_DEV_MD
drivers/md/Makefile +0 -2
@@ -29,7 +29,6 @@ dm-zoned-y += dm-zoned-target.o dm-zoned-metadata.o dm-zoned-reclaim.o md-mod-y += md.o md-bitmap.o raid456-y += raid5.o raid5-cache.o raid5-ppl.o -faulty-y += md-faulty.o # Note: link order is important. All raid personalities # and must come before md.o, as they each initialise
@@ -40,7 +39,6 @@ obj-$(CONFIG_MD_RAID0) += raid0.o obj-$(CONFIG_MD_RAID1) += raid1.o obj-$(CONFIG_MD_RAID10) += raid10.o obj-$(CONFIG_MD_RAID456) += raid456.o -obj-$(CONFIG_MD_FAULTY) += faulty.o obj-$(CONFIG_MD_CLUSTER) += md-cluster.o obj-$(CONFIG_BCACHE) += bcache/ obj-$(CONFIG_BLK_DEV_MD) += md-mod.o
drivers/md/md-faulty.c deleted +0 -365
365 lines not on this page · raw message
include/uapi/linux/raid/md_u.h +0 -3
@@ -103,9 +103,6 @@ typedef struct mdu_array_info_s { } mdu_array_info_t; -/* non-obvious values for 'level' */ -#define LEVEL_FAULTY (-5) -/* we need a value for 'no level specified' and 0 * means 'raid0', so we need something else. This is * for internal use only
Signature · 1 line
2.34.1
Re: [PATCH 3/3] md: Remove deprecated CONFIG_MD_FAULTY
Looks good:
Re: [PATCH 3/3] md: Remove deprecated CONFIG_MD_FAULTY
In reply to Song LiuQuoted 9 lines · Song Liu
md-faulty has been marked as deprecated for 2.5 years. Remove it.
Cc Christoph Hellwig <[email protected]>Cc Jens Axboe <[email protected]>Cc Neil Brown <[email protected]>Cc Guoqing Jiang <[email protected]>Cc Mateusz Grzonka <[email protected]>Cc Jes Sorensen <[email protected]>Signed-off-by Song Liu <[email protected]>
Quoted 8 lines
--- drivers/md/Kconfig | 10 - drivers/md/Makefile | 2 - drivers/md/md-faulty.c | 365 --------------------------------- include/uapi/linux/raid/md_u.h | 3 - 4 files changed, 380 deletions(-)delete mode 100644
drivers/md/md-faulty.c
Cheers,
Hannes
Signature · 5 lines
Dr. Hannes Reinecke Kernel Storage Architect [email protected] +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Ivo Totev, Andrew McDonald, Werner Knoblich
Quoted 5 lines · On Thu, 14 Dec 2023 14:21:04 -0800 Song Liu <[email protected]> wrote:
Linear, multipath, and faulty have been marked as deprecated for 2.5 years. Let's remove them.
Thanks,
Song
Hi Song,
Great idea!
Please note that there are mdadm tests for those levels. I can approve it only when mdadm clean-up is merged. Our tests must pass continuously.
It is a nice code complexity improvement so let me know if you would like to get my help with mdadm patches.
Thanks,
Mariusz
Song Liu
maintainerHi Mariusz,
Quoted 7 lines · Mariusz Tkaczyk
Quoted 3 lines · On Thu, 14 Dec 2023 14:21:04 -0800 Song Liu <[email protected]> wrote:
Linear, multipath, and faulty have been marked as deprecated for 2.5 years. Let's remove them.
Quoted 8 lines
Quoted 2 lines
Thanks,
SongHi Song,
Great idea!Please note that there are mdadm tests for those levels. I can approve it only when mdadm clean-up is merged. Our tests must pass continuously.
Is the continuous test result available publicly?
Quoted 3 lines
It is a nice code complexity improvement so let me know if you would like to get my help with mdadm patches.
On my local tests with mdadm, I need to make changes to the following tests:
00linear...
00names...
00raid0...
00readonly...
02lineargrow...
03r0assem...
04r0update...
04update-metadata...
The changes are all straightforward (just remove things related to linear/multipath/faulty).
Thanks,
Song
Quoted 14 lines · On Fri, 15 Dec 2023 07:37:54 -0800 Song Liu <[email protected]> wrote:
Hi Mariusz,
Quoted 10 lines · Mariusz Tkaczyk
Quoted 5 lines · On Thu, 14 Dec 2023 14:21:04 -0800 Song Liu <[email protected]> wrote:
Linear, multipath, and faulty have been marked as deprecated for 2.5 years. Let's remove them.
Thanks,
Song
Quoted 7 lines
Quoted 5 lines
Hi Song,
Great idea!Please note that there are mdadm tests for those levels. I can approve it only when mdadm clean-up is merged. Our tests must pass continuously.
Is the continuous test result available publicly?
We are working on public CI (Paul owns it). On my side I'm not executing all tests, IMSM only. In this case it is obvious that mdadm tests will stop passing, I don't need results to see that. We should keep both mdadm and md compatible. We are continuously adding new MD regression tests to mdadm (at least Kuai is doing that) so we should also care about removing things.
Quoted 17 lines
Quoted 4 lines
It is a nice code complexity improvement so let me know if you would like to get my help with mdadm patches.
On my local tests with mdadm, I need to make changes to the following tests:
00linear...
00names...
00raid0...
00readonly...
02lineargrow...
03r0assem...
04r0update...
04update-metadata...
Quoted 3 lines
The changes are all straightforward (just remove things related to linear/multipath/faulty).
Please do not forgot remove dead code from mdadm. For example simple find "multipath" (case insensitive) reefers me to multiple places with special handling for this level. We need to remove it from code and documentation. Can you handle this too?
Oh and last one, I can't find update for md man in your changes. Could you please remove those levels from md man?
Thanks,
Mariusz
Song Liu
maintainerHi Mariusz,
Quoted 1 line · Mariusz Tkaczyk
[...]
Quoted 29 lines
Quoted 5 lines
Quoted 3 lines
Please note that there are mdadm tests for those levels. I can approve it only when mdadm clean-up is merged. Our tests must pass continuously.
Is the continuous test result available publicly?
We are working on public CI (Paul owns it). On my side I'm not executing all tests, IMSM only. In this case it is obvious that mdadm tests will stop passing, I don't need results to see that. We should keep both mdadm and md compatible. We are continuously adding new MD regression tests to mdadm (at least Kuai is doing that) so we should also care about removing things.
Quoted 17 lines
Quoted 4 lines
It is a nice code complexity improvement so let me know if you would like to get my help with mdadm patches.
On my local tests with mdadm, I need to make changes to the following tests:
00linear...
00names...
00raid0...
00readonly...
02lineargrow...
03r0assem...
04r0update...
04update-metadata...
Quoted 8 lines
Quoted 3 lines
The changes are all straightforward (just remove things related to linear/multipath/faulty).
Please do not forgot remove dead code from mdadm. For example simple find "multipath" (case insensitive) reefers me to multiple places with special handling for this level. We need to remove it from code and documentation. Can you handle this too?
I think this is a bigger discussion: will mdadm stop supporting these flavors on
older kernels? Say, mdadm-5.0+ (or a different number) will not support multipath flavor on older kernels?
Quoted 3 lines
Oh and last one, I can't find update for md man in your changes. Could you please remove those levels from md man?
man side is easier. Once we know which major will have this set (6.8 or later), we can update the man pages with the information.
Thanks,
Song
Quoted 45 lines · On Mon, 18 Dec 2023 08:11:53 -0800 Song Liu <[email protected]> wrote:
Hi Mariusz,
Quoted 1 line · Mariusz Tkaczyk
[...]
Quoted 30 lines
Quoted 6 lines
Quoted 4 lines
Please note that there are mdadm tests for those levels. I can approve it only when mdadm clean-up is merged. Our tests must pass continuously.
Is the continuous test result available publicly?
We are working on public CI (Paul owns it). On my side I'm not executing all tests, IMSM only. In this case it is obvious that mdadm tests will stop passing, I don't need results to see that. We should keep both mdadm and md compatible. We are continuously adding new MD regression tests to mdadm (at least Kuai is doing that) so we should also care about removing things.
Quoted 17 lines
Quoted 4 lines
It is a nice code complexity improvement so let me know if you would like to get my help with mdadm patches.
On my local tests with mdadm, I need to make changes to the following tests:
00linear...
00names...
00raid0...
00readonly...
02lineargrow...
03r0assem...
04r0update...
04update-metadata...Quoted 8 lines
Quoted 3 lines
The changes are all straightforward (just remove things related to linear/multipath/faulty).
Please do not forgot remove dead code from mdadm. For example simple find "multipath" (case insensitive) reefers me to multiple places with special handling for this level. We need to remove it from code and documentation. Can you handle this too?
Quoted 5 lines
I think this is a bigger discussion: will mdadm stop supporting these flavors on
older kernels? Say, mdadm-5.0+ (or a different number) will not support multipath flavor on older kernels?
Good point, I forgot that we are keeping backward compatibility with old kernels. Currently 3.10 is the lowest one supported so agree, we need to keep this code. Thanks for clarifying!
Quoted 6 lines
Quoted 3 lines
Oh and last one, I can't find update for md man in your changes. Could you please remove those levels from md man?
man side is easier. Once we know which major will have this set (6.8 or later), we can update the man pages with the information.
Understood!
No further questions, please just remove tests and eventually add warning when creating those levels in mdadm i.e "Linear/Multipath/Faulty are deprecated and will be removed in next releases".
Thanks,
Mariusz