git: hammer2 - Synchronize write-in-place feature

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Jul 26 23:45:43 PDT 2017


commit d0660dd6945cb5a07aa676f0507560f0e7719631
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Jul 26 23:42:09 2017 -0700

    hammer2 - Synchronize write-in-place feature
    
    * Disable hole creation when the check mode is disabled on a file.
      Writing zeros maintains any previously assigned block.
    
    * Allows reserving storage for a file (such as an image) by dd'ing
      /dev/zero into it, as long as check mode has also been disabled
      on that file.  No data CRCs or hashes will be computed or checked
      for the file.
    
    * Note that this should still work properly with snapshots.  A snapshot
      will force block reallocation on the master for any writes that cross
      the snapshot boundary.

Summary of changes:
 sys/vfs/hammer2/hammer2_strategy.c | 29 +++++++++++++++++++++++++++--
 1 file changed, 27 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d0660dd6945cb5a07aa676f0507560f0e7719631


-- 
DragonFly BSD source repository



More information about the Commits mailing list