Date: Sat, 3 May 1997 19:17:19 +0200 (MET DST) From: Luigi Rizzo <luigi@labinfo.iet.unipi.it> To: hackers@freebsd.org Cc: ponds!rivers@dg-rtp.dg.com, luigi@labinfo.iet.unipi.it (Luigi Rizzo) Subject: NFS problems with lookup... maybe a bug ? Message-ID: <199705031717.TAA08479@labinfo.iet.unipi.it>
index | next in thread | raw e-mail
Hi,
while trying to make the diskless stuff work with 2.2, I encountered
the following problem. In order to get access to the swapfile, the code
(either netboot or kernel bootp) does a mount of the directory
containing the swapfile, and LOOKUP the swapfile itself.
in netboot, this is done by issuing an RPC call to NFS_LOOKUP which is
defined as follows:
/sys/i386/boot/netboot/netboot.h:#define NFS_LOOKUP 4
In the kernel bootp code, this is done by issuing an RPC to NFSPROC_LOOKUP,
which is defined as follows:
2.1R: /sys/nfs/nfsv2.h: #define NFSPROC_LOOKUP 4
2.2R: /sys/nfs/nfsproto.h: #define NFSPROC_LOOKUP 3
Ouch!...
Well I replaced NFSPROC_LOOKUP with NFSV2PROC_LOOKUP and the lookup
succeeds, and the swap is mounted correctly (and the diskless
machine seems to work, modulo some minor permission problems...).
At this point I am wondering if there might be some missing
translation (via nfsv2_procid[]) when calling the nfs routines. I
am particularly worried about userland stuff...
Also, I notice we still have /sys/nfs/nfsv2.h which is obsolete, and
all it does is #include "nfsproto.h". Would it be possible to remove it
(and fix the parts which still include it) or at least make it a link
to nfsproto.h ?
Luigi
-----------------------------+--------------------------------------
Luigi Rizzo | Dip. di Ingegneria dell'Informazione
email: luigi@iet.unipi.it | Universita' di Pisa
tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy)
fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/
_____________________________|______________________________________
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705031717.TAA08479>
