summaryrefslogtreecommitdiff
path: root/extras/multipath/main.h
diff options
context:
space:
mode:
authorchristophe.varoqui@free.fr <christophe.varoqui@free.fr>2003-12-02 00:16:32 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:04 -0700
commit359618cd6ed05adcad97380f51790198ff653f87 (patch)
treea7f5f734c91bcf20af664c83cb3117d30070952c /extras/multipath/main.h
parent871ea775c7f47776c34f4d33d7f40074e4e39d39 (diff)
[PATCH] udev-007/extras/multipath update
here is a clean-up patch : * removes sg_err.[ch] deps * makes sure the core code play nice with klibc * port the sysfs calls to dlist helpers * links against udev's sysfs (need libsysfs.a & dlist.a) * finally define DM_TARGET as "multipath" as Joe posted the code today (not tested yet) * push version forward (do you want it in sync with udev version?) libdevmapper doesn't play well with klibc, so I wasn't able to produce a static binary yet. Help needed here ... as I don't want to fall back to merge libdevmapper code in the core. It compiles here and doesn't segfault.
Diffstat (limited to 'extras/multipath/main.h')
-rw-r--r--extras/multipath/main.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/extras/multipath/main.h b/extras/multipath/main.h
index 43a24ac7bc..019cb843a8 100644
--- a/extras/multipath/main.h
+++ b/extras/multipath/main.h
@@ -21,7 +21,16 @@
/* local includes */
#include "sg_include.h"
-#include "sg_err.h"
+
+/* exerpt from "sg_err.h" */
+#define SCSI_CHECK_CONDITION 0x2
+#define SCSI_COMMAND_TERMINATED 0x22
+#define SG_ERR_DRIVER_SENSE 0x08
+
+/* exerpt from "scsi.h" */
+#define RECOVERED_ERROR 0x01
+#define SCSI_IOCTL_GET_IDLUN 0x5382
+#define SCSI_IOCTL_GET_BUS_NUMBER 0x5386
/* global defs */
#define WWID_SIZE 33
@@ -37,7 +46,7 @@
#define TUR_CMD_LEN 6
#define MX_ALLOC_LEN 255
#define BLKGETSIZE _IO(0x12,96)
-#define DM_TARGET "striped"
+#define DM_TARGET "multipath"
#define PINDEX(x,y) mp[(x)].pindex[(y)]
@@ -96,8 +105,8 @@ struct env {
/* Build version */
#define PROG "multipath"
-#define VERSION_CODE 0x000005
-#define DATE_CODE 0x120903
+#define VERSION_CODE 0x000006
+#define DATE_CODE 0x271103
#define MULTIPATH_VERSION(version) \
(version >> 16) & 0xFF, \