906b93ef09
Because we no longer return an error message when no disklabel was found the scsipi/cd.c code took the label we generated. The problem is that the readdisklabel code was clearing the partition information, which included the default partition information setup by the cd.c code. Previously when no disklabel was found we returned an error, which caused the cd.c code to generate a new default label which included an a partition. According to the man page for readdisklabel: Unspecified fields in lp should be set to zero Therefore we have no reason to clear the partition info, as it's already clear or contains useful default partition info. This means if we don't find a label on disk, the default label is left as is. I would expect the driver to have setup a much more sensible default label than we could fake at this level. Also don't hard code the number of partitions to the maximum. This better matches other platforms (i386) |
||
---|---|---|
bin | ||
contrib/sys | ||
crypto | ||
dist | ||
distrib | ||
doc | ||
etc | ||
games | ||
gnu | ||
include | ||
lib | ||
libexec | ||
regress | ||
rescue | ||
sbin | ||
share | ||
sys | ||
tools | ||
usr.bin | ||
usr.sbin | ||
x11 | ||
build.sh | ||
BUILDING | ||
Makefile | ||
Makefile.inc | ||
UPDATING |