1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +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 68df28296d
commit f2046e0aeb

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)
{