VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
3 Replies Last post: Oct 30, 2009 2:11 PM by sudarsan  

VixDiskLib Reading/Writing posted: Oct 28, 2009 5:19 AM

Click to view tos2k's profile Expert 307 posts since
May 11, 2007
I am a little confused on the vddk api dokcumentation

Read Sectors From a Disk
VixDiskLib_Read() reads a range of sectors from an open virtual disk. You specify the beginning sector and the number of sectors. Sector size could vary, but in <vixDiskLib.h> it is defined as 512 bytes.
vixError = VixDiskLib_Read(srcHandle, i, j, buf);

Write Sectors To a Disk
VixDiskLib_Write() writes one or more sectors to an open virtual disk. This function expects the fourth parameter buf to be VIXDISKLIB_SECTOR_SIZE bytes long.
vixError = VixDiskLib_Write(newDisk.Handle(), i, j, buf);


Is it correct that the size in fact can vary for both, reading and writing?

Tos2k

Re: VixDiskLib Reading/Writing

2. Oct 30, 2009 12:56 PM in response to: tos2k
Click to view fixitchris's profile Expert 547 posts since
Dec 8, 2006
Interesting... I would like to know also.

Re: VixDiskLib Reading/Writing

3. Oct 30, 2009 2:11 PM in response to: fixitchris
Click to view sudarsan's profile Expert 263 posts since
Sep 20, 2006
Probably missing "times j" in the sentence ....

-Sudarsan

Developer Social Media

Communities