md5-inode-numbers-20060405
[openafs.git] / src / afs / VNOPS / afs_vnop_attrs.c
index 23d8137..be9245b 100644 (file)
@@ -105,14 +105,17 @@ afs_CopyOutAttrs(register struct vcache *avc, register struct vattr *attrs)
        /* The mount point's vnode. */
        if (tvp) {
            attrs->va_nodeid =
-               tvp->mtpoint.Fid.Vnode + (tvp->mtpoint.Fid.Volume << 16);
+             afs_calc_inum (tvp->mtpoint.Fid.Volume,
+                             tvp->mtpoint.Fid.Vnode);
            if (FidCmp(&afs_rootFid, &avc->fid) && !attrs->va_nodeid)
                attrs->va_nodeid = 2;
            afs_PutVolume(tvp, READ_LOCK);
        } else
            attrs->va_nodeid = 2;
     } else
-       attrs->va_nodeid = avc->fid.Fid.Vnode + (avc->fid.Fid.Volume << 16);
+       attrs->va_nodeid = 
+             afs_calc_inum (avc->fid.Fid.Volume,
+                             avc->fid.Fid.Vnode);
     attrs->va_nodeid &= 0x7fffffff;    /* Saber C hates negative inode #s! */
     attrs->va_nlink = fakedir ? 100 : avc->m.LinkCount;
     attrs->va_size = fakedir ? 4096 : avc->m.Length;