On 05/17/2013 02:27 PM, Kai Zhang wrote:
> +/* this is used to track the last snapshot of each vdi*/
> +static struct vdi_entry last_snapshots = {
> +     .name = "",
> +     .vdi_size = 0,
> +     .vdi_id = 0,
> +     .snap_id = 0,
> +     .nr_copies = 0,
> +     .list = LIST_HEAD_INIT(last_snapshots.list)
> +
> +};

Use static LIST_HEAD(last_vdi_list) is sufficient. Then you can insert
vdi_entry onto this list.

Thanks,
Yuan

-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to