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>
Thu, 18 Nov 2010 17:42:43 +0000 (09:42 -0800)
commit7ec73899aee571465ee79b6e5abc80e82d2bbed7
treeabb820bb8d568135b1637b3554122217efd8b05f
parent7494cdaf29f7b680933d32d85f34ad9e3c55e1cf
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