Regarding start sector usage in readblock()

Hi,
I need to write a test data to a logical partition in full using writeblock().
Suppose am having a partition /dev/hd0t12 - Start cylinder - 501,
End cylinder- 3823 Blocks - 53383995 Size - 26066 MB. I opened fd = open( “/dev/hd0t12”, O_RDWR); Could you please mention how to use writeblock() in this situation. As the total number of blocks is greater than size of int, this api fails. Please help.

Thanks,
Hello.

I think you can do what you want with a combination of open64, lseek64 and write. You might think there should be a writeblock64, but I can’t find one.