Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Konrad Schroder <perseant@netbsd.org>
List: source-changes
Date: 05/05/2000 13:59:22
Module Name:	syssrc
Committed By:	perseant
Date:		Fri May  5 20:59:22 UTC 2000

Modified Files:
	syssrc/sys/ufs/lfs: lfs.h lfs_balloc.c lfs_bio.c lfs_inode.c
	    lfs_segment.c lfs_subr.c
	syssrc/sys/ufs/ufs: ufs_vnops.c

Log Message:
Change the way LFS does block accounting, from trying to infer from the
buffer cache flags, to marking the inode and/or indirect blocks with a
special disk address UNWRITTEN==-2 when a block is accounted for.  (This
address is never written to disk, but only used in-core.  This is essentially
the same method of block accounting as on the UBC branch, where the buffer
headers don't exist.)  Make sure that truncation is handled properly,
especially in the case of holey files.

Fixes PR#9994.


To generate a diff of this commit:
cvs rdiff -r1.20 -r1.21 syssrc/sys/ufs/lfs/lfs.h
cvs rdiff -r1.15 -r1.16 syssrc/sys/ufs/lfs/lfs_balloc.c
cvs rdiff -r1.17 -r1.18 syssrc/sys/ufs/lfs/lfs_bio.c
cvs rdiff -r1.34 -r1.35 syssrc/sys/ufs/lfs/lfs_inode.c
cvs rdiff -r1.42 -r1.43 syssrc/sys/ufs/lfs/lfs_segment.c
cvs rdiff -r1.13 -r1.14 syssrc/sys/ufs/lfs/lfs_subr.c
cvs rdiff -r1.64 -r1.65 syssrc/sys/ufs/ufs/ufs_vnops.c

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