Home
last modified time | relevance | path

Searched hist:"396759 ad4ad5289623eb7e1993c433ad4e7b13a1" (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/
H A Dblock.cdiff 396759ad4ad5289623eb7e1993c433ad4e7b13a1 Mon May 17 11:46:04 CDT 2010 Nicholas Bellinger <nab@linux-iscsi.org> block: Add SG_IO device check in refresh_total_sectors()

This patch adds a special case check for scsi-generic devices in
refresh_total_sectors() to skip the subsequent BlockDriver->bdrv_getlength()
that will be returning -ESPIPE from block/raw-posic.c:raw_getlength() for
BlockDriverState->sg=1 devices.

Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>