blockdev: Belatedly remove driveopts
[qemu.git] / fsdev / qemu-fsdev.h
blobb50fbe057be53780edf0bbef62cbebfcec492230
1 /*
2 * Virtio 9p
4 * Copyright IBM, Corp. 2010
6 * Authors:
7 * Gautham R Shenoy <ego@in.ibm.com>
9 * This work is licensed under the terms of the GNU GPL, version 2. See
10 * the COPYING file in the top-level directory.
13 #ifndef QEMU_FSDEV_H
14 #define QEMU_FSDEV_H
15 #include "qemu-option.h"
16 #include "hw/file-op-9p.h"
20 * A table to store the various file systems and their callback operations.
21 * -----------------
22 * fstype | ops
23 * -----------------
24 * local | local_ops
25 * . |
26 * . |
27 * . |
28 * . |
29 * -----------------
30 * etc
32 typedef struct FsTypeTable {
33 const char *name;
34 FileOperations *ops;
35 } FsTypeTable;
38 * Structure to store the various fsdev's passed through command line.
40 typedef struct FsTypeEntry {
41 char *fsdev_id;
42 char *path;
43 FileOperations *ops;
44 } FsTypeEntry;
46 typedef struct FsTypeListEntry {
47 FsTypeEntry fse;
48 QTAILQ_ENTRY(FsTypeListEntry) next;
49 } FsTypeListEntry;
51 extern int qemu_fsdev_add(QemuOpts *opts);
52 extern FsTypeEntry *get_fsdev_fsentry(char *id);
53 extern FileOperations local_ops;
54 #endif