NetBSD/sys/ufs
fvdl 418264a670 Some bugfixes from rev 1.33 and 1.34 of this file in FreeBSD (some
in effect cosmetic). Original FreeBSD commit messages:

==
date: 2000/03/15 07:18:15;  author: mckusick;  state: Exp;  lines: +4 -4
Bug fixes for currently harmless bugs that could rise to bite
the unwary if the code were called in slightly different ways.

[...]

2) In ufs_lookup() there is an off-by-one error in the test that checks
if dp->i_diroff is outside the range of the the current directory size.
This is completely harmless, since the following while-loop condition
'dp->i_offset < endsearch' is never met, so the code immediately
does a second pass starting at dp->i_offset = 0.

3) Again in ufs_lookup(), the condition in a sanity check is wrong
for directories that are longer than one block. This bug means that
the sanity check is only effective for small directories.

Submitted by:   Ian Dowse <iedowse@maths.tcd.ie>

==

date: 2000/03/09 18:54:59;  author: dillon;  state: Exp;  lines: +2 -2
branches:  1.33.2;
    In the 'found' case for ufs_lookup() the underlying bp's data was
    being accessed after the bp had been releaed.  A simple move of the
    brelse() solves the problem.

Approved by: jkh
Submitted by:  Ian Dowse <iedowse@maths.tcd.ie>

==
2001-02-26 20:25:11 +00:00
..
ext2fs skip truncating a file to 0 before freeing it if it's already zero-length. 2001-02-18 20:17:04 +00:00
ffs Use int32_t for on-disk time_t values. 2001-02-23 02:25:10 +00:00
lfs don't include lfs_extern.h; ufs/inode.h does too. 2001-02-04 21:51:19 +00:00
mfs fix bug (pointed out as sequence point violation warning with current-ish gcc) 2001-02-24 00:05:22 +00:00
ufs Some bugfixes from rev 1.33 and 1.34 of this file in FreeBSD (some 2001-02-26 20:25:11 +00:00
Makefile