Lines Matching defs:tgt
2402 nvlist_t *tgt;
2415 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
2419 verify(nvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID, &zc.zc_guid) == 0);
2429 (void) nvlist_lookup_uint64(tgt, ZPOOL_CONFIG_WHOLE_DISK,
2431 verify(nvlist_lookup_string(tgt, ZPOOL_CONFIG_PATH,
2474 nvlist_t *tgt;
2482 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
2486 verify(nvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID, &zc.zc_guid) == 0);
2580 is_replacing_spare(nvlist_t *search, nvlist_t *tgt, int which)
2592 children == 2 && child[which] == tgt)
2596 if (is_replacing_spare(child[c], tgt, which))
2614 nvlist_t *tgt;
2642 if ((tgt = zpool_find_vdev(zhp, old_disk, &avail_spare, &l2cache,
2652 verify(nvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID, &zc.zc_guid) == 0);
2673 nvlist_lookup_uint64(tgt, ZPOOL_CONFIG_IS_SPARE, &val) == 0 &&
2676 is_replacing_spare(config_root, tgt, 1)) {
2797 nvlist_t *tgt;
2805 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
2815 verify(nvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID, &zc.zc_guid) == 0);
3106 nvlist_t *tgt;
3115 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
3135 verify(nvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID, &zc.zc_guid) == 0);
3151 nvlist_t *tgt;
3169 if ((tgt = zpool_find_vdev(zhp, path, &avail_spare,
3180 verify(nvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID,