]> sourceware.org Git - lvm2.git/commit
Remove archive_enable() calls after create_toolcontext() calls.
authorDave Wysochanski <dwysocha@redhat.com>
Thu, 11 Dec 2008 03:32:56 +0000 (03:32 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Thu, 11 Dec 2008 03:32:56 +0000 (03:32 +0000)
commit6f36d0d06ca0ac2df5a8547d78f2d7a0972d830e
tree59596c7445de4e0f209aa9dfbde538db58f16e91
parent76d734a4bd425658e753b4e3f4bf04fd5ac9dadc
Remove archive_enable() calls after create_toolcontext() calls.

_init_backup() calls archive_init(), which originally set 'enabled' to
a hardcoded '1' value.  This seems incorrect based on my read of other
areas of the code so here we add a 'enabled' paramter to archive_init().
We pass in cmd->default_settings.archive, which is obtained from the
config tree.  Later in create_toolcontext, cmd->current_settings is
set to cmd->default_settings.  The archive_enable() call we remove
here was using cmd->current_settings to set the 'archive' enable
value.  The final value of cmd->archive_params->enabled should thus
be equivalent to the original code.
daemons/clvmd/lvm-functions.c
lib/commands/toolcontext.c
lib/format_text/archiver.c
lib/format_text/archiver.h
tools/lvmcmdline.c
This page took 0.037183 seconds and 5 git commands to generate.