From 11be718dc62c9e1dd424033f0377c35fdc0832fe Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sat, 1 Oct 2011 02:55:51 +0200 Subject: [PATCH] dom0+vm/qvm-block: convert device size to bytes --- common/block_add_change | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/block_add_change b/common/block_add_change index b4bd0f0..e76235e 100755 --- a/common/block_add_change +++ b/common/block_add_change @@ -2,7 +2,7 @@ NAME=${DEVNAME#/dev/} DESC="${ID_MODEL} (${ID_FS_LABEL})" -SIZE=$(cat /sys/$DEVPATH/size) +SIZE=$[ $(cat /sys/$DEVPATH/size) * 512 ] MODE=w XS_KEY="qubes-block-devices/$NAME"