summaryrefslogtreecommitdiffstats
path: root/sys/fs/nwfs
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>2000-11-04 02:05:25 +0000
committerken <ken@FreeBSD.org>2000-11-04 02:05:25 +0000
commitb1f245fc31c6671599be500d6e488985b665e286 (patch)
tree298634e3c04a6f9aa172185a9f6e6effef1aa79d /sys/fs/nwfs
parent9b7d83c3842e1e892a8efd791970211df5aef9ae (diff)
downloadFreeBSD-src-b1f245fc31c6671599be500d6e488985b665e286.zip
FreeBSD-src-b1f245fc31c6671599be500d6e488985b665e286.tar.gz
Fix a problem with the previous revision (1.42) that showed up with audio
CDs. With audio CDs, you can't just do a READ(10) call on most drives without first setting the blocksize with a mode select command. The disklabel code does a read of the first sector of the media to find a label if it exists. This caused drives to return an error when an audio CD was in the drive, due to the problem described above. The solution is to read the table of contents on the CD, and only attempt to read the disklabel if the first track is a data track. This works on all the various CD and DVD media I have tried, but further testing (especially with Video CDs and other mode 2 media) will be needed to determine if this is a universal solution.
Diffstat (limited to 'sys/fs/nwfs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud