From: David Dillow <dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
To: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: David Dillow <dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
Subject: [RFC ONLY 0/5] Move argument validation to root handlers
Date: Fri, 3 Jul 2009 17:40:00 -0400 [thread overview]
Message-ID: <cover.1246656269.git.dave@thedillows.org> (raw)
This patchset will need to be rebased onto Harold's series from today, but
I wanted to post where I was at to get some feedback anyway.
This series moves the dracut syntax parsing and validation into the root
handlers, and leaves the legacy syntax translation and other warnings to
the command line argument parsers. Moving the parsing into the handlers
centralizes the code and allows us to leverage that work to implement a
mechanism to wait for a spanning tree to stop blocking traffic prior to
attempting a mount.
Parts of the last patch should probably be merged with patch 4 -- there
is no need to add a 'checkdhcp' command to the root handlers only to turn
around and rename it in the next patch -- and is still rather rough. I'm
not keen on using /tmp/server to pass IPs back to netroot, but having it
echo'd from the netroot handler means we break when using rdnetdebug. That
is easily fixable by not redirecting stdout during rdnetdebug, but I need
to look closer to make sure that doesn't break anything else.
Also, the waiting for spanning tree parts will need to be adapted to handle
multiple IP addresses for iSCSI, if and when we support that.
I've tried to not change syntax support during the conversion, limiting
support to the existing ones. The current test suite passes at all steps,
but a new test suite to test our parsing (with expected failures) may be
a good thing to add.
iSCSI remains a mess -- I think we need to look at what we're supporitng
there, and improve the validation. I moved some checks into iscsiroot, but
it is a bit unclear where the legacy syntaxes came from, and what we
really want to support going forward. Also, we need to be able to parse the
iSCSI firmware tables to figure out which IP to use for arping.
David Dillow (5):
netroot: remove unused hook
netroot: remove unhelpful argument checks
netroot: remove netif from handler invocation
netroot: move dracut syntax validation to root handlers
PROOF-OF-CONCEPT: wait for spanning tree timeout via arping
dracut | 2 +-
modules.d/40network/dhclient-script | 11 ++-
modules.d/40network/ifup | 8 ++-
modules.d/40network/install | 2 +-
modules.d/40network/netroot | 101 +++++++++++++++-------
modules.d/95iscsi/iscsiroot | 57 +++++++++----
modules.d/95iscsi/parse-iscsiroot.sh | 21 +----
modules.d/95nbd/nbdroot | 37 +++++---
modules.d/95nbd/parse-nbdroot.sh | 34 ++------
modules.d/95nfs/nfsroot | 158 ++++++++++++++++++----------------
modules.d/95nfs/parse-nfsroot.sh | 155 ++++++++++++---------------------
11 files changed, 302 insertions(+), 284 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2009-07-03 21:40 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-03 21:40 David Dillow [this message]
[not found] ` <cover.1246656269.git.dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
2009-07-03 21:40 ` [RFC ONLY 1/5] netroot: remove unused hook David Dillow
[not found] ` <bd4d79bc048ad3944156f86eafb62cf4bc29b1f9.1246656269.git.dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
2009-07-06 12:56 ` Seewer Philippe
2009-07-03 21:40 ` [RFC ONLY 2/5] netroot: remove unhelpful argument checks David Dillow
[not found] ` <0535c73bd25fdcaa9bf4de0bc4b041b74d11e547.1246656269.git.dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
2009-07-06 13:00 ` Seewer Philippe
2009-07-03 21:40 ` [RFC ONLY 3/5] netroot: remove netif from handler invocation David Dillow
[not found] ` <44494af931ad839908cb4542f7c35ae59a4ef65e.1246656269.git.dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
2009-07-06 13:56 ` Seewer Philippe
[not found] ` <4A520291.7010203-omB+W0Dpw2o@public.gmane.org>
2009-07-06 14:43 ` David Dillow
[not found] ` <1246891382.24010.6.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
2009-07-06 15:02 ` Seewer Philippe
[not found] ` <4A521208.2050605-omB+W0Dpw2o@public.gmane.org>
2009-07-06 16:06 ` David Dillow
[not found] ` <1246896365.24010.14.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
2009-07-07 8:10 ` Seewer Philippe
2009-07-03 21:40 ` [RFC ONLY 4/5] netroot: move dracut syntax validation to root handlers David Dillow
[not found] ` <d1aed501ae771d769efcd370f47184f12b9800d6.1246656269.git.dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
2009-07-07 7:47 ` Seewer Philippe
[not found] ` <4A52FD93.3000406-omB+W0Dpw2o@public.gmane.org>
2009-07-07 14:57 ` David Dillow
2009-07-03 21:40 ` [RFC ONLY 5/5] PROOF-OF-CONCEPT: wait for spanning tree timeout via arping David Dillow
[not found] ` <8cf3d034e4611fbe661d4585fbfd1a03a6fd094b.1246656269.git.dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
2009-07-07 8:08 ` Seewer Philippe
[not found] ` <4A530297.1020906-omB+W0Dpw2o@public.gmane.org>
2009-07-07 15:09 ` David Dillow
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=cover.1246656269.git.dave@thedillows.org \
--to=dave-i1mk8jydvaasihdk6806/g@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.