Searched refs:vdev_enc_sysfs_path (Results 1 – 13 of 13) sorted by relevance
194 vdev_enc_sysfs_path=$(realpath "/sys/class/block/$dev/device/enclosure_device"*)195 if [ ! -d "$vdev_enc_sysfs_path" ] ; then197 vdev_enc_sysfs_path=$(nvme_dev_to_slot "$dev")206 if [ -z "$vdev_enc_sysfs_path" ] ; then211 led_path=$(path_to_led "$vdev_enc_sysfs_path")
480 data->vdev_enc_sysfs_path, NULL, NULL); in vdev_run_cmd()578 const char *vdev_enc_sysfs_path = NULL; in for_each_vdev_run_cb() local590 &vdev_enc_sysfs_path); in for_each_vdev_run_cb()631 if (vdev_enc_sysfs_path) in for_each_vdev_run_cb()632 data->vdev_enc_sysfs_path = strdup(vdev_enc_sysfs_path); in for_each_vdev_run_cb()634 data->vdev_enc_sysfs_path = NULL; in for_each_vdev_run_cb()735 free(vcdl->data[i].vdev_enc_sysfs_path); in free_vdev_cmd_data_list()
98 char *vdev_enc_sysfs_path; /* enclosure sysfs path (if any) */ member
574 if (vd->vdev_enc_sysfs_path != NULL) in zfs_ereport_start()577 DATA_TYPE_STRING, vd->vdev_enc_sysfs_path, NULL); in zfs_ereport_start()1400 if (vd->vdev_enc_sysfs_path != NULL) in zfs_event_create()1403 vd->vdev_enc_sysfs_path)); in zfs_event_create()1493 if (vd->vdev_enc_sysfs_path) { in zfs_post_state_change()1496 vd->vdev_enc_sysfs_path); in zfs_post_state_change()
952 vd->vdev_enc_sysfs_path = spa_strdup(tmp); in vdev_alloc()1211 if (vd->vdev_enc_sysfs_path) in vdev_free()1212 spa_strfree(vd->vdev_enc_sysfs_path); in vdev_free()2684 old = dvd->vdev_enc_sysfs_path; in vdev_copy_path_impl()2685 new = svd->vdev_enc_sysfs_path; in vdev_copy_path_impl()2693 if (dvd->vdev_enc_sysfs_path) in vdev_copy_path_impl()2694 spa_strfree(dvd->vdev_enc_sysfs_path); in vdev_copy_path_impl()2696 if (svd->vdev_enc_sysfs_path) { in vdev_copy_path_impl()2697 dvd->vdev_enc_sysfs_path = spa_strdup( in vdev_copy_path_impl()2698 svd->vdev_enc_sysfs_path); in vdev_copy_path_impl()[all …]
481 if (vd->vdev_enc_sysfs_path != NULL) in vdev_config_generate()483 vd->vdev_enc_sysfs_path); in vdev_config_generate()
2297 const char *vdev_enc_sysfs_path, const char *opt_key, const char *opt_val) in zpool_vdev_script_alloc_env() argument2330 vdev_enc_sysfs_path ? vdev_enc_sysfs_path : ""); in zpool_vdev_script_alloc_env()
8958 <parameter type-id='80f4b756' name='vdev_enc_sysfs_path'/>
407 char *vdev_enc_sysfs_path; /* enclosure sysfs path */ member
362 const char *vdev_enc_sysfs_path, const char *opt_key, const char *opt_val);