From owner-freebsd-hackers Fri Sep 29 20:16:49 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from c014.sfo.cp.net (c014-h023.c014.sfo.cp.net [209.228.12.87]) by hub.freebsd.org (Postfix) with SMTP id 74B9537B66C for ; Fri, 29 Sep 2000 20:16:46 -0700 (PDT) Received: (cpmta 25222 invoked from network); 29 Sep 2000 20:16:45 -0700 Received: from d8c81e5f.dsl.flashcom.net (HELO quadrajet.flashcom.com) (216.200.30.95) by smtp.flashcom.net (209.228.12.87) with SMTP; 29 Sep 2000 20:16:45 -0700 X-Sent: 30 Sep 2000 03:16:45 GMT Received: (from guy@localhost) by quadrajet.flashcom.com (8.9.3/8.9.3) id UAA00405; Fri, 29 Sep 2000 20:16:45 -0700 (PDT) (envelope-from gharris) Date: Fri, 29 Sep 2000 20:16:45 -0700 From: Guy Harris To: Danny Braniss Cc: Guy Harris , Guy Harris , freebsd-hackers@freebsd.org Subject: Re: nfs v2 Message-ID: <20000929201645.A365@quadrajet.flashcom.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from danny@cs.huji.ac.il on Fri, Sep 29, 2000 at 10:47:24AM +0300 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Sep 29, 2000 at 10:47:24AM +0300, Danny Braniss wrote: > basicaly, if i understand your explanation, i will always have problems > with mknod and v2/v3. Yes, mknod done with V3 will, unless your server treats special file major/minor device numbers the way FreeBSD does, probably create a special file that FreeBSD won't see as having the right major/minor device number. > so i see only one solution: only use v3 for nfs-root clients, correct? That's probably the only solution that's guaranteed to work; given that FreeBSD's minor device number isn't stored in the lower N bits of the dev_t, I could see a V3 server, when it constructs a dev_t from the major and minor sent over the wire in a V3 MKNOD, overlapping bits from the major and minor device, causing information to be lost. Just in case there are servers that don't do V3, however, I'd try V3 and, if the server rejects the V3 request with PROG_MISMATCH, try V2 (and do a similar fallback with mount). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message