Lines Matching refs:path
352 getcomponent(const char *path, char *component, const char **nextp)
356 if ((path == NULL) || (path[0] == '\0'))
359 p = strpbrk(path, "/@");
364 if (p == NULL || p == path) {
371 (p[0] != '@' || strpbrk(path+1, "/@") || p[1] == '\0'))
373 if (strlen(path) >= ZFS_MAX_DATASET_NAME_LEN)
375 (void) strcpy(component, path);
378 if (p - path >= ZFS_MAX_DATASET_NAME_LEN)
380 (void) strncpy(component, path, p - path);
381 component[p - path] = '\0';
388 if (strchr(path, '/'))
390 if (p - path >= ZFS_MAX_DATASET_NAME_LEN)
392 (void) strncpy(component, path, p - path);
393 component[p - path] = '\0';
405 * path is bogus, or if tail==NULL and we couldn't parse the whole name.
473 /* bad path name */
652 * This is only called by the ioctl path when setting a limit value.