hammer2 - Get data-usage aggregation working, add INODE_GET
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 19 May 2012 22:17:03 +0000 (15:17 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 19 May 2012 22:17:03 +0000 (15:17 -0700)
commit344d4f828a050e4cb5030fb30d3804fdc069d821
treed7a1a90433f5a3f6615a372888673c13c0596497
parent0a2deabddae253c9b3e03b0a48cc068f2c9352b9
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().
sys/vfs/hammer2/hammer2_chain.c
sys/vfs/hammer2/hammer2_ioctl.c
sys/vfs/hammer2/hammer2_ioctl.h