/freebsd/sys/contrib/openzfs/cmd/zed/agents/ |
H A D | zfs_retire.c | 193 find_and_remove_spares(libzfs_handle_t *zhdl, uint64_t vdev_guid) in find_and_remove_spares() argument 198 cb.cb_vdev_guid = vdev_guid; in find_and_remove_spares() 208 find_by_guid(libzfs_handle_t *zhdl, uint64_t pool_guid, uint64_t vdev_guid, in find_by_guid() argument 230 if (vdev_guid != 0) { in find_by_guid() 231 if ((*vdevp = find_vdev(zhdl, nvroot, vdev_guid)) == NULL) { in find_by_guid() 331 uint64_t pool_guid, vdev_guid; in zfs_vdev_repair() local 334 FM_EREPORT_PAYLOAD_ZFS_VDEV_GUID, &vdev_guid) != 0) in zfs_vdev_repair() 350 zrp->zrr_vdev == vdev_guid) in zfs_vdev_repair() 357 zrp->zrr_vdev = vdev_guid; in zfs_vdev_repair() 361 vdev_guid, pool_guid); in zfs_vdev_repair() [all …]
|
H A D | zfs_agents.c | 83 uint64_t vdev_guid; in zfs_agent_iter_vdev() local 137 nvlist_lookup_uint64(nvl, ZPOOL_CONFIG_GUID, &vdev_guid) == 0 && in zfs_agent_iter_vdev() 138 gsp->gs_vdev_guid == vdev_guid) { in zfs_agent_iter_vdev() 211 uint64_t pool_guid = 0, vdev_guid = 0; in zfs_agent_post_event() local 222 (void) nvlist_lookup_uint64(nvl, ZFS_EV_VDEV_GUID, &vdev_guid); in zfs_agent_post_event() 235 if (devid == NULL || pool_guid == 0 || vdev_guid == 0) { in zfs_agent_post_event() 237 search.gs_vdev_guid = vdev_guid; in zfs_agent_post_event() 245 if (vdev_guid == 0) in zfs_agent_post_event() 246 vdev_guid = search.gs_vdev_guid; in zfs_agent_post_event() 269 FM_EREPORT_PAYLOAD_ZFS_VDEV_GUID, vdev_guid); in zfs_agent_post_event()
|
H A D | zfs_diagnosis.c | 249 uint64_t vdev_guid = 0; in zfs_mark_vdev() local 254 (void) nvlist_lookup_uint64(vd, ZPOOL_CONFIG_GUID, &vdev_guid); in zfs_mark_vdev() 262 zcp->zc_data.zc_vdev_guid == vdev_guid) { in zfs_mark_vdev() 440 zfs_serd_name(char *buf, uint64_t pool_guid, uint64_t vdev_guid, in zfs_serd_name() argument 445 (long long unsigned int)vdev_guid, type); in zfs_serd_name() 564 uint64_t ena, pool_guid, vdev_guid, parent_guid; in zfs_fm_recv() local 594 &vdev_guid) != 0) in zfs_fm_recv() 652 FM_EREPORT_PAYLOAD_ZFS_VDEV_GUID, &vdev_guid) != 0) in zfs_fm_recv() 653 vdev_guid = 0; in zfs_fm_recv() 668 if (zcp->zc_data.zc_vdev_guid == vdev_guid) in zfs_fm_recv() [all …]
|
H A D | zfs_mod.c | 876 guid_iter(uint64_t pool_guid, uint64_t vdev_guid, const char *devid, in guid_iter() argument 884 data.dd_vdev_guid = vdev_guid; in guid_iter() 916 uint64_t pool_guid = 0, vdev_guid = 0; in zfs_deliver_add() local 929 (void) nvlist_lookup_uint64(nvl, ZFS_EV_VDEV_GUID, &vdev_guid); in zfs_deliver_add() 947 is_slice, vdev_guid)) in zfs_deliver_add() 949 if (vdev_guid != 0) in zfs_deliver_add() 950 (void) guid_iter(pool_guid, vdev_guid, devid, zfs_process_add, in zfs_deliver_add()
|
/freebsd/sbin/devd/ |
H A D | zfs.conf | 62 action "logger -p local7.notice -t ZFS vdev is removed, pool_guid=$pool_guid vdev_guid=$vdev_guid"; 68 … local7.info -t ZFS autoreplace is configured for vdev, pool_guid=$pool_guid vdev_guid=$vdev_guid"; 74 …ion "logger -p local7.notice -t ZFS vdev state changed, pool_guid=$pool_guid vdev_guid=$vdev_guid";
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zfs_ioctl_os.c | 97 uint64_t vdev_guid; in zfs_ioc_nextboot() local 104 ZPOOL_CONFIG_GUID, &vdev_guid) != 0) in zfs_ioc_nextboot() 111 spa = spa_by_guid(pool_guid, vdev_guid); in zfs_ioc_nextboot() 121 vd = spa_lookup_by_guid(spa, vdev_guid, B_TRUE); in zfs_ioc_nextboot()
|
H A D | vdev_geom.c | 169 vdev_online(spa, vd->vdev_guid, ZFS_ONLINE_EXPAND, NULL); in vdev_geom_resize() 540 uint64_t vdev_guid; in process_vdev_config() local 551 if (nvlist_lookup_uint64(cfg, ZPOOL_CONFIG_TOP_GUID, &vdev_guid) != 0) in process_vdev_config() 648 uint64_t pool_guid, top_guid, vdev_guid; in vdev_attach_ok() local 671 vdev_guid = 0; in vdev_attach_ok() 672 (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_GUID, &vdev_guid); in vdev_attach_ok() 691 if (vdev_guid == vd->vdev_guid) { in vdev_attach_ok() 694 } else if (top_guid == vd->vdev_guid && vd == vd->vdev_top) { in vdev_attach_ok() 699 pp->name, (uintmax_t)vd->vdev_guid, (uintmax_t)vdev_guid); in vdev_attach_ok() 762 (uintmax_t)spa_guid(vd->vdev_spa), (uintmax_t)vd->vdev_guid); in vdev_geom_open_by_guids() [all …]
|
/freebsd/sys/contrib/openzfs/include/os/linux/zfs/sys/ |
H A D | trace_arc.h | 127 __field(uint64_t, vdev_guid) 133 __entry->vdev_guid = vd->vdev_guid; 138 ZIO_TP_PRINTK_FMT, __entry->vdev_id, __entry->vdev_guid, 301 __field(uint64_t, vdev_guid) 315 __entry->vdev_guid = dev->l2ad_vdev->vdev_guid; 330 __entry->vdev_id, __entry->vdev_guid, __entry->vdev_state,
|
/freebsd/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs_import.c | 285 uint64_t guid = 0, vdev_guid; in zpool_in_use() local 301 vdev_guid = fnvlist_lookup_uint64(config, ZPOOL_CONFIG_GUID); in zpool_in_use() 356 ret = find_guid(nvroot, vdev_guid); in zpool_in_use() 395 cb.cb_guid = vdev_guid; in zpool_in_use() 411 cb.cb_guid = vdev_guid; in zpool_in_use()
|
H A D | libzfs_pool.c | 5298 zpool_vdev_guid(zpool_handle_t *zhp, const char *vdevname, uint64_t *vdev_guid) in zpool_vdev_guid() argument 5320 *vdev_guid = fnvlist_lookup_uint64(tgt, ZPOOL_CONFIG_GUID); in zpool_vdev_guid() 5508 uint64_t vdev_guid = 0; in zpool_get_vdev_prop() local 5511 if ((ret = zpool_vdev_guid(zhp, vdevname, &vdev_guid)) != 0) in zpool_get_vdev_prop() 5519 fnvlist_add_uint64(reqnvl, ZPOOL_VDEV_PROPS_GET_VDEV, vdev_guid); in zpool_get_vdev_prop() 5567 uint64_t vdev_guid = 0; in zpool_get_all_vdev_props() local 5570 if ((ret = zpool_vdev_guid(zhp, vdevname, &vdev_guid)) != 0) in zpool_get_all_vdev_props() 5576 fnvlist_add_uint64(nvl, ZPOOL_VDEV_PROPS_GET_VDEV, vdev_guid); in zpool_get_all_vdev_props() 5607 uint64_t vdev_guid; in zpool_set_vdev_prop() local 5609 if ((ret = zpool_vdev_guid(zhp, vdevname, &vdev_guid)) != 0) in zpool_set_vdev_prop() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/fault/ |
H A D | auto_replace_002_pos.ksh | 113 vdev_guid=$(zpool get guid -H -o value $TESTPOOL $SD_DEVICE_ID) 114 log_note original vdev guid ${vdev_guid} 172 log_must wait_vdev_online $TESTPOOL 0 $vdev_guid 45
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | zfs_fm.c | 297 uint64_t vdev_guid, pool_guid; in zfs_ereport_clear() local 301 vdev_guid = 0; in zfs_ereport_clear() 304 vdev_guid = vd->vdev_guid; in zfs_ereport_clear() 316 if (entry->re_vdev_guid == vdev_guid || in zfs_ereport_clear() 358 search.re_vdev_guid = vd->vdev_guid; in zfs_ereport_is_duplicate() 517 vd != NULL ? vd->vdev_guid : 0); in zfs_ereport_start() 555 DATA_TYPE_UINT64, vd->vdev_guid, in zfs_ereport_start() 606 DATA_TYPE_UINT64, pvd->vdev_guid, in zfs_ereport_start() 630 spare_guids[i] = spare_vd->vdev_guid; in zfs_ereport_start() 1382 FM_EREPORT_PAYLOAD_ZFS_VDEV_GUID, vd->vdev_guid)); in zfs_event_create()
|
H A D | vdev.c | 189 (u_longlong_t)vd->vdev_guid, buf); in vdev_dbgmsg() 238 (u_longlong_t)vd->vdev_guid, in vdev_dbgmsg_print_tree() 476 if (vd->vdev_guid == guid) in vdev_lookup_by_guid() 671 vd->vdev_guid = guid; in vdev_alloc_common() 1098 ASSERT(vd->vdev_guid_sum == vd->vdev_guid); in vdev_free() 1404 uint64_t guid_delta = mvd->vdev_guid - cvd->vdev_guid; in vdev_remove_parent() 1405 cvd->vdev_orig_guid = cvd->vdev_guid; in vdev_remove_parent() 1406 cvd->vdev_guid += guid_delta; in vdev_remove_parent() 2466 if (vd->vdev_guid != guid && vd->vdev_guid != aux_guid) { in vdev_validate() 2469 if (vd != vd->vdev_top || vd->vdev_guid != top_guid) in vdev_validate() [all …]
|
H A D | spa_stats.c | 575 uint64_t vdev_guid; /* unique ID of leaf vdev */ member 606 (u_longlong_t)smh->vdev_guid, (u_longlong_t)smh->vdev_label, in spa_mmp_history_show() 691 smh->vdev_guid++; in spa_mmp_history_set_skip() 753 smh->vdev_guid = vd->vdev_guid; in spa_mmp_history_add() 763 smh->vdev_guid = 1; in spa_mmp_history_add()
|
H A D | vdev_label.c | 468 fnvlist_add_uint64(nv, ZPOOL_CONFIG_GUID, vd->vdev_guid); in vdev_config_generate() 1029 fnvlist_add_uint64(label, ZPOOL_CONFIG_GUID, vd->vdev_guid); in vdev_aux_label_generate() 1118 uint64_t guid_delta = spare_guid - vd->vdev_guid; in vdev_label_init() 1120 vd->vdev_guid += guid_delta; in vdev_label_init() 1138 uint64_t guid_delta = l2cache_guid - vd->vdev_guid; in vdev_label_init() 1140 vd->vdev_guid += guid_delta; in vdev_label_init() 1265 spa_spare_exists(vd->vdev_guid, NULL, NULL))) in vdev_label_init() 1270 spa_l2cache_exists(vd->vdev_guid, NULL))) in vdev_label_init()
|
H A D | zio_inject.c | 337 if (zio->io_vd->vdev_guid == handler->zi_record.zi_guid && in zio_handle_label_injection() 388 if (vd->vdev_guid == handler->zi_record.zi_guid) { in zio_handle_device_injection_impl() 607 if (vd->vdev_guid != handler->zi_record.zi_guid) in zio_handle_io_delay()
|
H A D | vdev_rebuild.c | 256 (u_longlong_t)vd->vdev_id, (u_longlong_t)vd->vdev_guid); in vdev_rebuild_initiate_sync() 336 (u_longlong_t)vd->vdev_id, (u_longlong_t)vd->vdev_guid); in vdev_rebuild_complete_sync() 384 (u_longlong_t)vd->vdev_id, (u_longlong_t)vd->vdev_guid); in vdev_rebuild_cancel_sync() 432 (u_longlong_t)vd->vdev_id, (u_longlong_t)vd->vdev_guid); in vdev_rebuild_reset_sync()
|
H A D | spa.c | 1014 rvd->vdev_guid = *newguid; in spa_change_guid_sync() 2234 if ((tvd = spa_lookup_by_guid(spa, vd->vdev_guid, in spa_load_spares() 2275 if ((tvd = spa_lookup_by_guid(spa, vd->vdev_guid, in spa_load_spares() 2383 if (vd != NULL && guid == vd->vdev_guid) { in spa_load_l2cache() 2462 if (spa_l2cache_exists(vd->vdev_guid, &pool) && in spa_load_l2cache() 5281 spa->spa_last_synced_guid = rvd->vdev_guid; 6034 spa->spa_l2cache.sav_vdevs[j]->vdev_guid) { 6264 vd->vdev_guid); 6358 if (spa_l2cache_exists(vd->vdev_guid, &pool) && 7578 !spa_has_spare(spa, newvd->vdev_guid)) [all …]
|
H A D | spa_config.c | 478 vd->vdev_top->vdev_guid); in spa_config_generate() 480 vd->vdev_guid); in spa_config_generate()
|
H A D | fm.c | 1146 uint64_t vdev_guid) in fm_fmri_zfs_set() argument 1167 if (vdev_guid != 0) { in fm_fmri_zfs_set() 1168 if (nvlist_add_uint64(fmri, FM_FMRI_ZFS_VDEV, vdev_guid) != 0) { in fm_fmri_zfs_set()
|
H A D | spa_misc.c | 1034 search.aux_guid = vd->vdev_guid; in spa_aux_add() 1039 aux->aux_guid = vd->vdev_guid; in spa_aux_add() 1052 search.aux_guid = vd->vdev_guid; in spa_aux_remove() 1096 search.aux_guid = vd->vdev_guid; in spa_aux_activate() 1766 spa->spa_last_synced_guid : spa->spa_root_vdev->vdev_guid; in spa_guid() 1773 return (spa->spa_root_vdev->vdev_guid); in spa_guid()
|
H A D | vdev_initialize.c | 147 *guid = vd->vdev_guid; in vdev_initialize_change_state() 260 *guid = vd->vdev_guid; in vdev_initialize_write()
|
H A D | vdev_draid.c | 1734 cvd->vdev_guid); in vdev_draid_spare_create() 2522 uint64_t guid = vd->vdev_guid; in vdev_draid_read_config_spare() 2531 fnvlist_add_uint64(nv, ZPOOL_CONFIG_TOP_GUID, vd->vdev_top->vdev_guid); in vdev_draid_read_config_spare() 2540 guid = sav->sav_vdevs[i]->vdev_guid; in vdev_draid_read_config_spare()
|
/freebsd/sys/contrib/openzfs/lib/libzutil/os/linux/ |
H A D | zutil_import_os.c | 108 uint64_t vdev_guid = 0; in zpool_open_func() local 155 error = nvlist_lookup_uint64(config, ZPOOL_CONFIG_GUID, &vdev_guid); in zpool_open_func() 156 if (error || (rn->rn_vdev_guid && rn->rn_vdev_guid != vdev_guid)) { in zpool_open_func() 188 slice->rn_vdev_guid = vdev_guid; in zpool_open_func() 214 slice->rn_vdev_guid = vdev_guid; in zpool_open_func()
|
/freebsd/sys/contrib/openzfs/lib/libzutil/ |
H A D | zutil_import.c | 314 uint64_t pool_guid, vdev_guid, top_guid, txg, state; in add_config() local 328 nvlist_lookup_uint64(config, ZPOOL_CONFIG_GUID, &vdev_guid) == 0) { in add_config() 336 ne->ne_guid = vdev_guid; in add_config() 356 &vdev_guid) != 0 || in add_config() 434 ne->ne_guid = vdev_guid; in add_config() 1176 uint64_t vdev_guid, const char **path, const char **devid) in label_paths_impl() argument 1188 pool_guid, vdev_guid, path, devid); in label_paths_impl() 1199 if ((error != 0) || (guid != vdev_guid)) in label_paths_impl() 1224 uint64_t vdev_guid; in label_paths() local 1229 if (nvlist_lookup_uint64(label, ZPOOL_CONFIG_GUID, &vdev_guid) != 0) in label_paths() [all …]
|