diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2015-06-24 13:14:30 +0200 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2015-06-24 13:19:23 +0200 |
commit | a4724350e4909dd1b74231f22c41434dbe02c14d (patch) | |
tree | e1477a984b9550e6f42e42ffbddd8d8a67133cb6 /tools/dumpconfig.c | |
parent | a25d92c88b034996667da3764ac5b1de15448174 (diff) | |
download | lvm2-a4724350e4909dd1b74231f22c41434dbe02c14d.tar.gz |
lvmconfig: add --withspaces option
We shouldn't be adding spaces by default in output as that
may be be used already in scripts and especially for the eval
in shell scripts where spaces are not allowed between key
and value!
Add --withspaces option to lvmconfig for pretty output with
more space in for readability.
Diffstat (limited to 'tools/dumpconfig.c')
-rw-r--r-- | tools/dumpconfig.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/dumpconfig.c b/tools/dumpconfig.c index 97de57abd..f6a62172e 100644 --- a/tools/dumpconfig.c +++ b/tools/dumpconfig.c @@ -277,6 +277,9 @@ int dumpconfig(struct cmd_context *cmd, int argc, char **argv) if (arg_count(cmd, withversions_ARG)) tree_spec.withversions = 1; + if (arg_count(cmd, withspaces_ARG)) + tree_spec.withspaces = 1; + if (cft_check_handle) tree_spec.check_status = cft_check_handle->status; |