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

Bug#271907: marked as done (Partman doesn't display cciss driver names properly)



Your message dated Fri, 17 Sep 2004 14:17:03 -0400
with message-id <E1C8NI7-00023R-00@newraff.debian.org>
and subject line Bug#271907: fixed in partman 57
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 16 Sep 2004 01:46:07 +0000
>From lieb@wildopensource.com Wed Sep 15 18:46:07 2004
Return-path: <lieb@wildopensource.com>
Received: from ottawa.wildopensource.com [192.139.46.141] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1C7lLa-0001GE-00; Wed, 15 Sep 2004 18:46:07 -0700
Received: from dh3.suntan.fremont.ca.us (dsl081-061-011.sfo1.dsl.speakeasy.net [64.81.61.11])
	(using SSLv3 with cipher RC4-MD5 (128/128 bits))
	(No client certificate requested)
	by ottawa.wildopensource.com (Postfix) with ESMTP
	id 8D482AFB2A; Wed, 15 Sep 2004 21:46:02 -0400 (EDT)
From: Jim Lieb <lieb@wildopensource.com>
Organization: Wild Open Source Inc.
To: submit@bugs.debian.org
Subject: Partman doesn't display cciss driver names properly
Date: Wed, 15 Sep 2004 18:45:40 -0700
User-Agent: KMail/1.5
Cc: dann frazier <dannf@hp.com>,
	"Henry L. Hall" <hlh@wildopensource.com>
MIME-Version: 1.0
Content-Type: Multipart/Mixed;
  boundary="Boundary-00=_EBPSBIgNSVB3HaN"
Message-Id: <[🔎] 200409151845.40206.lieb@wildopensource.com>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 


--Boundary-00=_EBPSBIgNSVB3HaN
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: partman

This is a re-submit to add the package header line.  Disreard
the previous email w/ this same subject line.  Sorry.

Partman doesn't know how to display the info for various integrated
raid controllers.  In particular, it cannot display for the HP SMART
controller (cciss).  This patch properly parses and displays the
controller.

Patch set follows as attachment

Jim

-- 
*************
Jim Lieb			Wild Open Source Inc.
lieb@wildopensource.com		Cell: 831.295.9317
Office: 831.421.0883            Fax:  831.421.0885

--Boundary-00=_EBPSBIgNSVB3HaN
Content-Type: text/x-diff;
  charset="us-ascii";
  name="partman.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="partman.patch"

Index: partman/debian/changelog
===================================================================
--- partman/debian/changelog	(revision 21745)
+++ partman/debian/changelog	(working copy)
@@ -1,3 +1,10 @@
+partman (57) unstable; urgency=HIGH
+
+  * Jim Lieb
+    - add correct name handling of cciss raid controllers
+
+ -- Jim Lieb <lieb@wildopensource.com>  Wed,  8 Sep 2004 16:00:00 -0700
+
 partman (56) unstable; urgency=low
 
   * Joey Hess
Index: partman/definitions.sh
===================================================================
--- partman/definitions.sh	(revision 21745)
+++ partman/definitions.sh	(working copy)
@@ -501,6 +501,40 @@
 	    db_metaget partman/text/scsi_partition description
 	    printf "$RET" ${scsinum} ${bus} ${target} ${lun} ${part} ${linux}
 	    ;;
+	/dev/cciss/*)
+	    # /dev/cciss/hostN/targetM/disc is 2.6 form
+	    # /dev/cciss/discM/disk seems to be 2.4 form
+	    line=`echo $1 | sed 's,/dev/cciss/\([a-z]*\)\([0-9]*\)/\(.*\),\1 \2 \3,'`
+	    cont=`echo "$line" | cut -d" " -f2`
+	    host=`echo "$line" | cut -d" " -f1`
+	    line=`echo "$line" | cut -d" " -f3`
+	    if [ "$host" = host ] ; then
+	       line=`echo "$line" | sed 's,target\([0-9]*\)/\([a-z]*\)\(.*\),\1 \2 \3,'`
+	       lun=`echo  "$line" | cut -d" " -f1`
+	       disc=`echo "$line" | cut -d" " -f2`
+	       part=`echo "$line" | cut -d" " -f3`
+	    else
+	       line=`echo "$line" | sed 's,disc\([0-9]*\)/\([a-z]*\)\(.*\),\1 \2 \3,'`
+	       lun=`echo  "$line" | cut -d" " -f1`
+	       if [ "$lun" > 15 ] ; then
+	          cont=$(($lun / 16))
+		  lun=$(($lun % 16))
+	       else
+		  cont=0
+	       fi
+	       disc=`echo "$line" | cut -d" " -f2`
+	       part=`echo "$line" | cut -d" " -f3`
+	    fi
+	    linux=$(mapdevfs $1)
+	    linux=${linux#/dev/}
+	    if [ "$disc" = disc ] ; then
+	       db_metaget partman/text/scsi_disk description
+	       printf "$RET" ".CCISS" "-" ${cont} ${lun} ${linux}
+	    else
+	       db_metaget partman/text/scsi_partition description
+	       printf "$RET" ".CCISS" "-" ${cont} ${lun} ${part} ${linux}
+	    fi
+	    ;;
 	/dev/md/*)
 	    device=`echo "$1" | sed -e "s/.*md\/\?\(.*\)/\1/"`
 	    type=`grep "^md${device}[ :]" /proc/mdstat | sed -e "s/^.* : active raid\([[:alnum:]]\).*/\1/"`

--Boundary-00=_EBPSBIgNSVB3HaN--


---------------------------------------
Received: (at 271907-close) by bugs.debian.org; 17 Sep 2004 18:23:22 +0000
>From katie@ftp-master.debian.org Fri Sep 17 11:23:22 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1C8NOE-0000g0-00; Fri, 17 Sep 2004 11:23:22 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1C8NI7-00023R-00; Fri, 17 Sep 2004 14:17:03 -0400
From: Joey Hess <joeyh@debian.org>
To: 271907-close@bugs.debian.org
X-Katie: $Revision: 1.51 $
Subject: Bug#271907: fixed in partman 57
Message-Id: <E1C8NI7-00023R-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Fri, 17 Sep 2004 14:17:03 -0400
Delivered-To: 271907-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Source: partman
Source-Version: 57

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

partman_57.dsc
  to pool/main/p/partman/partman_57.dsc
partman_57.tar.gz
  to pool/main/p/partman/partman_57.tar.gz
partman_57_i386.udeb
  to pool/main/p/partman/partman_57_i386.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 271907@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Joey Hess <joeyh@debian.org> (supplier of updated partman 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: Fri, 17 Sep 2004 13:57:09 -0400
Source: partman
Binary: partman
Architecture: source i386
Version: 57
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Joey Hess <joeyh@debian.org>
Description: 
 partman    - Partition the storage devices (partman) (udeb)
Closes: 271907
Changes: 
 partman (57) unstable; urgency=low
 .
   * Jim Lieb
     - add correct name handling of cciss raid controllers. Closes: #271907
   * Updated translations:
     - Bulgarian (bg.po) by Ognyan Kulev
     - Catalan (ca.po) by Jordi Mallach
     - Czech (cs.po) by Miroslav Kure
     - Danish (da.po) by Claus Hindsgaul
     - German (de.po) by Dennis Stampfer
     - Greek, Modern (1453-) (el.po) by Greek Translation Team
     - Croatian (hr.po) by Krunoslav Gernhard
Files: 
 66f2d9ea0fe51c1c1c65716fbdc2add8 628 debian-installer standard partman_57.dsc
 cf70502b7612aaba9228a60dcd622840 118415 debian-installer standard partman_57.tar.gz
 dd086f3cc68ee2a1b9ae83717fdf3d89 106320 debian-installer standard partman_57_i386.udeb
package-type: udeb

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

iD8DBQFBSyXc2tp5zXiKP0wRAk/AAJ0fAl1uGNFlnoU/mqpvxCv0TepPEQCfXhmV
ERJdwZoXTVuUWGy3zQj2yAY=
=WUct
-----END PGP SIGNATURE-----



Reply to: