genodelabs / genode

Genode OS Framework
https://genode.org/
Other
1.08k stars 255 forks source link

Zero-sized files in VirtualBox shared-folder #4189

Open cnuke opened 3 years ago

cnuke commented 3 years ago

I encountered the problem that files copied via the shared-folder are created but have no content (the directory entry is there but the file size is zero). After I removed a large file from my shared-folder directory via the system-shell in Sculpt, newly created files are copied completely again.

My best guess is that could be related to the artificial statfs information supplied to the guest-additions.

chelmuth commented 3 years ago

The original VirtualBox shared-folder implementation just reports the information of the file system, where the shared folder is located. I guess the rationale is: The user running vbox is presented the max/available quota on host statfs(), which also applies to the VM process storage operations.