From: Kevin Wolf <kwolf@suse.de>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Cc: Jim Fehlig <jfehlig@novell.com>
Subject: [PATCH 2/4] blktap: Export disk type constants for ioemu
Date: Thu, 12 Mar 2009 19:32:13 +0100 [thread overview]
Message-ID: <49B9552D.2060105@suse.de> (raw)
In-Reply-To: <49B9544C.4030006@suse.de>
[-- Attachment #1: Type: text/plain, Size: 276 bytes --]
Currently all disk types that are supported are defined in a header file
private to blktapctrl and tapdisk. When restoring ioemu as a backend for
blktap these constants are needed by ioemu, so move them to a more
public header file.
Signed-off-by: Kevin Wolf <kwolf@suse.de>
[-- Attachment #2: libblktap-export-disk-types.patch --]
[-- Type: text/x-patch, Size: 1652 bytes --]
blktap: Export disk type constants for ioemu
Currently all disk types that are supported are defined in a header file
private to blktapctrl and tapdisk. When restoring ioemu as a backend for
blktap these constants are needed by ioemu, so move them to a more public
header file.
Signed-off-by: Kevin Wolf <kwolf@suse.de>
Index: xen-unstable.hg/tools/blktap/drivers/tapdisk.h
===================================================================
--- xen-unstable.hg.orig/tools/blktap/drivers/tapdisk.h
+++ xen-unstable.hg/tools/blktap/drivers/tapdisk.h
@@ -161,15 +161,6 @@ extern struct tap_disk tapdisk_ram;
extern struct tap_disk tapdisk_qcow;
extern struct tap_disk tapdisk_qcow2;
-#define MAX_DISK_TYPES 20
-
-#define DISK_TYPE_AIO 0
-#define DISK_TYPE_SYNC 1
-#define DISK_TYPE_VMDK 2
-#define DISK_TYPE_RAM 3
-#define DISK_TYPE_QCOW 4
-#define DISK_TYPE_QCOW2 5
-
/*Define Individual Disk Parameters here */
static disk_info_t aio_disk = {
Index: xen-unstable.hg/tools/blktap/lib/blktaplib.h
===================================================================
--- xen-unstable.hg.orig/tools/blktap/lib/blktaplib.h
+++ xen-unstable.hg/tools/blktap/lib/blktaplib.h
@@ -210,6 +210,16 @@ typedef struct msg_pid {
#define CTLMSG_PID 9
#define CTLMSG_PID_RSP 10
+/* disk driver types */
+#define MAX_DISK_TYPES 20
+
+#define DISK_TYPE_AIO 0
+#define DISK_TYPE_SYNC 1
+#define DISK_TYPE_VMDK 2
+#define DISK_TYPE_RAM 3
+#define DISK_TYPE_QCOW 4
+#define DISK_TYPE_QCOW2 5
+
/* xenstore/xenbus: */
#define DOMNAME "Domain-0"
int setup_probe_watch(struct xs_handle *h);
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2009-03-12 18:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-12 18:28 [PATCH 0/4] Various blktap related patches (xen part) Kevin Wolf
2009-03-12 18:31 ` [PATCH 1/4] blktapctrl: Select backend by prefix Kevin Wolf
2009-03-12 18:32 ` Kevin Wolf [this message]
2009-03-12 18:33 ` [PATCH 3/4] blktapctrl: Fix too early close of pipes Kevin Wolf
2009-03-12 18:33 ` [PATCH 4/4] blktap: Move error signaling to blktapctrl Kevin Wolf
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=49B9552D.2060105@suse.de \
--to=kwolf@suse.de \
--cc=jfehlig@novell.com \
--cc=xen-devel@lists.xensource.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 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.