Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-20-2006, 05:03 AM   #1
Registered: Jan 2003
Distribution: Debian
Posts: 69

Rep: Reputation: 15
clearing CD cache

Hello everybody!

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,
Old 09-21-2006, 04:55 PM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.

--- rod.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
clearing cache on squid proxy shadowsurfer Linux - Newbie 9 04-15-2008 11:33 PM
clearing cache, web cache on linux varunbihani Linux - General 2 12-08-2005 12:02 PM
Clearing KDesktop Run Command Cache toadatrix SUSE / openSUSE 1 10-18-2004 02:05 PM
DNS cache clearing n.antonio Linux - Software 0 05-11-2003 08:44 PM
clearing cache waxiem Linux - General 1 03-02-2003 09:42 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration