HomeFreeBSD

Move the truncation code out of vn_open and into the open system call
rS62550Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Move the truncation code out of vn_open and into the open system call
after the acquisition of any advisory locks. This fix corrects a case
in which a process tries to open a file with a non-blocking exclusive
lock. Even if it fails to get the lock it would still truncate the
file even though its open failed. With this change, the truncation
is done only after the lock is successfully acquired.

Obtained from: BSD/OS

Details

Provenance
mckusickAuthored on
Parents
rS62549: If a buffer flush fails when trying to reclaim a vnode, it is too
Branches
Unknown
Tags
Unknown

Event Timeline