From owner-freebsd-hackers Sat May 3 10:59:30 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id KAA07297 for hackers-outgoing; Sat, 3 May 1997 10:59:30 -0700 (PDT) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id KAA07284 for ; Sat, 3 May 1997 10:59:25 -0700 (PDT) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id TAA08479; Sat, 3 May 1997 19:17:20 +0200 From: Luigi Rizzo Message-Id: <199705031717.TAA08479@labinfo.iet.unipi.it> Subject: NFS problems with lookup... maybe a bug ? To: hackers@freebsd.org Date: Sat, 3 May 1997 19:17:19 +0200 (MET DST) Cc: ponds!rivers@dg-rtp.dg.com, luigi@labinfo.iet.unipi.it (Luigi Rizzo) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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/ _____________________________|______________________________________