From: Jeremy Katz Subject: [PATCH] don't read whole xvd into ram with pygrub Date: Thu, 23 Feb 2006 16:56:31 -0500 Message-ID: <1140731791.3701.5.camel@orodruin.boston.redhat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-2H9yQq0Vb4XDI0XIVmU3" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --=-2H9yQq0Vb4XDI0XIVmU3 Content-Type: text/plain Content-Transfer-Encoding: 7bit pygrub currently takes a file on the command line to mean a config file if it can't figure out partitions and filesystems. This then makes it balloon to absurd sizes. Make this only happen if you pass a debugging flag Signed-off-by: Jeremy Katz Jeremy --=-2H9yQq0Vb4XDI0XIVmU3 Content-Disposition: attachment; filename=xen-pygrub-dont-read-disk.patch Content-Type: text/x-patch; name=xen-pygrub-dont-read-disk.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -r c646586d1065 tools/pygrub/src/pygrub --- a/tools/pygrub/src/pygrub Thu Feb 23 18:40:08 2006 +0100 +++ b/tools/pygrub/src/pygrub Thu Feb 23 16:49:18 2006 -0500 @@ -94,11 +94,17 @@ def get_active_offset(file): return struct.unpack("