From: Christophe Varoqui <christophe.varoqui@free.fr>
To: "Caushik, Ramesh" <ramesh.caushik@intel.com>
Cc: device-mapper development <dm-devel@redhat.com>
Subject: Re: Some issues noticed in my testing.
Date: Tue, 08 Feb 2005 22:55:45 +0100 [thread overview]
Message-ID: <42093561.9070008@free.fr> (raw)
In-Reply-To: <EA4DC661A6353747A2E5C0DE8792DDDE07B82237@orsmsx404.amr.corp.intel.com>
Caushik, Ramesh wrote:
>Hi Christophe,
>
>
Hello,
>I noticed a failure in multipath-tools-0.4.2 when executing the
>following scenario.
>
>i) Run multipathd & multipath with 1 of 2 paths in the system available.
>ii)activate the other path.
>iii) run multipath again.
>
>Expect the newly inserted path to be incorporated into the original path
>groups. Does not happen. Traced it to a problem in the pgcmp2 function.
>Patch below should fix it.
>
I can't see this patch attached.
Can you resend it. (In diff -u format if possible)
> Also in step iii) above running multipath
>with a parameter (conf->dev) will not include the additional path into
>the particular mp because the select_alias function not called in the
>coalesce_paths function so the strncmp(mpp->alias,conf->dev,....) in
>main will always fail. Patch below should fix it.
>
>
>
Mr Goggin, EMC, already spotted this and a patch is present in my tree.
Thanks.
>Also while testing with a modified scsi_debug driver (to expose multiple
>paths to the same device) noticed that sysfs vendor name for the
>scsi_debug device is "Linux " which fails to match with a "Linux"
>vendor name in the conf name and so device specific settings are not
>picked up. Think it is a good idea to chomp off trailing whitespace from
>vendor and product names. See patches below. Regards,
>
>
>
Can you tell me if the following fits your needs here ?
--- multipath-tools-0.4.2/libmultipath/hwtable.c 2005-01-23
14:48:05.830203168 -0800
+++ multipath-tools-0.4.3-pre1/libmultipath/hwtable.c 2005-02-08
13:42:57.203660896 -0800
@@ -12,14 +12,18 @@
extern struct hwentry *
find_hw (vector hwtable, char * vendor, char * product)
{
- int i;
+ int i, vendor_len, product_len;
struct hwentry * hwe;
+ vendor_len = strlen(vendor);
+ product_len = strlen(product);
+
vector_foreach_slot (hwtable, hwe, i)
- if (hwe->vendor && hwe->product &&
- strcmp(hwe->vendor, vendor) == 0 &&
+ if (hwe->vendor && vendor_len == strlen(hwe->vendor) &&
+ strncmp(hwe->vendor, vendor, vendor_len) == 0 &&
+ hwe->product && product_len == strlen(hwe->product) &&
(hwe->product[0] == '*' ||
- strcmp(hwe->product, product) == 0))
+ strncmp(hwe->product, product, product_len) == 0))
return hwe;
return NULL;
}
Regards,
cvaroqui
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
next prev parent reply other threads:[~2005-02-08 21:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-07 23:18 Some issues noticed in my testing Caushik, Ramesh
2005-02-08 21:55 ` Christophe Varoqui [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-02-10 19:24 Caushik, Ramesh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42093561.9070008@free.fr \
--to=christophe.varoqui@free.fr \
--cc=dm-devel@redhat.com \
--cc=ramesh.caushik@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.