mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] cciss: set default raid level when reading geometry fails
This patch sets a default raid level on a volume that either does not support 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. Thanks, mikem Signed-off-by: Mike Miller <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
e25db641c0
commit
89f97ad189
1 changed files with 1 additions and 0 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue