Changeset 76745 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Jan 9, 2019 4:30:17 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.h
r76733 r76745 40 40 41 41 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) 42 # include <linux/backing-dev.h>42 # include <linux/backing-dev.h> 43 43 #endif 44 44 … … 114 114 extern int sf_inode_revalidate(struct dentry *dentry); 115 115 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) 116 # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)116 # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) 117 117 extern int sf_getattr(const struct path *path, struct kstat *kstat, 118 118 u32 request_mask, unsigned int query_flags); 119 # else119 # else 120 120 extern int sf_getattr(struct vfsmount *mnt, struct dentry *dentry, 121 121 struct kstat *kstat); 122 # endif122 # endif 123 123 extern int sf_setattr(struct dentry *dentry, struct iattr *iattr); 124 124 #endif … … 139 139 140 140 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) 141 # define STRUCT_STATFS struct statfs141 # define STRUCT_STATFS struct statfs 142 142 #else 143 # define STRUCT_STATFS struct kstatfs143 # define STRUCT_STATFS struct kstatfs 144 144 #endif 145 145 int sf_get_volume_info(struct super_block *sb, STRUCT_STATFS * stat); 146 146 147 147 #ifdef __cplusplus 148 # define CMC_API __attribute__ ((cdecl, regparm (0)))148 # define CMC_API __attribute__ ((cdecl, regparm (0))) 149 149 #else 150 # define CMC_API __attribute__ ((regparm (0)))150 # define CMC_API __attribute__ ((regparm (0))) 151 151 #endif 152 152 … … 156 156 pointers of arbitrary type */ 157 157 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) 158 # define GET_GLOB_INFO(sb) ((struct sf_glob_info *) (sb)->u.generic_sbp)159 # define SET_GLOB_INFO(sb, sf_g) (sb)->u.generic_sbp = sf_g158 # define GET_GLOB_INFO(sb) ((struct sf_glob_info *) (sb)->u.generic_sbp) 159 # define SET_GLOB_INFO(sb, sf_g) (sb)->u.generic_sbp = sf_g 160 160 #else 161 # define GET_GLOB_INFO(sb) ((struct sf_glob_info *) (sb)->s_fs_info)162 # define SET_GLOB_INFO(sb, sf_g) (sb)->s_fs_info = sf_g161 # define GET_GLOB_INFO(sb) ((struct sf_glob_info *) (sb)->s_fs_info) 162 # define SET_GLOB_INFO(sb, sf_g) (sb)->s_fs_info = sf_g 163 163 #endif 164 164 165 165 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19) || defined(KERNEL_FC6) 166 166 /* FC6 kernel 2.6.18, vanilla kernel 2.6.19+ */ 167 # define GET_INODE_INFO(i) ((struct sf_inode_info *) (i)->i_private)168 # define SET_INODE_INFO(i, sf_i) (i)->i_private = sf_i167 # define GET_INODE_INFO(i) ((struct sf_inode_info *) (i)->i_private) 168 # define SET_INODE_INFO(i, sf_i) (i)->i_private = sf_i 169 169 #else 170 170 /* vanilla kernel up to 2.6.18 */ 171 # define GET_INODE_INFO(i) ((struct sf_inode_info *) (i)->u.generic_ip)172 # define SET_INODE_INFO(i, sf_i) (i)->u.generic_ip = sf_i171 # define GET_INODE_INFO(i) ((struct sf_inode_info *) (i)->u.generic_ip) 172 # define SET_INODE_INFO(i, sf_i) (i)->u.generic_ip = sf_i 173 173 #endif 174 174 175 175 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0) 176 # define GET_F_DENTRY(f) (f->f_path.dentry)176 # define GET_F_DENTRY(f) (f->f_path.dentry) 177 177 #else 178 # define GET_F_DENTRY(f) (f->f_dentry)178 # define GET_F_DENTRY(f) (f->f_dentry) 179 179 #endif 180 180
Note:
See TracChangeset
for help on using the changeset viewer.