[vbox-dev] Python mmap issue with shared folders

Frank Mehnert frank.mehnert at oracle.com
Fri Sep 16 04:27:35 PDT 2011

On Friday 16 September 2011 13:15:40 Michael Sarahan wrote:
> Hello,
> I have encountered a possible problem with python's memory mapping for
> files in shared folders.  My testing system is a Windows 7 x64 host
> with a Ubuntu 10.04 x86 guest.  When opening a file as a mmap by doing
> the following:
>     with open(fname, "r+b") as f:
>         # memory-map the file, size 0 means whole file
>         fmap = mmap.mmap(f.fileno(), 0)
> I get an error message:
> error: [Errno 22] Invalid argument
> This is a minor issue - copying the file from the shared folder into
> the virtual machine's local storage makes the issue disappear.
> Is this worth filing a bug report, or not?

There is already a bug report for this problem.

Kind regards,

Dr.-Ing. Frank Mehnert
Senior Manager Software Development Desktop Virtualization, VirtualBox
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany

Hauptverwaltung: Riesstr. 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Jürgen Kunz, Marcel van de Molen, Alexander van der Ven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://www.virtualbox.org/pipermail/vbox-dev/attachments/20110916/4b0402a2/attachment-0001.bin 

More information about the vbox-dev mailing list