1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-26 14:04:15 +03:00

Fix size and error message of memory allocation at backup initialization.

Author: Takahiro Yasui <tyasui@redhat.com>
This commit is contained in:
taka 2009-03-23 21:56:32 +00:00
parent 8cfcba83ae
commit afcc447a64
2 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ Version 2.02.46 -
Flush memory pool and fix locking in clvmd refresh and backup command.
Fix unlocks in clvmd-corosync. Broken in 2.02.45.
Fix error message when adding metadata directory to internal list fails.
Fix size and error message of memory allocation at backup initialization.
Version 2.02.45 - 3rd March 2009
================================

View File

@ -154,8 +154,8 @@ int backup_init(struct cmd_context *cmd, const char *dir,
int enabled)
{
if (!(cmd->backup_params = dm_pool_zalloc(cmd->libmem,
sizeof(*cmd->archive_params)))) {
log_error("archive_params alloc failed");
sizeof(*cmd->backup_params)))) {
log_error("backup_params alloc failed");
return 0;
}