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: size
#!/bin/sh # # Print some common lsblk values # # Any (lowercased) name symlinked to the lsblk script will be passed to lsblk # as one of its --output names. Here's a partial list of --output names # from the lsblk binary: # # Available columns (for --output): # NAME device name # KNAME internal kernel device name # MAJ:MIN major:minor device number # FSTYPE filesystem type # MOUNTPOINT where the device is mounted # LABEL filesystem LABEL # UUID filesystem UUID # RA read-ahead of the device # RO read-only device # RM removable device # MODEL device identifier # SIZE size of the device # STATE state of the device # OWNER user name # GROUP group name # MODE device node permissions # ALIGNMENT alignment offset # MIN-IO minimum I/O size # OPT-IO optimal I/O size # PHY-SEC physical sector size # LOG-SEC logical sector size # ROTA rotational device # SCHED I/O scheduler name # RQ-SIZE request queue size # TYPE device type # DISC-ALN discard alignment offset # DISC-GRAN discard granularity # DISC-MAX discard max bytes # DISC-ZERO discard zeroes data # # If the script is run as just 'lsblk' then print out disk size, vendor, # and model number. helpstr=" label: Show filesystem label. model: Show disk model number. size: Show the disk capacity. vendor: Show the disk vendor. lsblk: Show the disk size, vendor, and model number." script=$(basename "$0") if [ "$1" = "-h" ] ; then echo "$helpstr" | grep "$script:" | tr -s '\t' | cut -f 2- exit fi if [ "$script" = "lsblk" ] ; then list="size vendor model" else list=$(echo "$script" | tr '[:upper:]' '[:lower:]') fi # Older versions of lsblk don't support all these values (like SERIAL). for i in $list ; do # Special case: Looking up the size of a file-based vdev can't # be done with lsblk. if [ "$i" = "size" ] && [ -f "$VDEV_UPATH" ] ; then size=$(du -h --apparent-size "$VDEV_UPATH" | cut -f 1) echo "size=$size" continue fi val="" if val=$(eval "lsblk -dl -n -o $i $VDEV_UPATH 2>/dev/null") ; then # Remove leading/trailing whitespace from value val=$(echo "$val" | sed -e 's/^[[:space:]]*//' \ -e 's/[[:space:]]*$//') fi echo "$i=$val" done
Upload File
Create Folder