[lvm-devel] LVM2 ./WHATS_NEW lib/activate/activate.c lib/a ...

Alasdair G Kergon agk at redhat.com
Mon Jul 4 14:55:46 UTC 2011


On Fri, Jun 17, 2011 at 02:14:23PM -0000, zkabelac at sourceware.org wrote:
> +++ LVM2/lib/activate/dev_manager.c	2011/06/17 14:14:19	1.218

> @@ -1758,19 +1768,24 @@

>  /* origin_only may only be set if we are resuming (not activating) an origin LV */
>  int dev_manager_preload(struct dev_manager *dm, struct logical_volume *lv,
> -			unsigned origin_only, int *flush_required)
> +			struct lv_activate_opts *laopts, int *flush_required)
>  {
> -	if (!_tree_action(dm, lv, origin_only, PRELOAD))
> +	/* FIXME Update the pvmove implementation! */
> +	if ((lv->status & PVMOVE) || (lv->status & LOCKED))
> +		return 1;
> +
> +	if (!_tree_action(dm, lv, laopts, PRELOAD))
>  		return 0;
>  
>  	*flush_required = dm->flush_required;

Which reinstates the pvmove bug:)

Alasdair




More information about the lvm-devel mailing list