/freebsd/sbin/devd/ |
H A D | zfs.conf | 7 …action "logger -p local7.warn -t ZFS checksum mismatch, zpool=$pool path=$vdev_path offset=$zio_of… 13 …action "logger -p local7.warn -t ZFS vdev I/O failure, zpool=$pool path=$vdev_path offset=$zio_off… 31 action "logger -p local7.err -t ZFS vdev problem, zpool=$pool path=$vdev_path type=$type"; 43 action "logger -p local7.err -t ZFS vdev probe failure, zpool=$pool path=$vdev_path";
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | vdev_file.c | 62 ASSERT3P(vd->vdev_path, !=, NULL); in vdev_file_hold() 68 ASSERT3P(vd->vdev_path, !=, NULL); in vdev_file_rele() 117 if (vd->vdev_path == NULL || vd->vdev_path[0] != '/') { in vdev_file_open() 140 ASSERT3P(vd->vdev_path, !=, NULL); in vdev_file_open() 141 ASSERT(vd->vdev_path[0] == '/'); in vdev_file_open() 143 error = zfs_file_open(vd->vdev_path, in vdev_file_open()
|
H A D | vdev_geom.c | 715 vdpath = vd->vdev_path + sizeof ("/dev/") - 1; in vdev_geom_attach_by_guids() 769 spa_strfree(vd->vdev_path); in vdev_geom_open_by_guids() 770 vd->vdev_path = buf; in vdev_geom_open_by_guids() 793 pp = g_provider_by_name(vd->vdev_path + sizeof ("/dev/") - 1); in vdev_geom_open_by_path() 795 ZFS_LOG(1, "Found provider by name %s.", vd->vdev_path); in vdev_geom_open_by_path() 821 if (vd->vdev_path == NULL || strncmp(vd->vdev_path, "/dev/", 5) != 0) { in vdev_geom_open() 879 ZFS_LOG(1, "Vdev %s not found.", vd->vdev_path); in vdev_geom_open()
|
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | vdev_file.c | 64 ASSERT(vd->vdev_path != NULL); in vdev_file_hold() 70 ASSERT(vd->vdev_path != NULL); in vdev_file_rele() 119 if (vd->vdev_path == NULL || vd->vdev_path[0] != '/') { in vdev_file_open() 142 ASSERT(vd->vdev_path != NULL && vd->vdev_path[0] == '/'); in vdev_file_open() 144 error = zfs_file_open(vd->vdev_path, in vdev_file_open()
|
H A D | vdev_disk.c | 235 zio->io_vd->vdev_path, zio->io_error, zio->io_type, in vdev_disk_error() 248 v->vdev_path); in vdev_disk_kobj_evt_post() 292 if (v->vdev_path == NULL || v->vdev_path[0] != '/') { in vdev_disk_open() 392 bdh = vdev_blkdev_get_by_path(v->vdev_path, smode, in vdev_disk_open() 1491 if (vd->vdev_path == NULL || vd->vdev_path[0] != '/') in vdev_disk_hold()
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | spa_stats.c | 576 char *vdev_path; member 607 (smh->vdev_path ? smh->vdev_path : "-")); in spa_mmp_history_show() 619 if (smh->vdev_path) in spa_mmp_history_truncate() 620 kmem_strfree(smh->vdev_path); in spa_mmp_history_truncate() 754 if (vd->vdev_path) in spa_mmp_history_add() 755 smh->vdev_path = kmem_strdup(vd->vdev_path); in spa_mmp_history_add()
|
H A D | vdev_initialize.c | 173 "vdev=%s activated", vd->vdev_path); in vdev_initialize_change_state() 177 "vdev=%s suspended", vd->vdev_path); in vdev_initialize_change_state() 183 "vdev=%s canceled", vd->vdev_path); in vdev_initialize_change_state() 187 "vdev=%s complete", vd->vdev_path); in vdev_initialize_change_state() 191 "vdev=%s", vd->vdev_path); in vdev_initialize_change_state() 494 "(%llu, %llu)", vd->vdev_path, in vdev_initialize_xlate_range_add()
|
H A D | zfs_fm.c | 558 if (vd->vdev_path != NULL) in zfs_ereport_start() 561 DATA_TYPE_STRING, vd->vdev_path, NULL); in zfs_ereport_start() 610 if (pvd->vdev_path) in zfs_ereport_start() 613 DATA_TYPE_STRING, pvd->vdev_path, NULL); in zfs_ereport_start() 629 spare_paths[i] = spare_vd->vdev_path; in zfs_ereport_start() 1385 if (vd->vdev_path != NULL) in zfs_event_create() 1387 FM_EREPORT_PAYLOAD_ZFS_VDEV_PATH, vd->vdev_path)); in zfs_event_create()
|
H A D | vdev.c | 182 if (vd->vdev_path != NULL) { in vdev_dbgmsg() 184 vd->vdev_path, buf); in vdev_dbgmsg() 239 vd->vdev_path ? vd->vdev_path : "N/A", state); in vdev_dbgmsg_print_tree() 865 vd->vdev_path = spa_strdup(tmp); in vdev_alloc() 1134 if (vd->vdev_path) in vdev_free() 1135 spa_strfree(vd->vdev_path); in vdev_free() 1876 if (zvol_is_zvol(vd->vdev_path)) in vdev_uses_zvols() 2551 vdev_update_path("vdev_path", svd->vdev_path, &dvd->vdev_path, in vdev_copy_path_impl() 5629 vd->vdev_path, vq->vq_active); in vdev_deadman() 5770 if (vd->vdev_path == NULL) { in vdev_name() [all …]
|
H A D | vdev_removal.c | 525 (vd->vdev_path != NULL) ? vd->vdev_path : "-"); in vdev_remove_initiate_sync() 1980 (vd->vdev_path != NULL) ? vd->vdev_path : "-"); in spa_vdev_remove_cancel_sync() 2477 vd_path = spa_strdup((vd->vdev_path != NULL) ? in spa_vdev_remove() 2478 vd->vdev_path : "-"); in spa_vdev_remove()
|
H A D | vdev_trim.c | 353 "vdev=%s activated", vd->vdev_path); in vdev_trim_change_state() 358 "vdev=%s suspended", vd->vdev_path); in vdev_trim_change_state() 365 "vdev=%s canceled", vd->vdev_path); in vdev_trim_change_state() 371 "vdev=%s complete", vd->vdev_path); in vdev_trim_change_state()
|
H A D | spa.c | 7655 oldvdpath = spa_strdup(oldvd->vdev_path); 7657 newvdpath = spa_strdup(newvd->vdev_path); 7664 spa_strfree(oldvd->vdev_path); 7665 oldvd->vdev_path = kmem_alloc(strlen(newvdpath) + 5, 7667 (void) sprintf(oldvd->vdev_path, "%s/old", 7674 oldvdpath = spa_strdup(oldvd->vdev_path); 7901 vd->vdev_path != NULL) { 7902 size_t len = strlen(vd->vdev_path); 7907 if (cvd == vd || cvd->vdev_path == NULL) 7910 if (strncmp(cvd->vdev_path, vd->vdev_path, len) == 0 && [all …]
|
H A D | vdev_label.c | 470 if (vd->vdev_path != NULL) in vdev_config_generate() 471 fnvlist_add_string(nv, ZPOOL_CONFIG_PATH, vd->vdev_path); in vdev_config_generate() 1044 if (vd->vdev_path != NULL) in vdev_aux_label_generate() 1045 fnvlist_add_string(label, ZPOOL_CONFIG_PATH, vd->vdev_path); in vdev_aux_label_generate()
|
H A D | vdev_draid.c | 2539 strcmp(sav->sav_vdevs[i]->vdev_path, vd->vdev_path) == 0) { in vdev_draid_read_config_spare()
|
H A D | zio.c | 2254 vd ? vd->vdev_path : "NULL", in zio_deadman_impl()
|
/freebsd/sys/contrib/openzfs/cmd/zpool_influxdb/ |
H A D | zpool_influxdb.c | 304 const char *vdev_path = NULL; in get_vdev_desc() local 307 (void) nvlist_lookup_string(nvroot, ZPOOL_CONFIG_PATH, &vdev_path); in get_vdev_desc() 321 if (vdev_path == NULL) { in get_vdev_desc() 325 s = escape_string(vdev_path); in get_vdev_desc()
|
/freebsd/sys/contrib/openzfs/cmd/zed/agents/ |
H A D | zfs_mod.c | 1000 vdev_size_from_config(zpool_handle_t *zhp, const char *vdev_path) in vdev_size_from_config() argument 1007 nvl = zpool_find_vdev(zhp, vdev_path, &avail_spare, &l2cache, &log); in vdev_size_from_config() 1015 vdev_path); in vdev_size_from_config() 1033 vdev_whole_disk_from_config(zpool_handle_t *zhp, const char *vdev_path) in vdev_whole_disk_from_config() argument 1039 nvl = zpool_find_vdev(zhp, vdev_path, &avail_spare, &l2cache, &log); in vdev_whole_disk_from_config()
|
/freebsd/sys/contrib/openzfs/cmd/zed/ |
H A D | zed_event.c | 930 const char *vdev_path; in _zed_event_update_enc_sysfs_path() local 933 &vdev_path) != 0) { in _zed_event_update_enc_sysfs_path() 937 if (vdev_path == NULL) { in _zed_event_update_enc_sysfs_path() 941 update_vdev_config_dev_sysfs_path(nvl, vdev_path, in _zed_event_update_enc_sysfs_path()
|
/freebsd/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs_util.c | 2283 const char *vdev_path, const char *vdev_upath, in zpool_vdev_script_alloc_env() argument 2304 rc = asprintf(&env[2], "VDEV_PATH=%s", vdev_path ? vdev_path : ""); in zpool_vdev_script_alloc_env() 2438 char vdev_path[MAXPATHLEN]; in zpool_prepare_and_label_disk() local 2439 (void) snprintf(vdev_path, sizeof (vdev_path), "%s/%s", DISK_ROOT, in zpool_prepare_and_label_disk()
|
/freebsd/sys/contrib/openzfs/cmd/ |
H A D | ztest.c | 3297 if (vd->vdev_path != NULL && strcmp(path, vd->vdev_path) == 0) in vdev_lookup_by_path() 3531 if (strstr(svd->vdev_path, VDEV_TYPE_DRAID) != NULL) in ztest_vdev_aux_add_remove() 3546 if (strcmp(sav->sav_vdevs[c]->vdev_path, in ztest_vdev_aux_add_remove() 3811 (void) strlcpy(oldpath, oldvd->vdev_path, MAXPATHLEN); in ztest_vdev_attach_detach() 3847 (void) strlcpy(newpath, newvd->vdev_path, MAXPATHLEN); in ztest_vdev_attach_detach() 4257 if ((fd = open(vd->vdev_path, O_RDWR)) == -1) in grow_vdev() 4265 vd->vdev_path, (ulong_t)fsize, (ulong_t)*newsize); in grow_vdev() 4434 vd->vdev_path, (ulong_t)psize, (ulong_t)newsize); in ztest_vdev_LUN_growth() 6562 (void) strlcpy(path0, vd0->vdev_path, MAXPATHLEN); in ztest_fault_inject() 6563 (void) strlcpy(pathrand, vd0->vdev_path, MAXPATHLEN); in ztest_fault_inject() [all …]
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | vdev_impl.h | 403 char *vdev_path; /* vdev path (if any) */ member
|
/freebsd/sys/contrib/openzfs/cmd/zdb/ |
H A D | zdb.c | 2234 vd->vdev_path ? vd->vdev_path : in dump_dtl() 8610 if (vc->vdev_path == NULL) { in zdb_vdev_lookup() 8618 p = strrchr(vc->vdev_path, '/'); in zdb_vdev_lookup() 8619 p = p ? p + 1 : vc->vdev_path; in zdb_vdev_lookup() 8620 q = &vc->vdev_path[strlen(vc->vdev_path) - 2]; in zdb_vdev_lookup() 8622 if (strcmp(vc->vdev_path, path) == 0) in zdb_vdev_lookup() 8908 if (vd->vdev_path) in zdb_read_block() 8910 vd->vdev_path); in zdb_read_block()
|
/freebsd/sys/contrib/openzfs/include/ |
H A D | libzfs.h | 346 const char *vdev_path, const char *vdev_upath,
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/include/ |
H A D | blkdev.shlib | 623 function corrupt_label_checksum # label_number vdev_path
|
/freebsd/sys/contrib/openzfs/cmd/zpool/ |
H A D | zpool_main.c | 1763 vdev_is_active(char *vdev_path) in vdev_is_active() argument 1766 fd = open(vdev_path, O_EXCL); in vdev_is_active()
|