diff options
| author | Fam Zheng | 2016-01-26 04:58:52 +0100 |
|---|---|---|
| committer | Max Reitz | 2016-02-02 17:50:47 +0100 |
| commit | 3399833f1412e72e6f9e6997775dfdf12d624eaf (patch) | |
| tree | 41f4462f901595131b5b17eef482938c2a311cff /block | |
| parent | raw: Assign bs to file in raw_co_get_block_status (diff) | |
| download | qemu-3399833f1412e72e6f9e6997775dfdf12d624eaf.tar.gz qemu-3399833f1412e72e6f9e6997775dfdf12d624eaf.tar.xz qemu-3399833f1412e72e6f9e6997775dfdf12d624eaf.zip | |
iscsi: Assign bs to file in iscsi_co_get_block_status
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1453780743-16806-6-git-send-email-famz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block')
| -rw-r--r-- | block/iscsi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/block/iscsi.c b/block/iscsi.c index e182557cfc..9fe76f48ec 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -625,6 +625,9 @@ out: if (iTask.task != NULL) { scsi_free_scsi_task(iTask.task); } + if (ret > 0 && ret & BDRV_BLOCK_OFFSET_VALID) { + *file = bs; + } return ret; } |
