VirtualBox

Changeset 99252 in vbox for trunk


Ignore:
Timestamp:
Mar 31, 2023 10:08:00 AM (18 months ago)
Author:
vboxsync
Message:

Guest Control/Main: Renamed IGuestSession::i_fsQueryInfo() -> i_fsObjQueryInfo(), to not confuse file system object information (files, directories, ++) with actual file system information. Required for preparation of implementing querying guest file system information. bugref:10414

Location:
trunk/src/VBox/Main
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/GuestSessionImpl.h

    r99150 r99252  
    318318    int                     i_fsCreateTemp(const Utf8Str &strTemplate, const Utf8Str &strPath, bool fDirectory,
    319319                                           Utf8Str &strName, uint32_t fMode, bool fSecure, int *pvrcGuest);
    320     int                     i_fsQueryInfo(const Utf8Str &strPath, bool fFollowSymlinks, GuestFsObjData &objData, int *pvrcGuest);
     320    int                     i_fsObjQueryInfo(const Utf8Str &strPath, bool fFollowSymlinks, GuestFsObjData &objData, int *pvrcGuest);
    321321    const GuestCredentials &i_getCredentials(void);
    322322    EventSource            *i_getEventSource(void) { return mEventSource; }
  • trunk/src/VBox/Main/src-client/GuestFileImpl.cpp

    r98666 r99252  
    901901{
    902902    AssertPtrReturn(mSession, VERR_OBJECT_DESTROYED);
    903     return mSession->i_fsQueryInfo(mData.mOpenInfo.mFilename, FALSE /* fFollowSymlinks */, objData, prcGuest);
     903    return mSession->i_fsObjQueryInfo(mData.mOpenInfo.mFilename, FALSE /* fFollowSymlinks */, objData, prcGuest);
    904904}
    905905
  • trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp

    r99150 r99252  
    11061106    LogFlowThisFunc(("strPath=%s, fFollowSymlinks=%RTbool\n", strPath.c_str(), fFollowSymlinks));
    11071107
    1108     int vrc = i_fsQueryInfo(strPath, fFollowSymlinks, objData, pvrcGuest);
     1108    int vrc = i_fsObjQueryInfo(strPath, fFollowSymlinks, objData, pvrcGuest);
    11091109    if (RT_SUCCESS(vrc))
    11101110    {
     
    19811981    LogFlowThisFunc(("strPath=%s fFollowSymlinks=%RTbool\n", strPath.c_str(), fFollowSymlinks));
    19821982
    1983     int vrc = i_fsQueryInfo(strPath, fFollowSymlinks, objData, pvrcGuest);
     1983    int vrc = i_fsObjQueryInfo(strPath, fFollowSymlinks, objData, pvrcGuest);
    19841984    if (RT_SUCCESS(vrc))
    19851985        vrc = objData.mType == FsObjType_File ? VINF_SUCCESS : VERR_NOT_A_FILE;
     
    20812081 *                              indicates some host side error.
    20822082 */
    2083 int GuestSession::i_fsQueryInfo(const Utf8Str &strPath, bool fFollowSymlinks, GuestFsObjData &objData, int *pvrcGuest)
     2083int GuestSession::i_fsObjQueryInfo(const Utf8Str &strPath, bool fFollowSymlinks, GuestFsObjData &objData, int *pvrcGuest)
    20842084{
    20852085    LogFlowThisFunc(("strPath=%s\n", strPath.c_str()));
     
    39073907        GuestFsObjData objData;
    39083908        int vrcGuest = VERR_IPE_UNINITIALIZED_STATUS;
    3909         int vrc = i_fsQueryInfo(*(itSource), fFollowSymlinks, objData, &vrcGuest);
     3909        int vrc = i_fsObjQueryInfo(*(itSource), fFollowSymlinks, objData, &vrcGuest);
    39103910        if (   RT_FAILURE(vrc)
    39113911            && !fContinueOnErrors)
     
    47494749    GuestFsObjData objData;
    47504750    int vrcGuest = VERR_IPE_UNINITIALIZED_STATUS;
    4751     int vrc = i_fsQueryInfo(aPath, aFollowSymlinks != FALSE, objData, &vrcGuest);
     4751    int vrc = i_fsObjQueryInfo(aPath, aFollowSymlinks != FALSE, objData, &vrcGuest);
    47524752    if (RT_SUCCESS(vrc))
    47534753        *aExists = TRUE;
     
    47884788    GuestFsObjData objData;
    47894789    int vrcGuest = VERR_IPE_UNINITIALIZED_STATUS;
    4790     int vrc = i_fsQueryInfo(aPath, aFollowSymlinks != FALSE, objData, &vrcGuest);
     4790    int vrc = i_fsObjQueryInfo(aPath, aFollowSymlinks != FALSE, objData, &vrcGuest);
    47914791    if (RT_SUCCESS(vrc))
    47924792    {
  • trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp

    r99251 r99252  
    545545    GuestFsObjData srcObjData;
    546546    int vrcGuest = VERR_IPE_UNINITIALIZED_STATUS;
    547     int vrc = mSession->i_fsQueryInfo(strSrc, TRUE /* fFollowSymlinks */, srcObjData, &vrcGuest);
     547    int vrc = mSession->i_fsObjQueryInfo(strSrc, TRUE /* fFollowSymlinks */, srcObjData, &vrcGuest);
    548548    if (RT_FAILURE(vrc))
    549549    {
     
    15401540            GuestFsObjData srcObjData;
    15411541            int vrcGuest = VERR_IPE_UNINITIALIZED_STATUS;
    1542             vrc = mSession->i_fsQueryInfo(strSrc, fFollowSymlinks, srcObjData, &vrcGuest);
     1542            vrc = mSession->i_fsObjQueryInfo(strSrc, fFollowSymlinks, srcObjData, &vrcGuest);
    15431543            if (RT_FAILURE(vrc))
    15441544            {
     
    22542254        GuestFsObjData dstObjData;
    22552255        int vrcGuest;
    2256         vrc = mSession->i_fsQueryInfo(strDstRootAbs, fFollowSymlinks, dstObjData, &vrcGuest);
     2256        vrc = mSession->i_fsObjQueryInfo(strDstRootAbs, fFollowSymlinks, dstObjData, &vrcGuest);
    22572257        if (RT_FAILURE(vrc))
    22582258        {
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