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

Bug#699431: marked as done (partman-auto: don't hide whole-disk partitionable mdraid arrays)



Your message dated Mon, 02 Dec 2013 23:34:13 +0000
with message-id <E1Vnd0H-0005zO-Mz@franck.debian.org>
and subject line Bug#699431: fixed in partman-auto 115
has caused the Debian Bug report #699431,
regarding partman-auto: don't hide whole-disk partitionable mdraid arrays
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.)


-- 
699431: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=699431
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: partman-auto
Version: 106
Tags: patch

See metabug 699430, http://bugs.debian.org/699430 :
	(debian-installer: support for Intel Matrix Raid (RST, imsm)

  * don't hide /dev/md* arrays if they are provisioned on whole-disk
    devices - in that case the md array itself is partitionable,
    e.g. for md-fakeraid like imsm (Intel Matrix raid).

Thanks

diff -ruN 00-ORIG/partman-auto-106/debian/changelog partman-auto-106/debian/changelog
--- 00-ORIG/partman-auto-106/debian/changelog	2012-12-12 05:52:35.000000000 +0000
+++ partman-auto-106/debian/changelog	2013-01-29 14:52:14.946726850 +0000
@@ -1,3 +1,11 @@
+partman-auto (106+1) unstable; urgency=low
+
+  * don't hide /dev/md* arrays if they are provisioned on whole-disk
+    devices - in that case the md array itself is partitionable,
+    e.g. for md-fakeraid like imsm (Intel Matrix raid).
+
+ -- Miquel van Smoorenburg <miquels@debian.org>  Tue, 29 Jan 2013 15:50:37 +0100
+
 partman-auto (106) unstable; urgency=low
 
   [ Updated translations ]
diff -ruN 00-ORIG/partman-auto-106/lib/auto-shared.sh partman-auto-106/lib/auto-shared.sh
--- 00-ORIG/partman-auto-106/lib/auto-shared.sh	2011-02-07 02:00:27.000000000 +0000
+++ partman-auto-106/lib/auto-shared.sh	2013-01-29 14:49:59.644371625 +0000
@@ -208,6 +208,28 @@
 	free_space=$(partition_after $id)'
 }
 
+is_wholedisk_mdraid () {
+	local device="`echo $1 | sed -e 's!/\([0-9]*\)$!\1!'`"
+	local mddisk=${device#/dev/}
+	local ret=0
+	local d
+
+	[ -d /sys/block/$mddisk/md ] || return 1
+
+	for d in /sys/block/$mddisk/slaves/*; do
+		case "$d" in
+			dm-*|md*)
+				;;
+			*p[0-9]|*p[0-9][0-9])
+				ret=1
+				break
+				;;
+		esac
+	done
+
+	return $ret
+}
+
 get_auto_disks() {
 	local dev device dmtype
 
@@ -217,7 +239,12 @@
 		device=$(cat $dev/device)
 		
 		# Skip software RAID (mdadm) devices (/dev/md/X and /dev/mdX)
-		$(echo "$device" | grep -Eq "/dev/md/?[0-9]*$") && continue
+		# unless it's a whole-disk partitionable array
+		if echo "$device" | grep -Eq "/dev/md/?[0-9]*$"; then
+			if ! is_wholedisk_mdraid "$device"; then
+				continue
+			fi
+		fi
 
 		# Skip device mapper devices (/dev/mapper/),
 		# except for dmraid or multipath devices

--- End Message ---
--- Begin Message ---
Source: partman-auto
Source-Version: 115

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

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 699431@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dmitrijs Ledkovs <xnox@ubuntu.com> (supplier of updated partman-auto 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@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 02 Dec 2013 22:30:17 +0000
Source: partman-auto
Binary: partman-auto
Architecture: amd64 source
Version: 115
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Dmitrijs Ledkovs <xnox@ubuntu.com>
Closes: 699431
Description: 
 partman-auto - Automatically partition storage devices (partman) (udeb)
Changes: 
 partman-auto (115) unstable; urgency=low
 .
   [ Miquel van Smoorenbur ]
   * don't hide /dev/md* arrays if they are provisioned on whole-disk
     devices - in that case the md array itself is partitionable, e.g. for
     md-fakeraid like imsm (Intel Matrix raid). (Closes: #699431)
Checksums-Sha1: 
 3d5c3c37fbf56c15fb226e9f66c3463913beb637 1626 partman-auto_115.dsc
 ed317c22d9dde1a3aa75da730c7e8fa09d8261c2 124383 partman-auto_115.tar.gz
 2e15a30eee04154d9bd19c3f30f94bc2abf5f1d7 86792 partman-auto_115_amd64.udeb
Checksums-Sha256: 
 dbd3af6e973c7190f2e13e21f6b71f59b7c0b4efd09276c4ad4f5b0e2003619c 1626 partman-auto_115.dsc
 ee009c450b606e8505d500fdfea26cada69f1b9a7b217c8ec82734fc00928bb5 124383 partman-auto_115.tar.gz
 dd3899c45e70861ca26172301c8eda63adf719fd87668954b3eee86a0d66f34a 86792 partman-auto_115_amd64.udeb
Files: 
 ee8533faa66b0a600671d758441bced6 1626 debian-installer standard partman-auto_115.dsc
 3ed584b8764d6196672cebe9c2cd3764 124383 debian-installer standard partman-auto_115.tar.gz
 d425dd06ce6e93d02947287420e9f792 86792 debian-installer standard partman-auto_115_amd64.udeb

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

iQIcBAEBCAAGBQJSnRRPAAoJEIh7YGGLPBauoH8P/i7xay3LdAamD51OQodMFPeJ
GE9/7udU1qT/+lQbaCK7ZSgOS/eL4e6v+pjugL+U5aRs0ZdF80IVqhoMWztOYS5P
92lJDF+oPNOS/aEp+RxGXCSD5kYHnaEd6/TWQY5KSDeJiwYu+zG35q+jrcTNtbHA
YU+y/2TVwbUeuwJMk+ekb1v3pxqFBZ0okqlZNYZlp2pMU1Sd7gs7dNcr8l3wqoL1
i5n2h8SFFsn52dOUuZfgkoOG4tzPg5jn/bbHtChn8d+g+6JN+eswnwwHnxuRTk32
GSDkvez6NidNL2tAFNdlzrSf9vN/PQ1d5fr0qoGqewb4TCtxQVT77GPQOTRN6klX
iTSP50bAybIK8PTpGP/S2MhvqvP7G8QxoNSB18J8Kf03s0FQpPFeqZhgm8yi+h50
18HuySZPIJQWgnAy4RJ+qvhew2ceqy6lNlzgzBqNCZVJfXTEeWJzG4FkMpY+FBdk
Ol76VJlW5eVlhOCsGM+rn0NNMCaehMimYTRabunmLzQVQQ9ec/cq2aVGrRnzXX3/
y0Hr979cVu8NvpMS7WuxvldUQIDzle1DjAB8k4cBje+J7jgOABtNa1rnd2xFJJpd
SMmFhv38SkknBCfui06PuwxhavAkHCl4y0thL9ZB6zJlG01kb1LUxESI4pSrj3G+
lNuf8zey2FwsnRFWbHW0
=QHxF
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: