Re: Partitioning problems in 2.4.11
Alexander Viro (viro@math.psu.edu)
Thu, 11 Oct 2001 19:30:55 -0400 (EDT)
Rediffed against 13-pre1:
--- linux/fs/partitions/check.c Thu Oct 11 19:25:03 2001
+++ linux/fs/partitions/check.c.fixed Thu Oct 11 18:39:41 2001
@@ -386,6 +386,12 @@
if (!size || minors == 1)
return;
+ if (dev->sizes) {
+ dev->sizes[first_minor] = size >> (BLOCK_SIZE_BITS - 9);
+ for (i = first_minor + 1; i < end_minor; i++)
+ dev->sizes[i] = 0;
+ }
+ blk_size[dev->major] = dev->sizes;
check_partition(dev, MKDEV(dev->major, first_minor), 1 + first_minor);
/*
@@ -395,7 +401,6 @@
if (dev->sizes != NULL) { /* optional safeguard in ll_rw_blk.c */
for (i = first_minor; i < end_minor; i++)
dev->sizes[i] = dev->part[i].nr_sects >> (BLOCK_SIZE_BITS - 9);
- blk_size[dev->major] = dev->sizes;
}
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/