Il 10/10/2012 10:33, Chen HanXiao ha scritto:
>> You need to use scsi-block instead of scsi-generic. However, I don't see
>> how this can work. After the snapshot, the image will be qcow2, not raw, and
>> thus it will not support bdrv_aio_ioctl. Hence any SCSI command (for
>> scsi-generic) or an
> -Original Message-
> From: Paolo Bonzini [mailto:paolo.bonz...@gmail.com] On Behalf Of Paolo
> Bonzini
> Sent: Wednesday, October 10, 2012 2:34 PM
> To: Chen HanXiao
> Cc: 'Christoph Hellwig'; qemu-devel@nongnu.org
> Subject: Re: [PATCH] Use SCSI command to get size of SG device
>
> Il 1
Il 10/10/2012 04:11, Chen HanXiao ha scritto:
>> >
>> > On Tue, Oct 09, 2012 at 05:42:01PM +0800, Chen HanXiao wrote:
>>> > > When we use SCSI generic device as disk image, function lseek could
>>> > > not get the size of this kind of device.
>>> > > So try to use SCSI command Read Capacity(10) wh
Hi
> -Original Message-
> From: Christoph Hellwig [mailto:h...@lst.de]
> Sent: Wednesday, October 10, 2012 1:21 AM
> To: Chen HanXiao
> Cc: qemu-devel@nongnu.org
> Subject: Re: [Qemu-devel] [PATCH] Use SCSI command to get size of SG
device
>
> On Tue, Oct 09,
On Tue, Oct 09, 2012 at 05:42:01PM +0800, Chen HanXiao wrote:
> When we use SCSI generic device as disk image, function lseek
> could not get the size of this kind of device.
> So try to use SCSI command Read Capacity(10) when lseek failed to get
> the size of SCSI generic device.
Eww, this is ugl
When we use SCSI generic device as disk image, function lseek
could not get the size of this kind of device.
So try to use SCSI command Read Capacity(10) when lseek failed to get
the size of SCSI generic device.
Signed-off-by: Chen Hanxiao
---
block/raw-posix.c | 46 +++