changeset 10728:dc710e38fcc4

6871427 Metadevice operations should fail if libsdssc doesn't contain required sdssc* routines
author John Harres <John.Harres@Sun.COM>
date Wed, 07 Oct 2009 08:41:01 -0600
parents 64d9f366e98f
children ff329cb30d75
files usr/src/lib/lvm/libmeta/common/sdssc_bind.c
diffstat 1 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/lib/lvm/libmeta/common/sdssc_bind.c	Wed Oct 07 07:12:17 2009 -0700
+++ b/usr/src/lib/lvm/libmeta/common/sdssc_bind.c	Wed Oct 07 08:41:01 2009 -0600
@@ -18,15 +18,12 @@
  *
  * CDDL HEADER END
  */
+
 /*
  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
-/*
- * Block comment which describes the contents of this file.
- */
-
 #include <dlfcn.h>
 #include <meta.h>
 #include <metadyn.h>
@@ -178,17 +175,17 @@
 
 				/*
 				 * If old libsdssc library is there, then
-				 * sdssc_mo_create_begin is not yet supported.
+				 * _sdssc_mo_create_begin is not yet supported.
 				 */
 				if (strcmp(ftp->fname,
-				    "sdssc_mo_create_begin")) {
+				    "_sdssc_mo_create_begin") == 0) {
 					*ftp->fptr = (void *)&not_bound_error;
 					continue;
 				}
 				/*
 				 * If this routine fails to find a single
 				 * entry point that it's expecting
-				 * (except sdssc_mo_create_begin) then
+				 * (except _sdssc_mo_create_begin) then
 				 * setup non-sdssc stubs routines
 				 * as function pointers.
 				 */