Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Nov 2002 18:12:17 +0000 (UTC)
From:      lm <omestre@SDF.LONESTAR.ORG>
To:        freebsd-net@freebsd.org
Subject:   file handle
Message-ID:  <Pine.NEB.4.44.0211291809470.19875-100000@sdf.lonestar.org>

next in thread | raw e-mail | index | archive | help

 Hello all...
 I have one problem and i guess that you can help me...
 I have some FreeBSD diskless machines, 4.7 ones, working fine.
 The kernel have been compiled with root_nfs, bootp, and bootp_nfsroot
support. So, the ip, network, mask and other configurations are been set
with bootp/dhcp protocol.
 But the machines have hard drives, and i do not obtain nothing
purchaising then without one... So, i use it. To load the kernel and  for
swap device. The loader.4th is working fine ...I was looking in the
bootp_subr.c code, and saw
whatit does... i saw the pxe.c code too, and saw the boot.netif variables.
 Now, because i know what variables to set, i do not want bootp anymore.
:)
 The boot.netif.ip, boot.netif.netmask, boot.netif.rootpath and so on, i
set without problems, but the boot.netif.nfshandle not. :(
 Browsing one more time the bootp_subr.c and pxe.c codes, i saw the
procedures that set this variable. I'm trying to reproduce it in
autoconf.c code, but i can't. The other variables i can set in
loader.conf, but i need a function that retrieve from nfs server the nfs
handle for the root filesystem. Somebody knows the nfs protocol to help me
in the job to write a patch to autoconf.c and sets this variable?
 I guess that is not so hard task, but i do not write one c code a long
time ago... :)
 Thanks very much!!!
 And sory by the english...

 I guess that freebsd do not think in this situation. Today, HD is not so
expansive, and a misc solution is fine! Maybe, one manner for set ip mask
and this magic file handle without dynamic protocols...

omestre@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.4.44.0211291809470.19875-100000>