Lines Matching refs:ip
947 struct denode *ip, *xp, *dp, *zp;
996 ip = VTODE(fvp);
1004 if (ip->de_Attributes & ATTR_DIRECTORY) {
1009 dp == ip ||
1012 (ip->de_flag & DE_RENAME)) {
1017 ip->de_flag |= DE_RENAME;
1056 error = doscheckpath(ip, dp);
1140 if (xp != ip) {
1160 memcpy(oldname, ip->de_Name, 11);
1161 memcpy(ip->de_Name, toname, 11); /* update denode */
1164 error = createde(ip, dp, (struct denode **)0, tcnp);
1166 memcpy(ip->de_Name, oldname, 11);
1173 * If ip is for a directory, then its name should always
1181 if ((ip->de_Attributes & ATTR_DIRECTORY) != 0)
1182 memcpy(ip->de_Name, oldname, 11);
1183 ip->de_refcnt++;
1185 error = removede(zp, ip);
1195 &ip->de_dirclust, 0);
1203 if (ip->de_dirclust == MSDOSFSROOT)
1204 ip->de_diroffset = to_diroffset;
1206 ip->de_diroffset = to_diroffset & pmp->pm_crbomask;
1208 reinsert(ip);
1218 cn = ip->de_StartCluster;
1262 ip->de_flag &= ~DE_RENAME;
1412 struct denode *ip, *dp;
1415 ip = VTODE(vp);
1426 if (!dosdirempty(ip) || ip->de_flag & DE_RENAME) {
1438 error = removede(dp, ip);
1450 error = detrunc(ip, (u_long)0, IO_SYNC, cnp->cn_cred);