[Sheepdog] The 's' flag

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Mon Aug 22 08:18:07 CEST 2011


At Wed, 17 Aug 2011 09:22:11 +0100,
Brian Candler wrote:
> 
> Can someone explain the meaning of the 's' flag in vdi list?
> 
> At https://github.com/collie/sheepdog/wiki/Getting-Started it shows the 's'
> flag applied to the snapshot, and not the original volume:
> 
> $ collie vdi list
>   name        id    size    used  shared    creation time  object id
> --------------------------------------------------------------------
>   Bob          0  2.0 GB  1.6 GB  0.0 MB 2010-03-23 16:16      80000
>   Alice        0  256 GB  0.0 MB  0.0 MB 2010-03-23 16:21      c0000
> s Alice        1  256 GB  0.0 MB  0.0 MB 2010-03-23 16:16      40000
> 
> However, in my tests the 's' flag is applied to everything except the last
> snapshot:
> 
> brian at x100:~$ collie vdi list
>   name        id    size    used  shared    creation time   vdi id
> ------------------------------------------------------------------
> s Test         1  2.0 GB  472 MB  0.0 MB 2011-08-16 21:00   ec9f05
> s Test         2  2.0 GB  0.0 MB  472 MB 2011-08-16 22:44   ec9f06
> s Test         3  2.0 GB   48 MB  424 MB 2011-08-16 22:46   ec9f07
> s Test         4  2.0 GB   56 MB  416 MB 2011-08-16 22:46   ec9f08
> s Test         5  2.0 GB   44 MB  428 MB 2011-08-16 23:04   ec9f09
>   Test         6  2.0 GB   48 MB  424 MB 2011-08-16 23:05   ec9f0a
> 
> This suggest to me that 's' means 'shared'?

No, the 's' flag means a snapshot.  I think you ran
"qemu-img snapshot -c tag sheepdog:Test" five times, no?

The Test vdi with id 6 is a non-snapshot vdi.
If you run "qemu sheepdog:Test", the vm will open it.


Thanks,

Kazutaka



More information about the sheepdog mailing list