Lines Matching defs:tgt
2392 nvlist_t *tgt;
2405 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
2409 verify(nvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID, &zc.zc_guid) == 0);
2419 (void) nvlist_lookup_uint64(tgt, ZPOOL_CONFIG_WHOLE_DISK,
2421 verify(nvlist_lookup_string(tgt, ZPOOL_CONFIG_PATH,
2464 nvlist_t *tgt;
2472 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
2476 verify(nvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID, &zc.zc_guid) == 0);
2570 is_replacing_spare(nvlist_t *search, nvlist_t *tgt, int which)
2582 children == 2 && child[which] == tgt)
2586 if (is_replacing_spare(child[c], tgt, which))
2604 nvlist_t *tgt;
2622 if ((tgt = zpool_find_vdev(zhp, old_disk, &avail_spare, &l2cache,
2632 verify(nvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID, &zc.zc_guid) == 0);
2653 nvlist_lookup_uint64(tgt, ZPOOL_CONFIG_IS_SPARE, &val) == 0 &&
2656 is_replacing_spare(config_root, tgt, 1)) {
2767 nvlist_t *tgt;
2775 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
2785 verify(nvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID, &zc.zc_guid) == 0);
3073 nvlist_t *tgt;
3082 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
3102 verify(nvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID, &zc.zc_guid) == 0);
3118 nvlist_t *tgt;
3136 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare,
3147 verify(nvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID,