summaryrefslogtreecommitdiff
path: root/tools/lvm.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2004-03-08 18:13:22 +0000
committerAlasdair Kergon <agk@redhat.com>2004-03-08 18:13:22 +0000
commitde17d760ba2ec618152c68a25721261f8754c6a7 (patch)
tree9275e27d5825288ceea3e8775d482db7c2a55b67 /tools/lvm.c
parenta0313876e71482efbfe31b24dba123b949bb250c (diff)
downloadlvm2-de17d760ba2ec618152c68a25721261f8754c6a7.tar.gz
host tags
Diffstat (limited to 'tools/lvm.c')
-rw-r--r--tools/lvm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/lvm.c b/tools/lvm.c
index e1c9bfc76..40fdf88f3 100644
--- a/tools/lvm.c
+++ b/tools/lvm.c
@@ -750,8 +750,11 @@ static int _run_command(struct cmd_context *cmd, int argc, char **argv)
set_cmd_name(cmd->command->name);
if (reload_config_file(&cmd->cf)) {
- ;
- /* FIXME Reinitialise various settings inc. logging, filters */
+ /* Reinitialise various settings inc. logging, filters */
+ if (!refresh_toolcontext(cmd)) {
+ log_error("Updated config file invalid. Aborting.");
+ return ECMD_FAILED;
+ }
}
if ((ret = _get_settings(cmd)))