diff mbox

multipath-tools devmap_name/devmap_name.c kpar ...

Message ID 20091016195811.25777.qmail@sourceware.org (mailing list archive)
State Accepted, archived
Delegated to: christophe varoqui
Headers show

Commit Message

bmarzins@sourceware.org Oct. 16, 2009, 7:58 p.m. UTC
None
diff mbox

Patch

--- multipath-tools/devmap_name/devmap_name.c	2005/11/16 20:24:57	1.3
+++ multipath-tools/devmap_name/devmap_name.c	2009/10/16 19:58:10	1.3.2.1
@@ -6,7 +6,6 @@ 
 #include <string.h>
 #include <ctype.h>
 #include <unistd.h>
-#include <linux/kdev_t.h>
 #include <libdevmapper.h>
 
 static void usage(char * progname) {
--- multipath-tools/kpartx/devmapper.c	2009/01/19 22:34:01	1.6.2.3
+++ multipath-tools/kpartx/devmapper.c	2009/10/16 19:58:10	1.6.2.4
@@ -7,7 +7,6 @@ 
 #include <stdint.h>
 #include <libdevmapper.h>
 #include <ctype.h>
-#include <linux/kdev_t.h>
 #include <errno.h>
 #include "devmapper.h"
 
--- multipath-tools/kpartx/devmapper.h	2009/01/19 22:34:01	1.3.2.3
+++ multipath-tools/kpartx/devmapper.h	2009/10/16 19:58:10	1.3.2.4
@@ -1,3 +1,7 @@ 
+#define MAJOR(dev)      ((dev & 0xfff00) >> 8)
+#define MINOR(dev)      ((dev & 0xff) | ((dev >> 12) & 0xfff00))
+#define MKDEV(ma,mi)    ((mi & 0xff) | (ma << 8) | ((mi & ~0xff) << 12))
+
 int dm_prereq (char *, int, int, int);
 int dm_simplecmd (int, const char *);
 int dm_addmap (int, const char *, const char *, const char *, uint64_t,
--- multipath-tools/kpartx/kpartx.c	2009/01/19 22:34:01	1.7.2.4
+++ multipath-tools/kpartx/kpartx.c	2009/10/16 19:58:10	1.7.2.5
@@ -30,7 +30,6 @@ 
 #include <sys/types.h>
 #include <ctype.h>
 #include <libdevmapper.h>
-#include <linux/kdev_t.h>
 
 #include "devmapper.h"
 #include "crc32.h"