Bug#261447: marked as done (grub does not detect CCISS devices)

Debian Bug Tracking System owner@bugs.debian.org
Mon, 26 Jul 2004 15:18:14 -0700


Your message dated Mon, 26 Jul 2004 18:02:12 -0400
with message-id <E1BpDXw-0003ln-00@newraff.debian.org>
and subject line Bug#261447: fixed in grub 0.95+cvs20040624-7
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; 26 Jul 2004 02:47:10 +0000
>From horms@vergenet.net Sun Jul 25 19:47:10 2004
Return-path: <horms@vergenet.net>
Received: from sv1.valinux.co.jp [210.128.90.2] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BovW9-0006hJ-00; Sun, 25 Jul 2004 19:47:09 -0700
Received: from tabatha.lab.ultramonkey.org (vagw.valinux.co.jp [210.128.90.14])
	by sv1.valinux.co.jp (Postfix) with ESMTP
	id C71EA70A2D; Mon, 26 Jul 2004 11:47:07 +0900 (JST)
Received: from horms by tabatha.lab.ultramonkey.org with local (Exim 3.36 #1 (Debian))
	id 1BovW7-0006iz-00; Mon, 26 Jul 2004 11:47:07 +0900
Content-Type: multipart/mixed; boundary="===============1512714000=="
MIME-Version: 1.0
From: Horms <horms@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: grub does not detect CCISS devices
X-Mailer: reportbug 2.63
Date: Mon, 26 Jul 2004 11:47:07 +0900
Message-Id: <E1BovW7-0006iz-00@tabatha.lab.ultramonkey.org>
Sender: Horms <horms@tabatha.lab.ultramonkey.org>
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: 

This is a multi-part MIME message sent by reportbug.

--===============1512714000==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: grub
Version: 0.95+cvs20040624-4
Severity: important
Tags: patch

Grub does not seem to be able to detect CCISS raid devices.
The attached patch resolves this problem. I have sumbitted it
upstream.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.26-1-686
Locale: LANG=C, LC_CTYPE=ja_JP.eucJP

Versions of packages grub depends on:
ii  libc6                       2.3.2.ds1-13 GNU C Library: Shared libraries an
ii  libncurses5                 5.4-4        Shared libraries for terminal hand

-- no debconf information

--===============1512714000==
Content-Type: text/x-c; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="grub-cvs.200407260-cciss.patch"

? util/grub-set-default
Index: lib/device.c
===================================================================
RCS file: /cvsroot/grub/grub/lib/device.c,v
retrieving revision 1.24
diff -u -r1.24 device.c
--- grub/lib/device.c	23 May 2004 16:45:35 -0000	1.24
+++ grub/lib/device.c	26 Jul 2004 00:57:20 -0000
@@ -403,6 +403,12 @@
 }
 
 static void
+get_cciss_disk_name (char *name, int controller, int drive)
+{
+  sprintf (name, "/dev/cciss/c%dd%d", controller, drive);
+}
+
+static void
 get_ataraid_disk_name (char *name, int unit)
 {
   sprintf (name, "/dev/ataraid/d%c", unit + '0');
@@ -798,6 +804,40 @@
 	  }
       }
   }
+
+  /* This is for CCISS, its like the DAC960  - we have
+     /dev/cciss/<controller>d<logical drive>p<partition> 
+
+     It currently supports up to 3 controllers, 10 logical volumes
+     and 10 partitions
+
+     Code gratuitously copied from DAC960 above.
+     Horms <horms@verge.net.au> 23rd July 2004
+  */
+  {
+    int controller, drive;
+    
+    for (controller = 0; controller < 2; controller++)
+      {
+	for (drive = 0; drive < 9; drive++)
+	  {
+	    char name[24];
+	    
+	    get_cciss_disk_name (name, controller, drive);
+	    if (check_device (name))
+	      {
+		(*map)[num_hd + 0x80] = strdup (name);
+		assert ((*map)[num_hd + 0x80]);
+		
+		/* If the device map file is opened, write the map.  */
+		if (fp)
+		  fprintf (fp, "(hd%d)\t%s\n", num_hd, name);
+		
+		num_hd++;
+	      }
+	  }
+      }
+  }
 #endif /* __linux__ */
   
   /* OK, close the device map file if opened.  */

--===============1512714000==--

---------------------------------------
Received: (at 261447-close) by bugs.debian.org; 26 Jul 2004 22:08:14 +0000
>From katie@ftp-master.debian.org Mon Jul 26 15:08:14 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 1BpDdl-000604-00; Mon, 26 Jul 2004 15:08:14 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1BpDXw-0003ln-00; Mon, 26 Jul 2004 18:02:12 -0400
From: Robert Millan <rmh@debian.org>
To: 261447-close@bugs.debian.org
X-Katie: $Revision: 1.51 $
Subject: Bug#261447: fixed in grub 0.95+cvs20040624-7
Message-Id: <E1BpDXw-0003ln-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Mon, 26 Jul 2004 18:02:12 -0400
Delivered-To: 261447-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: 
X-CrossAssassin-Score: 2

Source: grub
Source-Version: 0.95+cvs20040624-7

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

grub-disk_0.95+cvs20040624-7_all.deb
  to pool/main/g/grub/grub-disk_0.95+cvs20040624-7_all.deb
grub-doc_0.95+cvs20040624-7_all.deb
  to pool/main/g/grub/grub-doc_0.95+cvs20040624-7_all.deb
grub_0.95+cvs20040624-7.diff.gz
  to pool/main/g/grub/grub_0.95+cvs20040624-7.diff.gz
grub_0.95+cvs20040624-7.dsc
  to pool/main/g/grub/grub_0.95+cvs20040624-7.dsc
grub_0.95+cvs20040624-7_i386.deb
  to pool/main/g/grub/grub_0.95+cvs20040624-7_i386.deb



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

Debian distribution maintenance software
pp.
Robert Millan <rmh@debian.org> (supplier of updated grub 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, 26 Jul 2004 23:39:43 +0200
Source: grub
Binary: grub-disk grub grub-doc
Architecture: source i386 all
Version: 0.95+cvs20040624-7
Distribution: unstable
Urgency: low
Maintainer: Grub Maintainers <pkg-grub-devel@lists.alioth.debian.org>
Changed-By: Robert Millan <rmh@debian.org>
Description: 
 grub       - GRand Unified Bootloader
 grub-disk  - GRUB bootable disk image
 grub-doc   - Documentation for GRand Unified Bootloader
Closes: 239111 261447 261570
Changes: 
 grub (0.95+cvs20040624-7) unstable; urgency=low
 .
   * patches/xfs_freeze.diff: New. Fix grub-install for XFS. (Closes: #239111)
   * update-grub: s/local tmp//g. Thanks again, David. (Closes: #261570)
   * patches/raid_cciss.diff: New. Support for CCISS devices. (Closes: #261447)
   * Use type-handling to auto-generate dpkg archlist for i386 cpus.
     - control.in: New. Set 'Architecture: @i386@' and add type-handling to
       Build-Depends.
     - rules: Auto-generate debian/control in clean target.
Files: 
 9ecc6a0fede724c8ad247ce8230875ec 857 admin optional grub_0.95+cvs20040624-7.dsc
 4256f9d5f1f6dc4f593925826af04dfd 53203 admin optional grub_0.95+cvs20040624-7.diff.gz
 1c34fb89807fb51fe1fa35cf8116863a 348762 admin optional grub_0.95+cvs20040624-7_i386.deb
 e6878cb78f5c8c2e1800e330cffcf4b5 226464 admin optional grub-disk_0.95+cvs20040624-7_all.deb
 49e59bf4d82798334d3d59ba317164a3 259142 doc optional grub-doc_0.95+cvs20040624-7_all.deb

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

iD8DBQFBBXzdC19io6rUCv8RAs89AJ4sKpKGMlMypKgZ5XwtxuVizGrr3QCfWp73
FXfT9xAfiT9p5NlYhNT6do8=
=pidC
-----END PGP SIGNATURE-----