linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* patches for mdadm 1.8.0 (auto=dev and stacking of devices)
@ 2005-01-23 15:13 Luca Berra
  2005-01-23 15:28 ` Lars Marowsky-Bree
  2005-01-24  5:06 ` Neil Brown
  0 siblings, 2 replies; 10+ messages in thread
From: Luca Berra @ 2005-01-23 15:13 UTC (permalink / raw)
  To: linux-raid; +Cc: Neil Brown

[-- Attachment #1: Type: text/plain, Size: 1180 bytes --]

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 -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

[-- Attachment #2: mdadm-1.8.0-autodev.patch.bz2 --]
[-- Type: application/octet-stream, Size: 2462 bytes --]

[-- Attachment #3: mdadm-1.8.0-stacked.patch.bz2 --]
[-- Type: application/octet-stream, Size: 1070 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-01-24  9:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-23 15:13 patches for mdadm 1.8.0 (auto=dev and stacking of devices) Luca Berra
2005-01-23 15:28 ` Lars Marowsky-Bree
2005-01-23 16:13   ` Peter T. Breuer
2005-01-23 16:46   ` Michael Tokarev
2005-01-23 17:00     ` Luca Berra
2005-01-23 18:52       ` Peter T. Breuer
2005-01-23 19:14         ` Luca Berra
2005-01-23 20:27           ` Peter T. Breuer
2005-01-24  5:06 ` Neil Brown
2005-01-24  9:38   ` Luca Berra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).