WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Re: [PATCH] [Xen-users] Problems with pygrub: ValueError

To: Michael Paesold <mpaesold@xxxxxx>
Subject: Re: [Xen-devel] Re: [PATCH] [Xen-users] Problems with pygrub: ValueError:unableto open file
From: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Date: Mon, 3 Apr 2006 18:29:22 +0100
Cc: Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 03 Apr 2006 10:29:53 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <02f901c654d7$d22ec4a0$7801a8c0@zaphod>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <011601c64eb4$39a8a030$0f01a8c0@zaphod> <003f01c65493$5de82b20$7801a8c0@zaphod> <02f901c654d7$d22ec4a0$7801a8c0@zaphod>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Fri, Mar 31, 2006 at 05:28:54PM +0200, Michael Paesold wrote:

> Sorry for the last empty mail (hit the wrong button). Attached is a patch 
> against xen-unstable to improve the error messages in pygrub when the 
> e2fsprogs do not support the newer ext2fs_open2 function. This should help 
> beginners to identify the real problem when pygrub does not work (e.g. on 
> RHEL4).
> 
> Please apply to xen-unstable.
> 
> Best Regards,
> Michael Paesold
> 
> # HG changeset patch
> # User mpaesold@xxxxxx
> # Node ID 6d90c95b919b324b7d8e4c7a568040334c8862e9
> # Parent  f0e14b4e535c7d99c56c286384b0d512c5220884
> Improve pygrub error reporting when opening ext2 fs is not possible
> 
> As reported in the thread:
> http://lists.xensource.com/archives/html/xen-users/2006-03/msg00721.html,
> pygrub does not open ext2 file systems in partitioned images or sub
> partitions on e.g. CentOS/RHEL 4, because e2fsprogs ext2fs_open does not
> support an offset into the file to be opened.
> 
> With this patch, the error is correctly reported instead of a generic
> "unable to open file" (and leaving the user searching in the dark).
> 
> Signed-off-by: Michael Paesold <mpaesold@xxxxxx> 

> # HG changeset patch
> # User mip@xxxxxxxxxxxxxxxxxxxxxx
> # Node ID 6d90c95b919b324b7d8e4c7a568040334c8862e9
> # Parent  f0e14b4e535c7d99c56c286384b0d512c5220884
> Improve pygrub error reporting when opening ext2 fs is not possible
> 
> As reported in the thread:
> http://lists.xensource.com/archives/html/xen-users/2006-03/msg00721.html,
> pygrub does not open ext2 file systems in partitioned images or sub
> partitions on e.g. CentOS/RHEL 4, because e2fsprogs ext2fs_open does not
> support an offset into the file to be opened.
> 
> With this patch, the error is correctly reported instead of a generic
> "unable to open file" (and leaving the user searching in the dark).
> 
> Signed-off-by: Michael Paesold <mpaesold@xxxxxx>

Applied, thanks.

Ewan.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-devel] Re: [PATCH] [Xen-users] Problems with pygrub: ValueError:unableto open file, Ewan Mellor <=