git: VFS accounting: handle file truncation on open(2)

Francois Tigeot ftigeot at crater.dragonflybsd.org
Thu Mar 22 10:52:17 PDT 2012


commit 18cd8808a42f4ca63dec5ead58586c05a05a909b
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(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/18cd8808a42f4ca63dec5ead58586c05a05a909b


-- 
DragonFly BSD source repository





More information about the Commits mailing list