2004-04-06 20:06:16

by Mike Miller (OS Dev)

[permalink] [raw]
Subject: cciss uipdates for 2.6.6xxx [2/2]

This patch fixes a bug where /proc displays 1 less logical volume than is actually configured. This causes problems for some installers.
Please consider this for inclusion.

mikem
-------------------------------------------------------------------------------

diff -burpN lx265-t1/drivers/block/cciss.c lx265-t2/drivers/block/cciss.c
--- lx265-t1/drivers/block/cciss.c 2004-04-06 14:16:39.000000000 -0500
+++ lx265-t2/drivers/block/cciss.c 2004-04-06 14:21:43.000000000 -0500
@@ -210,7 +210,7 @@ static int cciss_proc_get_info(char *buf

pos += size; len += size;
cciss_proc_tape_report(ctlr, buffer, &pos, &len);
- for(i=0; i<h->highest_lun; i++) {
+ for(i=0; i<=h->highest_lun; i++) {
sector_t tmp;

drv = &h->drv[i];