[vbox-dev] vdiRead and vdiWrite asserts question

Ribhi Kamal rbhkamal at gmail.com
Mon Jun 3 14:25:57 PDT 2013

I'm messing around with adding some conversions of raw to/from virtual
disks to the API and noticed that the functions vdiRead and vdiWrite (in
VDI.cpp) assert whenever the amount being read/written is not a multiple of

Do these functions break when the byte count is not a multiple of 512 or is
this just a sanitary check?
Are these asserts valid when dealing with binary image files (they could
have any size) vs block devices?

-- Ribhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20130603/bb95d909/attachment.html 

More information about the vbox-dev mailing list