1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-08-13 21:49:29 +03:00

Only print warning message once when compiled without libdevmapper.

This commit is contained in:
Alasdair Kergon
2004-03-19 16:26:46 +00:00
parent 38b33a4a5e
commit 2ffe378d3f

View File

@ -25,9 +25,15 @@
#ifndef DEVMAPPER_SUPPORT
void set_activation(int act)
{
if (act)
log_error("Compiled without libdevmapper support. "
"Can't enable activation.");
static int warned = 0;
if (warned || !act)
return;
log_error("Compiled without libdevmapper support. "
"Can't enable activation.");
warned = 1;
}
int activation(void)
{