666cartman
Programmer
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.
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.