Version 2.02.80 -
====================================
- Prevent adding/removing mirror log while removing/adding an image.
Add missing tests in _setup_task().
Fail poll daemon creation when lvmcache_init() fails.
Return defined value for errors in _copy_percent() and _snap_percent().
return 0;
}
- /*
- * Disallow adding logs while removing images or
- * adding images while removing logs
- */
- if ((*old_log_count < *new_log_count) &&
- (*old_mimage_count > *new_mimage_count)) {
- log_error("Mirror logs cannot be added while images are"
- " being removed.");
- log_error("Try two separate commands.");
- return 0;
- }
- if ((*old_log_count > *new_log_count) &&
- (*old_mimage_count < *new_mimage_count)) {
- log_error("Mirror images cannot be added while logs are"
- " being removed.");
- log_error("Try two separate commands.");
- return 0;
- }
-
/*
* No mirrored logs for cluster mirrors until
* log daemon is multi-threaded.
if (((old_mimage_count < new_mimage_count && old_log_count > new_log_count) ||
(old_mimage_count > new_mimage_count && old_log_count < new_log_count)) &&
lp->pv_count) {
- log_error("Cannot both allocate and free extents when specifying physical"
- " volumes to use.");
+ log_error("Cannot both allocate and free extents when "
+ "specifying physical volumes to use.");
log_error("Please specify the operation in two steps.");
return 0;
}