VirtualBox

忽略:
時間撮記:
2007-12-6 下午01:06:54 (17 年 以前)
作者:
vboxsync
訊息:

Linux Additions: implemented a simple sendfile using Linux kernel defaults. This should fix web servers accessing shared folders.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Additions/linux/sharedfolders/regops.c

    r5259 r5984  
    390390
    391391struct file_operations sf_reg_fops = {
    392         .read    = sf_reg_read,
    393         .open    = sf_reg_open,
    394         .write   = sf_reg_write,
    395         .release = sf_reg_release,
    396         .mmap    = sf_reg_mmap
     392        .read     = sf_reg_read,
     393        .open     = sf_reg_open,
     394        .write    = sf_reg_write,
     395        .release  = sf_reg_release,
     396        .mmap     = sf_reg_mmap,
     397#if LINUX_VERSION_CODE >= KERNEL_VERSION (2, 6, 0)
     398        .sendfile = generic_file_sendfile,
     399        .fsync    = simple_sync_file,
     400#endif
    397401};
    398402
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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