Lines Matching refs:dirnode

346 apply_specdir(const char *dir, NODE *specnode, fsnode *dirnode, int speconly)  in apply_specdir()  argument
353 assert(dirnode != NULL); in apply_specdir()
356 printf("apply_specdir: %s %p %p\n", dir, specnode, dirnode); in apply_specdir()
361 if (dirnode->type != S_IFDIR) in apply_specdir()
363 dir, dirnode->name); in apply_specdir()
365 apply_specentry(dir, specnode, dirnode); in apply_specdir()
374 assert(dirnode->name[0] == '.' && dirnode->name[1] == '\0'); in apply_specdir()
375 for (curfsnode = dirnode->next; curfsnode != NULL; curfsnode = next) { in apply_specdir()
397 for (curfsnode = dirnode->next; curfsnode != NULL; in apply_specdir()
452 curfsnode->parent = dirnode->parent; in apply_specdir()
453 curfsnode->first = dirnode; in apply_specdir()
454 curfsnode->next = dirnode->next; in apply_specdir()
455 dirnode->next = curfsnode; in apply_specdir()
480 apply_specentry(const char *dir, NODE *specnode, fsnode *dirnode) in apply_specentry() argument
484 assert(dirnode != NULL); in apply_specentry()
486 if (nodetoino(specnode->type) != dirnode->type) in apply_specentry()
489 inode_type(dirnode->type)); in apply_specentry()
492 printf("apply_specentry: %s/%s\n", dir, dirnode->name); in apply_specentry()
501 dirnode->inode->st.st_gid, specnode->st_gid); in apply_specentry()
502 dirnode->inode->st.st_gid = specnode->st_gid; in apply_specentry()
506 dirnode->inode->st.st_mode & ALLPERMS, specnode->st_mode); in apply_specentry()
507 dirnode->inode->st.st_mode &= ~ALLPERMS; in apply_specentry()
508 dirnode->inode->st.st_mode |= (specnode->st_mode & ALLPERMS); in apply_specentry()
513 (long long)dirnode->inode->st.st_size, in apply_specentry()
515 dirnode->inode->st.st_size = specnode->st_size; in apply_specentry()
518 assert(dirnode->symlink != NULL); in apply_specentry()
520 ASEPRINT("symlink", "%s", dirnode->symlink, specnode->slink); in apply_specentry()
521 free(dirnode->symlink); in apply_specentry()
522 dirnode->symlink = estrdup(specnode->slink); in apply_specentry()
526 (long)dirnode->inode->st.st_mtime, in apply_specentry()
528 dirnode->inode->st.st_mtime = specnode->st_mtimespec.tv_sec; in apply_specentry()
529 dirnode->inode->st.st_atime = specnode->st_mtimespec.tv_sec; in apply_specentry()
530 dirnode->inode->st.st_ctime = start_time.tv_sec; in apply_specentry()
532 dirnode->inode->st.st_mtimensec = specnode->st_mtimespec.tv_nsec; in apply_specentry()
533 dirnode->inode->st.st_atimensec = specnode->st_mtimespec.tv_nsec; in apply_specentry()
534 dirnode->inode->st.st_ctimensec = start_time.tv_nsec; in apply_specentry()
539 dirnode->inode->st.st_uid, specnode->st_uid); in apply_specentry()
540 dirnode->inode->st.st_uid = specnode->st_uid; in apply_specentry()
544 (unsigned long)FSINODE_ST_FLAGS(*dirnode->inode), in apply_specentry()
546 FSINODE_ST_FLAGS(*dirnode->inode) = specnode->st_flags; in apply_specentry()
556 dirnode->flags |= FSNODE_F_HASSPEC; in apply_specentry()