From: Hannes Reinecke <hare@suse.de>
To: Mahesh Rajashekhara <Mahesh.Rajashekhara@pmcs.com>,
JBottomley@Parallels.com, linux-scsi@vger.kernel.org
Cc: Achim.Leubner@pmcs.com
Subject: Re: [V2 PATCH 03/11] aacraid: 4KB sector support
Date: Fri, 27 Mar 2015 11:15:05 +0100 [thread overview]
Message-ID: <55152DA9.1060106@suse.de> (raw)
In-Reply-To: <1427380892-1978-4-git-send-email-Mahesh.Rajashekhara@pmcs.com>
On 03/26/2015 03:41 PM, Mahesh Rajashekhara wrote:
> Add 4KB sector support
>
> Signed-off-by: Mahesh Rajashekhara <Mahesh.Rajashekhara@pmcs.com>
> ---
> drivers/scsi/aacraid/aachba.c | 240 +++++++++++++++++++++++++++++++--------
> drivers/scsi/aacraid/aacraid.h | 11 ++-
> 2 files changed, 200 insertions(+), 51 deletions(-)
>
> diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/aacraid/aachba.c
> index b32e77d..aee3eaa 100644
> --- a/drivers/scsi/aacraid/aachba.c
> +++ b/drivers/scsi/aacraid/aachba.c
> @@ -111,6 +111,41 @@
> #define BYTE2(x) (unsigned char)((x) >> 16)
> #define BYTE3(x) (unsigned char)((x) >> 24)
>
> +/* MODE_SENSE data format */
> +typedef struct {
> + struct {
> + u8 data_length;
> + u8 med_type;
> + u8 dev_par;
> + u8 bd_length;
> + } __attribute__((packed)) hd;
> + struct {
> + u8 dens_code;
> + u8 block_count[3];
> + u8 reserved;
> + u8 block_length[3];
> + } __attribute__((packed)) bd;
> + u8 mpc_buf[3];
> +} __attribute__((packed)) aac_modep_data;
> +
> +/* MODE_SENSE_10 data format */
> +typedef struct {
> + struct {
> + u8 data_length[2];
> + u8 med_type;
> + u8 dev_par;
> + u8 rsrvd[2];
> + u8 bd_length[2];
> + } __attribute__((packed)) hd;
> + struct {
> + u8 dens_code;
> + u8 block_count[3];
> + u8 reserved;
> + u8 block_length[3];
> + } __attribute__((packed)) bd;
> + u8 mpc_buf[3];
> +} __attribute__((packed)) aac_modep10_data;
> +
> /*------------------------------------------------------------------------------
> * S T R U C T S / T Y P E D E F S
> *----------------------------------------------------------------------------*/
> @@ -438,7 +473,7 @@ static void get_container_name_callback(void *context, struct fib * fibptr)
> if ((le32_to_cpu(get_name_reply->status) == CT_OK)
> && (get_name_reply->data[0] != '\0')) {
> char *sp = get_name_reply->data;
> - sp[sizeof(((struct aac_get_name_resp *)NULL)->data)-1] = '\0';
> + sp[sizeof(((struct aac_get_name_resp *)NULL)->data)] = '\0';
> while (*sp == ' ')
> ++sp;
> if (*sp) {
What has this to do with 4k block support?
Looks rather like an unrelated bugfix to me...
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-03-27 10:15 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-26 14:41 [V2 PATCH 00/11] aacraid driver updates Mahesh Rajashekhara
2015-03-26 14:41 ` [V2 PATCH 01/11] aacraid: AIF support for SES device add/remove Mahesh Rajashekhara
2015-03-27 10:12 ` Hannes Reinecke
2015-03-30 10:12 ` Murthy Bhat
2015-03-26 14:41 ` [V2 PATCH 02/11] aacraid: IOCTL pass-through command fix Mahesh Rajashekhara
2015-03-27 10:13 ` Hannes Reinecke
2015-03-30 10:13 ` Murthy Bhat
2015-03-26 14:41 ` [V2 PATCH 03/11] aacraid: 4KB sector support Mahesh Rajashekhara
2015-03-27 10:15 ` Hannes Reinecke [this message]
2015-03-27 10:59 ` Mahesh Rajashekhara
2015-03-27 11:03 ` Hannes Reinecke
2015-03-30 10:13 ` Murthy Bhat
2015-03-26 14:41 ` [V2 PATCH 04/11] aacraid: MSI-x support Mahesh Rajashekhara
2015-03-27 10:17 ` Hannes Reinecke
2015-03-30 10:13 ` Murthy Bhat
2015-03-27 13:28 ` Johannes Thumshirn
2015-03-27 17:03 ` Mahesh Rajashekhara
2015-03-26 14:41 ` [V2 PATCH 05/11] aacraid: vpd page code 0x83 support Mahesh Rajashekhara
2015-03-27 10:18 ` Hannes Reinecke
2015-03-30 10:14 ` Murthy Bhat
2015-03-26 14:41 ` [V2 PATCH 06/11] aacraid: 240 simple volume support Mahesh Rajashekhara
2015-03-27 10:19 ` Hannes Reinecke
2015-03-30 10:14 ` Murthy Bhat
2015-03-26 14:41 ` [V2 PATCH 07/11] aacraid: IOP RESET command handling changes Mahesh Rajashekhara
2015-03-27 10:20 ` Hannes Reinecke
2015-03-27 11:15 ` Mahesh Rajashekhara
2015-03-30 10:15 ` Murthy Bhat
2015-03-26 14:41 ` [V2 PATCH 08/11] aacraid: IOCTL fix Mahesh Rajashekhara
2015-03-27 10:21 ` Hannes Reinecke
2015-03-27 11:30 ` Mahesh Rajashekhara
2015-03-30 10:15 ` Murthy Bhat
2015-03-26 14:41 ` [V2 PATCH 09/11] aacraid: performance improvement changes Mahesh Rajashekhara
2015-03-27 10:22 ` Hannes Reinecke
2015-03-30 10:15 ` Murthy Bhat
2015-03-26 14:41 ` [V2 PATCH 10/11] aacraid: AIF raw device remove support Mahesh Rajashekhara
2015-03-27 10:22 ` Hannes Reinecke
2015-03-30 10:16 ` Murthy Bhat
2015-03-26 14:41 ` [V2 PATCH 11/11] aacraid: driver version change Mahesh Rajashekhara
2015-03-27 10:23 ` Hannes Reinecke
2015-03-30 10:16 ` Murthy Bhat
2015-04-06 11:02 ` [V2 PATCH 00/11] aacraid driver updates Mahesh Rajashekhara
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=55152DA9.1060106@suse.de \
--to=hare@suse.de \
--cc=Achim.Leubner@pmcs.com \
--cc=JBottomley@Parallels.com \
--cc=Mahesh.Rajashekhara@pmcs.com \
--cc=linux-scsi@vger.kernel.org \
/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