hammer2 - Synchronize write-in-place feature
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 27 Jul 2017 06:42:09 +0000 (23:42 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 27 Jul 2017 06:42:09 +0000 (23:42 -0700)
commitd0660dd6945cb5a07aa676f0507560f0e7719631
treec12881a78d24814412ffa8f762bc178b7ee0519e
parentbc8b74b296f783863c6a3c79949ddc0baa341c33
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.
sys/vfs/hammer2/hammer2_strategy.c