VirtualBox

Ignore:
Timestamp:
Oct 12, 2015 3:13:47 PM (9 years ago)
Author:
vboxsync
Message:

VBoxGuestR0LibSharedFolders: Prefixed functions ('vbox' wasn't a very good one). Hope I found all places these functions are called...

File:
1 edited

Legend:

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

    r58143 r58195  
    6363                       ;
    6464
    65     LogFunc(("sf_dir_open(): calling vboxCallCreate, folder %s, flags %#x\n",
     65    LogFunc(("sf_dir_open(): calling VbglR0SfCreate, folder %s, flags %#x\n",
    6666             sf_i->path->String.utf8, params.CreateFlags));
    67     rc = vboxCallCreate(&client_handle, &sf_g->map, sf_i->path, &params);
     67    rc = VbglR0SfCreate(&client_handle, &sf_g->map, sf_i->path, &params);
    6868    if (RT_SUCCESS(rc))
    6969    {
     
    7777            err = -ENOENT;
    7878
    79         rc = vboxCallClose(&client_handle, &sf_g->map, params.Handle);
     79        rc = VbglR0SfClose(&client_handle, &sf_g->map, params.Handle);
    8080        if (RT_FAILURE(rc))
    81             LogFunc(("sf_dir_open(): vboxCallClose(%s) after err=%d failed rc=%Rrc\n",
     81            LogFunc(("sf_dir_open(): VbglR0SfClose(%s) after err=%d failed rc=%Rrc\n",
    8282                     sf_i->path->String.utf8, err, rc));
    8383    }
     
    174174                           ;
    175175
    176         LogFunc(("sf_getdent: calling vboxCallCreate, folder %s, flags %#x\n",
     176        LogFunc(("sf_getdent: calling VbglR0SfCreate, folder %s, flags %#x\n",
    177177                  sf_i->path->String.utf8, params.CreateFlags));
    178         rc = vboxCallCreate(&client_handle, &sf_g->map, sf_i->path, &params);
     178        rc = VbglR0SfCreate(&client_handle, &sf_g->map, sf_i->path, &params);
    179179        if (RT_FAILURE(rc))
    180180        {
    181             LogFunc(("vboxCallCreate(%s) failed rc=%Rrc\n",
     181            LogFunc(("VbglR0SfCreate(%s) failed rc=%Rrc\n",
    182182                        sf_i->path->String.utf8, rc));
    183183            return -EPERM;
     
    193193        sf_dir_info_empty(sf_d);
    194194        err = sf_dir_read_all(sf_g, sf_i, sf_d, params.Handle);
    195         rc = vboxCallClose(&client_handle, &sf_g->map, params.Handle);
     195        rc = VbglR0SfClose(&client_handle, &sf_g->map, params.Handle);
    196196        if (RT_FAILURE(rc))
    197             LogFunc(("vboxCallClose(%s) failed rc=%Rrc\n", sf_i->path->String.utf8, rc));
     197            LogFunc(("VbglR0SfClose(%s) failed rc=%Rrc\n", sf_i->path->String.utf8, rc));
    198198        if (err)
    199199            return err;
     
    562562    params.Info.Attr.enmAdditional = RTFSOBJATTRADD_NOTHING;
    563563
    564     LogFunc(("sf_create_aux: calling vboxCallCreate, folder %s, flags %#x\n",
     564    LogFunc(("sf_create_aux: calling VbglR0SfCreate, folder %s, flags %#x\n",
    565565              path->String.utf8, params.CreateFlags));
    566     rc = vboxCallCreate(&client_handle, &sf_g->map, path, &params);
     566    rc = VbglR0SfCreate(&client_handle, &sf_g->map, path, &params);
    567567    if (RT_FAILURE(rc))
    568568    {
     
    573573        }
    574574        err = -EPROTO;
    575         LogFunc(("(%d): vboxCallCreate(%s) failed rc=%Rrc\n",
     575        LogFunc(("(%d): VbglR0SfCreate(%s) failed rc=%Rrc\n",
    576576                    fDirectory, sf_i->path->String.utf8, rc));
    577577        goto fail1;
     
    602602    if (fDirectory)
    603603    {
    604         rc = vboxCallClose(&client_handle, &sf_g->map, params.Handle);
     604        rc = VbglR0SfClose(&client_handle, &sf_g->map, params.Handle);
    605605        if (RT_FAILURE(rc))
    606             LogFunc(("(%d): vboxCallClose failed rc=%Rrc\n", fDirectory, rc));
     606            LogFunc(("(%d): VbglR0SfClose failed rc=%Rrc\n", fDirectory, rc));
    607607    }
    608608
     
    611611
    612612fail2:
    613     rc = vboxCallClose(&client_handle, &sf_g->map, params.Handle);
     613    rc = VbglR0SfClose(&client_handle, &sf_g->map, params.Handle);
    614614    if (RT_FAILURE(rc))
    615         LogFunc(("(%d): vboxCallClose failed rc=%Rrc\n", fDirectory, rc));
     615        LogFunc(("(%d): VbglR0SfClose failed rc=%Rrc\n", fDirectory, rc));
    616616
    617617fail1:
     
    691691        && ((dentry->d_inode->i_mode & S_IFLNK) == S_IFLNK))
    692692        fFlags |= SHFL_REMOVE_SYMLINK;
    693     rc = vboxCallRemove(&client_handle, &sf_g->map, path, fFlags);
     693    rc = VbglR0SfRemove(&client_handle, &sf_g->map, path, fFlags);
    694694    if (RT_FAILURE(rc))
    695695    {
    696         LogFunc(("(%d): vboxCallRemove(%s) failed rc=%Rrc\n", fDirectory,
    697                     path->String.utf8, rc));
     696        LogFunc(("(%d): VbglR0SfRemove(%s) failed rc=%Rrc\n", fDirectory, path->String.utf8, rc));
    698697        err = -RTErrConvertToErrno(rc);
    699698        goto fail1;
     
    785784            int fDir = ((old_dentry->d_inode->i_mode & S_IFDIR) != 0);
    786785
    787             rc = vboxCallRename(&client_handle, &sf_g->map, old_path,
     786            rc = VbglR0SfRename(&client_handle, &sf_g->map, old_path,
    788787                                new_path, fDir ? 0 : SHFL_RENAME_FILE | SHFL_RENAME_REPLACE_IF_EXISTS);
    789788            if (RT_SUCCESS(rc))
     
    797796            else
    798797            {
    799                 LogFunc(("vboxCallRename failed rc=%Rrc\n", rc));
     798                LogFunc(("VbglR0SfRename failed rc=%Rrc\n", rc));
    800799                err = -RTErrConvertToErrno(rc);
    801800                kfree(new_path);
     
    840839    memcpy(ssymname->String.utf8, symname, symname_len);
    841840
    842     rc = vboxCallSymlink(&client_handle, &sf_g->map, path, ssymname, &info);
     841    rc = VbglR0SfSymlink(&client_handle, &sf_g->map, path, ssymname, &info);
    843842    kfree(ssymname);
    844843
     
    850849            goto fail1;
    851850        }
    852         LogFunc(("vboxCallSymlink(%s) failed rc=%Rrc\n",
     851        LogFunc(("VbglR0SfSymlink(%s) failed rc=%Rrc\n",
    853852                    sf_i->path->String.utf8, rc));
    854853        err = -EPROTO;
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