Home
last modified time | relevance | path

Searched refs:vdev_guid (Results 1 – 17 of 17) sorted by relevance

/titanic_41/usr/src/cmd/fm/schemes/zfs/
H A Dscheme.c57 uint64_t pool_guid, vdev_guid; in fmd_fmri_nvl2str() local
78 if (nvlist_lookup_uint64(nvl, FM_FMRI_ZFS_VDEV, &vdev_guid) == 0) in fmd_fmri_nvl2str()
80 FM_FMRI_SCHEME_ZFS, name, vdev_guid); in fmd_fmri_nvl2str()
146 uint64_t pool_guid, vdev_guid; in fmd_fmri_present() local
158 if (nvlist_lookup_uint64(nvl, FM_FMRI_ZFS_VDEV, &vdev_guid) != 0) { in fmd_fmri_present()
163 ret = (find_vdev(cb.cb_pool, vdev_guid) != NULL); in fmd_fmri_present()
173 uint64_t pool_guid, vdev_guid; in fmd_fmri_replaced() local
185 if (nvlist_lookup_uint64(nvl, FM_FMRI_ZFS_VDEV, &vdev_guid) != 0) { in fmd_fmri_replaced()
190 ret = (find_vdev(cb.cb_pool, vdev_guid) != NULL) ? in fmd_fmri_replaced()
201 uint64_t pool_guid, vdev_guid; in fmd_fmri_unusable() local
[all …]
/titanic_41/usr/src/cmd/fm/modules/common/zfs-retire/
H A Dzfs_retire.c140 find_by_guid(libzfs_handle_t *zhdl, uint64_t pool_guid, uint64_t vdev_guid, in find_by_guid() argument
162 if (vdev_guid != 0) { in find_by_guid()
164 vdev_guid)) == NULL) { in find_by_guid()
279 uint64_t pool_guid, vdev_guid; in zfs_vdev_repair() local
284 FM_EREPORT_PAYLOAD_ZFS_VDEV_GUID, &vdev_guid) != 0) in zfs_vdev_repair()
300 zrp->zrr_vdev == vdev_guid) in zfs_vdev_repair()
309 (void) nvlist_add_uint64(asru, FM_FMRI_ZFS_VDEV, vdev_guid); in zfs_vdev_repair()
346 zrp->zrr_vdev = vdev_guid; in zfs_vdev_repair()
355 uint64_t pool_guid, vdev_guid; in zfs_retire_recv() local
382 &vdev_guid) != 0) in zfs_retire_recv()
[all …]
/titanic_41/usr/src/cmd/fm/modules/common/zfs-diagnosis/
H A Dzfs_de.c187 uint64_t vdev_guid; in zfs_mark_vdev() local
193 ret = nvlist_lookup_uint64(vd, ZPOOL_CONFIG_GUID, &vdev_guid); in zfs_mark_vdev()
202 zcp->zc_data.zc_vdev_guid == vdev_guid) { in zfs_mark_vdev()
377 zfs_serd_name(char *buf, uint64_t pool_guid, uint64_t vdev_guid, in zfs_serd_name() argument
381 vdev_guid, type); in zfs_serd_name()
531 uint64_t ena, pool_guid, vdev_guid; in zfs_fm_recv() local
557 &vdev_guid) != 0) in zfs_fm_recv()
617 FM_EREPORT_PAYLOAD_ZFS_VDEV_GUID, &vdev_guid) != 0) in zfs_fm_recv()
618 vdev_guid = 0; in zfs_fm_recv()
630 if (zcp->zc_data.zc_vdev_guid == vdev_guid) in zfs_fm_recv()
[all …]
/titanic_41/usr/src/lib/fm/topo/libtopo/common/
H A Dzfs.c161 uint64_t pool_guid, vdev_guid; in fmri_nvl2str() local
182 if (nvlist_lookup_uint64(nvl, FM_FMRI_ZFS_VDEV, &vdev_guid) == 0) in fmri_nvl2str()
184 FM_FMRI_SCHEME_ZFS, name, vdev_guid); in fmri_nvl2str()
/titanic_41/usr/src/uts/common/fs/zfs/
H A Dvdev_label.c225 fnvlist_add_uint64(nv, ZPOOL_CONFIG_GUID, vd->vdev_guid); in vdev_config_generate()
673 uint64_t guid_delta = spare_guid - vd->vdev_guid; in vdev_label_init()
675 vd->vdev_guid += guid_delta; in vdev_label_init()
693 uint64_t guid_delta = l2cache_guid - vd->vdev_guid; in vdev_label_init()
695 vd->vdev_guid += guid_delta; in vdev_label_init()
738 vd->vdev_guid) == 0); in vdev_label_init()
751 vd->vdev_guid) == 0); in vdev_label_init()
837 spa_spare_exists(vd->vdev_guid, NULL, NULL))) in vdev_label_init()
842 spa_l2cache_exists(vd->vdev_guid, NULL))) in vdev_label_init()
H A Dzio_inject.c207 if (zio->io_vd->vdev_guid == handler->zi_record.zi_guid && in zio_handle_label_injection()
244 if (vd->vdev_guid == handler->zi_record.zi_guid) { in zio_handle_device_injection()
381 if (vd->vdev_guid == handler->zi_record.zi_guid) { in zio_handle_io_delay()
H A Dzfs_fm.c229 vd != NULL ? vd->vdev_guid : 0); in zfs_ereport_start()
261 DATA_TYPE_UINT64, vd->vdev_guid, in zfs_ereport_start()
280 DATA_TYPE_UINT64, pvd->vdev_guid, in zfs_ereport_start()
830 FM_EREPORT_PAYLOAD_ZFS_VDEV_GUID, vd->vdev_guid) == 0); in zfs_post_common()
H A Dvdev.c170 if (vd->vdev_guid == guid) in vdev_lookup_by_guid()
340 vd->vdev_guid = guid; in vdev_alloc_common()
613 ASSERT(vd->vdev_guid_sum == vd->vdev_guid); in vdev_free()
813 uint64_t guid_delta = mvd->vdev_guid - cvd->vdev_guid; in vdev_remove_parent()
814 cvd->vdev_orig_guid = cvd->vdev_guid; in vdev_remove_parent()
815 cvd->vdev_guid += guid_delta; in vdev_remove_parent()
1419 ((vd->vdev_guid != guid && vd->vdev_guid != aux_guid) && in vdev_validate()
1420 (vd->vdev_guid != top_guid || vd != vd->vdev_top))) { in vdev_validate()
2141 guid != vd->vdev_guid || in vdev_validate_aux()
3267 ASSERT3U(nvd->vdev_guid, ==, ovd->vdev_guid); in vdev_load_log_state()
H A Dspa_misc.c851 search.aux_guid = vd->vdev_guid; in spa_aux_add()
856 aux->aux_guid = vd->vdev_guid; in spa_aux_add()
869 search.aux_guid = vd->vdev_guid; in spa_aux_remove()
913 search.aux_guid = vd->vdev_guid; in spa_aux_activate()
1564 spa->spa_last_synced_guid : spa->spa_root_vdev->vdev_guid; in spa_guid()
1571 return (spa->spa_root_vdev->vdev_guid); in spa_guid()
H A Dspa_config.c417 vd->vdev_top->vdev_guid) == 0); in spa_config_generate()
419 vd->vdev_guid) == 0); in spa_config_generate()
H A Dspa.c754 rvd->vdev_guid = *newguid; in spa_change_guid_sync()
1344 if ((tvd = spa_lookup_by_guid(spa, vd->vdev_guid, in spa_load_spares()
1385 if ((tvd = spa_lookup_by_guid(spa, vd->vdev_guid, in spa_load_spares()
1480 if (vd != NULL && guid == vd->vdev_guid) { in spa_load_l2cache()
1536 if (spa_l2cache_exists(vd->vdev_guid, &pool) && in spa_load_l2cache()
3173 spa->spa_l2cache.sav_vdevs[j]->vdev_guid) { in spa_add_l2cache()
3366 vd->vdev_guid) == 0); in spa_validate_aux_devs()
3464 if (spa_l2cache_exists(vd->vdev_guid, &pool) && in spa_l2cache_drop()
4517 !spa_has_spare(spa, newvd->vdev_guid)) in spa_vdev_attach()
4694 if (pvd->vdev_guid != pguid && pguid != 0) in spa_vdev_detach()
[all …]
H A Dvdev_disk.c176 (void) vdev_degrade(vd->vdev_spa, vd->vdev_guid, 0); in vdev_disk_dgrd_finalize()
/titanic_41/usr/src/lib/libzfs/common/
H A Dlibzfs_import.c218 uint64_t pool_guid, vdev_guid, top_guid, txg, state; in add_config() local
232 nvlist_lookup_uint64(config, ZPOOL_CONFIG_GUID, &vdev_guid) == 0) { in add_config()
240 ne->ne_guid = vdev_guid; in add_config()
257 &vdev_guid) != 0 || in add_config()
341 ne->ne_guid = vdev_guid; in add_config()
1535 uint64_t guid, vdev_guid; in zpool_in_use() local
1555 &vdev_guid) == 0); in zpool_in_use()
1614 ret = find_guid(nvroot, vdev_guid); in zpool_in_use()
1653 cb.cb_guid = vdev_guid; in zpool_in_use()
1669 cb.cb_guid = vdev_guid; in zpool_in_use()
H A Dlibzfs_fru.c360 zpool_fru_set(zpool_handle_t *zhp, uint64_t vdev_guid, const char *fru) in zpool_fru_set() argument
366 zc.zc_guid = vdev_guid; in zpool_fru_set()
/titanic_41/usr/src/uts/common/fs/zfs/sys/
H A Dvdev_impl.h131 uint64_t vdev_guid; /* unique ID for this vdev */ member
/titanic_41/usr/src/uts/common/os/
H A Dfm.c1102 uint64_t vdev_guid) in fm_fmri_zfs_set() argument
1123 if (vdev_guid != 0) { in fm_fmri_zfs_set()
1124 if (nvlist_add_uint64(fmri, FM_FMRI_ZFS_VDEV, vdev_guid) != 0) { in fm_fmri_zfs_set()
/titanic_41/usr/src/cmd/ztest/
H A Dztest.c2516 guid = spa_log_class(spa)->mc_rotor->mg_vd->vdev_guid; in ztest_vdev_add_remove()
2588 guid = sav->sav_vdevs[ztest_random(sav->sav_count)]->vdev_guid; in ztest_vdev_aux_add_remove()
2806 oldguid = oldvd->vdev_guid; in ztest_vdev_attach_detach()
2811 pguid = pvd->vdev_guid; in ztest_vdev_attach_detach()
2956 uint64_t guid = vd->vdev_guid; in online_vdev()
4874 guid0 = vd0->vdev_guid; in ztest_fault_inject()
4888 guid0 = vd0->vdev_guid; in ztest_fault_inject()