HAMMER - Add hammer dedup filesystem version dump
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 7 Nov 2010 17:43:08 +0000 (09:43 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 7 Nov 2010 17:43:08 +0000 (09:43 -0800)
commit3045a179dbffff4b12fdc36de9efc2c7fb275181
tree19d899c23a7e43911bea2ef7f9eab6f452ae1013
parentbb29b5d82d5af72570d0ccbd03b8b8d3f21b4bd5
HAMMER - Add hammer dedup filesystem version dump

* Require a version 5 filesystem for dedup operation.  Upgrading can be done
  in-place.  All this does is make the layer2 bytes_free field a signed
  value instead of unsigned, allowing it to go negative.

  This allows dedup to use the field to account for multiple references to
  the same block of data, causing the field to (likely) go negative.
sys/vfs/hammer/hammer_dedup.c
sys/vfs/hammer/hammer_disk.h
sys/vfs/hammer/hammer_ioctl.c