Lines Matching refs:rootpath
245 zonecfg_set_root(const char *rootpath)
249 if (rootpath == NULL || rootpath[0] == '\0' || rootpath[1] == '\0' ||
250 (zonecfg_root = strdup(rootpath)) == NULL)
2923 * This function finds everything mounted under a zone's rootpath.
2924 * This returns the number of mounts under rootpath, or -1 on error.
2932 zonecfg_find_mounts(char *rootpath, int (*callback)(const struct mnttab *,
2941 assert(rootpath != NULL);
2943 if ((zfsl = snprintf(zfs_path, sizeof (zfs_path), "%s/.zfs/", rootpath))
2947 l = strlen(rootpath);
2960 if ((strncmp(rootpath, m.mnt_mountp, l) == 0) &&
5467 zone_get_rootpath(char *zone_name, char *rootpath, size_t rp_sz)
5474 if ((err = zone_get_zonepath(zone_name, rootpath, rp_sz)) != Z_OK)
5476 if (strlcat(rootpath, "/root", rp_sz) >= rp_sz)