Lines Matching defs:tgt

2420 		nvlist_t *tgt = zpool_find_vdev(zhp, vd_path, &spare, &cache,
2423 if ((tgt == NULL) || cache || spare) {
2429 uint64_t err = (tgt == NULL) ? EZFS_NODEVICE :
2435 uint64_t guid = fnvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID);
3215 nvlist_t *tgt;
3217 if ((tgt = zpool_find_vdev(zhp, path, &spare, &l2cache,
3228 return (fnvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID));
3248 nvlist_t *tgt;
3261 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
3265 zc.zc_guid = fnvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID);
3274 nvlist_lookup_string(tgt, ZPOOL_CONFIG_PATH, &pathname) == 0) {
3277 (void) nvlist_lookup_uint64(tgt, ZPOOL_CONFIG_WHOLE_DISK,
3336 nvlist_t *tgt;
3344 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
3348 zc.zc_guid = fnvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID);
3390 nvlist_t *tgt;
3398 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
3402 zc.zc_guid = fnvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID);
3499 is_replacing_spare(nvlist_t *search, nvlist_t *tgt, int which)
3510 children == 2 && child[which] == tgt)
3514 if (is_replacing_spare(child[c], tgt, which))
3532 nvlist_t *tgt;
3550 if ((tgt = zpool_find_vdev(zhp, old_disk, &avail_spare, &l2cache,
3560 zc.zc_guid = fnvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID);
3571 type = fnvlist_lookup_string(tgt, ZPOOL_CONFIG_TYPE);
3597 nvlist_lookup_uint64(tgt, ZPOOL_CONFIG_IS_SPARE, &val) == 0 &&
3600 is_replacing_spare(config_root, tgt, 1)) {
3760 nvlist_t *tgt;
3768 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
3778 zc.zc_guid = fnvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID);
4099 nvlist_t *tgt;
4114 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
4125 zc.zc_guid = fnvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID);
4196 nvlist_t *tgt;
4204 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
4213 if (nvlist_lookup_uint64(tgt, ZPOOL_CONFIG_INDIRECT_SIZE, sizep) != 0) {
4229 nvlist_t *tgt;
4247 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare,
4258 zc.zc_guid = fnvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID);
5300 nvlist_t *tgt;
5311 if ((tgt = zpool_find_vdev(zhp, vdevname, &avail_spare, &l2cache,
5320 *vdev_guid = fnvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID);