summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man/lvm.conf.56
-rw-r--r--tools/lvm.c3
2 files changed, 5 insertions, 4 deletions
diff --git a/man/lvm.conf.5 b/man/lvm.conf.5
index c3f04903..fefd672a 100644
--- a/man/lvm.conf.5
+++ b/man/lvm.conf.5
@@ -105,9 +105,6 @@ is invoked. By default tools append messages to the log file.
.IP
\fBverbose\fP \(em Default level (0-3) of messages sent to stdout or stderr.
3 is the most verbose; 0 should produce the least output.
-.IP
-\fBtest\fP \(em If set to 1, run tools in test mode i.e. no metadata
-gets updated.
.TP
\fBbackup\fP \(em Configuration for metadata backups.
.IP
@@ -145,6 +142,9 @@ Defaults to 30.
.TP
\fBglobal\fP \(em Global settings
.IP
+\fBtest\fP \(em If set to 1, run tools in test mode i.e. no metadata
+gets updated.
+.IP
\fBproc\fP \(em Mount point of proc filesystem.
Defaults to /proc.
.IP
diff --git a/tools/lvm.c b/tools/lvm.c
index 726e858b..1feca150 100644
--- a/tools/lvm.c
+++ b/tools/lvm.c
@@ -704,7 +704,8 @@ static void __init_log(struct config_file *cf)
find_config_int(cf->root, "log/level", '/', 0);
_default_settings.verbose =
find_config_int(cf->root, "log/verbose", '/', 0);
- _default_settings.test = find_config_int(cf->root, "log/test", '/', 0);
+ _default_settings.test = find_config_int(cf->root, "global/test",
+ '/', 0);
if (find_config_int(cf->root, "log/overwrite", '/', 0))
open_mode = "w";