HAMMER 25/many: get fsx (filesystem test) working, cleanup pass
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 25 Jan 2008 10:36:04 +0000 (10:36 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 25 Jan 2008 10:36:04 +0000 (10:36 +0000)
commitd5ef456ee306e9d62ece1dcd91686193da052a84
treef492683870485bd131adfa5ea30b373c5e47f209
parent94876ba8051647192b93d122364e64ab8391ed6f
HAMMER 25/many: get fsx (filesystem test) working, cleanup pass

* Fix buffer alignment in the write strategy code.  Assert buffer alignment
  in hammer_ip_sync_data().

* Finish implementing file truncation.  There's probably still an edge case
  or two related to B_CACHE on terminal filesystem buffers when expanding
  a file.

* Pass VCHR vnodes through to fsync so the inode data syncs properly.  It
  was previously only syncing on umount or OS flushes.

* Change a bunch of debugging kprintf's to only print if a debug variable is
  set.  Reduce the debugging output considerably.

* Test FSX using both a full historical mount and a nohistory mount.
sys/vfs/hammer/hammer.h
sys/vfs/hammer/hammer_btree.c
sys/vfs/hammer/hammer_io.c
sys/vfs/hammer/hammer_object.c
sys/vfs/hammer/hammer_ondisk.c
sys/vfs/hammer/hammer_spike.c
sys/vfs/hammer/hammer_vfsops.c
sys/vfs/hammer/hammer_vnops.c