]> sourceware.org Git - lvm2.git/commitdiff
tests: increase max lines for clvmd
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 11 Jul 2016 12:45:25 +0000 (14:45 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 11 Jul 2016 12:45:25 +0000 (14:45 +0200)
Clvmd is a bit more verbose long time running process so
let it live with more logged lines.

Also fix typo in warn message from last commit.

lib/log/log.c
test/lib/aux.sh

index 434b8d05d2b13e9e54396b4856b745c20a711677..6d5fc593c68d70be963557552f5f7471fc373e13 100644 (file)
@@ -116,7 +116,7 @@ void init_log_file(const char *log_file, int append)
 
                if ((env = getenv("LVM_LOG_FILE_MAX_LINES"))) {
                        if (sscanf(env, FMTu64, &_log_file_max_lines) != 1) {
-                               log_warn("WARNING: Ingnoring incorrect LVM_LOG_MAX_LINES envvar \"%s\".", env);
+                               log_warn("WARNING: Ignoring invalid LVM_LOG_MAX_LINES envvar \"%s\".", env);
                                _log_file_max_lines = 0;
                        }
                        _log_file_lines = 0;
index 7724723aa6b74d84e1a115db561cce0464a6ee33..90f2ab13d4848c026d5ae9f5be21508c52d0c062 100644 (file)
@@ -169,7 +169,7 @@ prepare_clvmd() {
        rm -f "$CLVMD_PIDFILE"
        echo "<======== Starting CLVMD ========>"
        # lvs is executed from clvmd - use our version
-       LVM_LOG_FILE_EPOCH=CLVMD LVM_BINARY=$(which lvm) $run_valgrind clvmd -Isinglenode -d 1 -f &
+       LVM_LOG_FILE_EPOCH=CLVMD LVM_LOG_FILE_MAX_LINES=1000000 LVM_BINARY=$(which lvm) $run_valgrind clvmd -Isinglenode -d 1 -f &
        echo $! > LOCAL_CLVMD
 
        for i in {1..100} ; do
This page took 0.03898 seconds and 5 git commands to generate.