From owner-freebsd-fs Thu Apr 24 17:48:22 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA13239 for fs-outgoing; Thu, 24 Apr 1997 17:48:22 -0700 (PDT) Received: from gatekeeper.tsc.tdk.com (root@gatekeeper.tsc.tdk.com [207.113.159.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA13226 for ; Thu, 24 Apr 1997 17:48:18 -0700 (PDT) Received: from sunrise.gv.tsc.tdk.com (root@sunrise.gv.tsc.tdk.com [192.168.241.191]) by gatekeeper.tsc.tdk.com (8.8.4/8.8.4) with ESMTP id RAA01421; Thu, 24 Apr 1997 17:48:15 -0700 (PDT) Received: from salsa.gv.tsc.tdk.com (salsa.gv.tsc.tdk.com [192.168.241.194]) by sunrise.gv.tsc.tdk.com (8.8.5/8.8.5) with ESMTP id RAA25196; Thu, 24 Apr 1997 17:48:14 -0700 (PDT) Received: (from gdonl@localhost) by salsa.gv.tsc.tdk.com (8.8.5/8.8.5) id RAA12907; Thu, 24 Apr 1997 17:48:12 -0700 (PDT) From: Don Lewis Message-Id: <199704250048.RAA12907@salsa.gv.tsc.tdk.com> Date: Thu, 24 Apr 1997 17:48:12 -0700 In-Reply-To: David Greenman "Re: the namei cache..." (Apr 24, 5:44pm) X-Mailer: Mail User's Shell (7.2.6 alpha(3) 7/19/95) To: dg@root.com, Don Lewis Subject: Re: the namei cache... Cc: fs@freebsd.org Sender: owner-fs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Apr 24, 5:44pm, David Greenman wrote: } Subject: Re: the namei cache... } >Also, the component name can be terminated with either a NUL or a /. } } Really? That's a surprise if true. This is right from the source: cnp->cn_hash = 0; for (cp = cnp->cn_nameptr; *cp != 0 && *cp != '/'; cp++) cnp->cn_hash += (unsigned char)*cp; cnp->cn_namelen = cp - cnp->cn_nameptr; It sure looks to me like it stops on '/' ;-) Also, even if you totally ditch the hash, you still need the loop to find the end of the component. --- Truck