dom0+vm/qvm-block: convert device size to bytes

This commit is contained in:
Marek Marczykowski 2011-10-01 02:55:51 +02:00
parent e1a6c1ffd5
commit 11be718dc6

View File

@ -2,7 +2,7 @@
NAME=${DEVNAME#/dev/} NAME=${DEVNAME#/dev/}
DESC="${ID_MODEL} (${ID_FS_LABEL})" DESC="${ID_MODEL} (${ID_FS_LABEL})"
SIZE=$(cat /sys/$DEVPATH/size) SIZE=$[ $(cat /sys/$DEVPATH/size) * 512 ]
MODE=w MODE=w
XS_KEY="qubes-block-devices/$NAME" XS_KEY="qubes-block-devices/$NAME"