View topic - Regarding start sector usage in readblock()

Regarding start sector usage in readblock()

anything that doesn't fit to other groups.

Regarding start sector usage in readblock()

Postby hello » Mon May 21, 2012 1:05 pm

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.
hello
Senior Member
 
Posts: 101
Joined: Tue May 08, 2012 1:09 pm

Re: Regarding start sector usage in readblock()

Postby maschoen » Tue May 22, 2012 1:22 pm

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.
maschoen
QNX Master
 
Posts: 2715
Joined: Wed Jun 25, 2003 5:18 pm


Return to General Programming

Who is online

Users browsing this forum: No registered users and 1 guest