1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-23 21:35:29 +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 32d94c2eaf
commit 67ada02076
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 .IP
\fBverbose\fP \(em Default level (0-3) of messages sent to stdout or stderr. \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. 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 .TP
\fBbackup\fP \(em Configuration for metadata backups. \fBbackup\fP \(em Configuration for metadata backups.
.IP .IP
@ -145,6 +142,9 @@ Defaults to 30.
.TP .TP
\fBglobal\fP \(em Global settings \fBglobal\fP \(em Global settings
.IP .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. \fBproc\fP \(em Mount point of proc filesystem.
Defaults to /proc. Defaults to /proc.
.IP .IP

View File

@ -704,7 +704,8 @@ static void __init_log(struct config_file *cf)
find_config_int(cf->root, "log/level", '/', 0); find_config_int(cf->root, "log/level", '/', 0);
_default_settings.verbose = _default_settings.verbose =
find_config_int(cf->root, "log/verbose", '/', 0); 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)) if (find_config_int(cf->root, "log/overwrite", '/', 0))
open_mode = "w"; open_mode = "w";