svn commit: r256448 - head/sys/ufs/ufs

Pedro F. Giffuni pfg at FreeBSD.org
Mon Oct 14 18:17:10 UTC 2013


Author: pfg
Date: Mon Oct 14 18:17:09 2013
New Revision: 256448
URL: http://svnweb.freebsd.org/changeset/base/256448

Log:
  Make di_blocks unsigned in UFS1 as is the case already for UFS2.
  
  Most of the code between UFS1 and UFS2 is shared so this change
  is pretty safe. Not only this makes UFS1 and 2 consistent but it
  also matches what NetBSD and MacOS X have for some years now.
  
  Reviewed by:	mckusick
  MFC after:	1 month

Modified:
  head/sys/ufs/ufs/dinode.h

Modified: head/sys/ufs/ufs/dinode.h
==============================================================================
--- head/sys/ufs/ufs/dinode.h	Mon Oct 14 17:58:49 2013	(r256447)
+++ head/sys/ufs/ufs/dinode.h	Mon Oct 14 18:17:09 2013	(r256448)
@@ -179,7 +179,7 @@ struct ufs1_dinode {
 	ufs1_daddr_t	di_db[NDADDR];	/*  40: Direct disk blocks. */
 	ufs1_daddr_t	di_ib[NIADDR];	/*  88: Indirect disk blocks. */
 	u_int32_t	di_flags;	/* 100: Status flags (chflags). */
-	int32_t		di_blocks;	/* 104: Blocks actually held. */
+	u_int32_t	di_blocks;	/* 104: Blocks actually held. */
 	u_int32_t	di_gen;		/* 108: Generation number. */
 	u_int32_t	di_uid;		/* 112: File owner. */
 	u_int32_t	di_gid;		/* 116: File group. */


More information about the svn-src-head mailing list