From e024ed3443d94c8fa59ec465e8e849c7b3506b27 Mon Sep 17 00:00:00 2001
From: Roland Fehrenbacher <rf@q-leap.de>
Date: Tue, 1 Jul 2014 16:22:24 +0200
Subject: [PATCH] QL: Load libzfs.so.2 when building with zfs >= 0.6.3

---
 lustre/utils/mount_utils_zfs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lustre/utils/mount_utils_zfs.c b/lustre/utils/mount_utils_zfs.c
index 66ee68d..f784d63 100644
--- a/lustre/utils/mount_utils_zfs.c
+++ b/lustre/utils/mount_utils_zfs.c
@@ -692,7 +692,7 @@ 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.1", RTLD_LAZY);
+	handle_libzfs = dlopen("libzfs.so.2", RTLD_LAZY);
 	if (handle_libzfs == NULL)
 		return EINVAL;
 
-- 
1.7.9.5

