From d7581157861722b832afd17f83a71f993a9e44a0 Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: Mon, 11 May 2015 15:22:18 +0200 Subject: [PATCH] lvmpolld: by default spawn lvpoll cmd with -An --- daemons/lvmpolld/lvmpolld-cmd-utils.c | 4 ++++ tools/commands.h | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/daemons/lvmpolld/lvmpolld-cmd-utils.c b/daemons/lvmpolld/lvmpolld-cmd-utils.c index cd789a32c..024822159 100644 --- a/daemons/lvmpolld/lvmpolld-cmd-utils.c +++ b/daemons/lvmpolld/lvmpolld-cmd-utils.c @@ -86,6 +86,10 @@ const char **cmdargv_ctr(const struct lvmpolld_lv *pdlv, const char *lvm_binary, if (!add_to_cmd_arr(&cmd_argv, pdlv->lvname, &i)) goto err; + /* disable metadata backup */ + if (!add_to_cmd_arr(&cmd_argv, "-An", &i)) + goto err; + /* terminating NULL */ if (!add_to_cmd_arr(&cmd_argv, NULL, &i)) goto err; diff --git a/tools/commands.h b/tools/commands.h index 2e53d8ff0..bbfcd72dd 100644 --- a/tools/commands.h +++ b/tools/commands.h @@ -886,6 +886,7 @@ xx(lvpoll, "\t[--abort]\n" "\t[--handlemissingpvs]\n" "\t[--polloperation\n" + "\t[-A|--autobackup {y|n}]\n" "\t[-d|--debug]\n " "\t[-h|-?|--help]\n" "\t[-i|--interval seconds]\n" @@ -893,7 +894,7 @@ xx(lvpoll, "\t[-v|--verbose]\n " "\t[--version]\n", - abort_ARG, handlemissingpvs_ARG, interval_ARG, polloperation_ARG, + abort_ARG, autobackup_ARG, handlemissingpvs_ARG, interval_ARG, polloperation_ARG, test_ARG) xx(pvremove,