qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Zhu Lingshan <lszhu@suse.com>,
	qemu-block@nongnu.org,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: pbonzini@redhat.com, pl@kamp.de, ronniesahlberg@gmail.com
Subject: Re: [Qemu-devel] [Qemu-block] [PATCH V2] fix:readcapacity 10 failure was shown even 16 sent
Date: Mon, 14 Dec 2015 07:58:28 -0700	[thread overview]
Message-ID: <566ED914.7070105@redhat.com> (raw)
In-Reply-To: <1450061526-5905-1-git-send-email-lszhu@suse.com>

[-- Attachment #1: Type: text/plain, Size: 1813 bytes --]

[adding qemu-devel - ALL patches must cc qemu-devel, even if they are
also sent to a sublist like qemu-block]

On 12/13/2015 07:52 PM, Zhu Lingshan wrote:
> Follow Peter's comment, it is the patch V2.

This sentence should appear...

> This patch can fix that error: readcapacity 10 failure will shown even it was readcapacity16 sent.

Long line; try to keep commit messages wrapped around 72 or fewer
characters, since 'git log' will display it with indentation and you
still want to read it all in an 80-column window.

Subject line is a bit awkward; I suggest:

iscsi: fix readcapacity error message

The error message for readcapacity 16 incorrectly mentioned a
readcapacity 10 failure.

> 
> Signed-off-by: Zhu Lingshan <lszhu@suse.com>
> ---

...here, since it explains why you sent v2, but will make no sense a
year from now when browsing just qemu.git.

>  block/iscsi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/block/iscsi.c b/block/iscsi.c
> index bd1f1bf..bd3473e 100644
> --- a/block/iscsi.c
> +++ b/block/iscsi.c
> @@ -1270,7 +1270,7 @@ static void iscsi_readcapacity_sync(IscsiLun *iscsilun, Error **errp)
>               && retries-- > 0);
>  
>      if (task == NULL || task->status != SCSI_STATUS_GOOD) {
> -        error_setg(errp, "iSCSI: failed to send readcapacity10 command.");
> +        error_setg(errp, "iSCSI: failed to send readcapacity10/16 command.");

While you're touching this, please also drop the trailing '.'

>      } else if (!iscsilun->block_size ||
>                 iscsilun->block_size % BDRV_SECTOR_SIZE) {
>          error_setg(errp, "iSCSI: the target returned an invalid "
> 

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

           reply	other threads:[~2015-12-14 14:58 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1450061526-5905-1-git-send-email-lszhu@suse.com>]

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=566ED914.7070105@redhat.com \
    --to=eblake@redhat.com \
    --cc=lszhu@suse.com \
    --cc=pbonzini@redhat.com \
    --cc=pl@kamp.de \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=ronniesahlberg@gmail.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;
as well as URLs for NNTP newsgroup(s).