chiark / gitweb /
[PATCH] udev-013/extras/multipath update
authorchristophe.varoqui@free.fr <christophe.varoqui@free.fr>
Thu, 22 Jan 2004 08:16:28 +0000 (00:16 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:17 +0000 (21:13 -0700)
incremental to 0.0.13,

* update the DM target synthax to the 2.6.0-udm5 style
* update the changelog and the doc to reflect minimal requirements

extras/multipath/ChangeLog
extras/multipath/README
extras/multipath/main.c

index a780865d3ec853d1a4fb82d834c31f7a9ea17257..bb2f6baf89931da241b0fc0f2fca2b352d541179 100644 (file)
@@ -1,3 +1,5 @@
+2004-01-19 multipath-013
+       * update the DM target synthax to the 2.6.0-udm5 style
 2003-12-29 multipath-012
        * check hotplug event refers to a block device; if not exit early
        * refresh doc
index 951c2788bc8f75aeb9fbcd439f338a58161793fc..417a0d38e4a38442284dc79ff85e4a803fd981f4 100644 (file)
@@ -4,8 +4,10 @@ Dependancies :
 o libdevmapper : comes with device-mapper-XXXX.tar.gz
   See www.sistina.com
   This lib has been dropped in the multipath tree
-o libsysfs : comes with sysutils
+o libsysfs : comes with sysutils or udev
   See ftp.kernel.org/pub/linux/utils/kernel/hotplug/
+o Linux kernel 2.6.0 with udm5 patchset
+  http://people.sistina.com/~thornber/dm/
 
 How it works :
 ==============
index a8e29e8ba60e876e39c8ec9d882a91c0ce743ee6..e18e049128d7aba1b72ea958f7a612c15a39d979 100644 (file)
@@ -665,7 +665,7 @@ setup_map(struct env * conf, struct path * all_paths,
 
        if (all_paths[PINDEX(index,0)].iopolicy == MULTIBUS &&
            !conf->forcedfailover ) {
-               params_p += sprintf(params_p, " %i %s %i %i",
+               params_p += sprintf(params_p, " %i %s %i %i",
                                    dm_pg_prio, dm_ps_name, np, dm_ps_nr_args);
                
                for (i=0; i<=mp[index].npaths; i++) {
@@ -678,6 +678,7 @@ setup_map(struct env * conf, struct path * all_paths,
 
        if (all_paths[PINDEX(index,0)].iopolicy == FAILOVER ||
            conf->forcedfailover) {
+               params_p += sprintf(params_p, " %i", mp[index].npaths + 1);
                for (i=0; i<=mp[index].npaths; i++) {
                        if (0 != all_paths[PINDEX(index,i)].sg_id.scsi_type)
                                continue;