[Pkg-xen-devel] Bug#476366: xen-utils-3.2-1: pygrub cannot read ext3 files systems with 256 byte inodes
Ian Campbell
ijc at hellion.org.uk
Wed Apr 16 10:49:53 UTC 2008
Package: xen-utils-3.2-1
Version: 3.2.0-4
Severity: important
Tags: patch
pygrub uses tools/libfsimage to read a guest filesystem. Unfortunately
the grub derived code does not support 256 byte inodes. Grub itself has
been patched (see #463236 and #463123) and this patch has now been
applied to the upstream Xen tree. See
<http://xenbits.xensource.com/staging/xen-unstable.hg?rev/c777e572a467> and attached.
However -- I would recommend that pygrub in Debian should be using the
e2fslibs based backend rather than the grub derived code since
this library is a much more canonical implementation of userspace
ext2/3 and is likely to support newer features more reliably.
This can be achieved with a build-dependency on e2fslibs-dev which will
cause this alternative code to be built. Patch is attached.
If you do not wish to go down this path then I would recommend either
adding a build-conflicts (if such a thing exists) or patching
tools/libfsimage/Makefile to always select the grub code otherwise you
run the risk of the selection changing randomly depending on buildd
configuration.
Two patches are attached -- I guess you want one or the other.
Cheers,
Ian.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.18.8-xen (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages xen-utils-3.2-1 depends on:
ii iproute 20080108-1 Professional tools to control the
ii libc6 2.7-10 GNU C Library: Shared libraries
ii libncurses5 5.6+20080405-1 Shared libraries for terminal hand
ii libsdl1.2debian 1.2.13-2 Simple DirectMedia Layer
ii libssl0.9.8 0.9.8g-8 SSL shared libraries
ii libxenstore3.0 3.2.0-4 Xenstore communications library fo
ii python 2.4.4-2 An interactive high-level object-o
ii python-central 0.6.2 register and build utility for Pyt
ii udev 0.114-2 /dev/ and hotplug management daemo
ii xen-utils-common 3.2.0-2 XEN administrative tools - common
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
Versions of packages xen-utils-3.2-1 recommends:
ii bridge-utils 1.4-1 Utilities for configuring the Linu
ii xen-hypervisor-3.2-1-amd64 [x 3.2.0-4 The Xen Hypervisor on AMD64
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libfsimage-ext3-256-byte-inodes.diff
Type: text/x-c
Size: 5910 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20080416/8c028f8d/attachment.bin
-------------- next part --------------
Index: xen-3/debian/templates/control.source.in
===================================================================
--- xen-3/debian/templates/control.source.in (revision 545)
+++ xen-3/debian/templates/control.source.in (working copy)
@@ -3,7 +3,7 @@
Priority: extra
Maintainer: Debian Xen Team <pkg-xen-devel at lists.alioth.debian.org>
Uploaders: Julien Danjou <acid at debian.org>, Jeremy T. Bouse <jbouse at debian.org>, Guido Trotter <ultrotter at debian.org>, Bastian Blank <waldi at debian.org>
-Build-Depends: debhelper (>= 5.0.37.2), python-dev (>= 2.3), libsdl1.2-dev, bcc, lsb-release, python-central (>= 0.5), quilt, zlib1g-dev, libjpeg-dev, libncurses5-dev, libssl-dev, libvncserver-dev, gcc-multilib [amd64]
+Build-Depends: debhelper (>= 5.0.37.2), python-dev (>= 2.3), libsdl1.2-dev, bcc, lsb-release, python-central (>= 0.5), quilt, zlib1g-dev, libjpeg-dev, libncurses5-dev, libssl-dev, libvncserver-dev, gcc-multilib [amd64], e2fslibs-dev
Build-Depends-Indep: graphviz, gs-common, texlive-fonts-recommended, texlive-latex-recommended
Standards-Version: 3.7.2.0
XS-Python-Version: current
More information about the Pkg-xen-devel
mailing list