HAMMER 65/Many: PFS cleanups and confusion removal
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 19 Jul 2008 18:44:49 +0000 (18:44 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 19 Jul 2008 18:44:49 +0000 (18:44 +0000)
commit732a1697dfcc0a1f481a020eae3a51b8b54094cf
treed2f618fb6f09a7de514e9ba8a982a98a2230b399
parented5f552ed0c0273ff50c3af211a914c0aae27a04
HAMMER 65/Many: PFS cleanups and confusion removal

* Simplify master/slave operation.  Remove the master=, slave, and no-mirror
  options from pfs-update.  Retain pfs-master, pfs-slave, pfs-upgrade, and
  pfs-downgrade for dealing with master and slave operation.

  Move the master= and nomirror specifications back to hammer_mount.  They
  have to be mount-wide anyhow, the current code does not support different
  master ID's on a PFS-by-PFS basis.

* Add some additional failsafes to the mount code.   The master id cannot
  be allowed to change by a mount update (-u).

* Fix a bug in hammer pfs-upgrade operation that could result in a livelock
  during the B-Tree iteration.
sys/vfs/hammer/hammer.h
sys/vfs/hammer/hammer_btree.c
sys/vfs/hammer/hammer_disk.h
sys/vfs/hammer/hammer_mount.h
sys/vfs/hammer/hammer_pfs.c
sys/vfs/hammer/hammer_transaction.c
sys/vfs/hammer/hammer_vfsops.c