From: Jeff Cody <jcody@redhat.com>
To: qemu-devel@nongnu.org
Cc: kwolf@redhat.com, stefanha@redhat.com
Subject: [Qemu-devel] [PATCH v8 07/19] block: vhdx code movement - move vhdx_close() above vhdx_open()
Date: Wed, 30 Oct 2013 10:44:44 -0400 [thread overview]
Message-ID: <b677e3adccac4effff33377860b8c409b6a29c60.1383143104.git.jcody@redhat.com> (raw)
In-Reply-To: <cover.1383143104.git.jcody@redhat.com>
In-Reply-To: <cover.1383143104.git.jcody@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
---
block/vhdx.c | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/block/vhdx.c b/block/vhdx.c
index 241703a..3f06ce3 100644
--- a/block/vhdx.c
+++ b/block/vhdx.c
@@ -778,6 +778,17 @@ exit:
}
+static void vhdx_close(BlockDriverState *bs)
+{
+ BDRVVHDXState *s = bs->opaque;
+ qemu_vfree(s->headers[0]);
+ qemu_vfree(s->headers[1]);
+ qemu_vfree(s->bat);
+ qemu_vfree(s->parent_entries);
+ migrate_del_blocker(s->migration_blocker);
+ error_free(s->migration_blocker);
+}
+
static int vhdx_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
@@ -1035,17 +1046,6 @@ static coroutine_fn int vhdx_co_writev(BlockDriverState *bs, int64_t sector_num,
}
-static void vhdx_close(BlockDriverState *bs)
-{
- BDRVVHDXState *s = bs->opaque;
- qemu_vfree(s->headers[0]);
- qemu_vfree(s->headers[1]);
- qemu_vfree(s->bat);
- qemu_vfree(s->parent_entries);
- migrate_del_blocker(s->migration_blocker);
- error_free(s->migration_blocker);
-}
-
static BlockDriver bdrv_vhdx = {
.format_name = "vhdx",
.instance_size = sizeof(BDRVVHDXState),
--
1.8.3.1
next prev parent reply other threads:[~2013-10-30 15:34 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-30 14:44 [Qemu-devel] [PATCH v8 00/19] VHDX log replay and write support, .bdrv_create() Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 01/19] block: vhdx - minor comments and typo correction Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 02/19] block: vhdx - add header update capability Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 03/19] block: vhdx code movement - VHDXMetadataEntries and BDRVVHDXState to header Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 04/19] block: vhdx - log support struct and defines Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 05/19] block: vhdx - break endian translation functions out Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 06/19] block: vhdx - update log guid in header, and first write tracker Jeff Cody
2013-10-30 14:44 ` Jeff Cody [this message]
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 08/19] block: vhdx - log parsing, replay, and flush support Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 09/19] block: vhdx - add region overlap detection for image files Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 10/19] block: vhdx - add log write support Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 11/19] block: vhdx " Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 12/19] block: vhdx - remove BAT file offset bit shifting Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 13/19] block: vhdx - move more endian translations to vhdx-endian.c Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 14/19] block: vhdx - break out code operations to functions Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 15/19] block: vhdx - fix comment typos in header, fix incorrect struct fields Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 16/19] block: vhdx - add .bdrv_create() support Jeff Cody
2013-10-31 13:09 ` Stefan Hajnoczi
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 17/19] block: vhdx - update _make_test_img() to filter out vhdx options Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 18/19] block: qemu-iotests for vhdx, add write test support Jeff Cody
2013-10-30 14:44 ` [Qemu-devel] [PATCH v8 19/19] block: vhdx qemu-iotest - log replay of data sector Jeff Cody
2013-10-31 13:10 ` [Qemu-devel] [PATCH v8 00/19] VHDX log replay and write support, .bdrv_create() Stefan Hajnoczi
2013-11-01 15:32 ` Jeff Cody
2013-11-04 11:41 ` Kevin Wolf
2013-11-01 5:04 ` [Qemu-devel] VHD suport in QEMU? Philipp Hahn
2013-11-01 9:20 ` Stefan Hajnoczi
2013-11-01 11:53 ` Jeff Cody
2013-11-06 14:34 ` [Qemu-devel] [PATCH v8 00/19] VHDX log replay and write support, .bdrv_create() Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b677e3adccac4effff33377860b8c409b6a29c60.1383143104.git.jcody@redhat.com \
--to=jcody@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).