Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Harddisc Benchmark for LINUX

Status
Not open for further replies.

666cartman

Programmer
Aug 27, 2002
20
DE
Hello,

At the moment i am trying to program a Harddisc Benchmark for Linux, my problem is how to get the size of the Harddisc and how to read it from block 0 to the very end of it end meassuring the speed.
I tried it using fseek,lseek, but i am only able to determine the size of a file (this works perfectly :)).

As soon as i try to get the size of a dir or /dev/hda It meassures wrong.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top