From: Wei Liu Subject: Re: [PATCH V4 08/12] TestSupport.pm: introduce copy_iso_content_to_dir Date: Wed, 2 Apr 2014 18:26:19 +0100 Message-ID: <20140402172619.GH6382@zion.uk.xensource.com> References: <1395418466-6997-1-git-send-email-wei.liu2@citrix.com> <1395418466-6997-9-git-send-email-wei.liu2@citrix.com> <21308.13964.426362.827214@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <21308.13964.426362.827214@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Wei Liu , ian.campbell@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, Apr 02, 2014 at 05:10:52PM +0100, Ian Jackson wrote: > Wei Liu writes ("[PATCH V4 08/12] TestSupport.pm: introduce copy_iso_content_to_dir"): > > ... which returns a string of commands to pass into target_cmd_root. > > Acked-by: Ian Jackson > > Although I'm starting to wonder about the names here: > > > create_iso_xorriso > > create_empty_iso > > iso_gen_flags_basic > > + copy_iso_content_to_dir > > rewrite_config_nocd > > Maybe some of these should be called iso_create_xorriso > iso_create_empty etc. > > And maybe this one > > > +sub copy_iso_content_to_dir($$) { > > + my ($gho,$newiso) = @_; > > + return <<"END"; > > + set -ex > > + umount /mnt ||: > > + rm -rf $newiso > > + mount -o loop -r $gho->{Rimage} /mnt > > should mention the word "image" in its name. Eg > "iso_copy_content_from_image" or something. > > Let me know what you think. > I'm fine with those renames. Will update in my next series. Wei. > Thanks, > Ian.