dom0+vm/qvm-block: convert device size to bytes
This commit is contained in:
parent
e1a6c1ffd5
commit
11be718dc6
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user