Glance doesn't assume the size will be rounded up Signed-off-by: Liu Yuan <namei.unix at gmail.com> --- collie/vdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collie/vdi.c b/collie/vdi.c index 27a8418..d787cd4 100644 --- a/collie/vdi.c +++ b/collie/vdi.c @@ -523,7 +523,7 @@ static int do_vdi_create(const char *vdiname, int64_t vdi_size, hdr.vdi.base_vdi_id = base_vid; hdr.vdi.snapid = snapshot ? 1 : 0; - hdr.vdi.vdi_size = roundup(vdi_size, 512); + hdr.vdi.vdi_size = vdi_size; hdr.vdi.copies = nr_copies; ret = collie_exec_req(sdhost, sdport, &hdr, buf); -- 1.7.9.5 |