[Sheepdog] [PATCH 0/3] add vdi attributes support

Chris Webb chris at arachsys.com
Fri Feb 18 15:56:10 CET 2011


MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp> writes:

>  $ collie vdi getattr VDINAME KEY                      # get value
>  $ collie vdi setattr VDINAME KEY [-x] VALUE           # set value
>  $ collie vdi setattr VDINAME KEY [-x] < VALUEFILE     # set value from stdin
>  $ collie vdi setattr VDINAME KEY -d                   # delete attribute

Hi Kazutaka. Gosh, that was quick! Thanks for adding this: it's just enough
functionality for storing all our management info, with a nice clean
interface.

Probably also worth noting for the benefit of the list archives that the
setattr -x functionality is sufficient to allow people to implement advisory
locking for sheepdog vdis if they need it: just setattr -x lock (with say a
hostname, timestamp and PID as the value) which will error if the lock is
already held, and setattr -d lock to release it.

Cheers,

Chris.



More information about the sheepdog mailing list