VirtualBox

Ignore:
Timestamp:
Oct 20, 2017 2:53:19 PM (7 years ago)
Author:
vboxsync
Message:

Additions/linux/shfl: stop supporting old host/mount.vboxsf versions.
bugref:4567: Linux kernel driver maintenance

Based on [PATCH] Remove support for old hosts and userspace mount.vboxsf
Signed-off-by: Hans de Goede <hdegoede@…>

Versions of VirtualBox many years ago used a different host/guest protocol
for accessing shared folders, as well as a different guest kernel to
user-space mount helper protocol. While we try to support old Additions
versions on the host side, we only aim to support old host versions in the
Additions to a limited extent, and the guest kernel interface is also only
fixed for a defined range of releases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibSharedFolders.c

    r68661 r69149  
    176176        rc         = data.callInfo.Hdr.rc;
    177177    }
    178     else if (rc == VERR_NOT_IMPLEMENTED)
    179     {
    180         /* try the legacy interface too; temporary to assure backwards compatibility */
    181         VBoxSFMapFolder_Old OldData;
    182 
    183         VBOX_INIT_CALL(&OldData.callInfo, MAP_FOLDER_OLD, pClient);
    184 
    185         OldData.path.type                    = VMMDevHGCMParmType_LinAddr;
    186         OldData.path.u.Pointer.size          = ShflStringSizeOfBuffer (szFolderName);
    187         OldData.path.u.Pointer.u.linearAddr  = (uintptr_t)szFolderName;
    188 
    189         OldData.root.type                    = VMMDevHGCMParmType_32bit;
    190         OldData.root.u.value32               = 0;
    191 
    192         OldData.delimiter.type               = VMMDevHGCMParmType_32bit;
    193         OldData.delimiter.u.value32          = RTPATH_DELIMITER;
    194 
    195         rc = VbglR0HGCMCallRaw(pClient->handle, &OldData.callInfo, sizeof(OldData));
    196         if (RT_SUCCESS(rc))
    197         {
    198             pMap->root = OldData.root.u.value32;
    199             rc         = OldData.callInfo.Hdr.rc;
    200         }
    201     }
    202178    return rc;
    203179}
Note: See TracChangeset for help on using the changeset viewer.

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