diff options
author | pfg <pfg@FreeBSD.org> | 2013-12-23 19:47:34 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2013-12-23 19:47:34 +0000 |
commit | a92784dd704f1ca222dcec561632db27e71b8666 (patch) | |
tree | 5da8a5d40708c6465b038ac53e936ef96d134bd8 /sys/fs | |
parent | 8ab82a5fe13e26cddefae4b3e57d3c2d8baf2b20 (diff) | |
download | FreeBSD-src-a92784dd704f1ca222dcec561632db27e71b8666.zip FreeBSD-src-a92784dd704f1ca222dcec561632db27e71b8666.tar.gz |
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
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/ext2fs/ext2_hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/ext2fs/ext2_hash.c b/sys/fs/ext2fs/ext2_hash.c index 85849b0..50a3811 100644 --- a/sys/fs/ext2fs/ext2_hash.c +++ b/sys/fs/ext2fs/ext2_hash.c @@ -289,8 +289,8 @@ ext2_htree_hash(const char *name, int len, len -= 32; name += 32; } - major = hash[0]; - minor = hash[1]; + major = hash[1]; + minor = hash[2]; break; default: goto error; |