Lines Matching +defs:source +defs:path

130 	zprop_source_t source;
134 source = fnvlist_lookup_uint64(nv, ZPROP_SOURCE);
137 source = ZPROP_SRC_DEFAULT;
143 *src = source;
153 zprop_source_t source;
173 source = fnvlist_lookup_uint64(nv, ZPROP_SOURCE);
176 source = ZPROP_SRC_DEFAULT;
181 *src = source;
477 zprop_source_t source = ZPROP_SRC_LOCAL;
484 source = ival;
487 source = ZPROP_SRC_DEFAULT;
492 *srctype = source;
786 "absolute path, or 'none'"), propname);
2078 "Destroy and re-create the pool from\n\ta backup source.\n"), size);
2405 * unsuitable then a vd_errlist is allocated and the vdev path and errno
2538 const char *path;
2541 &path) != 0)
2542 path = nvpair_name(elem);
2545 "cannot initialize '%s'", path);
2636 const char *path;
2652 &path) != 0)
2653 path = nvpair_name(elem);
2656 "cannot trim '%s'", path);
3082 * Given a physical path or guid, find the associated vdev.
3141 __zpool_find_vdev(zpool_handle_t *zhp, const char *path, boolean_t *avail_spare,
3151 guid = strtoull(path, &end, 0);
3154 } else if (zpool_vdev_is_interior(path)) {
3155 fnvlist_add_string(search, ZPOOL_CONFIG_TYPE, path);
3157 fnvlist_add_string(search, ZPOOL_CONFIG_PATH, path);
3187 zpool_find_vdev(zpool_handle_t *zhp, const char *path, boolean_t *avail_spare,
3190 return (__zpool_find_vdev(zhp, path, avail_spare, l2cache, log,
3194 /* Given a vdev path, return its parent's nvlist */
3196 zpool_find_parent_vdev(zpool_handle_t *zhp, const char *path,
3199 return (__zpool_find_vdev(zhp, path, avail_spare, l2cache, log,
3204 * Convert a vdev path to a GUID. Returns GUID or 0 on error.
3211 zpool_vdev_path_to_guid_impl(zpool_handle_t *zhp, const char *path,
3217 if ((tgt = zpool_find_vdev(zhp, path, &spare, &l2cache,
3231 /* Convert a vdev path to a GUID. Returns GUID or 0 on error. */
3233 zpool_vdev_path_to_guid(zpool_handle_t *zhp, const char *path)
3235 return (zpool_vdev_path_to_guid_impl(zhp, path, NULL, NULL, NULL));
3243 zpool_vdev_online(zpool_handle_t *zhp, const char *path, int flags,
3254 dgettext(TEXT_DOMAIN, "cannot expand %s"), path);
3257 dgettext(TEXT_DOMAIN, "cannot online %s"), path);
3261 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
3290 const char *fullpath = path;
3294 if (path[0] != '/') {
3295 error = zfs_resolve_shortname(path, buf,
3332 zpool_vdev_offline(zpool_handle_t *zhp, const char *path, boolean_t istmp)
3341 dgettext(TEXT_DOMAIN, "cannot offline %s"), path);
3344 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
3386 zpool_vdev_remove_wanted(zpool_handle_t *zhp, const char *path)
3395 dgettext(TEXT_DOMAIN, "cannot remove %s"), path);
3398 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
3756 zpool_vdev_detach(zpool_handle_t *zhp, const char *path)
3765 dgettext(TEXT_DOMAIN, "cannot detach %s"), path);
3768 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
3809 * Find a mirror vdev in the source nvlist.
3812 * of the source pool. The schild array contains a list of disks that the
4095 zpool_vdev_remove(zpool_handle_t *zhp, const char *path)
4105 dgettext(TEXT_DOMAIN, "cannot remove %s"), path);
4107 if (zpool_is_draid_spare(path)) {
4114 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
4192 zpool_vdev_indirect_size(zpool_handle_t *zhp, const char *path,
4202 path);
4204 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
4225 zpool_clear(zpool_handle_t *zhp, const char *path, nvlist_t *rewindnvl)
4236 if (path)
4239 path);
4246 if (path) {
4247 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare,
4410 * Given a vdev, return the name to display in iostat. If the vdev has a path,
4417 * devid, but the path will still refer to the old location. To catch this, we
4418 * first do a path -> devid translation (which is fast for the common case). If
4419 * the devid matches, we're done. If not, we do a reverse devid -> path
4420 * translation and issue the appropriate ioctl() to update the path of the vdev.
4429 const char *path;
4453 path = buf;
4455 path = tpath;
4458 char *rp = realpath(path, NULL);
4461 path = buf;
4471 path = zfs_strip_path(path);
4475 * Remove the partition from the path if this is a whole disk.
4480 return (zfs_strip_partition(path));
4483 path = type;
4488 if (strcmp(path, VDEV_TYPE_RAIDZ) == 0) {
4490 (void) snprintf(buf, sizeof (buf), "%s%llu", path,
4492 path = buf;
4498 if (strcmp(path, VDEV_TYPE_DRAID) == 0) {
4512 path = zpool_draid_name(buf, sizeof (buf), ndata,
4524 path, (u_longlong_t)id);
4525 path = tmpbuf;
4529 return (zfs_strdup(hdl, path));
4935 /* just write out a path of two object numbers */
4946 /* get the corrupted object's path */
5163 enum { Z_SYSCONF, Z_DATA } source;
5166 source = Z_SYSCONF;
5169 source = Z_DATA;
5249 if (source == Z_SYSCONF)