From mboxrd@z Thu Jan 1 00:00:00 1970 From: Seewer Philippe Subject: Re: %s substitution Date: Fri, 19 Jun 2009 10:18:58 +0200 Message-ID: <4A3B49F2.8010404@bfh.ch> References: <4A39A9AF.6070009@redhat.com> <4A3A13A8.6050100@bfh.ch> <4A3A7DE0.4060801@redhat.com> <1245379718.28792.3.camel@lap75545.ornl.gov> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1245379718.28792.3.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org> Sender: initramfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: David Dillow Cc: Warren Togami , initramfs David Dillow wrote: [snip] >> Also, did you verify that the ip format you generate is identical to the >> "ASCII-representation of the client's IP address" as generated by the >> kernel? > > The kernel docs say IP address, but the actual kernel code uses the host > name if set and falls back to the IP address. That is indeed the case (from vanilla 2.6.29/fs/nfs/nfsroot.c): [quote] * Martin Mares : Default path now contains host name instead of * host IP address (but host name defaults to IP * address anyway). [/quote] [quote] cp = utsname()->nodename; if (strlen(buf) + strlen(cp) > NFS_MAXPATHLEN) { printk(KERN_ERR "Root-NFS: Pathname for remote directory too long.\n"); return -1; } sprintf(nfs_path, buf, cp); [/quote] -- 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