Changeset 88273 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Mar 24, 2021 12:18:49 PM (4 years ago)
- Location:
- trunk/src/VBox/Additions/linux/sharedfolders
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/dirops.c
r85698 r88273 1045 1045 * @returns 0 on success, Linux error code otherwise 1046 1046 */ 1047 #if RTLNX_VER_MIN(3,6,0) || defined(DOXYGEN_RUNNING) 1047 #if RTLNX_VER_MIN(5,12,0) 1048 static int vbsf_inode_create(struct user_namespace *ns, struct inode *parent, struct dentry *dentry, umode_t mode, bool excl) 1049 #elif RTLNX_VER_MIN(3,6,0) || defined(DOXYGEN_RUNNING) 1048 1050 static int vbsf_inode_create(struct inode *parent, struct dentry *dentry, umode_t mode, bool excl) 1049 1051 #elif RTLNX_VER_MIN(3,3,0) … … 1082 1084 * @returns 0 on success, Linux error code otherwise 1083 1085 */ 1084 #if RTLNX_VER_MIN(3,3,0) 1086 #if RTLNX_VER_MIN(5,12,0) 1087 static int vbsf_inode_mkdir(struct user_namespace *ns, struct inode *parent, struct dentry *dentry, umode_t mode) 1088 #elif RTLNX_VER_MIN(3,3,0) 1085 1089 static int vbsf_inode_mkdir(struct inode *parent, struct dentry *dentry, umode_t mode) 1086 1090 #else … … 1194 1198 * @returns 0 on success, Linux error code otherwise 1195 1199 */ 1200 #if RTLNX_VER_MIN(5,12,0) 1201 static int vbsf_inode_rename(struct user_namespace *ns, 1202 struct inode *old_parent, struct dentry *old_dentry, 1203 struct inode *new_parent, struct dentry *new_dentry, unsigned flags) 1204 #else 1196 1205 static int vbsf_inode_rename(struct inode *old_parent, struct dentry *old_dentry, 1197 1206 struct inode *new_parent, struct dentry *new_dentry, unsigned flags) 1207 #endif 1198 1208 { 1199 1209 /* … … 1300 1310 * Create a symbolic link. 1301 1311 */ 1312 #if RTLNX_VER_MIN(5,12,0) 1313 static int vbsf_inode_symlink(struct user_namespace *ns, struct inode *parent, struct dentry *dentry, const char *target) 1314 #else 1302 1315 static int vbsf_inode_symlink(struct inode *parent, struct dentry *dentry, const char *target) 1316 #endif 1303 1317 { 1304 1318 /* -
trunk/src/VBox/Additions/linux/sharedfolders/utils.c
r85698 r88273 701 701 #if RTLNX_VER_MIN(2,5,18) 702 702 703 # if RTLNX_VER_MIN(4,11,0) 703 #if RTLNX_VER_MIN(5,12,0) 704 int vbsf_inode_getattr(struct user_namespace *ns, const struct path *path, 705 struct kstat *kstat, u32 request_mask, unsigned int flags) 706 # elif RTLNX_VER_MIN(4,11,0) 704 707 int vbsf_inode_getattr(const struct path *path, struct kstat *kstat, u32 request_mask, unsigned int flags) 705 708 # else … … 741 744 if (rc == 0) { 742 745 /* Do generic filling in of info. */ 746 # if RTLNX_VER_MIN(5,12,0) 747 generic_fillattr(ns, dentry->d_inode, kstat); 748 # else 743 749 generic_fillattr(dentry->d_inode, kstat); 750 # endif 744 751 745 752 /* Add birth time. */ … … 787 794 * Modify inode attributes. 788 795 */ 796 #if RTLNX_VER_MIN(5,12,0) 797 int vbsf_inode_setattr(struct user_namespace *ns, struct dentry *dentry, struct iattr *iattr) 798 #else 789 799 int vbsf_inode_setattr(struct dentry *dentry, struct iattr *iattr) 800 #endif 790 801 { 791 802 struct inode *pInode = dentry->d_inode; … … 807 818 iattr->ia_valid |= ATTR_FORCE; 808 819 #if (RTLNX_VER_RANGE(3,16,39, 3,17,0)) || RTLNX_VER_MIN(4,9,0) || (RTLNX_VER_RANGE(4,1,37, 4,2,0)) 820 # if RTLNX_VER_MIN(5,12,0) 821 rc = setattr_prepare(ns, dentry, iattr); 822 # else 809 823 rc = setattr_prepare(dentry, iattr); 824 # endif 810 825 #else 811 826 rc = inode_change_ok(pInode, iattr); -
trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.h
r87056 r88273 265 265 extern int vbsf_inode_revalidate_with_handle(struct dentry *dentry, SHFLHANDLE hHostFile, bool fForced, bool fInodeLocked); 266 266 #if RTLNX_VER_MIN(2,5,18) 267 # if RTLNX_VER_MIN(4,11,0) 267 # if RTLNX_VER_MIN(5,12,0) 268 extern int vbsf_inode_getattr(struct user_namespace *ns, const struct path *path, 269 struct kstat *kstat, u32 request_mask, unsigned int query_flags); 270 # elif RTLNX_VER_MIN(4,11,0) 268 271 extern int vbsf_inode_getattr(const struct path *path, struct kstat *kstat, u32 request_mask, unsigned int query_flags); 269 272 # else … … 273 276 extern int vbsf_inode_revalidate(struct dentry *dentry); 274 277 #endif /* < 2.5.44 */ 278 #if RTLNX_VER_MIN(5,12,0) 279 extern int vbsf_inode_setattr(struct user_namespace *ns, struct dentry *dentry, struct iattr *iattr); 280 #else 275 281 extern int vbsf_inode_setattr(struct dentry *dentry, struct iattr *iattr); 282 #endif 276 283 277 284
Note:
See TracChangeset
for help on using the changeset viewer.