mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Add backtraces for backup and backup_remove fail paths
This commit is contained in:
parent
bd43da4f9d
commit
2ae2ca89bf
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.80 -
|
Version 2.02.80 -
|
||||||
====================================
|
====================================
|
||||||
|
Add backtraces for backup and backup_remove fail paths.
|
||||||
Detect errors from dm_task_set calls in _get_device_info (dmeventd).
|
Detect errors from dm_task_set calls in _get_device_info (dmeventd).
|
||||||
Add backtraces for archive and backup_locally in check_current_backup().
|
Add backtraces for archive and backup_locally in check_current_backup().
|
||||||
Fix memory leak in debug mode of restart_clvmd() error path.
|
Fix memory leak in debug mode of restart_clvmd() error path.
|
||||||
|
@ -611,7 +611,8 @@ int vg_remove(struct volume_group *vg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
backup_remove(vg->cmd, vg->name);
|
if (!backup_remove(vg->cmd, vg->name))
|
||||||
|
stack;
|
||||||
|
|
||||||
if (ret)
|
if (ret)
|
||||||
log_print("Volume group \"%s\" successfully removed", vg->name);
|
log_print("Volume group \"%s\" successfully removed", vg->name);
|
||||||
|
@ -164,8 +164,10 @@ static int vg_rename_path(struct cmd_context *cmd, const char *old_vg_path,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
backup(vg);
|
if (!backup(vg))
|
||||||
backup_remove(cmd, vg_name_old);
|
stack;
|
||||||
|
if (!backup_remove(cmd, vg_name_old))
|
||||||
|
stack;
|
||||||
|
|
||||||
unlock_vg(cmd, vg_name_new);
|
unlock_vg(cmd, vg_name_new);
|
||||||
unlock_and_free_vg(cmd, vg, vg_name_old);
|
unlock_and_free_vg(cmd, vg, vg_name_old);
|
||||||
|
Loading…
Reference in New Issue
Block a user