From: Ben LaHaise <bcrl@redhat.com>
To: <linux-kernel@vger.kernel.org>
Cc: <alan@redhat.com>
Subject: [PATCH] make nfsroot accept server addresses from BOOTP root
Date: Mon, 19 Feb 2001 18:12:12 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.30.0102191809350.27085-100000@today.toronto.redhat.com> (raw)
Hello,
Here's a handy little patch that makes the kernel parse out the ip
address of the nfs server from the bootp root path. Otherwise it's
impossible to boot the kernel without command line options on diskless
workstations (I hate RPL).
-ben
diff -ur v2.4.1-ac18/fs/nfs/nfsroot.c work/fs/nfs/nfsroot.c
--- v2.4.1-ac18/fs/nfs/nfsroot.c Mon Sep 25 16:13:53 2000
+++ work/fs/nfs/nfsroot.c Mon Feb 19 18:05:24 2001
@@ -224,8 +224,7 @@
}
}
if (name[0] && strcmp(name, "default")) {
- strncpy(buf, name, NFS_MAXPATHLEN-1);
- buf[NFS_MAXPATHLEN-1] = 0;
+ root_nfs_parse_addr(name);
}
}
next reply other threads:[~2001-02-19 23:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-19 23:12 Ben LaHaise [this message]
2001-02-20 17:44 ` [PATCH] make nfsroot accept server addresses from BOOTP root Tom Rini
2001-02-20 18:12 ` Ben LaHaise
2001-02-20 18:20 ` Tom Rini
2001-02-20 23:02 ` Russell King
2001-02-20 23:25 ` Tom Rini
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=Pine.LNX.4.30.0102191809350.27085-100000@today.toronto.redhat.com \
--to=bcrl@redhat.com \
--cc=alan@redhat.com \
--cc=linux-kernel@vger.kernel.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 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).