]> sourceware.org Git - lvm2.git/commit
Move init_test() from _apply_settings into _init_logging().
authorDave Wysochanski <dwysocha@redhat.com>
Thu, 11 Dec 2008 03:31:47 +0000 (03:31 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Thu, 11 Dec 2008 03:31:47 +0000 (03:31 +0000)
commit76d734a4bd425658e753b4e3f4bf04fd5ac9dadc
tree3f29e2f6936081a574e7441df1aa4f4ffddbbee7
parentb14f29b5b7a224e0061a7f4701ab7f455391080c
Move init_test() from _apply_settings into _init_logging().

This one we actually need to move.  _init_logging() is called from
    create_toolcontext(), which makes this call:
        /* Test mode */
        cmd->default_settings.test =
            find_config_tree_int(cmd, "global/test", 0);

But it does not call init_test().  So we need an init_test() somewhere.
The most logical place is to put it inside _init_logging(), since this
is where the config value is read and default_settings are set.  Placing
the init_test() call here matches what is done with other variables and
seems to make sense.
lib/commands/toolcontext.c
tools/lvmcmdline.c
This page took 0.028228 seconds and 5 git commands to generate.