Home
last modified time | relevance | path

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

/freebsd-13.1/sys/contrib/openzfs/cmd/zed/zed.d/
H A Dvdev_attach-led.sh192 vdev_enc_sysfs_path=$(realpath "/sys/class/block/$dev/device/enclosure_device"*)
193 if [ ! -d "$vdev_enc_sysfs_path" ] ; then
195 vdev_enc_sysfs_path=$(nvme_dev_to_slot "$dev")
204 if [ -z "$vdev_enc_sysfs_path" ] ; then
209 led_path=$(path_to_led "$vdev_enc_sysfs_path")
H A Dvdev_clear-led.sh192 vdev_enc_sysfs_path=$(realpath "/sys/class/block/$dev/device/enclosure_device"*)
193 if [ ! -d "$vdev_enc_sysfs_path" ] ; then
195 vdev_enc_sysfs_path=$(nvme_dev_to_slot "$dev")
204 if [ -z "$vdev_enc_sysfs_path" ] ; then
209 led_path=$(path_to_led "$vdev_enc_sysfs_path")
H A Dpool_import-led.sh192 vdev_enc_sysfs_path=$(realpath "/sys/class/block/$dev/device/enclosure_device"*)
193 if [ ! -d "$vdev_enc_sysfs_path" ] ; then
195 vdev_enc_sysfs_path=$(nvme_dev_to_slot "$dev")
204 if [ -z "$vdev_enc_sysfs_path" ] ; then
209 led_path=$(path_to_led "$vdev_enc_sysfs_path")
H A Dstatechange-led.sh192 vdev_enc_sysfs_path=$(realpath "/sys/class/block/$dev/device/enclosure_device"*)
193 if [ ! -d "$vdev_enc_sysfs_path" ] ; then
195 vdev_enc_sysfs_path=$(nvme_dev_to_slot "$dev")
204 if [ -z "$vdev_enc_sysfs_path" ] ; then
209 led_path=$(path_to_led "$vdev_enc_sysfs_path")
/freebsd-13.1/sys/contrib/openzfs/cmd/zpool/
H A Dzpool_iter.c465 data->vdev_enc_sysfs_path ? in vdev_run_cmd()
466 data->vdev_enc_sysfs_path : ""); in vdev_run_cmd()
567 char *vdev_enc_sysfs_path = NULL; in for_each_vdev_run_cb() local
575 &vdev_enc_sysfs_path); in for_each_vdev_run_cb()
616 if (vdev_enc_sysfs_path) in for_each_vdev_run_cb()
617 data->vdev_enc_sysfs_path = strdup(vdev_enc_sysfs_path); in for_each_vdev_run_cb()
619 data->vdev_enc_sysfs_path = NULL; in for_each_vdev_run_cb()
720 free(vcdl->data[i].vdev_enc_sysfs_path); in free_vdev_cmd_data_list()
H A Dzpool_util.h98 char *vdev_enc_sysfs_path; /* enclosure sysfs path (if any) */ member
/freebsd-13.1/sys/contrib/openzfs/module/zfs/
H A Dzfs_fm.c530 if (vd->vdev_enc_sysfs_path != NULL) in zfs_ereport_start()
533 DATA_TYPE_STRING, vd->vdev_enc_sysfs_path, NULL); in zfs_ereport_start()
1323 if (vd->vdev_enc_sysfs_path != NULL) in zfs_event_create()
1326 vd->vdev_enc_sysfs_path)); in zfs_event_create()
1402 if (vd->vdev_enc_sysfs_path) { in zfs_post_state_change()
1405 vd->vdev_enc_sysfs_path); in zfs_post_state_change()
H A Dvdev.c815 &vd->vdev_enc_sysfs_path) == 0) in vdev_alloc()
816 vd->vdev_enc_sysfs_path = spa_strdup(vd->vdev_enc_sysfs_path); in vdev_alloc()
1054 if (vd->vdev_enc_sysfs_path) in vdev_free()
1055 spa_strfree(vd->vdev_enc_sysfs_path); in vdev_free()
2397 old = dvd->vdev_enc_sysfs_path; in vdev_copy_path_impl()
2398 new = svd->vdev_enc_sysfs_path; in vdev_copy_path_impl()
2406 if (dvd->vdev_enc_sysfs_path) in vdev_copy_path_impl()
2407 spa_strfree(dvd->vdev_enc_sysfs_path); in vdev_copy_path_impl()
2409 if (svd->vdev_enc_sysfs_path) { in vdev_copy_path_impl()
2411 svd->vdev_enc_sysfs_path); in vdev_copy_path_impl()
[all …]
H A Dvdev_label.c450 if (vd->vdev_enc_sysfs_path != NULL) in vdev_config_generate()
452 vd->vdev_enc_sysfs_path); in vdev_config_generate()
/freebsd-13.1/sys/contrib/openzfs/include/sys/
H A Dvdev_impl.h419 char *vdev_enc_sysfs_path; /* enclosure sysfs path */ member