Lines Matching defs:root
252 ffs_makefs(const char *image, const char *dir, fsnode *root, fsinfo_t *fsopts)
259 assert(root != NULL);
263 printf("ffs_makefs: image %s directory %s root %p\n",
264 image, dir, root);
273 ffs_validate(dir, root, fsopts);
293 if (! ffs_populate_dir(dir, root, fsopts))
321 ffs_validate(const char *dir, fsnode *root, fsinfo_t *fsopts)
329 assert(root != NULL);
379 ffs_size_dir(root, fsopts);
596 ffs_size_dir(fsnode *root, fsinfo_t *fsopts)
641 for (node = root; node != NULL; node = node->next) {
643 if (node == root) { /* we're at "." */
678 fsnode *root, fsinfo_t *fsopts)
706 if (cur == root) { /* "."; write dirbuf */
726 fsnode *root, fsinfo_t *fsopts)
765 if (cur == root) { /* "."; write dirbuf */
784 ffs_populate_dir(const char *dir, fsnode *root, fsinfo_t *fsopts)
794 assert(root != NULL);
801 printf("ffs_populate_dir: PASS 1 dir %s node %p\n", dir, root);
806 for (cur = root; cur != NULL; cur = cur->next) {
809 if (cur == root && cur->parent != NULL)
817 if (cur == root) { /* we're at "."; add ".." */
821 root->inode->nlink++; /* count my parent's link */
823 root->inode->nlink++; /* count my child's link */
840 for (cur = root; cur != NULL; cur = cur->next) {
846 if (snprintf(path, sizeof(path), "%s/%s/%s", cur->root,
857 root, fsopts);
860 root, fsopts);
886 for (cur = root; cur != NULL; cur = cur->next) {