[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-stable] [PATCH] block/iscsi: validate block size returned from
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-stable] [PATCH] block/iscsi: validate block size returned from target |
Date: |
Mon, 7 Sep 2015 12:39:50 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 |
On 31/08/2015 10:38, Peter Lieven wrote:
>>
>> diff --git a/block/iscsi.c b/block/iscsi.c
>> index 5002916..fac3a7a 100644
>> --- a/block/iscsi.c
>> +++ b/block/iscsi.c
>> @@ -1214,6 +1214,10 @@ static void iscsi_readcapacity_sync(IscsiLun
>> *iscsilun, Error **errp)
>> if (task == NULL || task->status != SCSI_STATUS_GOOD) {
>> error_setg(errp, "iSCSI: failed to send readcapacity10
>> command.");
>> + } else if (!iscsilun->block_size ||
>> + iscsilun->block_size % BDRV_SECTOR_SIZE) {
>> + error_setg(errp, "iSCSI: the target returned an invalid "
>> + "block size of %d.", iscsilun->block_size);
>> }
>> if (task) {
>> scsi_free_scsi_task(task);
>
> Ping
Queued but not sent due to KVM Forum and vacation.
Paolo
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-stable] [PATCH] block/iscsi: validate block size returned from target,
Paolo Bonzini <=