[sheepdog] [PATCH v5 15/16] collie: implement "collie cluster snapshot" subcommand

Kai Zhang kyle at zelin.io
Tue May 21 05:42:36 CEST 2013




On May 20, 2013, at 7:41 PM, Liu Yuan <namei.unix at gmail.com> wrote:

> On 05/20/2013 03:50 PM, Kai Zhang wrote:
>> Command example:
>> *Usage*
>> Save all readonly objects to local path.
>> "tag" is used to describe a snapshot.
>> $collie cluster snapshot save tag /localpath
>> 
>> List all cluster snapshot saved in local path.
>> $collie cluster snapshot list /localpath
>> 
>> Load a snapshot to a cluster.
>> This will format cluster firstly.
>> User can use tag or index to select a snapshot.
>> $collie cluster snapshot load tag|idx /localpath
> 
> My gcc complains,
> 
> cluster.c: In function ‘save_snapshot’:
> cluster.c:285:11: warning: variable ‘idx’ set but not used
> [-Wunused-but-set-variable]
>  CCLD   collie
> 

My gcc (4.4.7) didn't show this warning.
What is your gcc's version?
I would like to upgrade and try again.

Thanks,
Kyle




More information about the sheepdog mailing list