VirtualBox

Changeset 77946 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Mar 29, 2019 3:25:15 AM (6 years ago)
Author:
vboxsync
Message:

linux/vboxsf: Implemented our own .sendfile for 2.5.30 - 2.6.23 that does not muck around with the page cache unless there are writable mmap'ings of the file. This should be the final page cache issue I'm aware of. [build fix] bugref:9172

File:
1 edited

Legend:

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

    r77945 r77946  
    10211021 * generic_file_sendfile() does.
    10221022 */
    1023 static ssize_t vbsf_reg_sendfile(struct file *pFile, loff_t *poffFile, size_t cbToSend, read_actor_t pfnActor, void *pvUser)
     1023static ssize_t vbsf_reg_sendfile(struct file *pFile, loff_t *poffFile, size_t cbToSend, read_actor_t pfnActor,
     1024# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 8)
     1025                                 void *pvUser
     1026# else
     1027                                 void __user *pvUser
     1028# endif
     1029                                )
    10241030{
    10251031    struct inode           *inode = VBSF_GET_F_DENTRY(pFile)->d_inode;
     
    10781084                read_descriptor_t     RdDesc;
    10791085                RdDesc.count    = cbToSend;
     1086# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 8)
    10801087                RdDesc.arg.data = pvUser;
     1088# else
     1089                RdDesc.buf      = pvUser;
     1090# endif
    10811091                RdDesc.written  = 0;
    10821092                RdDesc.error    = 0;
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