hello,
i attach two patches for mdadm 1.8.0

the first one adds an auto=dev parameter
rationale: udev does not create /dev/md* device files, so we need a way
to create them when assembling the md device.
auto=yes allocates the first free minor number, so mdadm -A --auto=yes
/dev/md2 .... yelds a weird result if /dev/md2 is the first device
created (it would use 0 as minor)
here comes auto=dev which would use the standard minor number for
/dev/md2.

the second one fixes creation of stacked devices.
it adds a missing close(mdfd) in mdadm.c that caused the BLKGETSIZE64 ioctl in load_super to fail if the device was created
in the same mdadm run. (* This is very important to fix *)

It also modifies load_conffile in config.c to recreate the device list
at each run if "partition" is given as config file or appears in a
DEVICE line. This allows "DEVICE partition" to consider md devices
created during the same run of mdadm, removing the need to add
"/dev/md??" to the DEVICE line to enable stacked devices.

Regards,
L.


-- Luca Berra -- [EMAIL PROTECTED] Communication Media & Services S.r.l. /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \

Attachment: mdadm-1.8.0-autodev.patch.bz2
Description: Binary data


Attachment: mdadm-1.8.0-stacked.patch.bz2
Description: Binary data

Reply via email to