VirtualBox

Changeset 98869 in vbox for trunk


Ignore:
Timestamp:
Mar 7, 2023 5:24:50 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
156195
Message:

Additions: Linux: Shared Folders: Introduce initial support for kernel 6.3.x series, bugref:10381.

Location:
trunk/src/VBox/Additions/linux/sharedfolders
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/dirops.c

    r98103 r98869  
    10461046 * @returns 0 on success, Linux error code otherwise
    10471047 */
    1048 #if RTLNX_VER_MIN(5,12,0) || defined(DOXYGEN_RUNNING)
     1048#if RTLNX_VER_MIN(6,3,0)
     1049static 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)
    10491051static int vbsf_inode_create(struct user_namespace *ns, struct inode *parent, struct dentry *dentry, umode_t mode, bool excl)
    10501052#elif RTLNX_VER_MIN(3,6,0)
     
    10861088 * @returns 0 on success, Linux error code otherwise
    10871089 */
    1088 #if RTLNX_VER_MIN(5,12,0) || defined(DOXYGEN_RUNNING)
     1090#if RTLNX_VER_MIN(6,3,0)
     1091static 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)
    10891093static int vbsf_inode_mkdir(struct user_namespace *ns, struct inode *parent, struct dentry *dentry, umode_t mode)
    10901094#elif RTLNX_VER_MIN(3,3,0)
     
    12011205 * @returns 0 on success, Linux error code otherwise
    12021206 */
    1203 #if RTLNX_VER_MIN(5,12,0) || defined(DOXYGEN_RUNNING)
     1207#if RTLNX_VER_MIN(6,3,0)
     1208static 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)
    12041212static int vbsf_inode_rename(struct user_namespace *ns,
    12051213                             struct inode *old_parent, struct dentry *old_dentry,
     
    13131321 * Create a symbolic link.
    13141322 */
    1315 #if RTLNX_VER_MIN(5,12,0)
     1323#if RTLNX_VER_MIN(6,3,0)
     1324static 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)
    13161326static int vbsf_inode_symlink(struct user_namespace *ns, struct inode *parent, struct dentry *dentry, const char *target)
    13171327#else
  • trunk/src/VBox/Additions/linux/sharedfolders/utils.c

    r98103 r98869  
    698698   [generic_fillattr] */
    699699#if RTLNX_VER_MIN(2,5,18)
    700 
    701 # if RTLNX_VER_MIN(5,12,0)
     700# if RTLNX_VER_MIN(6,3,0)
     701int 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)
    702704int vbsf_inode_getattr(struct user_namespace *ns, const struct path *path,
    703705                       struct kstat *kstat, u32 request_mask, unsigned int flags)
     
    742744    if (rc == 0) {
    743745        /* 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)
    745749        generic_fillattr(ns, dentry->d_inode, kstat);
    746750# else
     
    792796 * Modify inode attributes.
    793797 */
    794 #if RTLNX_VER_MIN(5,12,0)
     798#if RTLNX_VER_MIN(6,3,0)
     799int vbsf_inode_setattr(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *iattr)
     800#elif RTLNX_VER_MIN(5,12,0)
    795801int vbsf_inode_setattr(struct user_namespace *ns, struct dentry *dentry, struct iattr *iattr)
    796802#else
     
    816822    iattr->ia_valid |= ATTR_FORCE;
    817823#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)
    819827    rc = setattr_prepare(ns, dentry, iattr);
    820828# else
  • trunk/src/VBox/Additions/linux/sharedfolders/vfsmod.h

    r98103 r98869  
    276276extern int  vbsf_inode_revalidate_with_handle(struct dentry *dentry, SHFLHANDLE hHostFile, bool fForced, bool fInodeLocked);
    277277#if RTLNX_VER_MIN(2,5,18)
    278 # if RTLNX_VER_MIN(5,12,0)
     278# if RTLNX_VER_MIN(6,3,0)
     279extern 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)
    279282extern int  vbsf_inode_getattr(struct user_namespace *ns, const struct path *path,
    280283                               struct kstat *kstat, u32 request_mask, unsigned int query_flags);
     
    287290extern int  vbsf_inode_revalidate(struct dentry *dentry);
    288291#endif /* < 2.5.44 */
    289 #if RTLNX_VER_MIN(5,12,0)
     292#if RTLNX_VER_MIN(6,3,0)
     293extern int  vbsf_inode_setattr(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *iattr);
     294#elif RTLNX_VER_MIN(5,12,0)
    290295extern int  vbsf_inode_setattr(struct user_namespace *ns, struct dentry *dentry, struct iattr *iattr);
    291296#else
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette