VirtualBox

Changeset 39704 in vbox for trunk/src


Ignore:
Timestamp:
Jan 4, 2012 10:44:40 PM (13 years ago)
Author:
vboxsync
Message:

Additions/linux/sharedfolders: make sure all data is written out when closing a file. Only use on kernels where it is available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/regops.c

    r39698 r39704  
    430430    BUG_ON(!sf_r);
    431431
     432#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 6)
    432433    /* See the smbfs source (file.c). mmap in particular can cause data to be
    433434     * written to the file after it is closed, which we can't cope with. */
    434435    filemap_write_and_wait(inode->i_mapping);
     436#endif
    435437    rc = vboxCallClose(&client_handle, &sf_g->map, sf_r->handle);
    436438    if (RT_FAILURE(rc))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette