Home
last modified time | relevance | path

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

/freebsd-14.2/sys/contrib/openzfs/cmd/zed/zed.d/
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 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 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-14.2/sys/contrib/openzfs/cmd/zpool/
H A Dzpool_iter.c452 data->vdev_enc_sysfs_path, NULL, NULL); in vdev_run_cmd()
550 const char *vdev_enc_sysfs_path = NULL; in for_each_vdev_run_cb() local
562 &vdev_enc_sysfs_path); in for_each_vdev_run_cb()
603 if (vdev_enc_sysfs_path) in for_each_vdev_run_cb()
604 data->vdev_enc_sysfs_path = strdup(vdev_enc_sysfs_path); in for_each_vdev_run_cb()
606 data->vdev_enc_sysfs_path = NULL; in for_each_vdev_run_cb()
707 free(vcdl->data[i].vdev_enc_sysfs_path); in free_vdev_cmd_data_list()
H A Dzpool_util.h100 char *vdev_enc_sysfs_path; /* enclosure sysfs path (if any) */ member
/freebsd-14.2/sys/contrib/openzfs/module/zfs/
H A Dzfs_fm.c570 if (vd->vdev_enc_sysfs_path != NULL) in zfs_ereport_start()
573 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.c1115 if (vd->vdev_enc_sysfs_path) in vdev_free()
1116 spa_strfree(vd->vdev_enc_sysfs_path); in vdev_free()
2530 old = dvd->vdev_enc_sysfs_path; in vdev_copy_path_impl()
2531 new = svd->vdev_enc_sysfs_path; in vdev_copy_path_impl()
2539 if (dvd->vdev_enc_sysfs_path) in vdev_copy_path_impl()
2540 spa_strfree(dvd->vdev_enc_sysfs_path); in vdev_copy_path_impl()
2542 if (svd->vdev_enc_sysfs_path) { in vdev_copy_path_impl()
2543 dvd->vdev_enc_sysfs_path = spa_strdup( in vdev_copy_path_impl()
2544 svd->vdev_enc_sysfs_path); in vdev_copy_path_impl()
2546 dvd->vdev_enc_sysfs_path = NULL; in vdev_copy_path_impl()
[all …]
H A Dvdev_label.c468 if (vd->vdev_enc_sysfs_path != NULL) in vdev_config_generate()
470 vd->vdev_enc_sysfs_path); in vdev_config_generate()
/freebsd-14.2/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_util.c2109 const char *vdev_enc_sysfs_path, const char *opt_key, const char *opt_val) in zpool_vdev_script_alloc_env() argument
2142 vdev_enc_sysfs_path ? vdev_enc_sysfs_path : ""); in zpool_vdev_script_alloc_env()
H A Dlibzfs.abi7963 <parameter type-id='80f4b756' name='vdev_enc_sysfs_path'/>
/freebsd-14.2/sys/contrib/openzfs/include/sys/
H A Dvdev_impl.h406 char *vdev_enc_sysfs_path; /* enclosure sysfs path */ member
/freebsd-14.2/sys/contrib/openzfs/include/
H A Dlibzfs.h341 const char *vdev_enc_sysfs_path, const char *opt_key, const char *opt_val);