diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2014-05-19 13:23:12 +0200 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2014-05-19 15:38:04 +0200 |
commit | c42f72867a653974f07e6e1db52f41691356e5b7 (patch) | |
tree | 3c5196dce6d1426d4649a2785a4ac371322e3828 /lib/commands/toolcontext.h | |
parent | ff9d27a1c71785abd6aa71eddc7018dd56807517 (diff) | |
download | lvm2-c42f72867a653974f07e6e1db52f41691356e5b7.tar.gz |
config: attach cft_check_handle to each config tree instead of global cmd_context
Before, the cft_check_handle used to direct configuration checking
was part of cmd_context. It's better to attach this as part of the
exact config tree against which the check is done. This patch moves
the cft_check_handle out of cmd_context and it attaches it to the
config tree directly as dm_config_tree->custom->config_source->check_handle.
This change makes it easier to track the config tree check results
and provides less space for bugs as the results are directly attached
to the tree and we don't need to be cautious whether the global value
is correct or not (and whether it needs reinitialization) as it was
in the case when the cft_check_handle was part of cmd_context.
Diffstat (limited to 'lib/commands/toolcontext.h')
-rw-r--r-- | lib/commands/toolcontext.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/commands/toolcontext.h b/lib/commands/toolcontext.h index 7694ee279..9023a6cd9 100644 --- a/lib/commands/toolcontext.h +++ b/lib/commands/toolcontext.h @@ -105,7 +105,6 @@ struct cmd_context { int config_initialized; /* used to reinitialize config if previous init was not successful */ struct dm_hash_table *cft_def_hash; /* config definition hash used for validity check (item type + item recognized) */ - struct cft_check_handle *cft_check_handle; /* selected settings with original default/configured value which can be changed during cmd processing */ struct config_info default_settings; |