* [PATCH 1/1] cciss: add init of drv->cylinders back to cciss_geometry_inquiry
@ 2007-04-04 17:24 Mike Miller (OS Dev)
0 siblings, 0 replies; only message in thread
From: Mike Miller (OS Dev) @ 2007-04-04 17:24 UTC (permalink / raw)
To: akpm, jens.axboe; +Cc: linux-kernel, linux-scsi, coughlan, coldwell
PATCH 1/1
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.
Please consider this for inclusion.
Signed-off-by: Mike Miller <mike.miller@hp.com>
------------------------------------------------------------------------------------------
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index 072e18e..14d7806 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -1915,6 +1915,7 @@ static void cciss_geometry_inquiry(int c
"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];
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-04-04 17:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-04 17:24 [PATCH 1/1] cciss: add init of drv->cylinders back to cciss_geometry_inquiry Mike Miller (OS Dev)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®