diff --git a/sys/vfs/hammer/hammer_inode.c b/sys/vfs/hammer/hammer_inode.c index eee9085..ed603bb 100644 --- a/sys/vfs/hammer/hammer_inode.c +++ b/sys/vfs/hammer/hammer_inode.c @@ -329,8 +329,10 @@ hammer_get_vnode(struct hammer_inode *ip, struct vnode **vpp) * non-root filesystem paths and setting VROOT may * confuse the namecache. Set VPFSROOT instead. */ + + /* FIXME: I do not need check if ip->pfsm is NULL, do I? */ if (ip->obj_id == HAMMER_OBJID_ROOT && - ip->obj_asof == hmp->asof) { + (ip->obj_asof == hmp->asof || ip->pfsm->pfsd.mirror_flags & HAMMER_PFSD_SLAVE)) { if (ip->obj_localization == 0) vsetflags(vp, VROOT); else