DragonFly BSD
DragonFly commits List (threaded) for 2012-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Francois Tigeot <ftigeot@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 22 Mar 2012 10:52:17 -0700 (PDT)

commit 18cd8808a42f4ca63dec5ead58586c05a05a909b
Author: Francois Tigeot <ftigeot@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]