svn commit: r259780 - head/sys/fs/ext2fs
Pedro F. Giffuni
pfg at FreeBSD.org
Mon Dec 23 19:47:35 UTC 2013
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;
More information about the svn-src-head
mailing list