From: Ian Campbell Subject: Re: pygrub: avoid problems if guest files are large etc. Date: Mon, 2 Jul 2012 12:22:34 +0100 Message-ID: <1341228154.4625.28.camel@zakaz.uk.xensource.com> References: <4FE4BB5F.5000103@citrix.com> <1340615266.3832.12.camel@zakaz.uk.xensource.com> <1340621572.3832.13.camel@zakaz.uk.xensource.com> <20120626001321.GC8088@US-SEA-R8XVZTX> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: M A Young Cc: Andrew Cooper , Matt Wilson , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Mon, 2012-07-02 at 00:47 +0100, M A Young wrote: > On Tue, 26 Jun 2012, Matt Wilson wrote: > > > On Mon, Jun 25, 2012 at 02:34:02PM -0700, M A Young wrote: > >> On Mon, 25 Jun 2012, Ian Campbell wrote: > >> > >>> BTW, what is the status of that patch? > >> > >> I am attaching version 4 of my patch. It moves handling of the kernel and > >> ramdisk into a function along the lines of Miroslav Rezanina's patch > >> http://lists.xen.org/archives/html/xen-devel/2012-05/msg01499.html > >> It adds checking for problems opening the kernel or ramdisk files and > >> checks they exist in the not_really mode as discussed in this thread. > >> > >> I still think it is a good idea to remove the temporary copies of the > >> kernel and ramdisk if there are problems copying them because I am not > >> convinced the calling process always removes them and it might be > >> presented with truncated files if copying the files filled the filespace. > > Here is version 5 of my patch, modified following Matt Wilson's > suggestions, standardizing the indentations, moving some of the clean up > out of the loop, and reporting the actual error. Looks good to me. Acked-by: Ian Campbell > > Michael Young