VirtualBox

Ignore:
Timestamp:
Nov 8, 2022 8:16:02 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154451
Message:

Guest Control/Main: Backed out r154417, r154418, r154419, r154420, r154433 + r154434 (temporary release logging) again. bugref:10286

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp

    r97438 r97446  
    355355    LogFlowFunc(("strPath=%s, fMode=%RU32, fCreate=0x%x, fCanExist=%RTbool\n", strPath.c_str(), fMode, fCreate, fCanExist));
    356356
    357     LogRel(("Guest Control: Creating host directory '%s' ...\n", strPath.c_str()));
     357    LogRel2(("Guest Control: Creating host directory '%s' ...\n", strPath.c_str()));
    358358
    359359    int vrc = RTDirCreate(strPath.c_str(), fMode, fCreate);
     
    590590                if (RTTimeSpecCompare(&srcModificationTimeTS, &dstObjInfo.ModificationTime) <= 0)
    591591                {
    592                     LogRel(("Guest Control: Host file \"%s\" has same or newer modification date, skipping", strDst.c_str()));
     592                    LogRel2(("Guest Control: Host file \"%s\" has same or newer modification date, skipping", strDst.c_str()));
    593593                    fSkip = true;
    594594                }
     
    642642    }
    643643
    644     LogRel(("Guest Control: Copying file '%s' from guest to '%s' on host ...\n", strSrc.c_str(), strDst.c_str()));
     644    LogRel2(("Guest Control: Copying file '%s' from guest to '%s' on host ...\n", strSrc.c_str(), strDst.c_str()));
    645645
    646646    LogFlowFunc(("vrc=%Rrc, dstFsType=%#x, pszDstFile=%s\n", vrc, dstObjInfo.Attr.fMode & RTFS_TYPE_MASK, strDst.c_str()));
     
    851851                        if (RTTimeSpecCompare(&dstModificationTimeTS, &srcObjInfo.ModificationTime) <= 0)
    852852                        {
    853                             LogRel(("Guest Control: Guest file \"%s\" has same or newer modification date, skipping",
     853                            LogRel2(("Guest Control: Guest file \"%s\" has same or newer modification date, skipping",
    854854                                     strDst.c_str()));
    855855                            fSkip = true;
     
    898898    if (RT_SUCCESS(vrc))
    899899    {
    900         LogRel(("Guest Control: Copying file '%s' from host to '%s' on guest ...\n", strSrc.c_str(), strDst.c_str()));
     900        LogRel2(("Guest Control: Copying file '%s' from host to '%s' on guest ...\n", strSrc.c_str(), strDst.c_str()));
    901901
    902902        RTVFSFILE hSrcFile;
     
    10411041}
    10421042
     1043#ifdef DEBUG
    10431044/**
    10441045 * Dumps a FsList to the debug log.
     
    10461047void FsList::DumpToLog(void)
    10471048{
    1048     LogRel(("strSrcRootAbs=%s, strDstRootAbs=%s\n", mSrcRootAbs.c_str(), mDstRootAbs.c_str()));
     1049    LogFlowFunc(("strSrcRootAbs=%s, strDstRootAbs=%s\n", mSrcRootAbs.c_str(), mDstRootAbs.c_str()));
    10491050
    10501051    FsEntries::iterator itEntry = mVecEntries.begin();
     
    10521053    {
    10531054        FsEntry *pEntry = *itEntry;
    1054         LogRel(("\t%s: strPath=%s (fMode %#x)\n",
    1055                 RTFS_IS_DIRECTORY(pEntry->fMode) ? "Dir" : "File", pEntry->strPath.c_str(), pEntry->fMode));
     1055        LogFlowFunc(("\tstrPath=%s (fMode %#x)\n", pEntry->strPath.c_str(), pEntry->fMode));
    10561056        ++itEntry;
    10571057    }
     
    10591059    LogFlowFuncLeave();
    10601060}
     1061#endif /* DEBUG */
    10611062
    10621063/**
     
    10831084    LogFlowFunc(("Entering '%s' (sub '%s')\n", strPathAbs.c_str(), strPathSub.c_str()));
    10841085
    1085     LogRel(("Guest Control: Handling directory '%s' on guest ...\n", strPathAbs.c_str()));
     1086    LogRel2(("Guest Control: Handling directory '%s' on guest ...\n", strPathAbs.c_str()));
    10861087
    10871088    GuestDirectoryOpenInfo dirOpenInfo;
     
    11471148                    }
    11481149
    1149                     LogRel(("Guest Control: Directory '%s'\n", strEntry.c_str()));
     1150                    LogRel2(("Guest Control: Directory '%s'\n", strEntry.c_str()));
    11501151
    11511152                    if (!(mSourceSpec.fDirCopyFlags & DirectoryCopyFlag_Recursive))
     
    11631164                        /** @todo Symlink handling from guest is not implemented yet.
    11641165                         *        See IGuestSession::symlinkRead(). */
    1165                         LogRel(("Guest Control: Warning: Symlink support on guest side not available, skipping '%s'",
     1166                        LogRel2(("Guest Control: Warning: Symlink support on guest side not available, skipping '%s'",
    11661167                                 strEntry.c_str()));
    11671168                    }
     
    11711172                case FsObjType_File:
    11721173                {
    1173                     LogRel(("Guest Control: File '%s'\n", strEntry.c_str()));
     1174                    LogRel2(("Guest Control: File '%s'\n", strEntry.c_str()));
    11741175
    11751176                    vrc = AddEntryFromGuest(strEntry, fsObjInfo->i_getData());
     
    12221223    LogFlowFunc(("Entering '%s' (sub '%s')\n", strPathAbs.c_str(), strPathSub.c_str()));
    12231224
    1224     LogRel(("Guest Control: Handling directory '%s' on host ...\n", strPathAbs.c_str()));
     1225    LogRel2(("Guest Control: Handling directory '%s' on host ...\n", strPathAbs.c_str()));
    12251226
    12261227    RTFSOBJINFO objInfo;
     
    12621263                                    break;
    12631264
    1264                                 LogRel(("Guest Control: Directory '%s'\n", strEntry.c_str()));
     1265                                LogRel2(("Guest Control: Directory '%s'\n", strEntry.c_str()));
    12651266
    12661267                                if (!(mSourceSpec.fDirCopyFlags & DirectoryCopyFlag_Recursive))
     
    12731274                            case RTFS_TYPE_FILE:
    12741275                            {
    1275                                 LogRel(("Guest Control: File '%s'\n", strEntry.c_str()));
     1276                                LogRel2(("Guest Control: File '%s'\n", strEntry.c_str()));
    12761277
    12771278                                vrc = AddEntryFromHost(strEntry, &pDirEntry->Info);
     
    12911292                                        if (RTFS_IS_DIRECTORY(objInfo.Attr.fMode))
    12921293                                        {
    1293                                             LogRel(("Guest Control: Symbolic link '%s' -> '%s' (directory)\n",
     1294                                            LogRel2(("Guest Control: Symbolic link '%s' -> '%s' (directory)\n",
    12941295                                                     strEntryAbs.c_str(), pszPathReal));
    12951296                                            if (mSourceSpec.fDirCopyFlags  & DirectoryCopyFlag_FollowLinks)
     
    12981299                                        else if (RTFS_IS_FILE(objInfo.Attr.fMode))
    12991300                                        {
    1300                                             LogRel(("Guest Control: Symbolic link '%s' -> '%s' (file)\n",
     1301                                            LogRel2(("Guest Control: Symbolic link '%s' -> '%s' (file)\n",
    13011302                                                     strEntryAbs.c_str(), pszPathReal));
    13021303                                            if (mSourceSpec.fFileCopyFlags & DirectoryCopyFlag_FollowLinks)
     
    13081309
    13091310                                    if (RT_FAILURE(vrc))
    1310                                         LogRel(("Guest Control: Unable to query symbolic link info for '%s', rc=%Rrc\n",
     1311                                        LogRel2(("Guest Control: Unable to query symbolic link info for '%s', rc=%Rrc\n",
    13111312                                                 pszPathReal, vrc));
    13121313                                }
    13131314                                else
    13141315                                {
    1315                                     LogRel(("Guest Control: Unable to resolve symlink for '%s', rc=%Rrc\n", strPathAbs.c_str(), vrc));
     1316                                    LogRel2(("Guest Control: Unable to resolve symlink for '%s', rc=%Rrc\n", strPathAbs.c_str(), vrc));
    13161317                                    if (vrc == VERR_FILE_NOT_FOUND) /* Broken symlink, skip. */
    13171318                                        vrc = VINF_SUCCESS;
     
    15231524
    15241525                        default:
    1525                             LogRel(("Guest Control: Warning: Unknown guest file system type %#x for source \"%s\", skipping\n",
     1526                            LogRel2(("Guest Control: Warning: Unknown guest file system type %#x for source \"%s\", skipping\n",
    15261527                                     itSrc->enmType, strSrc.c_str()));
    15271528                            break;
     
    15361537                    break;
    15371538                }
    1538 
     1539#ifdef DEBUG
    15391540                pFsList->DumpToLog();
    1540 
     1541#endif
    15411542                mVecLists.push_back(pFsList);
    15421543            }
     
    16461647        if (pList->mSourceSpec.enmType == FsObjType_Directory)
    16471648        {
    1648             LogRel(("Guest Control: Directory: fDstExists=%RTbool, fDirCopyFlags=%#x, fCopyIntoExisting=%RTbool, fFollowSymlinks=%RTbool\n",
    1649                     fDstExists, pList->mSourceSpec.fDirCopyFlags, fCopyIntoExisting, fFollowSymlinks));
     1649            LogFlowFunc(("Directory: fDirCopyFlags=%#x, fCopyIntoExisting=%RTbool, fFollowSymlinks=%RTbool\n",
     1650                        pList->mSourceSpec.fDirCopyFlags, fCopyIntoExisting, fFollowSymlinks));
    16501651
    16511652            if (fDstExists)
     
    17741775        else if (pList->mSourceSpec.enmType == FsObjType_File)
    17751776        {
    1776             LogRel(("Guest Control: File: fDstExists=%RTbool, fFileCopyFlags=%#x, fCopyIntoExisting=%RTbool, fFollowSymlinks=%RTbool\n",
    1777                     fDstExists, pList->mSourceSpec.fFileCopyFlags, fCopyIntoExisting, fFollowSymlinks));
     1777            LogFlowFunc(("File: fFileCopyFlags=%#x, fCopyIntoExisting=%RTbool, fFollowSymlinks=%RTbool\n",
     1778                        pList->mSourceSpec.fFileCopyFlags, fCopyIntoExisting, fFollowSymlinks));
    17781779
    17791780            if (fDstExists)
     
    19661967
    19671968                        default:
    1968                             LogRel(("Guest Control: Warning: Unknown guest host system type %#x for source \"%s\", skipping\n",
     1969                            LogRel2(("Guest Control: Warning: Unknown guest host system type %#x for source \"%s\", skipping\n",
    19691970                                     itSrc->enmType, strSrc.c_str()));
    19701971                            break;
     
    19791980                    break;
    19801981                }
    1981 
     1982#ifdef DEBUG
    19821983                pFsList->DumpToLog();
    1983 
     1984#endif
    19841985                mVecLists.push_back(pFsList);
    19851986            }
     
    22212222                    case RTFS_TYPE_DIRECTORY:
    22222223                    {
    2223                         LogRel(("Guest Control: Copying directory '%s' from host to '%s' on guest ...\n", strSrcAbs.c_str(), strDstAbs.c_str()));
     2224                        LogRel2(("Guest Control: Copying directory '%s' from host to '%s' on guest ...\n", strSrcAbs.c_str(), strDstAbs.c_str()));
    22242225                        if (!pList->mSourceSpec.fDryRun)
    22252226                            vrc = directoryCreateOnGuest(strDstAbs, fDirMode, DirectoryCreateFlag_None,
     
    22362237
    22372238                    default:
    2238                         LogRel(("Guest Control: Warning: Host file system type 0x%x for '%s' is not supported, skipping\n",
     2239                        LogRel2(("Guest Control: Warning: Host file system type 0x%x for '%s' is not supported, skipping\n",
    22392240                                 pEntry->fMode & RTFS_TYPE_MASK, strSrcAbs.c_str()));
    22402241                        break;
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