diff options
author | dillon <dillon@FreeBSD.org> | 2000-02-24 20:43:20 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2000-02-24 20:43:20 +0000 |
commit | 414d15acb810815261d32a3a1d8a81cb8ef567b2 (patch) | |
tree | ada5519e0f3a37d21b29c9c7067b6d7cf757f482 /usr.bin/nice/nice.c | |
parent | 324686decc26e8f59696c307664285b44ad71ecb (diff) | |
download | FreeBSD-src-414d15acb810815261d32a3a1d8a81cb8ef567b2.zip FreeBSD-src-414d15acb810815261d32a3a1d8a81cb8ef567b2.tar.gz |
Fix a 'freeing free block' panic in UFS. The problem occurs when the
filesystem fills up. If the first indirect block exists and FFS is able
to allocate deeper indirect blocks, but is not able to allocate the
data block, FFS improperly unwinds the indirect blocks and leaves a
block pointer hanging to a freed block. This will cause a panic later
when the file is removed. The solution is to properly account for the
first block-pointer-to-an-indirect-block we had to create in a balloc
operation and then unwind it if a failure occurs.
Detective work by: Ian Dowse <iedowse@maths.tcd.ie>
Reviewed by: mckusick, Ian Dowse <iedowse@maths.tcd.ie>
Approved by: jkh
Diffstat (limited to 'usr.bin/nice/nice.c')
0 files changed, 0 insertions, 0 deletions