mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
hw/9pfs: Move opt validation to FsDriver callback
This remove all conditional code from common code path and make opt validation a FSDriver callback. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
This commit is contained in:
parent
f3c6a169a3
commit
99519f0a77
7 changed files with 83 additions and 61 deletions
|
@ -34,16 +34,6 @@ typedef struct FsDriverTable {
|
|||
FileOperations *ops;
|
||||
} FsDriverTable;
|
||||
|
||||
/*
|
||||
* Structure to store the various fsdev's passed through command line.
|
||||
*/
|
||||
typedef struct FsDriverEntry {
|
||||
char *fsdev_id;
|
||||
char *path;
|
||||
int export_flags;
|
||||
FileOperations *ops;
|
||||
} FsDriverEntry;
|
||||
|
||||
typedef struct FsDriverListEntry {
|
||||
FsDriverEntry fse;
|
||||
QTAILQ_ENTRY(FsDriverListEntry) next;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue