Messages in this thread | | | Date | Wed, 23 Jun 2004 22:24:59 +0100 | From | viro@parcelfa ... | Subject | Re: problems with alloc_disk in genhd.c |
| |
On Wed, Jun 23, 2004 at 04:18:29PM -0500, mikem@beardog.cca.cpqcorp.net wrote: > In the ioctl we are doing > > /* count partitions 1 to 15 with sizes > 0 */ > for(i=0; i <MAX_PART; i++) {
... followed by what?
Array of per-partition structures contains the data for partitions, obviously. And drivers have no damn business to ever touching it directly, while we are at it.
BTW, take a look at the comment and loop following it. And note that you are doing 16 iterations in the loop, contrary to what the comment above it says. - 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/
| |