Partition detection mechanism
Well, I found out that Linux now uses the number of minor device IDs for a block device to determine if it should check for partitions. Most block devices seem to have that hard coded.
If the number of minors is 1 then Linux doesn't check for partitions. That's because one minor ID is used to reference the entire disk device, and the rest are used for partitions. If the number of minors is greater than 1 then Linux does check for partitions.
The SCSI disk driver handles many of the SATA controllers like the one I have. The SCSI disk driver "sd.c" has the number of minor devices hard coded to 16, so it will always check for partitions on every SATA disk or SCSI disk.
Now that detection of partitions has been moved from each individual driver into a central module, it would be helpful to have a kernel option to disable partition detection on named disk devices. It's possible to disable probing, but I'm assuming that will prevent the disk drive from being detected by the driver at all.
In my case, I can patch the SCSI disk driver to disable support of partitions, but I think I'm just going to ignore the error.
Last edited by Erik_FL; 08-30-2006 at 10:14 PM.
|