[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [lvm-devel] [PATCH 18/23] Return PERCENT_INVALID for error case



On 12/21/2010 04:41 PM, Zdenek Kabelac wrote:
> +	if (!lv_mirror_percent(lv->vg->cmd, (struct logical_volume *) lv,
> +			   0, &perc, NULL))
> +		perc = PERCENT_INVALID;
> +	return perc;

dunno, these functions returns 0 if (!activation()) and if lv is not activated
 is the PERCENT_INVALID (-1) correct value here?

But it is apparent bug, it returns undefined value in API now.

Milan


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]