2002-10-16 21:36:54

by Cameron, Steve

[permalink] [raw]
Subject: [PATCH 5/8] 2.5.43 cciss zero cyls too


Zero out cylinders when zeroing out other disk info.

diff -urN linux-2.5.43-d/drivers/block/cciss.c linux-2.5.43-e/drivers/block/cciss.c
--- linux-2.5.43-d/drivers/block/cciss.c Wed Oct 16 08:22:21 2002
+++ linux-2.5.43-e/drivers/block/cciss.c Wed Oct 16 08:24:19 2002
@@ -810,6 +810,7 @@
/* zero out the disk size info */
h->drv[logvol].nr_blocks = 0;
h->drv[logvol].block_size = 0;
+ h->drv[logvol].cylinders = 0;
h->drv[logvol].LunID = 0;
return(0);
}