From: Dobrica Pavlinusic Date: Mon, 17 Feb 2020 17:40:53 +0000 (+0100) Subject: report disk size in bytes for summary by model X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=bc77f0dbd2d8031ba4a7c757851ff240331a5a29;p=gnt-info report disk size in bytes for summary by model --- diff --git a/gnt-disks.sh b/gnt-disks.sh index 56c0ca1..e063925 100755 --- a/gnt-disks.sh +++ b/gnt-disks.sh @@ -2,5 +2,5 @@ gnt-cluster command -M lsblk --scsi -m | grep -v '^return' | tee /dev/shm/gnt-disks | grep -v cdrom -gnt-cluster command -M lsblk --scsi --output SIZE,MODEL --noheadings | grep -v '^return' | grep -v '^----*$' | tee /dev/shm/gnt-disk-size-model | cut -d: -f2- | sort | uniq -c | sort -k2 -n | tee /dev/shm/gnt-disks-models +gnt-cluster command -M lsblk --scsi --output SIZE,MODEL --noheadings --bytes | grep -v '^return' | grep -v '^----*$' | tee /dev/shm/gnt-disk-size-model | cut -d: -f2- | sort | uniq -c | sort -k2 -n | tee /dev/shm/gnt-disks-models