]> sourceware.org Git - lvm2.git/commit
debug: add new envvar
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 20 Apr 2015 08:04:18 +0000 (10:04 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 20 Apr 2015 10:12:22 +0000 (12:12 +0200)
commit5723a7cd7e857c4b5899b19060d17cac1b14e6b6
tree002532d36a3fba809a0df118804b05cb108adaa1
parentde4791c052b1576bb9de73b3fa8e51b771522f7e
debug: add new envvar

Add support for 2 new envvars for internal lvm2 test suite
(though it could be possible usable for other cases)

LVM_LOG_FILE_EPOCH

Whether to add 'epoch' extension that consist from
the envvar 'string' + pid + starttime in kernel units
obtained from /proc/self/stat.

LVM_LOG_FILE_UNLINK_STATUS

Whether to unlink the log depending on return status value,
so if the command is successful the log is automatically
deleted.

API is still for now experimental to catch various issue.
lib/log/log.c
lib/log/lvm-logging.h
tools/lvmcmdline.c
This page took 0.034021 seconds and 5 git commands to generate.