[lvm-devel] master - tests: increase max lines for clvmd
Zdenek Kabelac
zkabelac at fedoraproject.org
Mon Jul 11 13:48:02 UTC 2016
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=8756297a8d39d33766f1f19060749b9570d76b1a
Commit: 8756297a8d39d33766f1f19060749b9570d76b1a
Parent: 34c55d98eefd88f85476c0f62f0649c706bde6f0
Author: Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate: Mon Jul 11 14:45:25 2016 +0200
Committer: Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Mon Jul 11 14:45:25 2016 +0200
tests: increase max lines for clvmd
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 | 2 +-
test/lib/aux.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/log/log.c b/lib/log/log.c
index 434b8d0..6d5fc59 100644
--- a/lib/log/log.c
+++ b/lib/log/log.c
@@ -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;
diff --git a/test/lib/aux.sh b/test/lib/aux.sh
index 7724723..90f2ab1 100644
--- a/test/lib/aux.sh
+++ b/test/lib/aux.sh
@@ -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
More information about the lvm-devel
mailing list