1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Move test flag from log to global section of config file.

This commit is contained in:
Alasdair Kergon 2002-01-16 15:20:51 +00:00
parent 93ea39697f
commit 9fea277554
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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";