Subject: CVS commit: syssrc/sys/ufs/ffs
To: None <source-changes@netbsd.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 08/31/2001 06:15:46
Module Name:	syssrc
Committed By:	lukem
Date:		Fri Aug 31 03:15:46 UTC 2001

Modified Files:
	syssrc/sys/ufs/ffs: fs.h

Log Message:
More fixes from FreeBSD (with changes):
- Cast blk argument to lblktosize() to (off_t), to prevent 32 bit overflow.
  whilst almost every use in ffs used this for small blknos, there are
  potential issues, and it's safer this way.  (as discussed with chuq)
- Use 64bit (off_t) math to calculate if we have hit our freespace() limit.
  Necessary for coherent results on filesystems bigger than 0.5Tb.
- Use lblktosize() in blksize() and dblksize(), to make it obvious what's
  happening
- Remove sblksize() - nothing uses it


To generate a diff of this commit:
cvs rdiff -r1.16 -r1.17 syssrc/sys/ufs/ffs/fs.h

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