All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] more BlockDriver C99 initializers
@ 2009-04-06 12:02 Christoph Hellwig
  2009-04-06 12:19 ` Avi Kivity
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Christoph Hellwig @ 2009-04-06 12:02 UTC (permalink / raw)
  To: qemu-devel

Looks like the two bdrv_raw instances were missed last time.


Signed-off-by: Christoph Hellwig <hch@lst.de>

Index: qemu/block-raw-posix.c
===================================================================
--- qemu.orig/block-raw-posix.c	2009-03-29 21:52:28.208005692 +0200
+++ qemu/block-raw-posix.c	2009-03-29 23:05:39.587130731 +0200
@@ -876,27 +876,24 @@ static void raw_flush(BlockDriverState *
 }
 
 BlockDriver bdrv_raw = {
-    "raw",
-    sizeof(BDRVRawState),
-    NULL, /* no probe for protocols */
-    raw_open,
-    NULL,
-    NULL,
-    raw_close,
-    raw_create,
-    raw_flush,
+    .format_name	= "raw",
+    .instance_size	= sizeof(BDRVRawState),
+    .bdrv_open		= raw_open,
+    .bdrv_close		= raw_close,
+    .bdrv_create	= raw_create,
+    .bdrv_flush		= raw_flush,
 
 #ifdef CONFIG_AIO
-    .bdrv_aio_read = raw_aio_read,
-    .bdrv_aio_write = raw_aio_write,
-    .bdrv_aio_cancel = raw_aio_cancel,
-    .aiocb_size = sizeof(RawAIOCB),
+    .bdrv_aio_read	= raw_aio_read,
+    .bdrv_aio_write	= raw_aio_write,
+    .bdrv_aio_cancel	= raw_aio_cancel,
+    .aiocb_size		= sizeof(RawAIOCB),
 #endif
 
-    .bdrv_read = raw_read,
-    .bdrv_write = raw_write,
-    .bdrv_truncate = raw_truncate,
-    .bdrv_getlength = raw_getlength,
+    .bdrv_read		= raw_read,
+    .bdrv_write		= raw_write,
+    .bdrv_truncate	= raw_truncate,
+    .bdrv_getlength	= raw_getlength,
 };
 
 /***********************************************/
Index: qemu/block-raw-win32.c
===================================================================
--- qemu.orig/block-raw-win32.c	2009-03-29 23:04:19.118004848 +0200
+++ qemu/block-raw-win32.c	2009-03-29 23:06:36.012042514 +0200
@@ -229,20 +229,16 @@ static int raw_create(const char *filena
 }
 
 BlockDriver bdrv_raw = {
-    "raw",
-    sizeof(BDRVRawState),
-    NULL, /* no probe for protocols */
-    raw_open,
-    NULL,
-    NULL,
-    raw_close,
-    raw_create,
-    raw_flush,
-
-    .bdrv_read = raw_read,
-    .bdrv_write = raw_write,
-    .bdrv_truncate = raw_truncate,
-    .bdrv_getlength = raw_getlength,
+    .format_name	= "raw",
+    .instance_size	= sizeof(BDRVRawState),
+    .bdrv_open		= raw_open,
+    .bdrv_close		= raw_close,
+    .bdrv_create	= raw_create,
+    .bdrv_flush		= raw_flush,
+    .bdrv_read		= raw_read,
+    .bdrv_write		= raw_write,
+    .bdrv_truncate	= raw_truncate,
+    .bdrv_getlength	= raw_getlength,
 };
 
 /***********************************************/

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

end of thread, other threads:[~2009-04-07 18:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-06 12:02 [Qemu-devel] [PATCH] more BlockDriver C99 initializers Christoph Hellwig
2009-04-06 12:19 ` Avi Kivity
2009-04-06 12:25   ` Christoph Hellwig
2009-04-07 18:07 ` Christoph Hellwig
2009-04-07 18:09 ` [Qemu-devel] [PATCH] missing block-raw-win32.c C99 initializer conversion Christoph Hellwig
2009-04-07 18:24 ` [Qemu-devel] [PATCH] more BlockDriver C99 initializers Anthony Liguori

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.