<div dir="ltr">That make sense.This commit is after the tag v1.7.0 that I am using.<div>Do you have the commit id you compiled qemu from?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/13 Liu Yuan <span dir="ltr"><<a href="mailto:namei.unix@gmail.com" target="_blank">namei.unix@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Dec 13, 2013 at 02:46:14PM +0100, Hadrien KOHL wrote:<br>
> Are you extra sure?<br>
> I compiled both qemu 1.7.0 and sheepdog 0.7.5 and I still don't get this<br>
> information:<br>
><br>
> ~/P/sheepdog git:tags/v0.7.5# for i in 0 1 2; do sheep/sheep -c local -d<br>
> ./$i -z $i -p 700$i;sleep 1;done<br>
><br>
> ~/P/qemu git:tags/v1.7.0# ./qemu-img info sheepdog:test<br>
><br>
> ⏎ ◼<br>
> image: sheepdog:test<br>
> file format: qcow2<br>
> virtual size: 10G (10737418240 bytes)<br>
> disk size: unavailable<br>
> cluster_size: 65536<br>
> Format specific information:<br>
> compat: 1.1<br>
> lazy refcounts: false<br>
><br>
<br>
</div>yliu@ubuntu-precise:~/sheepdog$ qemu-img create -f qcow2 sheepdog:test 10G<br>
<div class="im">Formatting 'sheepdog:test', fmt=qcow2 size=10737418240 encryption=off cluster_size=65536 lazy_refcounts=off<br>
</div>yliu@ubuntu-precise:~/sheepdog$ qemu-img info sheepdog:test<br>
<div class="im">image: sheepdog:test<br>
file format: qcow2<br>
virtual size: 10G (10737418240 bytes)<br>
</div>disk size: 4.0M<br>
<div class="im">cluster_size: 65536<br>
Format specific information:<br>
compat: 1.1<br>
lazy refcounts: false<br>
</div>yliu@ubuntu-precise:~/sheepdog$ qemu-img -v<br>
qemu-img version 1.7.50, Copyright (c) 2004-2008 Fabrice Bellard<br>
<div class="im">usage: qemu-img command [command options]<br>
</div>QEMU disk image utility<br>
<br>
Seems that I am running latest QEMU from git repo, but I just checked the patch<br>
that add 'disk size' support for qemu-img,<br>
<br>
commit 8582972227196c289bb3b28086b3b2d01071d958<br>
Author: Liu Yuan <<a href="mailto:namei.unix@gmail.com">namei.unix@gmail.com</a>><br>
Date: Wed Aug 7 16:59:53 2013 +0800<br>
<br>
sheepdog: implement .bdrv_get_allocated_file_size<br>
<br>
With this patch, qemu-img info sheepdog:image will show disk size for sheepdog<br>
images.<br>
<br>
Cc: Kevin Wolf <<a href="mailto:kwolf@redhat.com">kwolf@redhat.com</a>><br>
Cc: Stefan Hajnoczi <<a href="mailto:stefanha@redhat.com">stefanha@redhat.com</a>><br>
Cc: MORITA Kazutaka <<a href="mailto:morita.kazutaka@lab.ntt.co.jp">morita.kazutaka@lab.ntt.co.jp</a>><br>
Signed-off-by: Liu Yuan <<a href="mailto:namei.unix@gmail.com">namei.unix@gmail.com</a>><br>
Reviewed-by: MORITA Kazutaka <<a href="mailto:morita.kazutaka@lab.ntt.co.jp">morita.kazutaka@lab.ntt.co.jp</a>><br>
Signed-off-by: Kevin Wolf <<a href="mailto:kwolf@redhat.com">kwolf@redhat.com</a>><br>
<br>
It was merged at Aug 7 2013<br>
<br>
Thanks<br>
<span class="HOEnZb"><font color="#888888">Yuan<br>
<br>
</font></span></blockquote></div><br></div>