patch-2.0.10 linux/drivers/block/genhd.c

Next file: linux/drivers/block/ide.c
Previous file: linux/drivers/block/cmd640.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.9/linux/drivers/block/genhd.c linux/drivers/block/genhd.c
@@ -326,7 +326,9 @@
 			 */
 			for (i = 0; i < 4 ; i++) {
 				struct partition *q = &p[i];
-				if (NR_SECTS(q) && q->sector == 1 && q->end_sector == 63) {
+				if (NR_SECTS(q)
+				   && (q->sector & 63) == 1
+				   && (q->end_sector & 63) == 63) {
 					unsigned int heads = q->end_head + 1;
 					if (heads == 32 || heads == 64 || heads == 128) {
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov