Problem writing on shared drive via C++ ofstream
|Reported by:||YellowMan||Owned by:|
|Guest type:||Linux||Host type:||Linux|
My configuration is: -- VirtualBox 4.1.8 with GuestAdditions -- Host: GNU/Linux Debian squeeze -- Guest: GNU/Linux Ubuntu Gutsy
Using the C++ ofstream library (in the gest OS) to write a binary file on a shared folder (on the host drive), the program writes only 'zeros' (automounted, but same behavior when manualy mounted). The output is Ok when writing small files, or if the output is on the guest file-system. Also, when using fwrite (stdio.h) instead of write (ofstream) it works fine.
This is very similar to a bug that was said to be fixed in virtualbox 2.2.4 : virtualbox/ticket/1187