Lines Matching defs:rootnode
125 hiernode *rootnode = NULL;
160 if (hierarchical_sort(mapents, &rootnode, key, mapname)
174 if (hierarchical_sort(mapents, &rootnode, key, mapname)
178 if (push_options(rootnode, defaultopts, mapopts,
185 trace_hierarchy(rootnode, 0);
198 rootnode, key, isdirect, mount_access) != PARSE_OK)
202 * XXX: its dangerous to use rootnode after modify mapents as
205 if (rootnode != NULL)
206 free_hiernode(rootnode);
214 if (rootnode != NULL)
215 free_hiernode(rootnode);
418 * hierarchical_sort(struct mapent *mapents, hiernode **rootnode, char *key
421 * with the rootnode being the mount root. The hierarchy is setup as
427 hierarchical_sort(struct mapent *mapents, hiernode **rootnode, char *key,
437 /* allocate the rootnode with a default path of "" */
438 *rootnode = NULL;
439 if ((rc = alloc_hiernode(rootnode, "")) != PARSE_OK)
446 * the root (assumes an implicit match with rootnode).
457 prevnode = *rootnode;
458 currnode = (*rootnode)->subdir;
519 trace_hierarchy(*rootnode, 0); /* 0 is rootnode's level */
716 * char *mapopts, char *subdir, hiernode *rootnode,
727 char *mapopts, char *subdir, hiernode *rootnode,
740 * at one level below the rootnode given by subdir.
742 if ((rc = set_and_fake_mapent_mntlevel(rootnode, subdir, key, mapname,
816 * set_and_fake_mapent_mntlevel(hiernode *rootnode, char *subdir, char *key,
828 set_and_fake_mapent_mntlevel(hiernode *rootnode, char *subdir, char *key,
836 hiernode *prevnode = rootnode;
837 hiernode *currnode = rootnode->subdir;
853 prevnode = rootnode;
854 currnode = rootnode->subdir;
917 trace_prt(1, " No rootnode, travpath=%s\n",
927 trace_hierarchy(rootnode, 0);
936 * marks nodes upto one level below the rootnode given by subdir
937 * recursively. Called if rootnode points to a mapent.
998 * upto one physical level below the rootnode given by subdir. checks if