Lines Matching defs:path
583 "\t[-B alt_ztest (default: <none>)] alternate ztest path\n"
609 char *path;
678 path = realpath(optarg, NULL);
679 if (path == NULL) {
684 (void) strlcpy(zo->zo_dir, path,
736 fatal(B_TRUE, "invalid alternate ztest path: %s",
820 make_vdev_file(char *path, char *aux, char *pool, size_t size, uint64_t ashift)
829 if (path == NULL) {
830 path = pathbuf;
834 (void) snprintf(path, sizeof (pathbuf),
840 (void) snprintf(path, sizeof (pathbuf),
847 int fd = open(path, O_RDWR | O_CREAT | O_TRUNC, 0666);
849 fatal(1, "can't open %s", path);
851 fatal(1, "can't ftruncate %s", path);
857 VERIFY(nvlist_add_string(file, ZPOOL_CONFIG_PATH, path) == 0);
864 make_vdev_raidz(char *path, char *aux, char *pool, size_t size,
871 return (make_vdev_file(path, aux, pool, size, ashift));
875 child[c] = make_vdev_file(path, aux, pool, size, ashift);
894 make_vdev_mirror(char *path, char *aux, char *pool, size_t size,
901 return (make_vdev_raidz(path, aux, pool, size, ashift, r));
906 child[c] = make_vdev_raidz(path, aux, pool, size, ashift, r);
923 make_vdev_root(char *path, char *aux, char *pool, size_t size, uint64_t ashift,
934 child[c] = make_vdev_mirror(path, aux, pool, size, ashift,
2457 vdev_lookup_by_path(vdev_t *vd, const char *path)
2461 if (vd->vdev_path != NULL && strcmp(path, vd->vdev_path) == 0)
2465 if ((mvd = vdev_lookup_by_path(vd->vdev_child[c], path)) !=
2599 char path[MAXPATHLEN];
2601 (void) snprintf(path, sizeof (path), ztest_aux_template,
2606 path) == 0)
2609 vdev_lookup_by_path(rvd, path) == NULL)