From: Michael Tokarev <mjt@tls.msk.ru>
To: Lars Marowsky-Bree <lmb@suse.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: patches for mdadm 1.8.0 (auto=dev and stacking of devices)
Date: Sun, 23 Jan 2005 19:46:29 +0300 [thread overview]
Message-ID: <41F3D4E5.1020300@tls.msk.ru> (raw)
In-Reply-To: <20050123152819.GE24350@marowsky-bree.de>
Lars Marowsky-Bree wrote:
> On 2005-01-23T16:13:05, Luca Berra <bluca@comedia.it> wrote:
>
>>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.
>
> Am I missing something but shouldn't this be fixed by having udev +
> hotplug create the /dev entry correctly?
There's a chicken-n-eggs problem here. In order for mdadm to create
an md device (so it will be noticed by udev/hotplug), it have to open
the control device, which, in case of md, is just any /dev/mdN. But
before first array gets assembled, there's NO mdN entries in /dev.
mdadm tries to open /dev/md1 to get control interface, which isn't
created automatically. When an array actually gets created, it will
be noticied by hotplug/udev as it should be (provided everything is
set up correctly ofcourse).
BTW, is there a real need to do that? In theory, one might just
create the necessary /dev/md1 from within startup script...
/mjt
next prev parent reply other threads:[~2005-01-23 16:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41F3D4E5.1020300@tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=linux-raid@vger.kernel.org \
--cc=lmb@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).