HAMMER - Fix root inode creation for slave.
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 2 Oct 2009 16:11:44 +0000 (09:11 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 2 Oct 2009 16:15:08 +0000 (09:15 -0700)
commitec61b2892719413e2fd52a677fc9a1d05d09d59a
treebd8dd42107d3df5c52546a36030c150a01d44388
parent1420fb82581d85df5234024757b1cc853180e4e6
HAMMER - Fix root inode creation for slave.

* The root inode for a PFS is only supposed to be created for PFS masters.
  PFS slaves get their root inode from the mirroring operation.  No longer
  create the root inode for a PFS slave.

  The root inode was being incorrectly created for slaves as well as
  masters, causing the root inode from the mirroring operation to be
  ignored.

  This caused the root directory for a slave to show up as empty when
  doing a mirror-copy from a HAMMER version 1 filesystem to a HAMMER
  version 2 filesystem.

Reported-by: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
sys/vfs/hammer/hammer_mirror.c
sys/vfs/hammer/hammer_pfs.c