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
--
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog