Project

General

Profile

Bug #2768 » hammer43.patch

dillon, 04/17/2015 02:05 PM

View differences:

sys/vfs/hammer/hammer_inode.c
* non-root filesystem paths and setting VROOT may
* confuse the namecache. Set VPFSROOT instead.
*/
if (ip->obj_id == HAMMER_OBJID_ROOT &&
ip->obj_asof == hmp->asof) {
if (ip->obj_localization == 0)
vsetflags(vp, VROOT);
else
if (ip->obj_id == HAMMER_OBJID_ROOT) {
if (ip->obj_asof == hmp->asof) {
if (ip->obj_localization == 0)
vsetflags(vp, VROOT);
else
vsetflags(vp, VPFSROOT);
} else {
vsetflags(vp, VPFSROOT);
}
}
vp->v_data = (void *)ip;
(3-3/3)