git: VFS accounting: handle file truncation on open(2)
ftigeot at crater.dragonflybsd.org
Thu Mar 22 10:52:17 PDT 2012
Author: Francois Tigeot <ftigeot at wolfpond.org>
Date: Thu Mar 22 17:51:47 2012 +0100
VFS accounting: handle file truncation on open(2)
* Files succesfully opened with O_TRUNC are truncated to zero length.
This case was not previously handled, leading to a growing drift
between VFS counters and reality.
* Fix a buildworld issue caused by the last VFS accounting commit
Summary of changes:
sys/kern/vfs_vnops.c | 8 ++++++++
sys/sys/vfs_quota.h | 3 +++
2 files changed, 11 insertions(+), 0 deletions(-)
DragonFly BSD source repository
More information about the Commits