qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Curious about relaxation of bdrv_is_sg() for scsi-generic
@ 2013-04-15 12:41 Markus Armbruster
  2013-04-15 13:08 ` Paolo Bonzini
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Armbruster @ 2013-04-15 12:41 UTC (permalink / raw)
  To: Ronnie Sahlberg; +Cc: Paolo Bonzini, qemu-devel

Commit 9839245 "ISCSI: Add SCSI passthrough via scsi-generic to
libiscsi" contains this hunk:

diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c
index d856d23..8d51060 100644
--- a/hw/scsi-generic.c
+++ b/hw/scsi-generic.c
@@ -400,12 +400,6 @@ static int scsi_generic_initfn(SCSIDevice *s)
         return -1;
     }
 
-    /* check we are really using a /dev/sg* file */
-    if (!bdrv_is_sg(s->conf.bs)) {
-        error_report("not /dev/sg*");
-        return -1;
-    }
-
     if (bdrv_get_on_error(s->conf.bs, 0) != BLOCK_ERR_STOP_ENOSPC) {
         error_report("Device doesn't support drive option werror");
         return -1;

Why could we relax the "must be sg" requirement here?  I know it's been
a while...

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

end of thread, other threads:[~2013-04-15 13:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-15 12:41 [Qemu-devel] Curious about relaxation of bdrv_is_sg() for scsi-generic Markus Armbruster
2013-04-15 13:08 ` 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).