Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Dec 2010 11:19:39 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r216792 - head/sys/ufs/ufs
Message-ID:  <201012291119.oBTBJd8d098769@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Wed Dec 29 11:19:39 2010
New Revision: 216792
URL: http://svn.freebsd.org/changeset/base/216792

Log:
  Use a proper type for the variable holding the summary size of the inode
  data. Otherwise, on 32bit systems, unlinked inode which size is the
  multiple of 4GB was not truncated, causing corruption.
  
  Reported by:	brucec
  Reviewed by:	mckusick
  Tested by:	pho

Modified:
  head/sys/ufs/ufs/ufs_inode.c

Modified: head/sys/ufs/ufs/ufs_inode.c
==============================================================================
--- head/sys/ufs/ufs/ufs_inode.c	Wed Dec 29 09:26:46 2010	(r216791)
+++ head/sys/ufs/ufs/ufs_inode.c	Wed Dec 29 11:19:39 2010	(r216792)
@@ -76,7 +76,7 @@ ufs_inactive(ap)
 	struct thread *td = ap->a_td;
 	mode_t mode;
 	int error = 0;
-	int isize;
+	off_t isize;
 	struct mount *mp;
 
 	mp = NULL;



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