vdi: Use a literal number of bytes for DEFAULT_CLUSTER_SIZE
commit3dd5b8f4718c6ca1eadb16dd67a8cad76455ddb0
authorLeonid Bloch <lbloch@janustech.com>
Sun, 4 Nov 2018 18:09:28 +0000 (4 18:09 +0000)
committerKevin Wolf <kwolf@redhat.com>
Mon, 5 Nov 2018 14:28:48 +0000 (5 15:28 +0100)
treeac8ba5e3673aacb5286ebd8b3708814f6a418b3c
parent679be303f7b40accfd8040c059680f253fc3c3b5
vdi: Use a literal number of bytes for DEFAULT_CLUSTER_SIZE

If an expression is used to define DEFAULT_CLUSTER_SIZE, when compiled,
it will be embedded as a literal expression in the binary (as the
default value) because it is stringified to mark the size of the default
value. Now this is fixed by using a defined number to define this value.

Signed-off-by: Leonid Bloch <lbloch@janustech.com>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vdi.c