HomeFreeBSD

For UFS2 i_blocks is unsigned. The current "sanity" check that it
rS246289Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

For UFS2 i_blocks is unsigned. The current "sanity" check that it
has gone below zero after the blocks in its inode are freed is a
no-op which the compiler fails to warn about because of the use of
the DIP macro. Change the sanity check to compare the number of
blocks being freed against the value i_blocks. If the number of
blocks being freed exceeds i_blocks, just set i_blocks to zero.

Reported by: Pedro Giffuni (pfg@)
MFC after: 2 weeks

Details

Provenance
mckusickAuthored on
Parents
rS246288: sh: Expand here documents in the current process.
Branches
Unknown
Tags
Unknown

Event Timeline