Quantcast
Channel: VMware Communities : Discussion List - Virtual Disk Development Kit
Viewing all articles
Browse latest Browse all 2039

Reading from harddisk and Writing as VMDK using VDDK

$
0
0

Hi,

 

I wrote a program to read from the hard disk(raw read) and write to a VIXDISKLIB_DISK_MONOLITHIC_SPARSE file. While writing I calculated the StartSector (2nd parameter to VixDiskLib_Write) like this

 

1. Start Sector - "Actual Disk Offset / 512"

2. Number of sectors - "no of blocks to write * 4096" (each block is of size 2MB).

 

The file gets created and gets attached - but the data is raw.

 

Is the way in which I write the data is correct? How can I verify whether each block I write is correct? The system I am testing this is Windows 7 & Visual Studio 2008. Help is really appericiated.

 

Thanks,

./Siva.


Viewing all articles
Browse latest Browse all 2039

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>