When command calls backup() more then once (which is actually not
wanted) this warning message is shown repeatedly:
"WARNING: This metadata update is NOT backed up."
Instead now print message just once and less confuse user.
Version 2.02.169 -
=====================================
+ Warn about command not making metadata backup just once per command.
Enable usage of cached volume as thin volume's external origin.
Support cache volume activation with -real layer.
Improve search of lock-holder for external origin and thin-pool.
struct backup_params {
int enabled;
char *dir;
+ int suppress;
};
int archive_init(struct cmd_context *cmd, const char *dir,
int backup_locally(struct volume_group *vg)
{
if (!vg->cmd->backup_params->enabled || !vg->cmd->backup_params->dir) {
- log_warn("WARNING: This metadata update is NOT backed up");
+ log_warn_suppress(vg->cmd->backup_params->suppress++,
+ "WARNING: This metadata update is NOT backed up.");
return 1;
}