[vbox-dev] vdiRead and vdiWrite asserts question

Ribhi Kamal rbhkamal at gmail.com
Mon Jun 3 21:25:57 GMT 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
512.

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?

Thanks,
-- 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