Merge pull request #112 from gquittet/master

Added NVMe SSD compatibility
This commit is contained in:
Enno Boland 2017-06-11 11:31:32 +02:00 committed by GitHub
commit a0cf80b5ce
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ show_disks() {
fi
done
# SATA/SCSI and Virtual disks (virtio)
for dev in $(ls /sys/block|grep -E '^([sv]|xv)d|mmcblk'); do
for dev in $(ls /sys/block|grep -E '^([sv]|xv)d|mmcblk|nvme'); do
echo "/dev/$dev"
size=$(cat /sys/block/$dev/size)
sectorsize=$(cat /sys/block/$dev/queue/hw_sector_size)