Lines Matching defs:root
81 /** Publishes some entries in the root vnode: a query template, the readme file, and a People file of the author.
87 fs_node *dir = ns->root;
126 fs_node *root;
154 /* create root dir */
156 root = malloc(sizeof(fs_node));
157 ns->root = root;
158 if (root) {
159 memset(root, 0, sizeof(fs_node));
160 strcpy(root->name, ".");
161 root->is_perm = 1;
162 root->vnid = ns->rootid;
163 fill_default_stat(&root->st, ns->nsid, ns->rootid, 0777 | S_IFDIR);
164 root->attrs_indirect = root_folder_attrs;
165 new_lock(&(root->l), "websearchfs root dir");
166 TRACE("mount: root->l @ %p\n", &root->l);
171 ns->nodes = root; // sll_insert
172 err = publish_vnode(_vol, *vnid, root, &sWebSearchFSVnodeOps, S_IFDIR, 0);
175 TRACE("mount() OK, nspace@ %p, id %" B_PRId32 ", root@ %p, id %" B_PRId64 "\n", ns, ns->nsid, root, ns->rootid);
178 free_lock(&root->l);
179 free(root);
202 // Unlike in BeOS, we need to put the reference to our root node ourselves
244 TRACE("asked to remove the root node!!\n");
331 } else if (!strcmp(file, ".")) { /* root dir */
520 info->root=ns->rootid;
618 ns->root->st.st_mtime = time(NULL);
1270 /* should get/put_vnode(ns->root); around that I think... */
1271 err = websearchfs_create_gen(_volume, ns->root, qname, 0, 0755, NULL, &qn, folders_attrs, true, true);
1333 websearchfs_unlink_gen(_volume, ns->root, qn->name);