From: Eddie Williams <Eddie.Williams@steeleye.com>
To: Chandra Seetharaman <sekharan@us.ibm.com>
Cc: linux-scsi@vger.kernel.org, dm-devel@redhat.com,
michaelc@cs.wisc.edu, agk@redhat.com,
James.Bottomley@HansenPartnership.com, Benoit_Arthur@emc.com,
asson_ronald@emc.com, berthiaume_wayne@emc.com
Subject: Re: [PATCH 2/3] scsi_dh: Provide set_params interface in emc device handler
Date: Mon, 20 Jul 2009 09:00:13 -0400 [thread overview]
Message-ID: <1248094813.6307.10.camel@eddie-laptop> (raw)
In-Reply-To: <20090702031320.28354.96958.sendpatchset@chandra-ubuntu>
On Wed, 2009-07-01 at 20:13 -0700, Chandra Seetharaman wrote:
> Handle the parameters provided by user thru multipath.
>
> This handler expects only 2 parameters and their value can either be 0 or 1.
>
> This code originates from the old dm-emc.c file. Appropriate changes have
> been made to make it work in the new design.
>
> Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
> ---
> drivers/scsi/device_handler/scsi_dh_emc.c | 56 ++++++++++++++++++++++++++++++
> 1 file changed, 56 insertions(+)
>
> Index: linux-2.6.31-rc1/drivers/scsi/device_handler/scsi_dh_emc.c
> ===================================================================
> --- linux-2.6.31-rc1.orig/drivers/scsi/device_handler/scsi_dh_emc.c
> +++ linux-2.6.31-rc1/drivers/scsi/device_handler/scsi_dh_emc.c
> @@ -561,6 +561,61 @@ done:
>
> return result;
> }
> +/*
> + * params - parameters in the following format
> + * "no_of_params\0param1\0param2\0param3\0...\0"
> + * for example, string for 2 parameters with value 10 and 21
> + * is specified as "2\010\021\0".
> + */
> +static int clariion_set_params(struct scsi_device *sdev, const char *params)
> +{
> + struct clariion_dh_data *csdev = get_clariion_data(sdev);
> + unsigned int hr = 0, st = 0, argc;
> + char *p = params;
This throws a compiler warning resolved with a type cast:
char *p = (char *)params;
next prev parent reply other threads:[~2009-07-20 13:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-02 3:13 [PATCH 0/3] scsi_dh: Add ability to set parameters for scsi device handler Chandra Seetharaman
2009-07-02 3:13 ` [PATCH 1/3] scsi_dh: add the interface scsi_dh_set_params() Chandra Seetharaman
2009-07-02 3:13 ` [PATCH 2/3] scsi_dh: Provide set_params interface in emc device handler Chandra Seetharaman
2009-07-20 13:00 ` Eddie Williams [this message]
2009-07-21 1:02 ` Chandra Seetharaman
2009-07-02 3:13 ` [PATCH 3/3] scsi_dh: Use scsi_dh_set_params() in multipath Chandra Seetharaman
2009-07-02 14:07 ` [PATCH 0/3] scsi_dh: Add ability to set parameters for scsi device handler Eddie Williams
2009-07-02 19:34 ` Eddie Williams
2009-07-02 20:29 ` Eddie Williams
2009-07-02 20:47 ` Chandra Seetharaman
2009-07-07 12:34 ` Eddie Williams
[not found] ` <1247169346.28322.0.camel@chandra-ubuntu>
[not found] ` <1247174184.6367.237.camel@eddie-laptop>
2009-07-10 1:59 ` [dm-devel] " Chandra Seetharaman
2009-07-10 13:21 ` Eddie Williams
2009-07-20 13:05 ` Eddie Williams
2009-07-21 1:01 ` Chandra Seetharaman
2009-07-21 19:36 ` Eddie Williams
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=1248094813.6307.10.camel@eddie-laptop \
--to=eddie.williams@steeleye.com \
--cc=Benoit_Arthur@emc.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=agk@redhat.com \
--cc=asson_ronald@emc.com \
--cc=berthiaume_wayne@emc.com \
--cc=dm-devel@redhat.com \
--cc=linux-scsi@vger.kernel.org \
--cc=michaelc@cs.wisc.edu \
--cc=sekharan@us.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox