[PATCH] cciss: add init of drv->cylinders back to cciss_geometry_inquiry
authorMike Miller (OS Dev) <mikem@beardog.cca.cpqcorp.net>
Thu, 5 Apr 2007 02:08:23 +0000 (19:08 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 5 Apr 2007 04:12:47 +0000 (21:12 -0700)
This patch adds initialization of drv->cylinders back into the failing case in
cciss_geometry_inquiry. I inadvertently removed it in one my 2TB updates.

Signed-off-by: Mike Miller <mike.miller@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/cciss.c

index 072e18e6d76de505d2ce2cfec19db1fefc1544d0..14d780666c0a40257e4c6aa4dbb2a06d460b462c 100644 (file)
@@ -1915,6 +1915,7 @@ static void cciss_geometry_inquiry(int ctlr, int logvol,
                               "does not support reading geometry\n");
                        drv->heads = 255;
                        drv->sectors = 32;      // Sectors per track
+                       drv->cylinders = total_size + 1;
                        drv->raid_level = RAID_UNKNOWN;
                } else {
                        drv->heads = inq_buff->data_byte[6];