]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm: Add define for magic +9 in version string main master
authorMariusz Tkaczyk <mtkaczyk@kernel.org>
Fri, 3 Jul 2026 07:30:28 +0000 (09:30 +0200)
committerMariusz Tkaczyk <mtkaczyk@kernel.org>
Wed, 22 Jul 2026 05:52:55 +0000 (07:52 +0200)
commitd1447022d4a273a6bd9eeb403f9711561c9ad8f6
tree9c12b8512f1272cfaae97da748e54bf399455240
parent55b5c89b7788484bb26d13ce3d0c93abf18cc50b
mdadm: Add define for magic +9 in version string

To have it better understandable add definitions for that.
Definition is placed in md_common.h because it is corresponding to both
mdstat and sysfs implementations. Probably more shared properties will
be defined in the future.

The MD_EXTERNAL_PREFIX_LEN and MD_VERSION_BLOCKED_IDX are the same
but are defined for different purpose. One is specyfing size
of string but the second is specyfing index in the array.

Also, replaces magic "external" used in code.

No functional changes intended.

Signed-off-by: Mariusz Tkaczyk <mtkaczyk@kernel.org>
12 files changed:
Assemble.c
Detail.c
Grow.c
Manage.c
md_common.h [new file with mode: 0644]
mdmonitor.c
mdstat.c
mdstat.h
msg.c
super-intel.c
sysfs.c
util.c