VirtualBox

Ignore:
Timestamp:
Jul 25, 2017 9:40:46 AM (7 years ago)
Author:
vboxsync
Message:

Linux shared folder driver: stop using VbglR0SfInit and Term.

bugref:8524: Additions/linux: play nicely with distribution-installed Additions
Stop using the VbglR0SfInit and Term symbols in the Linux shared folders guest
driver and use VbglR0HGCMInit and Terminate instead. Remove the former
symbols from the guest library altogether on Linux. After this, the Linux
shared folder driver only depends on the HGCM code in the guest library.

Signed-off-by: Hans de Goede <hdegoede@…>
Reworked by Oracle.

File:
1 edited

Legend:

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

    r67803 r68104  
    3333#include "revision-generated.h"
    3434#include "product-generated.h"
     35#include "VBGLInternal.h"
    3536
    3637MODULE_DESCRIPTION(VBOX_PRODUCT " VFS Module for Host File System Access");
     
    602603    }
    603604
    604     rcVBox = VbglR0SfInit();
     605    rcVBox = VbglR0HGCMInit();
    605606    if (RT_FAILURE(rcVBox))
    606607    {
    607         LogRelFunc(("VbglR0SfInit failed, rc=%d\n", rcVBox));
     608        LogRelFunc(("VbglR0HGCMInit failed, rc=%d\n", rcVBox));
    608609        rcRet = -EPROTO;
    609610        goto fail0;
     
    649650
    650651fail1:
    651     VbglR0SfTerm();
     652    VbglR0HGCMTerminate();
    652653
    653654fail0:
     
    661662
    662663    VbglR0SfDisconnect(&client_handle);
    663     VbglR0SfTerm();
     664    VbglR0HGCMTerminate();
    664665    unregister_filesystem(&vboxsf_fs_type);
    665666}
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