Subject: CVS commit: src/sys/ufs/lfs
To: None <source-changes@NetBSD.org>
From: Konrad Schroder <perseant@netbsd.org>
List: source-changes
Date: 04/14/2005 00:02:47
Module Name:	src
Committed By:	perseant
Date:		Thu Apr 14 00:02:46 UTC 2005

Modified Files:
	src/sys/ufs/lfs: lfs.h lfs_alloc.c lfs_inode.c lfs_segment.c
	    lfs_vfsops.c

Log Message:
Keep track of the highest block held by an LFS inode, so that we can
be assured that the last byte of a file is always allocated.  Previously
a file extension could cause the filesystem to be flushed, writing an
inconsistent inode to disk.  Although this condition would be corrected
the next time blocks were written to disk, an intervening crash would leave
the filesystem in an inconsistent state, leaving fsck_lfs to complain
of an inode "partially truncated".


To generate a diff of this commit:
cvs rdiff -r1.78 -r1.79 src/sys/ufs/lfs/lfs.h src/sys/ufs/lfs/lfs_alloc.c
cvs rdiff -r1.91 -r1.92 src/sys/ufs/lfs/lfs_inode.c
cvs rdiff -r1.159 -r1.160 src/sys/ufs/lfs/lfs_segment.c
cvs rdiff -r1.171 -r1.172 src/sys/ufs/lfs/lfs_vfsops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.