Lines Matching refs:root
87 * Check first if root is ZFS; if not, we'll bail on rootfs capture.
108 * Initializes the libbe context to operate in the root boot environment
112 libbe_init(const char *root)
129 * Grab rootfs, we'll work backwards from there if an optional BE root
133 if (root == NULL)
137 if (root == NULL) {
138 /* Strip off the final slash from rootfs to get the be root */
139 strlcpy(lbh->root, lbh->rootfs, sizeof(lbh->root));
140 pos = strrchr(lbh->root, '/');
145 strlcpy(lbh->root, root, sizeof(lbh->root));
147 if ((pos = strchr(lbh->root, '/')) == NULL)
150 pnamelen = pos - lbh->root;
155 strlcpy(poolname, lbh->root, pnamelen + 1);
517 /* The origin can't possibly be shorter than the BE root */
518 rootlen = strlen(lbh->root);
523 * We'll be chopping off the BE root and running this back through
527 if (strncmp(origin, lbh->root, rootlen) != 0 || origin[rootlen] != '/')
709 /* match the root path for the boot environments */
710 pos = strstr(dspath, ldc->lbh->root);
716 /* root path of the new boot environment */
717 snprintf(result, result_size, "%s/%s", ldc->lbh->root, ldc->bename);
720 pos += strlen(ldc->lbh->root) + 1;
791 * with the root path that libbe was initailized with.
807 * prepend the boot environment root path if we're
909 * Idempotently appends the name argument to the root boot environment path
922 root_len = strlen(lbh->root);
926 if (strstr(name, lbh->root) != name)
935 snprintf(result, BE_MAXPATHLEN, "%s/%s", lbh->root,
958 if (strlen(lbh->root) + 1 + strlen(name) > MAXNAMELEN)