]> sourceware.org Git - lvm2.git/commit
thin: pass environment to scripts
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 5 Mar 2018 14:09:16 +0000 (15:09 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 6 Mar 2018 14:35:04 +0000 (15:35 +0100)
commit9be086fbeef0a24fc6f441dec29ee2385bca0280
tree5de96a36882b03ca87c9294c16045f9284c9df2a
parent406d6de651fd1ae3bda80f3597d7aa8733b0389a
thin: pass environment to scripts

When dmeventd thin plugin forks a configurable script, switch to use
execvp to pass whole environment present to dmeventd - so all configured
paths present at dmeventd startup are visible to script.

This was likely not a problem for common user enviroment,
however in test suite case variable like LVM_SYSTEM_DIR were
not actually used from test itself but rather from
a system present lvm.conf and this may have cause strange
behavior of a testing script.
WHATS_NEW_DM
daemons/dmeventd/plugins/thin/dmeventd_thin.c
This page took 0.03444 seconds and 5 git commands to generate.