Skip to content

mdadm: Use kernel raid headers

[email protected] linux-raid 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v0 Latest3 patches 1 replyIn review

Patches in v0 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mdadm: Remove klibc and uclibc supportMakefile README.md mdadm.h+4 -700 replies
2/3mdadm: include asm/byteorder.hmdadm.h+1 -540 replies
3/3mdadm: use kernel raid headersCreate.c Detail.c Examine.c +8 more+17 -1470 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchXiao Ni
SeriesA-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v0 thread

Cover letter [PATCH v0 0/3] mdadm: Use kernel raid headers

From: Mariusz Tkaczyk <[email protected]>

Sending on ML for wider audience. I would like to confirm that there are no objections to remove klibc support.

Kernel is exporting md_p.h and md_u.h which were newer used by mdadm. This patchset integrates them with mdadm. There are some missing defines in kernel headers, so they are redefined in ifndef blocks.

md_p.h includes asm/byteorder.h and it provides endianess casting functions. These functions are also provided by klibc. To fix this, I removed klibc support because I determined that mdadm is not compiling with klibc for at least 3 years.

I also removed uclibc because it is not actively maintained, on other hand we are working to enable musl:
https://github.com/md-raid-utilities/mdadm/issues/76

Thanks for review and feedback.

Mariusz Tkaczyk (3):
mdadm: Remove klibc and uclibc support
mdadm: include asm/byteorder.h
mdadm: use kernel raid headers

 Create.c    |   2 -
 Detail.c    |   2 -
 Examine.c   |   2 -
 Grow.c      |   6 ---
 Kill.c      |   2 -
 Makefile    |  34 ++------------
 Manage.c    |   2 -
 Query.c     |   2 -
 README.md   |   3 --
 mdadm.h     | 108 +++++++-------------------------------------
 mdmonitor.c |   2 -
 super1.c    | 126 ++--------------------------------------------------
 udev.c      |   2 -
 13 files changed, 22 insertions(+), 271 deletions(-)
Signature · 1 line
2.43.0