[sheepdog] [PATCH v4] dog: use a minimum number of copies and zones for vdi checking
Liu Yuan
namei.unix at gmail.com
Tue Jan 21 08:58:38 CET 2014
On Mon, Jan 20, 2014 at 01:22:27PM +0900, Hitoshi Mitake wrote:
> Current sheepdog allows the condition of a number of zones < a number
> of copies. But "dog vdi check" cannot handle the case well because it
> tries to create copies of lost/corrupted objects based on
> inode->nr_copies.
>
> This patch lets "dog vdi check" create a minimum number of copies and
> zones.
>
> Reported-by: Marcin Mirosław <marcin at mejor.pl>
> Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
> ---
>
> v4: check inode->copy_policy == 1 explicitly for future expansion
Sorry that we should check copy_policy > 0 because I mistook it with store_plolicy
which it currently == 1, but copy_policy is a user specified value.
Thanks
Yuan
More information about the sheepdog
mailing list