HAMMER 41/Many: Implement CRC checking (WARNING: On-media structures changed)
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 5 May 2008 20:34:48 +0000 (20:34 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 5 May 2008 20:34:48 +0000 (20:34 +0000)
commit196198822a4f1c66629fc5ad6a526c3b2fa7657d
tree0ab7d0f60c0ca9b9f7cf519b38b0d7cd812a6ea6
parentd1d48a34b7d7db609d6bbfd2be03a4c5c8d767aa
HAMMER 41/Many: Implement CRC checking (WARNING: On-media structures changed)

* Generate and check on-media CRC fields.

* Clean up the record modification API

* Add a header signature field for future critical recovery

* Rearrange CRC fields for on-media structures to make them easier to
  deal with.

* Adjust the ioctl API

* When trying to back-out of an operation that errored, free allocated
  data blocks.
16 files changed:
sys/vfs/hammer/hammer.h
sys/vfs/hammer/hammer_blockmap.c
sys/vfs/hammer/hammer_btree.c
sys/vfs/hammer/hammer_btree.h
sys/vfs/hammer/hammer_cursor.c
sys/vfs/hammer/hammer_disk.h
sys/vfs/hammer/hammer_flusher.c
sys/vfs/hammer/hammer_inode.c
sys/vfs/hammer/hammer_ioctl.c
sys/vfs/hammer/hammer_ioctl.h
sys/vfs/hammer/hammer_object.c
sys/vfs/hammer/hammer_ondisk.c
sys/vfs/hammer/hammer_reblock.c
sys/vfs/hammer/hammer_subs.c
sys/vfs/hammer/hammer_undo.c
sys/vfs/hammer/hammer_vnops.c