From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRI9b-0004rg-Hr for qemu-devel@nongnu.org; Thu, 25 Oct 2012 03:47:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRI9X-0005gz-IT for qemu-devel@nongnu.org; Thu, 25 Oct 2012 03:46:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:10759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRI9X-0005gv-AC for qemu-devel@nongnu.org; Thu, 25 Oct 2012 03:46:55 -0400 Message-ID: <5088EE6A.6050102@redhat.com> Date: Thu, 25 Oct 2012 09:46:50 +0200 From: Kevin Wolf MIME-Version: 1.0 References: <93cf825d-ecca-4367-8b74-4a69c53b5801@mailpro> In-Reply-To: <93cf825d-ecca-4367-8b74-4a69c53b5801@mailpro> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] qemu-img convert with block driver without .bdrv_create (like iscsi) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexandre DERUMIER Cc: pbonzini@redhat.com, qemu-devel , ronnie sahlberg Am 25.10.2012 09:25, schrieb Alexandre DERUMIER: > Hello, > > I'm looking to use qemu-img convert to write to iscsi block device (iscsi://..) > > As iscsi doesn't have .bdrv_create, qemu-img convert hang on [...] > > > What is the best way to get it working ? > > > 1)add a .bdrv_create in block/iscsi.c ? > > (like host_device block driver, only open/close the device and check if size if big enough) Yes, this is the right way. Kevin