Xen 
 
Home About Xen.org Xen Xen Summit Wiki Mailing List Bug Tracker Xen Downloads
 
   
 

xen-users

Re: [PATCH] [Xen-users] Problems with pygrub: ValueError:unableto open f

To: "Xen Users" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [PATCH] [Xen-users] Problems with pygrub: ValueError:unableto open file
From: "Michael Paesold" <mpaesold@xxxxxx>
Date: Fri, 31 Mar 2006 17:28:54 +0200
Cc: Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 31 Mar 2006 15:30:43 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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> <442C27D1.5060800@xxxxxx><442C2BEA.9080109@xxxxxx> <003f01c65493$5de82b20$7801a8c0@zaphod>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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>

Attachment: xen-pygrub-errormsg.patch
Description: Text document

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