NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/47676: Off-by-one error in reported CD capacity means last sector cannot be read
The following reply was made to PR kern/47676; it has been noted by GNATS.
From: Reinoud Zandijk <reinoud%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost,
markk%clara.co.uk@localhost
Subject: Re: kern/47676: Off-by-one error in reported CD capacity means last
sector cannot be read
Date: Thu, 28 Mar 2013 19:07:29 +0100
The real reason of the error might not even be in NetBSD's cd.c itself though
i'm preparing a patch to cleanup things.
What is going on is that the device is lying to you! The on disk low level CD
format is quite overcomplex complete with sector data interleaving etc. it
was also originally designed for audio.
What can be done is on detection of a CD-R, adjust the size of the tracks as
per definition of mmc; i might need to add 2 sectors.
Home |
Main Index |
Thread Index |
Old Index