Transition to support for 52 partitions
by from OpenBSD Journal on (#71FBZ)
In -current,Theo de Raadt (deraadt@) hasstartedthe transition to support for 52 disk partitions(on a subset of hardware architectures):
CVSROOT:/cvsModule name:srcChanges by:deraadt@cvs.openbsd.org2025/11/13 13:59:14Modified files:sys/dev/ata : wd.c sys/kern : kern_pledge.c sys/sys : disklabel.h dkio.h sys/scsi : sd.c sys/dev/isa : fdreg.h sys/arch/sparc64/dev: fd.c Log message:Begin transition to 52-partition support. The partition encoding usedto be lowest 4 bits of dev_t, and now becomes 6. This supplies 64partitions in struct disklabel.d_partitions[MAXPARTITIONSUNIT], but weonly use 52 of these slots (an architecture can be either 16 partitionor 52 partition, depending on MD define MAXPARTITIONS). The52-partition limit is due to single-character representation limit ofa-zA-Z. We supply a backwards-compat ioctl for a while which can readan disklabel structure.