[sheepdog] Call to sd_truncate()

Hadrien KOHL hadrien.kohl at gmail.com
Fri Dec 13 15:00:22 CET 2013


That make sense.This commit is after the tag v1.7.0 that I am using.
Do you have the commit id you compiled qemu from?


2013/12/13 Liu Yuan <namei.unix at gmail.com>

> On Fri, Dec 13, 2013 at 02:46:14PM +0100, Hadrien KOHL wrote:
> > Are you extra sure?
> > I compiled both qemu 1.7.0 and sheepdog 0.7.5 and I still don't get this
> > information:
> >
> > ~/P/sheepdog git:tags/v0.7.5# for i in 0 1 2; do sheep/sheep -c local -d
> > ./$i -z $i -p 700$i;sleep 1;done
> >
> > ~/P/qemu git:tags/v1.7.0# ./qemu-img info sheepdog:test
> >
> >          ⏎ ◼
> > image: sheepdog:test
> > file format: qcow2
> > virtual size: 10G (10737418240 bytes)
> > disk size: unavailable
> > cluster_size: 65536
> > Format specific information:
> >     compat: 1.1
> >     lazy refcounts: false
> >
>
> yliu at ubuntu-precise:~/sheepdog$ qemu-img create -f qcow2 sheepdog:test 10G
> Formatting 'sheepdog:test', fmt=qcow2 size=10737418240 encryption=off
> cluster_size=65536 lazy_refcounts=off
> yliu at ubuntu-precise:~/sheepdog$ qemu-img info sheepdog:test
> image: sheepdog:test
> file format: qcow2
> virtual size: 10G (10737418240 bytes)
> disk size: 4.0M
> cluster_size: 65536
> Format specific information:
>     compat: 1.1
>     lazy refcounts: false
> yliu at ubuntu-precise:~/sheepdog$ qemu-img -v
> qemu-img version 1.7.50, Copyright (c) 2004-2008 Fabrice Bellard
> usage: qemu-img command [command options]
> QEMU disk image utility
>
> Seems that I am running latest QEMU from git repo, but I just checked the
> patch
> that add 'disk size' support for qemu-img,
>
> commit 8582972227196c289bb3b28086b3b2d01071d958
> Author: Liu Yuan <namei.unix at gmail.com>
> Date:   Wed Aug 7 16:59:53 2013 +0800
>
>     sheepdog: implement .bdrv_get_allocated_file_size
>
>     With this patch, qemu-img info sheepdog:image will show disk size for
> sheepdog
>     images.
>
>     Cc: Kevin Wolf <kwolf at redhat.com>
>     Cc: Stefan Hajnoczi <stefanha at redhat.com>
>     Cc: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
>     Signed-off-by: Liu Yuan <namei.unix at gmail.com>
>     Reviewed-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
>     Signed-off-by: Kevin Wolf <kwolf at redhat.com>
>
> It was merged at Aug 7 2013
>
> Thanks
> Yuan
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20131213/7163fe6c/attachment-0004.html>


More information about the sheepdog mailing list