003 File Manager
Current Path:
/usr/src/sys/contrib/openzfs/cmd/zpool/zpool.d
usr
/
src
/
sys
/
contrib
/
openzfs
/
cmd
/
zpool
/
zpool.d
/
📁
..
📄
README
(301 B)
📄
ata_err
(7.24 KB)
📄
cmd_to
(7.24 KB)
📄
defect
(7.24 KB)
📄
dm-deps
(697 B)
📄
enc
(1.21 KB)
📄
encdev
(1.21 KB)
📄
fault_led
(1.21 KB)
📄
health
(7.24 KB)
📄
hours_on
(7.24 KB)
📄
iostat
(1.95 KB)
📄
iostat-10s
(1.95 KB)
📄
iostat-1s
(1.95 KB)
📄
label
(2.29 KB)
📄
locate_led
(1.21 KB)
📄
lsblk
(2.29 KB)
📄
media
(430 B)
📄
model
(2.29 KB)
📄
nonmed
(7.24 KB)
📄
nvme_err
(7.24 KB)
📄
off_ucor
(7.24 KB)
📄
pend_sec
(7.24 KB)
📄
pwr_cyc
(7.24 KB)
📄
r_proc
(7.24 KB)
📄
r_ucor
(7.24 KB)
📄
realloc
(7.24 KB)
📄
rep_ucor
(7.24 KB)
📄
serial
(7.24 KB)
📄
ses
(1.21 KB)
📄
size
(2.29 KB)
📄
slot
(1.21 KB)
📄
smart
(7.24 KB)
📄
smart_test
(7.24 KB)
📄
smartx
(7.24 KB)
📄
temp
(7.24 KB)
📄
test_ended
(7.24 KB)
📄
test_progress
(7.24 KB)
📄
test_status
(7.24 KB)
📄
test_type
(7.24 KB)
📄
upath
(118 B)
📄
vendor
(2.29 KB)
📄
w_proc
(7.24 KB)
📄
w_ucor
(7.24 KB)
Editing: encdev
#!/bin/sh # # Print SCSI Enclosure Services (SES) info. The output is dependent on the name # of the script/symlink used to call it. # helpstr=" enc: Show disk enclosure w:x:y:z value. slot: Show disk slot number as reported by the enclosure. encdev: Show /dev/sg* device associated with the enclosure disk slot. fault_led: Show value of the disk enclosure slot fault LED. locate_led: Show value of the disk enclosure slot locate LED. ses: Show disk's enc, enc device, slot, and fault/locate LED values." script=$(basename "$0") if [ "$1" = "-h" ] ; then echo "$helpstr" | grep "$script:" | tr -s '\t' | cut -f 2- exit fi if [ "$script" = "ses" ] ; then scripts='enc encdev slot fault_led locate_led' else scripts="$script" fi for i in $scripts ; do if [ -z "$VDEV_ENC_SYSFS_PATH" ] ; then echo "$i=" continue fi val="" case $i in enc) val=$(ls "$VDEV_ENC_SYSFS_PATH/../../" 2>/dev/null) ;; slot) val=$(cat "$VDEV_ENC_SYSFS_PATH/slot" 2>/dev/null) ;; encdev) val=$(ls "$VDEV_ENC_SYSFS_PATH/../device/scsi_generic" 2>/dev/null) ;; fault_led) val=$(cat "$VDEV_ENC_SYSFS_PATH/fault" 2>/dev/null) ;; locate_led) val=$(cat "$VDEV_ENC_SYSFS_PATH/locate" 2>/dev/null) ;; esac echo "$i=$val" done
Upload File
Create Folder