Esempio n. 1
0
static dm_percent_t _copy_percent(const struct logical_volume *lv)
{
	dm_percent_t percent;

	if (!lv_mirror_percent(lv->vg->cmd, lv, 0, &percent, NULL))
		percent = DM_PERCENT_INVALID;

	return percent;
}
Esempio n. 2
0
static percent_t _copy_percent(const struct logical_volume *lv) {
    percent_t perc;
    if (!lv_mirror_percent(lv->vg->cmd, lv, 0, &perc, NULL))
        perc = PERCENT_INVALID;
    return perc;
}