- Timestamp:
- Mar 7, 2023 5:24:50 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 156195
- Location:
- trunk/src/VBox/Additions/linux/sharedfolders
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/sharedfolders/dirops.c
r98103 r98869 1046 1046 * @returns 0 on success, Linux error code otherwise 1047 1047 */ 1048 #if RTLNX_VER_MIN(5,12,0) || defined(DOXYGEN_RUNNING) 1048 #if RTLNX_VER_MIN(6,3,0) 1049 static int vbsf_inode_create(struct mnt_idmap *idmap, struct inode *parent, struct dentry *dentry, umode_t mode, bool excl) 1050 #elif RTLNX_VER_MIN(5,12,0) || defined(DOXYGEN_RUNNING) 1049 1051 static int vbsf_inode_create(struct user_namespace *ns, struct inode *parent, struct dentry *dentry, umode_t mode, bool excl) 1050 1052 #elif RTLNX_VER_MIN(3,6,0) … … 1086 1088 * @returns 0 on success, Linux error code otherwise 1087 1089 */ 1088 #if RTLNX_VER_MIN(5,12,0) || defined(DOXYGEN_RUNNING) 1090 #if RTLNX_VER_MIN(6,3,0) 1091 static int vbsf_inode_mkdir(struct mnt_idmap *idmap, struct inode *parent, struct dentry *dentry, umode_t mode) 1092 #elif RTLNX_VER_MIN(5,12,0) || defined(DOXYGEN_RUNNING) 1089 1093 static int vbsf_inode_mkdir(struct user_namespace *ns, struct inode *parent, struct dentry *dentry, umode_t mode) 1090 1094 #elif RTLNX_VER_MIN(3,3,0) … … 1201 1205 * @returns 0 on success, Linux error code otherwise 1202 1206 */ 1203 #if RTLNX_VER_MIN(5,12,0) || defined(DOXYGEN_RUNNING) 1207 #if RTLNX_VER_MIN(6,3,0) 1208 static int vbsf_inode_rename(struct mnt_idmap *idmap, 1209 struct inode *old_parent, struct dentry *old_dentry, 1210 struct inode *new_parent, struct dentry *new_dentry, unsigned flags) 1211 #elif RTLNX_VER_MIN(5,12,0) || defined(DOXYGEN_RUNNING) 1204 1212 static int vbsf_inode_rename(struct user_namespace *ns, 1205 1213 struct inode *old_parent, struct dentry *old_dentry, … … 1313 1321 * Create a symbolic link. 1314 1322 */ 1315 #if RTLNX_VER_MIN(5,12,0) 1323 #if RTLNX_VER_MIN(6,3,0) 1324 static int vbsf_inode_symlink(struct mnt_idmap *idmap, struct inode *parent, struct dentry *dentry, const char *target) 1325 #elif RTLNX_VER_MIN(5,12,0) 1316 1326 static int vbsf_inode_symlink(struct user_namespace *ns, struct inode *parent, struct dentry *dentry, const char *target) 1317 1327 #else -
trunk/src/VBox/Additions/linux/sharedfolders/utils.c
r98103 r98869 698 698 [generic_fillattr] */ 699 699 #if RTLNX_VER_MIN(2,5,18) 700 701 # if RTLNX_VER_MIN(5,12,0) 700 # if RTLNX_VER_MIN(6,3,0) 701 int vbsf_inode_getattr(struct mnt_idmap *idmap, const struct path *path, 702 struct kstat *kstat, u32 request_mask, unsigned int flags) 703 # elif RTLNX_VER_MIN(5,12,0) 702 704 int vbsf_inode_getattr(struct user_namespace *ns, const struct path *path, 703 705 struct kstat *kstat, u32 request_mask, unsigned int flags) … … 742 744 if (rc == 0) { 743 745 /* Do generic filling in of info. */ 744 # if RTLNX_VER_MIN(5,12,0) 746 # if RTLNX_VER_MIN(6,3,0) 747 generic_fillattr(idmap, dentry->d_inode, kstat); 748 # elif RTLNX_VER_MIN(5,12,0) 745 749 generic_fillattr(ns, dentry->d_inode, kstat); 746 750 # else … … 792 796 * Modify inode attributes. 793 797 */ 794 #if RTLNX_VER_MIN(5,12,0) 798 #if RTLNX_VER_MIN(6,3,0) 799 int vbsf_inode_setattr(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *iattr) 800 #elif RTLNX_VER_MIN(5,12,0) 795 801 int vbsf_inode_setattr(struct user_namespace *ns, struct dentry *dentry, struct iattr *iattr) 796 802 #else … … 816 822 iattr->ia_valid |= ATTR_FORCE; 817 823 #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)) || RTLNX_UBUNTU_ABI_MIN(4,4,255,208) 818 # if RTLNX_VER_MIN(5,12,0) 824 # if RTLNX_VER_MIN(6,3,0) 825 rc = setattr_prepare(idmap, dentry, iattr); 826 # elif RTLNX_VER_MIN(5,12,0) 819 827 rc = setattr_prepare(ns, dentry, iattr); 820 828 # else -
trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.h
r98103 r98869 276 276 extern int vbsf_inode_revalidate_with_handle(struct dentry *dentry, SHFLHANDLE hHostFile, bool fForced, bool fInodeLocked); 277 277 #if RTLNX_VER_MIN(2,5,18) 278 # if RTLNX_VER_MIN(5,12,0) 278 # if RTLNX_VER_MIN(6,3,0) 279 extern int vbsf_inode_getattr(struct mnt_idmap *idmap, const struct path *path, 280 struct kstat *kstat, u32 request_mask, unsigned int query_flags); 281 # elif RTLNX_VER_MIN(5,12,0) 279 282 extern int vbsf_inode_getattr(struct user_namespace *ns, const struct path *path, 280 283 struct kstat *kstat, u32 request_mask, unsigned int query_flags); … … 287 290 extern int vbsf_inode_revalidate(struct dentry *dentry); 288 291 #endif /* < 2.5.44 */ 289 #if RTLNX_VER_MIN(5,12,0) 292 #if RTLNX_VER_MIN(6,3,0) 293 extern int vbsf_inode_setattr(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *iattr); 294 #elif RTLNX_VER_MIN(5,12,0) 290 295 extern int vbsf_inode_setattr(struct user_namespace *ns, struct dentry *dentry, struct iattr *iattr); 291 296 #else
Note:
See TracChangeset
for help on using the changeset viewer.