mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-17 06:04:23 +03:00
log: no file for external logging
When external logging is set do not bother creating log file, as it's not going to be used.
This commit is contained in:
parent
72d700b064
commit
1b1c01a27b
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.133 -
|
Version 2.02.133 -
|
||||||
======================================
|
======================================
|
||||||
|
Avoid creation of log file when logging function is set.
|
||||||
Do not change logging in lvm2 library when it's already set.
|
Do not change logging in lvm2 library when it's already set.
|
||||||
Check for enough space in thin-pool in command before creating new thin.
|
Check for enough space in thin-pool in command before creating new thin.
|
||||||
Make libblkid detect all copies of the same signature if use_blkid_wiping=1.
|
Make libblkid detect all copies of the same signature if use_blkid_wiping=1.
|
||||||
|
@ -74,6 +74,10 @@ void init_log_file(const char *log_file, int append)
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
_log_file_path[0] = '\0';
|
_log_file_path[0] = '\0';
|
||||||
|
|
||||||
|
if (_lvm2_log_fn)
|
||||||
|
return; /* No log file, when log function is set */
|
||||||
|
|
||||||
if ((env = getenv("LVM_LOG_FILE_EPOCH"))) {
|
if ((env = getenv("LVM_LOG_FILE_EPOCH"))) {
|
||||||
while (isalpha(env[i]) && i < 32) /* Up to 32 alphas */
|
while (isalpha(env[i]) && i < 32) /* Up to 32 alphas */
|
||||||
i++;
|
i++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user