[sheepdog] [PATCH v2 6/7] sheep: cleanup the global copies number
Liu Yuan
namei.unix at gmail.com
Mon Aug 6 12:47:08 CEST 2012
On 08/06/2012 04:40 PM, levin li wrote:
> bool have_enough_zones(void)
> {
> + int min_copies;
> +
> if (sys->flags & SD_FLAG_NOHALT)
> return true;
>
> if (!current_vnode_info)
> return false;
>
> - dprintf("flags %d, nr_zones %d, copies %d\n",
> - sys->flags, current_vnode_info->nr_zones, sys->nr_copies);
> + min_copies = get_min_copy_number();
We should get the max copy of all vdi, to ensure that we won't lost the
data.
Thanks,
Yuan
More information about the sheepdog
mailing list