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

Message ID 1269535420-31206-27-git-send-email-aneesh.kumar@linux.vnet.ibm.com
State New
Headers show

Commit Message

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

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 <ego@in.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
 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"