Version 2.02.80 -
====================================
+ Return defined value for errors in _copy_percent() and _snap_percent().
Correct return code of cmirrord when issuing 'start' when already running.
Fix wrongly paired unlocking of global lock in pvchange. (2.02.66)
Add backtraces for backup and backup_remove fail paths.
}
static percent_t _copy_percent(const struct logical_volume *lv) {
- percent_t perc;
- lv_mirror_percent(lv->vg->cmd, (struct logical_volume *) lv, 0, &perc, NULL);
- return perc;
+ percent_t perc;
+ if (!lv_mirror_percent(lv->vg->cmd, (struct logical_volume *) lv,
+ 0, &perc, NULL))
+ perc = PERCENT_INVALID;
+ return perc;
}
static percent_t _snap_percent(const struct logical_volume *lv) {
- percent_t perc;
- lv_snapshot_percent(lv, &perc);
- return perc;
+ percent_t perc;
+ if (!lv_snapshot_percent(lv, &perc))
+ perc = PERCENT_INVALID;
+ return perc;
}
/* PV */