svn commit: r259904 - stable/10/sys/fs/ext2fs

Pedro F. Giffuni pfg at FreeBSD.org
Thu Dec 26 01:12:36 UTC 2013


Author: pfg
Date: Thu Dec 26 01:12:35 2013
New Revision: 259904
URL: http://svnweb.freebsd.org/changeset/base/259904

Log:
  MFC	r258904, r259780:
  Small ext2fs updates.
  
  Add two new reserved inodes.
  Make the hashing algorithm match the linux code.
  
  PR:		kern/183230

Modified:
  stable/10/sys/fs/ext2fs/ext2_dinode.h
  stable/10/sys/fs/ext2fs/ext2_hash.c

Modified: stable/10/sys/fs/ext2fs/ext2_dinode.h
==============================================================================
--- stable/10/sys/fs/ext2fs/ext2_dinode.h	Thu Dec 26 01:11:51 2013	(r259903)
+++ stable/10/sys/fs/ext2fs/ext2_dinode.h	Thu Dec 26 01:12:35 2013	(r259904)
@@ -44,6 +44,8 @@
 #define	EXT2_UNDELDIRINO	((ino_t)6)
 #define	EXT2_RESIZEINO		((ino_t)7)
 #define	EXT2_JOURNALINO		((ino_t)8)
+#define	EXT2_EXCLUDEINO		((ino_t)9)
+#define	EXT2_REPLICAINO		((ino_t)10)
 #define	EXT2_FIRSTINO		((ino_t)11)
 
 /*

Modified: stable/10/sys/fs/ext2fs/ext2_hash.c
==============================================================================
--- stable/10/sys/fs/ext2fs/ext2_hash.c	Thu Dec 26 01:11:51 2013	(r259903)
+++ stable/10/sys/fs/ext2fs/ext2_hash.c	Thu Dec 26 01:12:35 2013	(r259904)
@@ -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-all mailing list