Lines Matching defs:cur
178 fsnode *cur;
185 for (cur = root->next; cur != NULL; cur = cur->next) {
186 if ((cur->inode->flags & FI_ALLOCATED) == 0) {
187 cur->inode->flags |= FI_ALLOCATED;
188 if (cur != root) {
190 cur->inode->ino = fsopts->curinode;
191 cur->parent = parent;
195 if (cur->inode->flags & FI_WRITTEN) {
198 cur->inode->flags |= FI_WRITTEN;
200 write_vnode(fsopts, cur);
201 write_dirent(fsopts, cur);
202 if (!S_ISDIR(cur->type & S_IFMT)) {
203 write_file(fsopts, cur, dir);
207 for (cur = root; cur != NULL; cur = cur->next) {
208 if (cur->child == NULL) {
212 cur->name) >= sizeof(path)) {
215 if (!chfs_populate_dir(path, cur->child, cur, fsopts)) {