Account for ZFS
This commit is contained in:
parent
b0dbb8b21a
commit
3c682593bc
2
partvis
2
partvis
@ -108,7 +108,7 @@ for DEVICE in $(fdisk -l | grep '^Disk /' | grep -v '/dev/ram' | cut -d\ -f2 |
|
||||
|
||||
printf "%s" "│"
|
||||
for (( LCV = 0; LCV < ${#PARTITIONS[@]}; LCV++ )); do
|
||||
OUTPUT=$(blkid -o export "${PARTITIONS[${LCV}]}" | grep '^\(TYPE=\)' | cut -d= -f2 | sed 's:linux_raid_member:raid:g')
|
||||
OUTPUT=$(blkid -o export "${PARTITIONS[${LCV}]}" | grep '^\(TYPE=\)' | cut -d= -f2 | sed 's:linux_raid_member:raid:g;s:zfs_member:zfs:g')
|
||||
PADL=$(( ( ${PCOLS[${LCV}]} - ${#OUTPUT} ) / 2 ))
|
||||
PADR=$(( ${PCOLS[${LCV}]} - ${#OUTPUT} - ${PADL} ))
|
||||
printf '%*s%s%*s' ${PADL} "" "${OUTPUT}" ${PADR} ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user