Home
last modified time | relevance | path

Searched refs:vdev_enc_sysfs_path (Results 1 – 13 of 13) sorted by relevance

/freebsd/sys/contrib/openzfs/cmd/zed/zed.d/
H A Dpool_import-led.sh194 vdev_enc_sysfs_path=$(realpath "/sys/class/block/$dev/device/enclosure_device"*)
195 if [ ! -d "$vdev_enc_sysfs_path" ] ; then
197 vdev_enc_sysfs_path=$(nvme_dev_to_slot "$dev")
206 if [ -z "$vdev_enc_sysfs_path" ] ; then
211 led_path=$(path_to_led "$vdev_enc_sysfs_path")
H A Dstatechange-led.sh194 vdev_enc_sysfs_path=$(realpath "/sys/class/block/$dev/device/enclosure_device"*)
195 if [ ! -d "$vdev_enc_sysfs_path" ] ; then
197 vdev_enc_sysfs_path=$(nvme_dev_to_slot "$dev")
206 if [ -z "$vdev_enc_sysfs_path" ] ; then
211 led_path=$(path_to_led "$vdev_enc_sysfs_path")
H A Dvdev_attach-led.sh194 vdev_enc_sysfs_path=$(realpath "/sys/class/block/$dev/device/enclosure_device"*)
195 if [ ! -d "$vdev_enc_sysfs_path" ] ; then
197 vdev_enc_sysfs_path=$(nvme_dev_to_slot "$dev")
206 if [ -z "$vdev_enc_sysfs_path" ] ; then
211 led_path=$(path_to_led "$vdev_enc_sysfs_path")
H A Dvdev_clear-led.sh194 vdev_enc_sysfs_path=$(realpath "/sys/class/block/$dev/device/enclosure_device"*)
195 if [ ! -d "$vdev_enc_sysfs_path" ] ; then
197 vdev_enc_sysfs_path=$(nvme_dev_to_slot "$dev")
206 if [ -z "$vdev_enc_sysfs_path" ] ; then
211 led_path=$(path_to_led "$vdev_enc_sysfs_path")
/freebsd/sys/contrib/openzfs/cmd/zpool/
H A Dzpool_iter.c453 data->vdev_enc_sysfs_path, NULL, NULL); in vdev_run_cmd()
551 const char *vdev_enc_sysfs_path = NULL; in for_each_vdev_run_cb() local
563 &vdev_enc_sysfs_path); in for_each_vdev_run_cb()
604 if (vdev_enc_sysfs_path) in for_each_vdev_run_cb()
605 data->vdev_enc_sysfs_path = strdup(vdev_enc_sysfs_path); in for_each_vdev_run_cb()
607 data->vdev_enc_sysfs_path = NULL; in for_each_vdev_run_cb()
708 free(vcdl->data[i].vdev_enc_sysfs_path); in free_vdev_cmd_data_list()
H A Dzpool_util.h101 char *vdev_enc_sysfs_path; /* enclosure sysfs path (if any) */ member
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzfs_fm.c571 if (vd->vdev_enc_sysfs_path != NULL) in zfs_ereport_start()
574 DATA_TYPE_STRING, vd->vdev_enc_sysfs_path, NULL); in zfs_ereport_start()
1395 if (vd->vdev_enc_sysfs_path != NULL) in zfs_event_create()
1398 vd->vdev_enc_sysfs_path)); in zfs_event_create()
1474 if (vd->vdev_enc_sysfs_path) { in zfs_post_state_change()
1477 vd->vdev_enc_sysfs_path); in zfs_post_state_change()
H A Dvdev.c887 vd->vdev_enc_sysfs_path = spa_strdup(tmp); in vdev_alloc()
1142 if (vd->vdev_enc_sysfs_path) in vdev_free()
1143 spa_strfree(vd->vdev_enc_sysfs_path); in vdev_free()
2565 old = dvd->vdev_enc_sysfs_path; in vdev_copy_path_impl()
2566 new = svd->vdev_enc_sysfs_path; in vdev_copy_path_impl()
2574 if (dvd->vdev_enc_sysfs_path) in vdev_copy_path_impl()
2575 spa_strfree(dvd->vdev_enc_sysfs_path); in vdev_copy_path_impl()
2577 if (svd->vdev_enc_sysfs_path) { in vdev_copy_path_impl()
2578 dvd->vdev_enc_sysfs_path = spa_strdup( in vdev_copy_path_impl()
2579 svd->vdev_enc_sysfs_path); in vdev_copy_path_impl()
[all …]
H A Dvdev_label.c481 if (vd->vdev_enc_sysfs_path != NULL) in vdev_config_generate()
483 vd->vdev_enc_sysfs_path); in vdev_config_generate()
/freebsd/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_util.c2286 const char *vdev_enc_sysfs_path, const char *opt_key, const char *opt_val) in zpool_vdev_script_alloc_env() argument
2319 vdev_enc_sysfs_path ? vdev_enc_sysfs_path : ""); in zpool_vdev_script_alloc_env()
H A Dlibzfs.abi8539 <parameter type-id='80f4b756' name='vdev_enc_sysfs_path'/>
/freebsd/sys/contrib/openzfs/include/sys/
H A Dvdev_impl.h404 char *vdev_enc_sysfs_path; /* enclosure sysfs path */ member
/freebsd/sys/contrib/openzfs/include/
H A Dlibzfs.h348 const char *vdev_enc_sysfs_path, const char *opt_key, const char *opt_val);