qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] SCSI allow removable SBC disks
@ 2012-07-30  4:43 Ronnie Sahlberg
  2012-07-30  4:43 ` [Qemu-devel] [PATCH] SCSI/BLOCK: Allow (scsi) disks to be REMOVABLE Ronnie Sahlberg
  0 siblings, 1 reply; 3+ messages in thread
From: Ronnie Sahlberg @ 2012-07-30  4:43 UTC (permalink / raw)
  To: qemu-devel, pbonzini

List, Paolo

Please find a small patch that adds a new "drive" keyword "removable".
When used together with SCSI DISK devices, this makes the emulation
support removable scsi disk.

Example: -drive file=./scsi-disk.img,if=scsi,removable

Emulation of SCSI DISK with removable media currently pass all my tests for
SCSI removable media and behaviour of STARTSTOPUNIT/ALLOWPREVENTMEDIUMREMOVAL commands :

iscsi-test --dataloss --test="*prevent*eject*" iscsi://127.0.0.1:32601/iqn.qemu.scsi-test/3
0381_preventallow_eject:
========================
Try to set PREVENTALLOW ... [OK]
Try to eject the media ... Eject failed. [OK]
Load the media again in case it was ejected ... [OK]
Clear the PREVENTALLOW again ... [OK]
TEST T0381_preventallow_eject [OK]

iscsi-test --dataloss --test="*nomedia*" iscsi://127.0.0.1:32601/iqn.qemu.scsi-test/3
0370_nomedia:
============
Try to eject the media ... [OK]
Test TESTUNITREADY ... [OK]
Test SYNCHRONIZECACHE10 ... [OK]
Test SYNCHRONIZECACHE16 ... [OK]
Test READ10 ... [OK]
Test READ12 ... [OK]
Test READ16 ... [OK]
Test READCAPACITY10 ... [OK]
Test READCAPACITY16 ... [OK]
Test GETLBASTATUS ... [OK]
Test PREFETCH10 ... [OK]
Test PREFETCH16 ... [OK]
Test VERIFY10 ... [OK]
Test VERIFY12 ... [OK]
Test VERIFY16 ... [OK]
Test WRITE10 ... [OK]
Test WRITE12 ... [OK]
Test WRITE16 ... [OK]
Test WRITEVERIFY10 ... [OK]
Test WRITEVERIFY12 ... [OK]
Test WRITEVERIFY16 ... [OK]
Test ORWRITE ... [OK]
Test COMPAREWRITE ... [OK]
Test WRITESAME10 ... [OK]
Test WRITESAME16 ... [OK]
Test UNMAP ... [OK]
Try to mount the media again ... [OK]
TEST T0370_nomedia [OK]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-30  7:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-30  4:43 [Qemu-devel] [PATCH] SCSI allow removable SBC disks Ronnie Sahlberg
2012-07-30  4:43 ` [Qemu-devel] [PATCH] SCSI/BLOCK: Allow (scsi) disks to be REMOVABLE Ronnie Sahlberg
2012-07-30  7:37   ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).