From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel P. Berrange" Subject: Re: =?utf-8?b?UsOpZi4gOiBSZTogIFtQQVRDSF1bUkZDXSBBbGxv?= =?utf-8?q?wing_QEMU__to_directly_executeadirectory_=28and_storing_?= =?utf-8?q?command_line_options_in_it=29?= Date: Sat, 1 Sep 2007 01:52:12 +0100 Message-ID: <20070901005212.GA13901@redhat.com> References: Reply-To: "Daniel P. Berrange" Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, qemu-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.org To: laurent.vivier-6ktuUTfB/bM@public.gmane.org Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org On Fri, Aug 31, 2007 at 10:13:11PM +0200, laurent.vivier-6ktuUTfB/bM@public.gmane.org wrote: > I think passing only the directory name is better because it can be like a > "black box" : the user don't have to know how it is inside. And it is much > more simple to use "qemu my_pc" than "qemu -c my_pc/config". If you need this incredible 'simplicity', a 1 line shell script can easily provide it for you; $ cat myqemu #!/bin/sh exec qemu -c $1/config One of the great strengths of QEMU is its predictability - it may have a huge number of command line args, but this is exactly what gives QEMU such power & utility. It makes it very straightforward to build applications around QEMU, and ensure it behaviours in a 100% reliable & predictable manner. We should be wary of putting policy & heuristics into QEMU to turn it into a 'black box' because that will compromise the use cases at which it currently excels. A simple '-c' arg which takes a path to a config file is more than sufficient, without needing heuristics to look for magical named files in directories. Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=| ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/