summaryrefslogtreecommitdiff
path: root/lib/libc/softfloat/softfloat-specialize
diff options
context:
space:
mode:
authorchris <chris@NetBSD.org>2004-09-26 11:57:53 +0000
committerchris <chris@NetBSD.org>2004-09-26 11:57:53 +0000
commit906b93ef09534bb7e6d6a7a6ebbf0b63dd98bdf9 (patch)
treed9207f3b32a9eb9674b44ad314db9df60c135e67 /lib/libc/softfloat/softfloat-specialize
parentf3084b1ba9e8142a17532835a65d7a0ae41a159f (diff)
Fix for cd disklabel issues on arm machines.
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)
Diffstat (limited to 'lib/libc/softfloat/softfloat-specialize')
0 files changed, 0 insertions, 0 deletions