[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#474556: marked as done (partman-base: Please include XEN virtual device recognition)



Your message dated Mon, 05 May 2008 11:17:05 +0000
with message-id <E1Jsygr-0003e7-Hr@ries.debian.org>
and subject line Bug#474556: fixed in partman-base 118
has caused the Debian Bug report #474556,
regarding partman-base: Please include XEN virtual device recognition
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
474556: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=474556
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: partman-base
Severity: wishlist
Tags: patch

Hi,

Here's a way to educate humandev about XEN virtual devices.
It's kind of a substitute for parted support not yet present
in libparted 1.7.1.

Thanks,
Feri.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable'), (50, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.24.2
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Index: packages/partman/partman-base/debian/partman-base.templates
===================================================================
--- packages/partman/partman-base/debian/partman-base.templates	(revision 52428)
+++ packages/partman/partman-base/debian/partman-base.templates	(working copy)
@@ -336,6 +336,18 @@
 # :sl5:
 _Description: DASD %s (%s), partition #%s
 
+Template: partman/text/xen_virtual_disk
+Type: text
+# eg. XEN virtual disk 1 (xvda)
+# :sl4:
+_Description: XEN virtual disk %s (%s)
+
+Template: partman/text/xen_virtual_partition
+Type: text
+# eg. XEN virtual disk 1, partition #1 (xvda1)
+# :sl4:
+_Description: XEN virtual disk %s, partition #%s (%s)
+
 Template: partman/text/cancel_menu
 Type: text
 # :sl1:
Index: packages/partman/partman-base/lib/base.sh
===================================================================
--- packages/partman/partman-base/lib/base.sh	(revision 52428)
+++ packages/partman/partman-base/lib/base.sh	(working copy)
@@ -806,6 +806,21 @@
 	    disk="${1#/dev/}"
 	    humandev_dasd_disk /sys/block/$disk/$(readlink /sys/block/$disk/device)
 	    ;;
+	/dev/xvd[a-z])
+	    drive=$(printf '%d' "'$(echo $1 | sed 's,^/dev/xvd\([a-z]\).*,\1,')")
+	    drive=$(($drive - 96))
+	    linux=${1#/dev/}
+	    db_metaget partman/text/xen_virtual_disk description
+	    printf "$RET" "$drive" "$linux"
+	    ;;
+	/dev/xvd[a-z][0-9]*)
+	    drive=$(printf '%d' "'$(echo $1 | sed 's,^/dev/xvd\([a-z]\).*,\1,')")
+	    drive=$(($drive - 96))
+	    part=$(echo $1 | sed 's,^/dev/xvd[a-z]\([0-9][0-9]*\).*,\1,')
+	    linux=${1#/dev/}
+	    db_metaget partman/text/xen_virtual_partition description
+	    printf "$RET" "$drive" "$part" "$linux"
+	    ;;
 	*)
 	    # Check if it's an LVM1 device
 	    vg=`echo "$1" | sed -e 's,/dev/\([^/]\+\).*,\1,'`

--- End Message ---
--- Begin Message ---
Source: partman-base
Source-Version: 118

We believe that the bug you reported is fixed in the latest version of
partman-base, which is due to be installed in the Debian FTP archive:

partman-base_118.dsc
  to pool/main/p/partman-base/partman-base_118.dsc
partman-base_118.tar.gz
  to pool/main/p/partman-base/partman-base_118.tar.gz
partman-base_118_amd64.udeb
  to pool/main/p/partman-base/partman-base_118_amd64.udeb
partman-utils_118_amd64.udeb
  to pool/main/p/partman-base/partman-utils_118_amd64.udeb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 474556@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Frans Pop <fjp@debian.org> (supplier of updated partman-base package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 05 May 2008 13:09:21 +0200
Source: partman-base
Binary: partman-base partman-utils
Architecture: source amd64
Version: 118
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Frans Pop <fjp@debian.org>
Description: 
 partman-base - Partition the storage devices (partman) (udeb)
 partman-utils - Utilities related to partitioning (udeb)
Closes: 474556
Changes: 
 partman-base (118) unstable; urgency=low
 .
   [ Frans Pop ]
   * init.d/parted: minor code improvements.
   * Apply patch by Ian Campbell and Ferenc Wagner to improve display of Xen
     virtual disks in partman. With thanks to both. Closes: #474556.
   * In lowmem mode it is possible that newly loaded support for a file system
     is not "seen" because depmod has not been run after loading the kernel
     udeb. Therefore, run depmod when partman is started.
     Also fixes missing file system support (including ext2/3) for s390.
 .
   [ Evan Dandrea ]
   * Disable swap on all the swap partitions for the device being changed,
     rather than just the ones that will exist after partitioning
     (LP: #218394).
 .
   [ Colin Watson ]
   * Fix error message in NEW_PARTITION (partition type, not label type).
 .
   [ Updated translations ]
   * Amharic (am.po) by tegegne tefera
   * Arabic (ar.po) by Ossama M. Khayat
   * Bulgarian (bg.po) by Damyan Ivanov
   * Czech (cs.po) by Miroslav Kure
   * German (de.po) by Jens Seidel
   * Spanish (es.po) by Javier Fernández-Sanguino Peña
   * Finnish (fi.po) by Esko Arajärvi
   * French (fr.po) by Christian Perrier
   * Galician (gl.po) by Jacobo Tarrio
   * Gujarati (gu.po) by Kartik Mistry
   * Hungarian (hu.po) by SZERVÁC Attila
   * Japanese (ja.po) by Kenshi Muto
   * Korean (ko.po) by Changwoo Ryu
   * Kurdish (ku.po) by Erdal Ronahi
   * Lithuanian (lt.po) by Kęstutis Biliūnas
   * Malayalam (ml.po) by Praveen|പ്രവീണ്‍ A|എ
   * Marathi (mr.po)
   * Dutch (nl.po) by Frans Pop
   * Norwegian Nynorsk (nn.po) by Håvard Korsvoll
   * Panjabi (pa.po) by Amanpreet Singh Alam
   * Polish (pl.po) by Bartosz Fenski
   * Portuguese (Brazil) (pt_BR.po) by Felipe Augusto van de Wiel (faw)
   * Portuguese (pt.po) by Miguel Figueiredo
   * Romanian (ro.po) by Eddy Petrișor
   * Russian (ru.po) by Yuri Kozlov
   * Slovak (sk.po) by Ivan Masár
   * Swedish (sv.po) by Daniel Nylander
   * Tamil (ta.po) by Dr.T.Vasudevan
   * Thai (th.po) by Theppitak Karoonboonyanan
   * Vietnamese (vi.po) by Clytie Siddall
   * Traditional Chinese (zh_TW.po) by Tetralet
Files: 
 9bc803413d0377cf702cdf12929f5358 782 debian-installer standard partman-base_118.dsc
 91db0777ae72c39fed87b4ea6d2e60de 152044 debian-installer standard partman-base_118.tar.gz
 70a3b10a386253f716ccf76a757915aa 130510 debian-installer standard partman-base_118_amd64.udeb
 1e7c1f3c45d9054d39fd1a6c5282e1a3 3714 debian-installer extra partman-utils_118_amd64.udeb
Package-Type: udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIHutagm/Kwh6ICoQRAj1aAJoD5J0YuEU0bzA0NsFI8sz2dRcwTwCgtmFB
ZGzzjcFGlv93WTE3V/bfxzM=
=SY5z
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: