2002-10-11 14:06:44

by Cameron, Steve

[permalink] [raw]
Subject: [PATCH] 2.5.41, cciss (1 of 3)


Zero out cylinders too, when zeroing out disk size info.

diff -urN linux-2.5.41-n/drivers/block/cciss.c linux-2.5.41-o/drivers/block/cciss.c
--- linux-2.5.41-n/drivers/block/cciss.c Wed Oct 9 14:29:15 2002
+++ linux-2.5.41-o/drivers/block/cciss.c Wed Oct 9 15:08:22 2002
@@ -829,6 +829,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);
}