socsvn commit: r223159 - soc2011/gk/ino64-head/sys/ufs/ufs

gk at FreeBSD.org gk at FreeBSD.org
Sun Jun 12 18:38:35 UTC 2011


Author: gk
Date: Sun Jun 12 18:38:32 2011
New Revision: 223159
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=223159

Log:
  ufs: Stop mangling dirent in ufs_extattr_iterate_directory
  
  It's meaningles after switching to new dirent format

Modified:
  soc2011/gk/ino64-head/sys/ufs/ufs/ufs_extattr.c

Modified: soc2011/gk/ino64-head/sys/ufs/ufs/ufs_extattr.c
==============================================================================
--- soc2011/gk/ino64-head/sys/ufs/ufs/ufs_extattr.c	Sun Jun 12 18:38:22 2011	(r223158)
+++ soc2011/gk/ino64-head/sys/ufs/ufs/ufs_extattr.c	Sun Jun 12 18:38:32 2011	(r223159)
@@ -405,12 +405,6 @@
 		 */
 		edp = (struct dirent *)&dirbuf[DIRBLKSIZ];
 		for (dp = (struct dirent *)dirbuf; dp < edp; ) {
-#if (BYTE_ORDER == LITTLE_ENDIAN)
-			dp->d_type = dp->d_namlen;
-			dp->d_namlen = 0;
-#else
-			dp->d_type = 0;
-#endif
 			if (dp->d_reclen == 0)
 				break;
 			error = ufs_extattr_lookup(dvp, UE_GETDIR_LOCKPARENT,


More information about the svn-soc-all mailing list