Patchwork [-V3,26/32] virtio-9p: Create a commandline option -fsdev

mail settings
Submitter Aneesh Kumar K.V
Date March 25, 2010, 4:43 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/48576/
State New
Headers show


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

This patch creates a new command line option named -fsdev to hold any file
system specific information.

The option will currently hold the following attributes:

-fsdev fstype id=id,path=path_to_share

The only option for fstype currently is local.

Signed-off-by: Gautham R Shenoy <>
Signed-off-by: Aneesh Kumar K.V <>
 qemu-options.hx |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)


diff --git a/qemu-options.hx b/qemu-options.hx
index 8450b45..71a6fda 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -469,6 +469,37 @@  To get a help on possible @var{driver}s, @var{option}s or @var{value}s, use
 @code{-device @var{driver},@var{option}=?}. 
+DEFHEADING(File system options:)
+DEF("fsdev", HAS_ARG, QEMU_OPTION_fsdev,
+    "-fsdev local,id=id,path=path\n")
+The general form of a File system device option is:
+@table @option
+@item -fsdev @var{fstype} ,id=@var{id} [,@var{options}]
+@findex -fsdev
+Fstype is one of:
+The specific Fstype will determine the applicable options.
+Options to each backend are described below.
+@item -fsdev local ,id=@var{id} ,path=@var{path}
+Create a file-system-"device" for local-filesystem.
+@option{local} is only available on Linux.
+@option{path} specifies the path to be exported. @option{path} is required.
+@end table
 DEF("name", HAS_ARG, QEMU_OPTION_name,
     "-name string1[,process=string2]\n"
     "                set the name of the guest\n"