Re: LBA access on harddrives

new topic     » goto parent     » topic index » view thread      » older message » newer message
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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu