Patchwork [-V3,27/32] virtio-9p: Create qemu_fsdev_opts

login
register
mail settings
Submitter Aneesh Kumar K.V
Date March 25, 2010, 4:43 p.m.
Message ID <1269535420-31206-28-git-send-email-aneesh.kumar@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/48577/
State New
Headers show

Comments

Aneesh Kumar K.V - March 25, 2010, 4:43 p.m.
From: Gautham R Shenoy <ego@in.ibm.com>

Create qemu_fsdev_opts to store the parsed commandline attributes for fsdev.

Signed-off-by: Gautham R Shenoy <ego@in.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
---
 qemu-config.c |   16 ++++++++++++++++
 qemu-config.h |    1 +
 2 files changed, 17 insertions(+), 0 deletions(-)

Patch

diff --git a/qemu-config.c b/qemu-config.c
index 150157c..0c06e1b 100644
--- a/qemu-config.c
+++ b/qemu-config.c
@@ -151,6 +151,22 @@  QemuOptsList qemu_chardev_opts = {
     },
 };
 
+QemuOptsList qemu_fsdev_opts = {
+    .name = "fsdev",
+    .implied_opt_name = "fstype",
+    .head = QTAILQ_HEAD_INITIALIZER(qemu_fsdev_opts.head),
+    .desc = {
+        {
+            .name = "fstype",
+            .type = QEMU_OPT_STRING,
+        },{
+            .name = "path",
+            .type = QEMU_OPT_STRING,
+        },
+        { /*End of list */ }
+    },
+};
+
 QemuOptsList qemu_device_opts = {
     .name = "device",
     .implied_opt_name = "driver",
diff --git a/qemu-config.h b/qemu-config.h
index f217c58..b01306c 100644
--- a/qemu-config.h
+++ b/qemu-config.h
@@ -3,6 +3,7 @@ 
 
 extern QemuOptsList qemu_drive_opts;
 extern QemuOptsList qemu_chardev_opts;
+extern QemuOptsList qemu_fsdev_opts;
 extern QemuOptsList qemu_device_opts;
 extern QemuOptsList qemu_netdev_opts;
 extern QemuOptsList qemu_net_opts;