Lines Matching refs:cdir
308 struct dir *cdir = NULL;
320 cdir = hnode_get(hn);
322 if (cdir) {
323 if (cdir->d_flags & DIRF_ISFILE) { /* (1) */
325 ntohl(cnid), cfrombstr(cdir->d_u_name));
326 (void)dir_remove(vol, cdir); /* (1a) */
331 if (lstat(cfrombstr(cdir->d_fullpath), &st) != 0) {
333 ntohl(cnid), cfrombstr(cdir->d_fullpath));
334 (void)dir_remove(vol, cdir);
338 if ((cdir->dcache_ctime != st.st_ctime) || (cdir->dcache_ino != st.st_ino)) {
340 ntohl(cnid), cfrombstr(cdir->d_u_name));
341 (void)dir_remove(vol, cdir);
346 ntohl(cnid), cfrombstr(cdir->d_fullpath));
353 return cdir;
374 struct dir *cdir = NULL;
397 cdir = hnode_get(hn);
400 if (cdir) {
401 if (lstat(cfrombstr(cdir->d_fullpath), &st) != 0) {
403 ntohl(dir->d_did), name, cfrombstr(cdir->d_fullpath));
404 (void)dir_remove(vol, cdir);
410 if ((cdir->dcache_ctime != st.st_ctime) || (cdir->dcache_ino != st.st_ino)) {
413 (void)dir_remove(vol, cdir);
426 return cdir;
441 struct dir *cdir = NULL;