Date: Thu, 13 Dec 2001 17:18:01 +0100 From: Wilko Bulte <wkb@freebie.xs4all.nl> To: Kirk McKusick <mckusick@FreeBSD.ORG> Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/ufs/ffs ffs_inode.c Message-ID: <20011213171801.A80549@freebie.xs4all.nl> In-Reply-To: <200112130507.fBD57n063530@freefall.freebsd.org>; from mckusick@FreeBSD.ORG on Wed, Dec 12, 2001 at 09:07:49PM -0800 References: <200112130507.fBD57n063530@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 12, 2001 at 09:07:49PM -0800, Kirk McKusick wrote: > mckusick 2001/12/12 21:07:49 PST > > Modified files: > sys/ufs/ffs ffs_inode.c > Log: > When a file is partially truncated, we first check to see if the > new file end will land in the middle of a file hole. Since the last > block of a file must always be allocated, the hole is filled by > allocating a block at that location. If the hole being filled is > a direct block, then the truncation may eventually reduce the > full sized block down to a fragment. When running with soft > updates, it is necessary to FSYNC the file after allocating the > block and before creating the fragment to avoid triggering a > soft updates inconsistency when the block unexpectedly shrinks. > > Found by: Matthew Dillon <dillon@apollo.backplane.com> > MFC after: 1 week FWIW: that is almost exactly on Code Freeze Day. Is this fix critical for 4.5-R ? -- | / o / /_ _ email: wilko@FreeBSD.org |/|/ / / /( (_) Bulte Arnhem, The Netherlands To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011213171801.A80549>