[dm-devel] [PATCH 2/6] Fix for kpartx on sparc64
Benjamin Marzinski
bmarzins at redhat.com
Thu Dec 11 22:06:07 UTC 2008
This typedef change is necessary to make kpartx work on sparc64 machines.
Signed-off-by: Benjamin Marzinski <bmarzins at redhat.com>
---
kpartx/lopart.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: multipath-tools-081203/kpartx/lopart.c
===================================================================
--- multipath-tools-081203.orig/kpartx/lopart.c
+++ multipath-tools-081203/kpartx/lopart.c
@@ -30,7 +30,7 @@
#if defined(__hppa__) || defined(__powerpc64__) || defined (__alpha__) \
|| defined (__x86_64__)
typedef unsigned long __kernel_old_dev_t;
-#elif defined(__powerpc__) || defined(__ia64__)
+#elif defined(__powerpc__) || defined(__ia64__) || (defined(__sparc__) && defined (__arch64__))
typedef unsigned int __kernel_old_dev_t;
#else
typedef unsigned short __kernel_old_dev_t;
More information about the dm-devel
mailing list