Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 1999 19:04:31 +0700
From:      bp@butya.kz
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/12651: NFS readdirplus call is broken (with patch)
Message-ID:  <E114kFb-0008z4-00@lion.butya.kz>

next in thread | raw e-mail | index | archive | help

>Number:         12651
>Category:       kern
>Synopsis:       NFS readdirplus call is broken (with patch)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 15 05:10:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Boris Popov
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
>Environment:

	FreeBSD-stable, FreeBSD-current

>Description:

	Hash value calculation in componentname.cn_hash structure
has been changed and this change isn't reflected in NFS 
nfs_readdirplusrpc() function.

>How-To-Repeat:

	Code works but not in the way that it was designed.

>Fix:

--- org/nfs_vnops.c	Thu Jul 15 12:35:14 1999
+++ nfs_vnops.c	Thu Jul 15 18:56:42 1999
@@ -2357,7 +2357,7 @@
 				cnp->cn_hash = 0;
 				for (cp = cnp->cn_nameptr, i = 1; i <= len;
 				    i++, cp++)
-				    cnp->cn_hash += (unsigned char)*cp * i;
+				    cnp->cn_hash += (unsigned char)*cp;
 			        cache_enter(ndp->ni_dvp, ndp->ni_vp, cnp);
 			    }
 			} else {

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E114kFb-0008z4-00>