Changeset 58195 in vbox for trunk/src/VBox/Additions/darwin/vboxfs
- Timestamp:
- Oct 12, 2015 3:13:47 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 103309
- Location:
- trunk/src/VBox/Additions/darwin/vboxfs
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/darwin/vboxfs/VBoxVFS-VFSOps.cpp
r57063 r58195 286 286 if (pMount) 287 287 { 288 rc = vboxCallMapFolder(&g_vboxSFClient, pMount->pShareName, &pMount->pMap);288 rc = VbglR0SfMapFolder(&g_vboxSFClient, pMount->pShareName, &pMount->pMap); 289 289 if (RT_SUCCESS(rc)) 290 290 { … … 302 302 return 0; 303 303 } 304 else 305 PDEBUG("Unable to map shared folder"); 306 304 305 PDEBUG("Unable to map shared folder"); 307 306 vboxvfs_destroy_internal_data(&pMount); 308 307 } … … 354 353 vfs_setfsprivate(mp, NULL); 355 354 356 rc = vboxCallUnmapFolder(&g_vboxSFClient, &pMount->pMap);355 rc = VbglR0SfUnmapFolder(&g_vboxSFClient, &pMount->pMap); 357 356 if (RT_SUCCESS(rc)) 358 357 { … … 361 360 return 0; 362 361 } 363 else 364 { 365 PDEBUG("Unable to unmount shared folder"); 366 rc = EPROTO; 367 } 362 363 PDEBUG("Unable to unmount shared folder"); 364 rc = EPROTO; 368 365 } 369 366 else … … 518 515 AssertReturn(pMount->pShareName, EINVAL); 519 516 520 rc = vboxCallFSInfo(&g_vboxSFClient, &pMount->pMap, 0, SHFL_INFO_GET | SHFL_INFO_VOLUME,521 517 rc = VbglR0SfFsInfo(&g_vboxSFClient, &pMount->pMap, 0, SHFL_INFO_GET | SHFL_INFO_VOLUME, 518 &cbBuffer, (PSHFLDIRINFO)&SHFLVolumeInfo); 522 519 AssertReturn(rc == 0, EPROTO); 523 520 -
trunk/src/VBox/Additions/darwin/vboxfs/VBoxVFS-VNODEOps.cpp
r57063 r58195 556 556 PDEBUG("Exploring VBoxVFS directory (%s), handle (0x%.8X), offset (0x%X), count (%d)", (char *)pVnodeData->pPath->String.utf8, (int)pVnodeData->pHandle, index, uio_iovcnt(uio)); 557 557 558 /* Currently, there is a problem when vboxCallDirInfo() is not able to558 /* Currently, there is a problem when VbglR0SfDirInfo() is not able to 559 559 * continue retrieve directory content if the same VBoxVFS handle is used. 560 560 * This macro forces to use a new handle in readdir() callback. If enabled, … … 575 575 576 576 #if 0 577 rc = vboxCallDirInfo(&g_vboxSFClient, &pMount->pMap, Handle, 0, 0, index, &cbInfo, (PSHFLDIRINFO)Info, &cFiles);577 rc = VbglR0SfDirInfo(&g_vboxSFClient, &pMount->pMap, Handle, 0, 0, index, &cbInfo, (PSHFLDIRINFO)Info, &cFiles); 578 578 #else 579 579 SHFLSTRING *pMask = vboxvfs_construct_shflstring("*", strlen("*")); … … 582 582 for (uint32_t cSkip = 0; (cSkip < index + 1) && (rc == VINF_SUCCESS); cSkip++) 583 583 { 584 //rc = vboxCallDirInfo(&g_vboxSFClient, &pMount->pMap, Handle, 0 /* pMask */, 0 /* SHFL_LIST_RETURN_ONE */, 0, &cbInfo, (PSHFLDIRINFO)Info, &cFiles);584 //rc = VbglR0SfDirInfo(&g_vboxSFClient, &pMount->pMap, Handle, 0 /* pMask */, 0 /* SHFL_LIST_RETURN_ONE */, 0, &cbInfo, (PSHFLDIRINFO)Info, &cFiles); 585 585 586 586 uint32_t cbReturned = cbInfo; 587 //rc = vboxCallDirInfo(&g_vboxSFClient, &pMount->pMap, Handle, pMask, SHFL_LIST_RETURN_ONE, 0, &cbReturned, (PSHFLDIRINFO)Info, &cFiles); 588 rc = vboxCallDirInfo(&g_vboxSFClient, &pMount->pMap, Handle, 0, SHFL_LIST_RETURN_ONE, 0, &cbReturned, (PSHFLDIRINFO)Info, &cFiles); 587 //rc = VbglR0SfDirInfo(&g_vboxSFClient, &pMount->pMap, Handle, pMask, SHFL_LIST_RETURN_ONE, 0, &cbReturned, (PSHFLDIRINFO)Info, &cFiles); 588 rc = VbglR0SfDirInfo(&g_vboxSFClient, &pMount->pMap, Handle, 0, SHFL_LIST_RETURN_ONE, 0, 589 &cbReturned, (PSHFLDIRINFO)Info, &cFiles); 589 590 590 591 } … … 624 625 default: 625 626 { 626 PDEBUG(" vboxCallDirInfo() for item #%d has failed: %d", (int)index, (int)rc);627 PDEBUG("VbglR0SfDirInfo() for item #%d has failed: %d", (int)index, (int)rc); 627 628 rc = EINVAL; 628 629 break; -
trunk/src/VBox/Additions/darwin/vboxfs/VBoxVFS-utils.cpp
r57063 r58195 400 400 parms.CreateFlags = fFlags; 401 401 402 rc = vboxCallCreate(&g_vboxSFClient, &pMount->pMap, pPath, &parms);402 rc = VbglR0SfCreate(&g_vboxSFClient, &pMount->pMap, pPath, &parms); 403 403 if (RT_SUCCESS(rc)) 404 404 { … … 425 425 { 426 426 AssertReturn(pMount, EINVAL); 427 return vboxCallClose(&g_vboxSFClient, &pMount->pMap, pHandle);427 return VbglR0SfClose(&g_vboxSFClient, &pMount->pMap, pHandle); 428 428 } 429 429 … … 455 455 parms.CreateFlags = SHFL_CF_LOOKUP | SHFL_CF_ACT_FAIL_IF_NEW; 456 456 457 rc = vboxCallCreate(&g_vboxSFClient, &pMount->pMap, pSHFLDPath, &parms);457 rc = VbglR0SfCreate(&g_vboxSFClient, &pMount->pMap, pSHFLDPath, &parms); 458 458 if (rc == 0) 459 {460 459 *Info = parms.Info; 461 }462 460 463 461 return rc; -
trunk/src/VBox/Additions/darwin/vboxfs/VBoxVFS.cpp
r57358 r58195 105 105 /* Initialize the R0 guest library. */ 106 106 #if 0 107 rc = vboxInit();107 rc = VbglR0SfInit(); 108 108 if (RT_FAILURE(rc)) 109 109 return KERN_FAILURE; … … 125 125 126 126 #if 0 127 vboxUninit();127 VbglR0SfTerminate(); 128 128 #endif 129 129 130 PINFO("VirtualBox " VBOX_VERSION_STRING " shared folders " 131 "driver is unloaded"); 130 PINFO("VirtualBox " VBOX_VERSION_STRING " shared folders driver is unloaded"); 132 131 133 132 return KERN_SUCCESS; … … 220 219 if (coreService) 221 220 { 222 rc = vboxInit();221 rc = VbglR0SfInit(); 223 222 if (RT_SUCCESS(rc)) 224 223 { 225 224 /* Connect to the host service. */ 226 rc = vboxConnect(&g_vboxSFClient);225 rc = VbglR0SfConnect(&g_vboxSFClient); 227 226 if (RT_SUCCESS(rc)) 228 227 { 229 228 PINFO("VBox client connected"); 230 rc = vboxCallSetUtf8(&g_vboxSFClient);229 rc = VbglR0SfSetUtf8(&g_vboxSFClient); 231 230 if (RT_SUCCESS(rc)) 232 231 { … … 242 241 else 243 242 { 244 PERROR(" vboxCallSetUtf8 failed: rc=%d", rc);243 PERROR("VbglR0SfSetUtf8 failed: rc=%d", rc); 245 244 } 246 vboxDisconnect(&g_vboxSFClient);245 VbglR0SfDisconnect(&g_vboxSFClient); 247 246 } 248 247 else … … 250 249 PERROR("Failed to get connection to host: rc=%d", rc); 251 250 } 252 vboxUninit();251 VbglR0SfUninit(); 253 252 } 254 253 else … … 286 285 } 287 286 288 vboxDisconnect(&g_vboxSFClient);287 VbglR0SfDisconnect(&g_vboxSFClient); 289 288 PINFO("VBox client disconnected"); 290 289 291 vboxUninit();290 VbglR0SfTerminate(); 292 291 PINFO("Low level uninit done"); 293 292
Note:
See TracChangeset
for help on using the changeset viewer.