freebsd-nq/sys/ufs/ffs
Bruce Evans ccb174975a Fixed lblktosize(). It overflowed at 2G. This bug only affected
ufs_read() and ufs_write().

Found by: looking at warnings for comparing the result of lblktosize()
(which is usually daddr_t = long) with file sizes (which are u_quad_t
for ufs).  File sizes should probably be off_t's to avoid warnings
when the are compared with file offsets, so the fixed lblktosize()
casts to off_t instead of u_quad_t.

Added definition of smalllblksize().  It is the same as the old
lblksize() and is more efficient for small block numbers on 32-bit
machines.

Use smalllblktosize() instead of its expansion in blksize() and
dblksize().  This keeps the line length short and makes it more
obvious that the shift can't overflow.
1996-10-12 22:12:51 +00:00
..
ffs_alloc.c Argh, I have had one "uid 0 on /: file system full" too many. The problem 1996-09-17 14:38:16 +00:00
ffs_balloc.c Eliminated many redundant vm_map_lookup operations for vm_mmap. 1996-01-19 04:00:31 +00:00
ffs_extern.h Removed bogus _BEGIN_DECLS/_END_DECLS. 1996-05-01 02:16:17 +00:00
ffs_inode.c In sys/time.h, struct timespec is defined as: 1996-09-19 18:21:32 +00:00
ffs_subr.c Convert DDB to new-style option. 1996-01-04 21:13:23 +00:00
ffs_tables.c Staticize. 1995-12-17 21:14:36 +00:00
ffs_vfsops.c Fix a VOP_UNLOCK panic when using options DIAGNOSTIC during dismount. 1996-09-07 17:34:57 +00:00
ffs_vnops.c Staticize. 1995-12-17 21:14:36 +00:00
fs.h Fixed lblktosize(). It overflowed at 2G. This bug only affected 1996-10-12 22:12:51 +00:00