Searched refs:spaths (Results 1 – 2 of 2) sorted by relevance
155 const char *const *spaths = zpool_default_search_paths(&spath_count); in zfs_strip_path() local158 if (strncmp(path, spaths[i], strlen(spaths[i])) == 0 && in zfs_strip_path()159 path[strlen(spaths[i])] == '/') in zfs_strip_path()160 return (path + strlen(spaths[i]) + 1); in zfs_strip_path()
81 char **spaths, **cpaths, **cmds; in dosetpath() local118 spaths = xmalloc(npaths * sizeof *spaths); in dosetpath()119 setzero(spaths, npaths * sizeof *spaths); in dosetpath()130 spaths[i] = xmalloc((Strlen(pathvars[i]) + strlen(val) + 2) * in dosetpath()131 sizeof **spaths); in dosetpath()132 (void) strcpy(spaths[i], short2str(pathvars[i])); in dosetpath()133 (void) strcat(spaths[i], "="); in dosetpath()134 (void) strcat(spaths[i], val); in dosetpath()135 cpaths[i] = spaths[i]; in dosetpath()149 if (spaths) { in dosetpath()[all …]