qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Use SCSI command to get size of SG device


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH] Use SCSI command to get size of SG device
Date: Wed, 10 Oct 2012 11:01:31 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1

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 any non-data SCSI command (for scsi-block) will fail.
>
> That's the issue what I also encountered.
> Do you mean that it is impossible for us to enable snapshot for
> scsi-generic?

It's impossible, and rightly so: the user could anyway bypass the
snapshotting and write to the disk (WRITE SAME for example).

Not just snapshot=on, which fails because it is early enough that the
disk fails to initialize.  Live snapshots also ought to be blocked, it
is a bug that they are not.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]