HAMMER 52/Many: Read-only mounts and mount upgrades/downgrades.
authorMatthew Dillon <dillon@dragonflybsd.org>
Tue, 3 Jun 2008 18:47:25 +0000 (18:47 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Tue, 3 Jun 2008 18:47:25 +0000 (18:47 +0000)
commit51c3549213a21256bfe32c0ac3c29a62a372eac5
tree7b340fad5c57c91468bab8ce0f6500e056e1e0cb
parent4adc29ed6a44c268399d0fb1d449c3ffc6ef100e
HAMMER 52/Many: Read-only mounts and mount upgrades/downgrades.

* Finish implementing MNT_UPDATE, allowing a HAMMER mount to be upgraded
  or downgraded.

* Adjust the recovery code to not flush buffers dirtied by recovery
  operations (running the UNDOs) when the mount is read-only.  The
  buffers will be flushed when the mount is updated to read-write.

* Improve recovery performance by not flushing dirty buffers until the
  end (if a read-write mount).

* A crash which occurs during recovery might cause the next recovery to
  fail.  Delay writing out the recovered volume header until all the other
  buffers have been written out to fix the problem.
sys/vfs/hammer/hammer.h
sys/vfs/hammer/hammer_inode.c
sys/vfs/hammer/hammer_mount.h
sys/vfs/hammer/hammer_ondisk.c
sys/vfs/hammer/hammer_recover.c
sys/vfs/hammer/hammer_vfsops.c