Changeset 77004 in vbox for trunk/src/VBox/Additions/linux
- Timestamp:
- Jan 26, 2019 2:11:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/regops.c
r76746 r77004 861 861 # endif /* KERNEL_VERSION >= 2.6.24 */ 862 862 863 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 10) 864 /** 865 * This is needed to make open accept O_DIRECT as well as dealing with direct 866 * I/O requests if we don't intercept them earlier. 867 */ 868 # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0) 869 static ssize_t sf_direct_IO(struct kiocb *iocb, struct iov_iter *iter) 870 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0) 871 static ssize_t sf_direct_IO(struct kiocb *iocb, struct iov_iter *iter, loff_t offset) 872 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) 873 static ssize_t sf_direct_IO(int rw, struct kiocb *iocb, struct iov_iter *iter, loff_t offset) 874 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 6) 875 static ssize_t sf_direct_IO(int rw, struct kiocb *iocb, const struct iovec *iov, loff_t offset, unsigned long nr_segs) 876 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 55) 877 static int sf_direct_IO(int rw, struct kiocb *iocb, const struct iovec *iov, loff_t offset, unsigned long nr_segs) 878 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 41) 879 static int sf_direct_IO(int rw, struct file *file, const struct iovec *iov, loff_t offset, unsigned long nr_segs) 880 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 35) 881 static int sf_direct_IO(int rw, struct inode *inode, const struct iovec *iov, loff_t offset, unsigned long nr_segs) 882 # elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 26) 883 static int sf_direct_IO(int rw, struct inode *inode, char *buf, loff_t offset, size_t count) 884 # else 885 static int sf_direct_IO(int rw, struct inode *inode, struct kiobuf *, unsigned long, int) 886 # endif 887 { 888 TRACE(); 889 return -EINVAL; 890 } 891 # endif 892 863 893 struct address_space_operations sf_reg_aops = { 864 894 .readpage = sf_readpage, … … 871 901 .commit_write = simple_commit_write, 872 902 # endif 903 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 10) 904 .direct_IO = sf_direct_IO, 905 # endif 873 906 }; 874 907
Note:
See TracChangeset
for help on using the changeset viewer.