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

cvs commit: src/sbin/hammer hammer_util.h ondisk.c src/sbin/newfs_hammer newfs_hammer.c

From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 1 Jun 2008 13:59:29 -0700 (PDT)

dillon      2008/06/01 13:59:29 PDT

DragonFly src repository

  Modified files:
    sbin/hammer          hammer_util.h ondisk.c 
    sbin/newfs_hammer    newfs_hammer.c 
  HAMMER Utilities: Performance adjustments, bug fixes.
  * Newfs_hammer now pre-allocates the layer1 and layer2 blockmap blocks,
    and pre-sizes each blockmap to 4x the initial filesystem size instead
    of 100x the initial filesystem size.
    The blockmap can be dynamically resized at any time, given a little code.
    In addition, there is simply no need to give it a 100x initial dynamic
    range.  This only bloats the size of the layer-2 map unnecessarily.
  * Change alloc_blockmap() to use rootmap->next_offset for allocations
    instead of rootmap->alloc_offset and fix a bug where rootmap->phys_offset
    was improperly being incremented (it is a fixed field once set).
    The bug was in a code-path that could not by executed by current
    incarnations of newfs_hammer.
  Revision  Changes    Path
  1.16      +3 -1      src/sbin/hammer/hammer_util.h
  1.20      +91 -17    src/sbin/hammer/ondisk.c
  1.27      +26 -10    src/sbin/newfs_hammer/newfs_hammer.c


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