mirror of
git://sourceware.org/git/lvm2.git
synced 2024-10-27 01:55:10 +03:00
Only print warning message once when compiled without libdevmapper.
This commit is contained in:
parent
68df28296d
commit
f2046e0aeb
@ -25,9 +25,15 @@
|
|||||||
#ifndef DEVMAPPER_SUPPORT
|
#ifndef DEVMAPPER_SUPPORT
|
||||||
void set_activation(int act)
|
void set_activation(int act)
|
||||||
{
|
{
|
||||||
if (act)
|
static int warned = 0;
|
||||||
log_error("Compiled without libdevmapper support. "
|
|
||||||
"Can't enable activation.");
|
if (warned || !act)
|
||||||
|
return;
|
||||||
|
|
||||||
|
log_error("Compiled without libdevmapper support. "
|
||||||
|
"Can't enable activation.");
|
||||||
|
|
||||||
|
warned = 1;
|
||||||
}
|
}
|
||||||
int activation(void)
|
int activation(void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user