qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] SCSI: STARTSTOPUNIT fix for PWRCND!=0
@ 2012-07-28  1:14 Ronnie Sahlberg
  2012-07-28  1:14 ` [Qemu-devel] [PATCH] SCSI: STARTSTOPUNIT only eject/load media if powercondition is 0 Ronnie Sahlberg
  0 siblings, 1 reply; 6+ messages in thread
From: Ronnie Sahlberg @ 2012-07-28  1:14 UTC (permalink / raw)
  To: qemu-devel, pbonzini

Paolo, List

Please find a trivial fix for the STARTSTOPUNIT emulation.
This command will only eject/load media if powercondition is 0.

With this patch, QEMU SCSI emulation now pass all my SSU tests :

$ ./bin/iscsi-test --dataloss --test="*startstop*" iscsi://127.0.0.1:32601/iqn.qemu.scsi-test/3
0360_startstopunit_simple:
===================
Media is removable. STARTSTOPUNIT should work
Try to eject the media ... [OK]
Try to mount the media again ... [OK]
TEST T0360_startstopunit_simple [OK]

0361_startstopunit_pwrcnd:
===================
Media is removable. STARTSTOPUNIT should work
Try to eject media with PC != 0 ... [OK]
Try to mount the media again ... [OK]
TEST T0361_startstopunit_pwrcnd [OK]

regards
ronnie sahlberg

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

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

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-28  1:14 [Qemu-devel] [PATCH] SCSI: STARTSTOPUNIT fix for PWRCND!=0 Ronnie Sahlberg
2012-07-28  1:14 ` [Qemu-devel] [PATCH] SCSI: STARTSTOPUNIT only eject/load media if powercondition is 0 Ronnie Sahlberg
2012-07-30  7:42   ` Paolo Bonzini
2012-07-30  8:20   ` Kevin Wolf
2012-07-30  8:25     ` Paolo Bonzini
2012-07-30  8:46     ` ronnie sahlberg

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).