Commit:     89f97ad1894ab518b05b798906085fb3d1b2d00f
Parent:     e25db641c0e6dd49c5db24dbe154048d4a466727
Author:     Mike Miller <[EMAIL PROTECTED]>
AuthorDate: Mon Dec 18 10:59:39 2006 +0100
Committer:  Jens Axboe <[EMAIL PROTECTED]>
CommitDate: Mon Dec 18 10:59:39 2006 +0100

    [PATCH] cciss: set default raid level when reading geometry fails
    This patch sets a default raid level on a volume that either does not 
    reading the geometry or reports an invalid geometry for whatever reason. We
    were always setting some values for heads and sectors but never set a raid
    level. This caused lots of problems on some buggy firmware. Please consider
    this for inclusion.
    Signed-off-by: Mike Miller <[EMAIL PROTECTED]>
    Signed-off-by: Jens Axboe <[EMAIL PROTECTED]>
 drivers/block/cciss.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index d719a5d..67a6d4a 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -1907,6 +1907,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->raid_level = RAID_UNKNOWN;
                } else {
                        drv->heads = inq_buff->data_byte[6];
                        drv->sectors = inq_buff->data_byte[7];
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to