Changeset 97412 in vbox for trunk/src/VBox/Main
- Timestamp:
- Nov 6, 2022 9:30:21 AM (2 years ago)
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r97395 r97412 769 769 while (itSrc != SourceSet.end()) 770 770 { 771 LogRel 2(("Guest Control: Copying '%s' from guest to '%s' on the host (type: %s, filter: %s)\n",771 LogRel(("Guest Control: Copying '%s' from guest to '%s' on the host (type: %s, filter: %s)\n", 772 772 itSrc->strSource.c_str(), strDestination.c_str(), GuestBase::fsObjTypeToStr(itSrc->enmType), itSrc->strFilter.c_str())); 773 773 ++itSrc; … … 836 836 while (itSrc != SourceSet.end()) 837 837 { 838 LogRel 2(("Guest Control: Copying '%s' from host to '%s' on the guest (type: %s, filter: %s)\n",838 LogRel(("Guest Control: Copying '%s' from host to '%s' on the guest (type: %s, filter: %s)\n", 839 839 itSrc->strSource.c_str(), strDestination.c_str(), GuestBase::fsObjTypeToStr(itSrc->enmType), itSrc->strFilter.c_str())); 840 840 ++itSrc; -
trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
r97399 r97412 363 363 LogFlowFunc(("strPath=%s, fMode=%RU32, fCreate=0x%x, fCanExist=%RTbool\n", strPath.c_str(), fMode, fCreate, fCanExist)); 364 364 365 LogRel 2(("Guest Control: Creating host directory '%s' ...\n", strPath.c_str()));365 LogRel(("Guest Control: Creating host directory '%s' ...\n", strPath.c_str())); 366 366 367 367 int vrc = RTDirCreate(strPath.c_str(), fMode, fCreate); … … 598 598 if (RTTimeSpecCompare(&srcModificationTimeTS, &dstObjInfo.ModificationTime) <= 0) 599 599 { 600 LogRel 2(("Guest Control: Host file \"%s\" has same or newer modification date, skipping", strDst.c_str()));600 LogRel(("Guest Control: Host file \"%s\" has same or newer modification date, skipping", strDst.c_str())); 601 601 fSkip = true; 602 602 } … … 650 650 } 651 651 652 LogRel 2(("Guest Control: Copying file '%s' from guest to '%s' on host ...\n", strSrc.c_str(), strDst.c_str()));652 LogRel(("Guest Control: Copying file '%s' from guest to '%s' on host ...\n", strSrc.c_str(), strDst.c_str())); 653 653 654 654 LogFlowFunc(("vrc=%Rrc, dstFsType=%#x, pszDstFile=%s\n", vrc, dstObjInfo.Attr.fMode & RTFS_TYPE_MASK, strDst.c_str())); … … 859 859 if (RTTimeSpecCompare(&dstModificationTimeTS, &srcObjInfo.ModificationTime) <= 0) 860 860 { 861 LogRel 2(("Guest Control: Guest file \"%s\" has same or newer modification date, skipping",861 LogRel(("Guest Control: Guest file \"%s\" has same or newer modification date, skipping", 862 862 strDst.c_str())); 863 863 fSkip = true; … … 906 906 if (RT_SUCCESS(vrc)) 907 907 { 908 LogRel 2(("Guest Control: Copying file '%s' from host to '%s' on guest ...\n", strSrc.c_str(), strDst.c_str()));908 LogRel(("Guest Control: Copying file '%s' from host to '%s' on guest ...\n", strSrc.c_str(), strDst.c_str())); 909 909 910 910 RTVFSFILE hSrcFile; … … 1092 1092 LogFlowFunc(("Entering '%s' (sub '%s')\n", strPathAbs.c_str(), strPathSub.c_str())); 1093 1093 1094 LogRel 2(("Guest Control: Handling directory '%s' on guest ...\n", strPathAbs.c_str()));1094 LogRel(("Guest Control: Handling directory '%s' on guest ...\n", strPathAbs.c_str())); 1095 1095 1096 1096 GuestDirectoryOpenInfo dirOpenInfo; … … 1156 1156 } 1157 1157 1158 LogRel 2(("Guest Control: Directory '%s'\n", strEntry.c_str()));1158 LogRel(("Guest Control: Directory '%s'\n", strEntry.c_str())); 1159 1159 1160 1160 if (!(mSourceSpec.fDirCopyFlags & DirectoryCopyFlag_Recursive)) … … 1172 1172 /** @todo Symlink handling from guest is not implemented yet. 1173 1173 * See IGuestSession::symlinkRead(). */ 1174 LogRel 2(("Guest Control: Warning: Symlink support on guest side not available, skipping '%s'",1174 LogRel(("Guest Control: Warning: Symlink support on guest side not available, skipping '%s'", 1175 1175 strEntry.c_str())); 1176 1176 } … … 1180 1180 case FsObjType_File: 1181 1181 { 1182 LogRel 2(("Guest Control: File '%s'\n", strEntry.c_str()));1182 LogRel(("Guest Control: File '%s'\n", strEntry.c_str())); 1183 1183 1184 1184 vrc = AddEntryFromGuest(strEntry, fsObjInfo->i_getData()); … … 1231 1231 LogFlowFunc(("Entering '%s' (sub '%s')\n", strPathAbs.c_str(), strPathSub.c_str())); 1232 1232 1233 LogRel 2(("Guest Control: Handling directory '%s' on host ...\n", strPathAbs.c_str()));1233 LogRel(("Guest Control: Handling directory '%s' on host ...\n", strPathAbs.c_str())); 1234 1234 1235 1235 RTFSOBJINFO objInfo; … … 1271 1271 break; 1272 1272 1273 LogRel 2(("Guest Control: Directory '%s'\n", strEntry.c_str()));1273 LogRel(("Guest Control: Directory '%s'\n", strEntry.c_str())); 1274 1274 1275 1275 if (!(mSourceSpec.fDirCopyFlags & DirectoryCopyFlag_Recursive)) … … 1282 1282 case RTFS_TYPE_FILE: 1283 1283 { 1284 LogRel 2(("Guest Control: File '%s'\n", strEntry.c_str()));1284 LogRel(("Guest Control: File '%s'\n", strEntry.c_str())); 1285 1285 1286 1286 vrc = AddEntryFromHost(strEntry, &pDirEntry->Info); … … 1300 1300 if (RTFS_IS_DIRECTORY(objInfo.Attr.fMode)) 1301 1301 { 1302 LogRel 2(("Guest Control: Symbolic link '%s' -> '%s' (directory)\n",1302 LogRel(("Guest Control: Symbolic link '%s' -> '%s' (directory)\n", 1303 1303 strEntryAbs.c_str(), pszPathReal)); 1304 1304 if (mSourceSpec.fDirCopyFlags & DirectoryCopyFlag_FollowLinks) … … 1307 1307 else if (RTFS_IS_FILE(objInfo.Attr.fMode)) 1308 1308 { 1309 LogRel 2(("Guest Control: Symbolic link '%s' -> '%s' (file)\n",1309 LogRel(("Guest Control: Symbolic link '%s' -> '%s' (file)\n", 1310 1310 strEntryAbs.c_str(), pszPathReal)); 1311 1311 if (mSourceSpec.fFileCopyFlags & DirectoryCopyFlag_FollowLinks) … … 1317 1317 1318 1318 if (RT_FAILURE(vrc)) 1319 LogRel 2(("Guest Control: Unable to query symbolic link info for '%s', rc=%Rrc\n",1319 LogRel(("Guest Control: Unable to query symbolic link info for '%s', rc=%Rrc\n", 1320 1320 pszPathReal, vrc)); 1321 1321 } 1322 1322 else 1323 1323 { 1324 LogRel 2(("Guest Control: Unable to resolve symlink for '%s', rc=%Rrc\n", strPathAbs.c_str(), vrc));1324 LogRel(("Guest Control: Unable to resolve symlink for '%s', rc=%Rrc\n", strPathAbs.c_str(), vrc)); 1325 1325 if (vrc == VERR_FILE_NOT_FOUND) /* Broken symlink, skip. */ 1326 1326 vrc = VINF_SUCCESS; … … 1532 1532 1533 1533 default: 1534 LogRel 2(("Guest Control: Warning: Unknown guest file system type %#x for source \"%s\", skipping\n",1534 LogRel(("Guest Control: Warning: Unknown guest file system type %#x for source \"%s\", skipping\n", 1535 1535 itSrc->enmType, strSrc.c_str())); 1536 1536 break; … … 1975 1975 1976 1976 default: 1977 LogRel 2(("Guest Control: Warning: Unknown guest host system type %#x for source \"%s\", skipping\n",1977 LogRel(("Guest Control: Warning: Unknown guest host system type %#x for source \"%s\", skipping\n", 1978 1978 itSrc->enmType, strSrc.c_str())); 1979 1979 break; … … 2233 2233 case RTFS_TYPE_DIRECTORY: 2234 2234 { 2235 LogRel 2(("Guest Control: Copying directory '%s' from host to '%s' on guest ...\n", strSrcAbs.c_str(), strDstAbs.c_str()));2235 LogRel(("Guest Control: Copying directory '%s' from host to '%s' on guest ...\n", strSrcAbs.c_str(), strDstAbs.c_str())); 2236 2236 if (!pList->mSourceSpec.fDryRun) 2237 2237 vrc = directoryCreateOnGuest(strDstAbs, fDirMode, DirectoryCreateFlag_None, … … 2248 2248 2249 2249 default: 2250 LogRel 2(("Guest Control: Warning: Host file system type 0x%x for '%s' is not supported, skipping\n",2250 LogRel(("Guest Control: Warning: Host file system type 0x%x for '%s' is not supported, skipping\n", 2251 2251 pEntry->fMode & RTFS_TYPE_MASK, strSrcAbs.c_str())); 2252 2252 break;
Note:
See TracChangeset
for help on using the changeset viewer.