[parted-devel] [PATCH] Add support for Linux software RAID arrays (mdraid)
Jim Meyering
jim at meyering.net
Fri Apr 16 08:34:28 UTC 2010
Petr Uzel wrote:
> Recognize MD devices, so "parted -s /dev/md0 print" now prints
> "Model: Linux Software RAID Array (md)" instead of
> "Model: Unknown (unknown)".
>
> * include/parted/device.h(PedDeviceType): Add PED_DEVICE_MD.
> * libparted/arch/linux.c(MD_MAJOR): New define.
> * libparted/arch/linux.c(_device_probe_type): Recognize MD array.
> * libparted/arch/linux.c(linux_new): Handle MD array.
> * parted/parted.c(do_print): Add "md" to the list of available
> transports.
> * NEWS (New features): Mention it.
Thank you for the complete patch.
I've applied it, with minor changes to the log.
The main change was to prefix the summary with "libparted: "
and lower-case the "A". The rest was white-space-only.
--- log 2010-04-16 10:31:17.314876254 +0200
+++ log-new 2010-04-16 10:31:59.067876583 +0200
@@ -1,13 +1,13 @@
-Add support for Linux software RAID arrays (mdraid)
+libparted: add support for Linux software RAID arrays (mdraid)
Recognize MD devices, so "parted -s /dev/md0 print" now prints
"Model: Linux Software RAID Array (md)" instead of
"Model: Unknown (unknown)".
-* include/parted/device.h(PedDeviceType): Add PED_DEVICE_MD.
-* libparted/arch/linux.c(MD_MAJOR): New define.
-* libparted/arch/linux.c(_device_probe_type): Recognize MD array.
-* libparted/arch/linux.c(linux_new): Handle MD array.
+* include/parted/device.h (PedDeviceType): Add PED_DEVICE_MD.
+* libparted/arch/linux.c (MD_MAJOR): New define.
+* libparted/arch/linux.c (_device_probe_type): Recognize MD array.
+* libparted/arch/linux.c (linux_new): Handle MD array.
* parted/parted.c(do_print): Add "md" to the list of available
- transports.
+transports.
* NEWS (New features): Mention it.
More information about the parted-devel
mailing list