Skip to contentSkip to conversation

master - lvmpolld: by default spawn lvpoll cmd with -An

PATCH okozina 1 participant 1 message May 11, 2015

lore
Share & tools
lore

okozina

author
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=d7581157861722b832afd17f83a71f993a9e44a0
Commit:        d7581157861722b832afd17f83a71f993a9e44a0
Parent:        5cfd7074afb03c4e34ced4008e0d706d9f4b36ba
Author:        Ondrej Kozina <[email protected]>
AuthorDate:    Mon May 11 15:22:18 2015 +0200
Committer:     Ondrej Kozina <[email protected]>
CommitterDate: Mon May 11 19:08:13 2015 +0200

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 deletions(-)
daemons/lvmpolld/lvmpolld-cmd-utils.c +4 -0
index cd789a3..0248221 100644
@@ -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;
tools/commands.h +2 -1
index 2e53d8f..bbfcd72 100644
@@ -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,