Received: from eggs.gnu.org ([208.118.235.92]:44263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URij9-0000fi-QX for qemu-devel@nongnu.org; Mon, 15 Apr 2013 08:41:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URij8-0002kj-K0 for qemu-devel@nongnu.org; Mon, 15 Apr 2013 08:41:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URij8-0002kc-By for qemu-devel@nongnu.org; Mon, 15 Apr 2013 08:41:42 -0400 From: Markus Armbruster Date: Mon, 15 Apr 2013 14:41:35 +0200 Message-ID: <87y5ckx8xs.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] Curious about relaxation of bdrv_is_sg() for scsi-generic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ronnie Sahlberg Cc: Paolo Bonzini , qemu-devel@nongnu.org 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...