1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Make config check a little more tolerant of library names.

This commit is contained in:
Patrick Caulfield 2005-02-14 09:07:14 +00:00
parent 50e3a3f334
commit a3dfa1c7d5
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 2.01.05 - Version 2.01.05 -
=================================== ===================================
Make clvmd config check a little more tolerant.
Version 2.01.04 - 9th February 2005 Version 2.01.04 - 9th February 2005
=================================== ===================================

View File

@ -449,11 +449,11 @@ static void check_config()
return; return;
if (locking_type == 2) { /* External library, check name */ if (locking_type == 2) { /* External library, check name */
char *libname; const char *libname;
libname = find_config_str(cmd->cft->root, "global/locking_library", libname = find_config_str(cmd->cft->root, "global/locking_library",
""); "");
if (!strcmp(libname, "liblvm2clusterlock.so")) if (strstr(libname, "liblvm2clusterlock.so"))
return; return;
log_error("Incorrect LVM locking library specified in lvm.conf, cluster operations may not work."); log_error("Incorrect LVM locking library specified in lvm.conf, cluster operations may not work.");