Re: [code] Unlimited partitions, a try

From: H. Peter Anvin
Date: Fri Oct 05 2007 - 18:58:20 EST


Jan Engelhardt wrote:
On Oct 5 2007 15:11, H. Peter Anvin wrote:
Jan Engelhardt wrote:
15 partitions (at least for sd_mod devices) are too few.
Now when we have 20-bit minors, can't we simply recycle some of the higher bits for additional partitions, across the board? 63 partitions seem to have been sufficient; at least I haven't heard anyone complain about that for 15 years.

GPT allows up to 128 partitions, and the linux partition code currently allows for up to MAX_PART (256). Assuming 1048576/128, that would give 8192 disks. With dynamic minor allocation and reuse, all that goes away and the limit becomes a bit less than 1048576 _partitions_.

Yes, but you're proposing something with substantially higher switch threshold...

-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/