Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Dec 2013 19:47:34 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r259780 - head/sys/fs/ext2fs
Message-ID:  <201312231947.rBNJlYHW014939@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pfg
Date: Mon Dec 23 19:47:34 2013
New Revision: 259780
URL: http://svnweb.freebsd.org/changeset/base/259780

Log:
  ext2fs: make the hashing algorithm match the linux code.
  
  There appears to be a hash function compatibility issue.
  The code is currently disabled but fix it nevertheless.
  
  PR:		kern/183230
  MFC after:	3 days

Modified:
  head/sys/fs/ext2fs/ext2_hash.c

Modified: head/sys/fs/ext2fs/ext2_hash.c
==============================================================================
--- head/sys/fs/ext2fs/ext2_hash.c	Mon Dec 23 19:29:07 2013	(r259779)
+++ head/sys/fs/ext2fs/ext2_hash.c	Mon Dec 23 19:47:34 2013	(r259780)
@@ -289,8 +289,8 @@ ext2_htree_hash(const char *name, int le
 			len -= 32;
 			name += 32;
 		}
-		major = hash[0];
-		minor = hash[1];
+		major = hash[1];
+		minor = hash[2];
 		break;
 	default:
 		goto error;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312231947.rBNJlYHW014939>