LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 09-20-2006, 05:03 AM   #1
grayFalcon
Member
 
Registered: Jan 2003
Distribution: Debian
Posts: 68

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

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


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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/Novell 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


All times are GMT -5. The time now is 03:03 AM.

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