From patchwork Thu Mar 25 16:43:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Aneesh Kumar K.V" X-Patchwork-Id: 48576 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 18EEFB7067 for ; Fri, 26 Mar 2010 05:25:57 +1100 (EST) Received: from localhost ([127.0.0.1]:57057 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuriK-0008SS-4I for incoming@patchwork.ozlabs.org; Thu, 25 Mar 2010 14:23:28 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuqB2-0007Jv-Ii for qemu-devel@nongnu.org; Thu, 25 Mar 2010 12:45:00 -0400 Received: from [140.186.70.92] (port=50782 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuqAu-0007Hp-IL for qemu-devel@nongnu.org; Thu, 25 Mar 2010 12:45:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuqAk-0005EC-SB for qemu-devel@nongnu.org; Thu, 25 Mar 2010 12:44:52 -0400 Received: from e23smtp01.au.ibm.com ([202.81.31.143]:56415) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuqAk-0005Dj-BN for qemu-devel@nongnu.org; Thu, 25 Mar 2010 12:44:42 -0400 Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [202.81.31.246]) by e23smtp01.au.ibm.com (8.14.3/8.13.1) with ESMTP id o2PGgWQ3020152 for ; Fri, 26 Mar 2010 03:42:32 +1100 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o2PGcdM61544304 for ; Fri, 26 Mar 2010 03:38:39 +1100 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o2PGielt031747 for ; Fri, 26 Mar 2010 03:44:40 +1100 Received: from localhost.localdomain ([9.77.125.24]) by d23av03.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id o2PGhgP1030935; Fri, 26 Mar 2010 03:44:38 +1100 From: "Aneesh Kumar K.V" To: qemu-devel@nongnu.org Date: Thu, 25 Mar 2010 22:13:34 +0530 Message-Id: <1269535420-31206-27-git-send-email-aneesh.kumar@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.0.2.323.g0d092 In-Reply-To: <1269535420-31206-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> References: <1269535420-31206-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Cc: ericvh@gmail.com, aliguori@us.ibm.com, "Aneesh Kumar K.V" , Gautham R Shenoy Subject: [Qemu-devel] [PATCH -V3 26/32] virtio-9p: Create a commandline option -fsdev X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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}=?}. ETEXI +DEFHEADING(File system options:) + +DEF("fsdev", HAS_ARG, QEMU_OPTION_fsdev, + "-fsdev local,id=id,path=path\n") + +STEXI + +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: +@option{local}, +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 +ETEXI + +DEFHEADING() + DEF("name", HAS_ARG, QEMU_OPTION_name, "-name string1[,process=string2]\n" " set the name of the guest\n"