aboutsummaryrefslogtreecommitdiff
path: root/block/archipelago.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/archipelago.c')
-rw-r--r--block/archipelago.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/block/archipelago.c b/block/archipelago.c
index 40e5f76ae6..93fb7c0634 100644
--- a/block/archipelago.c
+++ b/block/archipelago.c
@@ -708,7 +708,8 @@ static int qemu_archipelago_create(const char *filename,
parse_filename_opts(filename, errp, &volname, &segment_name, &mport,
&vport);
- total_size = qemu_opt_get_size_del(options, BLOCK_OPT_SIZE, 0);
+ total_size = ROUND_UP(qemu_opt_get_size_del(options, BLOCK_OPT_SIZE, 0),
+ BDRV_SECTOR_SIZE);
if (segment_name == NULL) {
segment_name = g_strdup("archipelago");