git: hammer2 hammer2 - Get data-usage aggregation working, add INODE_GET

Matthew Dillon dillon at
Sat May 19 15:21:51 PDT 2012

commit 344d4f828a050e4cb5030fb30d3804fdc069d821
Author: Matthew Dillon <dillon at>
Date:   Sat May 19 15:17:03 2012 -0700

    hammer2 - Get data-usage aggregation working, add INODE_GET
    * Cleanup aggregation of data_count and inode_count in the inode.
      data_count should now work properly (though it requires a 'sync'
      if you want up-to-date information).
      This allow data and inode usage for an entire sub-tree to be
      retrieved from the parent directory inode.  No need to run 'du'
      over millions of inodes.
      The new 'hammer2 stat' command can be used to access the info.
    * Add the HAMMER2IOC_INODE_GET/SET ioctls to access information that
      cannot be obtained from a normal stat().

Summary of changes:
 sys/vfs/hammer2/hammer2_chain.c |   19 +++++++++++------
 sys/vfs/hammer2/hammer2_ioctl.c |   40 +++++++++++++++++++++++++++++++++++++++
 sys/vfs/hammer2/hammer2_ioctl.h |   21 ++++++++++++++++++++
 3 files changed, 73 insertions(+), 7 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list