commit | 396759ad4ad5289623eb7e1993c433ad4e7b13a1 | [log] [tgz] |
---|---|---|
author | Nicholas Bellinger <nab@linux-iscsi.org> | Mon May 17 09:46:04 2010 -0700 |
committer | Kevin Wolf <kwolf@redhat.com> | Fri May 21 11:49:19 2010 +0200 |
tree | 7c82ef927eb2ef500837645aa7c780be1fc26cd0 | |
parent | f8ea0b00e087380fa0c7309f843f67b7e2d0126a [diff] |
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>