- Timestamp:
- Apr 16, 2019 1:18:25 AM (6 years ago)
- Location:
- trunk/src/VBox/Additions/linux/sharedfolders
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/Makefile.module
r77504 r78135 64 64 VBOXMOD_DEFS += VBOX_WITH_64_BITS_GUESTS 65 65 endif 66 ifneq ($(filter %uek.x86_64,$(KERN_VER)),) 67 VBOXMOD_DEFS += VBOX_UEK 68 endif 66 69 VBOXMOD_CFLAGS := $(call VBOX_GCC_CHECK_CC,-Wno-declaration-after-statement,-Wno-declaration-after-statement,,) 67 70 VBOXMOD_CFLAGS += $(call VBOX_GCC_CHECK_CC,-fno-pie,-fno-pie,,) -
trunk/src/VBox/Additions/linux/sharedfolders/dirops.c
r78134 r78135 1369 1369 struct inode_operations vbsf_dir_iops = { 1370 1370 .lookup = vbsf_inode_lookup, 1371 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0)1371 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) 1372 1372 .atomic_open = vbsf_inode_atomic_open, 1373 1373 #endif -
trunk/src/VBox/Additions/linux/sharedfolders/regops.c
r77976 r78135 1416 1416 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0) 1417 1417 ssize_t cPagesLocked = get_user_pages_unlocked(uPtrFrom, cPages, fWrite, 1 /*force*/, papPages); 1418 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 168) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0) 1419 ssize_t cPagesLocked = get_user_pages_unlocked(current, current->mm, uPtrFrom, cPages, papPages, 1420 fWrite ? FOLL_WRITE | FOLL_FORCE : FOLL_FORCE); 1418 1421 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0) 1419 1422 ssize_t cPagesLocked = get_user_pages_unlocked(current, current->mm, uPtrFrom, cPages, fWrite, 1 /*force*/, papPages); … … 3698 3701 3699 3702 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 10) 3703 3704 # ifdef VBOX_UEK 3705 # undef iov_iter /* HACK ALERT! Don't put anything needing vbsf_iov_iter after this fun! */ 3706 # endif 3707 3700 3708 /** 3701 3709 * This is needed to make open accept O_DIRECT as well as dealing with direct … … 3706 3714 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0) 3707 3715 static ssize_t vbsf_direct_IO(struct kiocb *iocb, struct iov_iter *iter, loff_t offset) 3708 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) 3716 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) || defined(VBOX_UEK) 3709 3717 static ssize_t vbsf_direct_IO(int rw, struct kiocb *iocb, struct iov_iter *iter, loff_t offset) 3710 3718 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 6) … … 3727 3735 return -EINVAL; 3728 3736 } 3737 3729 3738 #endif 3730 3739 -
trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.h
r77961 r78135 99 99 #endif /* < 2.6.0 */ 100 100 101 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0) 101 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0) \ 102 && (!defined(RHEL_MAJOR) || RHEL_MAJOR != 6) 102 103 DECLINLINE(void) set_nlink(struct inode *pInode, unsigned int cLinks) 103 104 {
Note:
See TracChangeset
for help on using the changeset viewer.