summaryrefslogtreecommitdiff
path: root/tools/dumpconfig.c
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2015-04-21 14:53:54 -0500
committerDavid Teigland <teigland@redhat.com>2015-04-21 14:55:03 -0500
commit9b86e8e8f4a3c429f8e5632103fbef6eb1f8dc7d (patch)
treea019dd556ab64b658518cda3e5aea16c43c522db /tools/dumpconfig.c
parent0d0d50182d1bf6b11b80fe8fe701f654b953f2fa (diff)
downloadlvm2-9b86e8e8f4a3c429f8e5632103fbef6eb1f8dc7d.tar.gz
dumpconfig: add --ignorelocal
When generating a sample lvm.conf file, we don't want to include the "local" section, which is kept in lvmlocal.conf.
Diffstat (limited to 'tools/dumpconfig.c')
-rw-r--r--tools/dumpconfig.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/dumpconfig.c b/tools/dumpconfig.c
index 2d1cd9ceb..d1b4acc4c 100644
--- a/tools/dumpconfig.c
+++ b/tools/dumpconfig.c
@@ -113,6 +113,9 @@ int dumpconfig(struct cmd_context *cmd, int argc, char **argv)
if (arg_count(cmd, ignoreunsupported_ARG))
tree_spec.ignoreunsupported = 1;
+ if (arg_count(cmd, ignorelocal_ARG))
+ tree_spec.ignorelocal = 1;
+
if (!strcmp(type, "current")) {
if (arg_count(cmd, atversion_ARG)) {
log_error("--atversion has no effect with --type current");