Re: LBA access on harddrives
- Posted by jimcbrown (admin) Oct 27, 2012
- 1162 views
eukat said...
Is there a function i am not finding, related to puts()ing, or poking, or writing, or reading to/from LBA addresses on a harddrive? I see nothing under low level io.e operations.
No. Under Linux/GNU and the BSDs, you simply open the hard disk, do some math to convert the LBA address into an index for a specific byte, then call seek() and puts() and gets() normally. There's no need to go to the low-level IO to do this.
std/io.e is for high level io operations, we currently don't have a library for low-level ones.