From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaTXj-0003ei-S8 for qemu-devel@nongnu.org; Mon, 19 Nov 2012 10:46:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TaTXd-0002aD-Fh for qemu-devel@nongnu.org; Mon, 19 Nov 2012 10:45:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53847) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaTXd-0002Zm-7w for qemu-devel@nongnu.org; Mon, 19 Nov 2012 10:45:45 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qAJFjiKb022389 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 19 Nov 2012 10:45:44 -0500 Message-ID: <50AA5426.3060203@redhat.com> Date: Mon, 19 Nov 2012 16:45:42 +0100 From: Kevin Wolf MIME-Version: 1.0 References: <9cdf58cc9d0e9476a0d549176f14e6f40bbb7d51.1353339221.git.jcody@redhat.com> In-Reply-To: <9cdf58cc9d0e9476a0d549176f14e6f40bbb7d51.1353339221.git.jcody@redhat.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] block: add bdrv_reopen() support for raw hdev devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jeff Cody Cc: qemu-devel@nongnu.org, stefanha@redhat.com Am 19.11.2012 16:37, schrieb Jeff Cody: > The host device reopen handler for raw-posix is the same as the file reopen > handler. > > Signed-off-by: Jeff Cody > --- > block/raw-posix.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/block/raw-posix.c b/block/raw-posix.c > index f2f0404..c7061e6 100644 > --- a/block/raw-posix.c > +++ b/block/raw-posix.c > @@ -1409,6 +1409,9 @@ static BlockDriver bdrv_host_device = { > .bdrv_probe_device = hdev_probe_device, > .bdrv_file_open = hdev_open, > .bdrv_close = raw_close, > + .bdrv_reopen_prepare = raw_reopen_prepare, > + .bdrv_reopen_commit = raw_reopen_commit, > + .bdrv_reopen_abort = raw_reopen_abort, > .bdrv_create = hdev_create, > .create_options = raw_create_options, > .bdrv_has_zero_init = hdev_has_zero_init, > What about host_floppy and (twice) host_cdrom? Kevin