From owner-freebsd-hackers Fri Nov 29 10: 8:43 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 004EF37B401 for ; Fri, 29 Nov 2002 10:08:42 -0800 (PST) Received: from sdf.lonestar.org (sdf.lonestar.org [207.202.214.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C78943EB2 for ; Fri, 29 Nov 2002 10:08:41 -0800 (PST) (envelope-from omestre@sdf.lonestar.org) Received: by sdf.lonestar.org (8.11.6+3.4W/8.11.6) id gATI8cN25800; Fri, 29 Nov 2002 18:08:38 GMT Date: Fri, 29 Nov 2002 18:08:38 +0000 (UTC) From: lm To: freebsd-hackers@freebsd.org Subject: file handle Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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-hackers" in the body of the message