From b5aaf716806e37cc5a94821e024e076fb1f12f1e Mon Sep 17 00:00:00 2001 From: Alexey Shvetsov Date: Sat, 16 Mar 2013 22:24:57 +0400 Subject: [PATCH] LU-2976 tools: ZFS upstream sonames are versioned Current zfsonlinux upstream has versioned zfs libs sonames, while in lustre/utils/mount_utils_zfs.c are set unversioned Versions are libzfs.so -> libzfs.so.1 libnvpair.so -> libnvpair.so.1 Signed-off-by: Alexey Shvetsov Change-Id: I871613081c117731b5ec89fc2d79349df0668f94 Reviewed-on: http://review.whamcloud.com/5742 Tested-by: Hudson Reviewed-by: Nathaniel Clark Tested-by: Maloo Reviewed-by: Andreas Dilger --- lustre/utils/mount_utils_zfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/utils/mount_utils_zfs.c b/lustre/utils/mount_utils_zfs.c index 5edc8e1..b337c77 100644 --- a/lustre/utils/mount_utils_zfs.c +++ b/lustre/utils/mount_utils_zfs.c @@ -692,11 +692,11 @@ int zfs_init(void) * spamming ldiskfs users. An error message will still be printed if * someone tries to do some real work involving a ZFS backend */ - handle_libzfs = dlopen("libzfs.so", RTLD_LAZY); + handle_libzfs = dlopen("libzfs.so.1", RTLD_LAZY); if (handle_libzfs == NULL) return EINVAL; - handle_nvpair = dlopen("libnvpair.so", RTLD_LAZY); + handle_nvpair = dlopen("libnvpair.so.1", RTLD_LAZY); if (handle_nvpair == NULL) { ret = EINVAL; goto out; -- 1.8.3.1