From 9f10751365b26b13b8a9b67e0e90536ae3d282df Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Thu, 29 Apr 2010 17:44:44 +0530 Subject: virtio-9p: Add a virtio 9p device to qemu This patch doesn't implement the 9p protocol handling code. It adds a simple device which dump the protocol data. [jvrao@linux.vnet.ibm.com: Little-Endian to host format conversion] [aneesh.kumar@linux.vnet.ibm.com: Multiple-mounts support] Signed-off-by: Anthony Liguori Signed-off-by: Aneesh Kumar K.V Signed-off-by: Anthony Liguori --- fsdev/qemu-fsdev.c | 2 +- fsdev/qemu-fsdev.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'fsdev') diff --git a/fsdev/qemu-fsdev.c b/fsdev/qemu-fsdev.c index 48bbfd95e7..813e1f77a4 100644 --- a/fsdev/qemu-fsdev.c +++ b/fsdev/qemu-fsdev.c @@ -21,7 +21,7 @@ static QTAILQ_HEAD(FsTypeEntry_head, FsTypeListEntry) fstype_entries = QTAILQ_HEAD_INITIALIZER(fstype_entries); static FsTypeTable FsTypes[] = { - { .name = "local", .ops = NULL}, + { .name = "local", .ops = &local_ops}, }; int qemu_fsdev_add(QemuOpts *opts) diff --git a/fsdev/qemu-fsdev.h b/fsdev/qemu-fsdev.h index 7fa4f60376..b50fbe057b 100644 --- a/fsdev/qemu-fsdev.h +++ b/fsdev/qemu-fsdev.h @@ -50,4 +50,5 @@ typedef struct FsTypeListEntry { extern int qemu_fsdev_add(QemuOpts *opts); extern FsTypeEntry *get_fsdev_fsentry(char *id); +extern FileOperations local_ops; #endif -- cgit v1.2.1