From nobody Mon Sep 17 00:00:00 2001
From: Christophe Varoqui <cvaroqui@zezette.localdomain>
Date: Tue Sep 26 23:21:24 2006 +0200
Subject: [PATCH] [prio] ALUA prioritizer broken for paths with high minor

Here's a patch which I think will allow mpath_prio_alua to
work better with device files with minor numbers >= 256.

Edward Goggin, EMC
(cherry picked from e354a1d854c08b60d9feb806cdfa8b9ced569a2b commit)

---

 path_priority/pp_alua/main.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

448fc6d1e13bbe23e3e7edc728511e467b3d6254
diff --git a/path_priority/pp_alua/main.c b/path_priority/pp_alua/main.c
index 190fbdc..ba8da99 100644
--- a/path_priority/pp_alua/main.c
+++ b/path_priority/pp_alua/main.c
@@ -12,8 +12,6 @@
  * 
  * This file is released under the GPL.
  */
-#include <linux/kdev_t.h>
-
 #include <sys/types.h>
 #include <sys/stat.h>
 
@@ -241,7 +239,7 @@ main (int argc, char **argv)
 			mknod(
 				devicepath,
 				S_IFBLK|S_IRUSR|S_IWUSR,
-				MKDEV(major, minor)
+				makedev(major, minor)
 			);
 			
 		}
-- 
1.3.1

