[sheepdog] [PATCH v2 2/4] dog: use nr_copies of inode object instead of command line parameter

Liu Yuan namei.unix at gmail.com
Thu May 8 07:43:19 CEST 2014


On Wed, May 07, 2014 at 11:38:28PM +0900, Hitoshi Mitake wrote:
> From: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
> 
> Current "dog vdi clone" has a possibility of creating clone volume
> which has a different replica number from its original volume when it
> receives -c option. This patch forbid such a situation by letting
> vdi_clone() use inode->nr_copies instead of vdi_cmd_data.nr_copies
> (the variable which holds a value passed with -c option).

what is the problem of a clone that has different copies than its base?

Thanks
Yuan



More information about the sheepdog mailing list