From 96880102a3b792cadbfc97e44c09c5714a96ca9e Mon Sep 17 00:00:00 2001 From: Alasdair G Kergon Date: Fri, 6 Sep 2013 01:47:41 +0100 Subject: [PATCH] logging: Write Completed message before resetting. --- WHATS_NEW | 1 + tools/lvmcmdline.c | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index abfe0e1e7..212f4bbdc 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.101 - =================================== + Write Completed debug message before reinstating log defaults after command. Skip pvmove of RAID, thin, snapshot, origin, or mirror LVs in a cluster. Refresh existing VG before autoactivation (event retrigger/device reappeared). Use pvscan -b in udev rules to avoid a deadlock on udev process count limit. diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c index c7917ea13..116e963f7 100644 --- a/tools/lvmcmdline.c +++ b/tools/lvmcmdline.c @@ -1190,15 +1190,14 @@ int lvm_run_command(struct cmd_context *cmd, int argc, char **argv) stack; } - /* FIXME Move this? */ - cmd->current_settings = cmd->default_settings; - _apply_settings(cmd); - if (ret == EINVALID_CMD_LINE && !_cmdline.interactive) _short_usage(cmd->command->name); log_debug("Completed: %s", cmd->cmd_line); + cmd->current_settings = cmd->default_settings; + _apply_settings(cmd); + /* * free off any memory the command used. */