1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Fix --autobackup argument which could never disable backups.

This commit is contained in:
Alasdair Kergon 2006-11-14 15:28:50 +00:00
parent 9acdc2f6bf
commit fb875e0709
2 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.15 -
====================================
Fix --autobackup argument which could never disable backups.
Fix a label_verify error path.
Version 2.02.14 - 10th November 2006

View File

@ -712,10 +712,8 @@ static int _get_settings(struct cmd_context *cmd)
cmd->default_settings.activation);
}
if (arg_count(cmd, autobackup_ARG)) {
cmd->current_settings.archive = 1;
cmd->current_settings.backup = 1;
}
cmd->current_settings.archive = arg_int_value(cmd, autobackup_ARG, cmd->current_settings.archive);
cmd->current_settings.backup = arg_int_value(cmd, autobackup_ARG, cmd->current_settings.backup);
if (arg_count(cmd, partial_ARG)) {
init_partial(1);