Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Oct 2013 18:17:10 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r256448 - head/sys/ufs/ufs
Message-ID:  <201310141817.r9EIHAGV068947@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310141817.r9EIHAGV068947>