title: Writing to a files raw disk sectors
body: <p>I'm working on a OS portable database server and I want to know what is the best way to read/write to a index file disk sectors without locking the entire file. My database disk manager have a bitmap that keep track of where all used/unused the sectors are inside the index file. Also, is there a OS portable way of doing this?</p>