clearing CD cache
I'm trying to make sure that data I read from a CD is correct. The idea is reading 2 times, hashing the read data and comparing the hashes. The problem is that I'm working on potentially very small files, so two subsequent reads may cause the CD to be physically read only 1 time, with the data that I get when reading the file the 2nd time coming from the cache.
So, I need to clear the CD cache between the two reads. I'd love to be able to do that in C++, but basically everything would be helpful (command-line tool, assembler... hell, gimme even a lisp script ;) )
Thanks a lot in advance,
You mention reading files; what makes you think the existing driver is not already doing what you are trying to do?
I've never ventured into those waters, but it sounds like a package such as cdparanoia would contain the basis of the code necessary to access CDs at such a low level.
|All times are GMT -5. The time now is 04:04 AM.|