Changeset 75677 in vbox
- Timestamp:
- Nov 22, 2018 9:30:17 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 126872
- Location:
- trunk/src/VBox/Additions/darwin/VBoxSF
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/darwin/VBoxSF/Makefile.kmk
r75666 r75677 26 26 VBoxSF_INST = $(INST_ADDITIONS)VBoxSF.kext/Contents/MacOS/ 27 27 VBoxSF_DEFS = VBOX_WITH_HGCM 28 VBoxSF_CXXFLAGS = -Wno-unused -Wno-unused-parameter29 28 VBoxSF_LIBS = $(VBOX_LIB_VBGL_R0) 30 29 VBoxSF_SOURCES = \ -
trunk/src/VBox/Additions/darwin/VBoxSF/VBoxSF-VNodeOps.cpp
r75675 r75677 676 676 static int vboxSfDwnVnPathConf(struct vnop_pathconf_args *pArgs) 677 677 { 678 PDEBUG("here"); 678 Log(("vboxSfDwnVnPathConf:\n")); 679 RT_NOREF(pArgs); 679 680 return 0; 680 681 } … … 697 698 698 699 /* Check that it's not a root node that's in use. */ 699 PVBOXSFMNT pMntData = (PVBOXSFMNT)vfs_fsprivate(vnode_mount(pArgs->a_vp));700 PVBOXSFMNTDATA pMntData = (PVBOXSFMNTDATA)vfs_fsprivate(vnode_mount(pArgs->a_vp)); 700 701 AssertReturn(!pMntData || pMntData->pVnRoot != pArgs->a_vp, EBUSY); 701 702 -
trunk/src/VBox/Additions/darwin/VBoxSF/VBoxSF-VfsOps.cpp
r75675 r75677 49 49 static int vboxSfDwnVfsGetAttr(mount_t pMount, struct vfs_attr *pFsAttr, vfs_context_t pContext) 50 50 { 51 PVBOXSFMNT pThis = (PVBOXSFMNT)vfs_fsprivate(pMount);51 PVBOXSFMNTDATA pThis = (PVBOXSFMNTDATA)vfs_fsprivate(pMount); 52 52 AssertReturn(pThis, EBADMSG); 53 53 LogFlow(("vboxSfDwnVfsGetAttr: %s\n", pThis->MntInfo.szFolder)); … … 371 371 static int vboxSfDwnVfsRoot(mount_t pMount, vnode_t *ppVnode, vfs_context_t pContext) 372 372 { 373 PVBOXSFMNT pThis = (PVBOXSFMNT)vfs_fsprivate(pMount);373 PVBOXSFMNTDATA pThis = (PVBOXSFMNTDATA)vfs_fsprivate(pMount); 374 374 AssertReturn(pThis, EBADMSG); 375 375 LogFlow(("vboxSfDwnVfsRoot: pThis=%p:{%s}\n", pThis, pThis->MntInfo.szFolder)); 376 RT_NOREF(pContext); 376 377 377 378 /* … … 412 413 static int vboxSfDwnVfsUnmount(mount_t pMount, int fFlags, vfs_context_t pContext) 413 414 { 414 PVBOXSFMNT pThis = (PVBOXSFMNT)vfs_fsprivate(pMount);415 PVBOXSFMNTDATA pThis = (PVBOXSFMNTDATA)vfs_fsprivate(pMount); 415 416 AssertReturn(pThis, 0); 416 417 LogFlowFunc(("pThis=%p:{%s} fFlags=%#x\n", pThis, pThis->MntInfo.szFolder, fFlags)); 418 RT_NOREF(pContext); 417 419 418 420 /* … … 490 492 static int vboxSfDwnVfsMount(mount_t pMount, vnode_t pDevVp, user_addr_t pUserData, vfs_context_t pContext) 491 493 { 492 RT_NOREF(pDevVp )494 RT_NOREF(pDevVp, pContext); 493 495 494 496 /* … … 511 513 * Get the mount information from userland. 512 514 */ 513 PVBOXSFMNT pThis = (PVBOXSFMNT)RTMemAllocZ(sizeof(*pThis));515 PVBOXSFMNTDATA pThis = (PVBOXSFMNTDATA)RTMemAllocZ(sizeof(*pThis)); 514 516 if (!pThis) 515 517 return ENOMEM; -
trunk/src/VBox/Additions/darwin/VBoxSF/VBoxSF.cpp
r75675 r75677 204 204 static kern_return_t vboxSfDwnModuleUnload(struct kmod_info *pKModInfo, void *pvData) 205 205 { 206 RT_NOREF(pKModInfo, pvData); 206 207 #ifdef DEBUG 207 208 printf("vboxSfDwnModuleUnload\n"); … … 209 210 #endif 210 211 212 211 213 /* 212 214 * Are we busy? If so fail. -
trunk/src/VBox/Additions/darwin/VBoxSF/VBoxSFInternal.h
r75676 r75677 50 50 * Defined Constants And Macros * 51 51 *********************************************************************************************************************************/ 52 /** @todo misguided, should use Log() and LogRel. sigh... */53 #define PINFO(fmt, args...) printf(VBOXSF_DARWIN_FS_NAME ": INFO: " fmt "\n", ## args)54 #define PDEBUG(fmt, args...) printf(VBOXSF_DARWIN_FS_NAME ": %s(): DEBUG: " fmt "\n", __FUNCTION__, ## args)55 #define PERROR(fmt, args...) printf(VBOXSF_DARWIN_FS_NAME ": ERROR: " fmt "\n", ## args)56 52 57 53 … … 59 55 * Structures and Typedefs * 60 56 *********************************************************************************************************************************/ 61 /** Private data assigned to each mounted shared folder. Assigned to mp structure. */ 62 typedef struct vboxvfs_mount_data 57 /** 58 * Private data we associate with a mount. 59 */ 60 typedef struct VBOXSFMNTDATA 63 61 { 64 62 /** The shared folder mapping */ … … 70 68 /** The mount info from the mount() call. */ 71 69 VBOXSFDRWNMOUNTINFO MntInfo; 72 } vboxvfs_mount_t, VBOXSFMNT; 73 typedef VBOXSFMNT *PVBOXSFMNT; 74 75 /** Private data assigned to each vnode object. */ 76 typedef struct vboxvfs_vnode_data 70 } VBOXSFMNTDATA; 71 /** Pointer to private mount data. */ 72 typedef VBOXSFMNTDATA *PVBOXSFMNTDATA; 73 74 /** 75 * Private data we associate with a VNode. 76 */ 77 typedef struct VBOXSFDWNVNDATA 77 78 { 78 79 SHFLHANDLE hHandle; /** VBoxVFS object handle. */ … … 80 81 ///lck_attr_t *pLockAttr; /** BSD locking stuff */ 81 82 ///lck_rw_t *pLock; /** BSD locking stuff */ 82 } vboxvfs_vnode_t,VBOXSFDWNVNDATA;83 /** P rivate vnode data. */83 } VBOXSFDWNVNDATA; 84 /** Pointer to private vnode data. */ 84 85 typedef VBOXSFDWNVNDATA *PVBOXSFDWNVNDATA; 85 86 … … 94 95 extern struct vnodeopv_desc g_VBoxSfVnodeOpvDesc; 95 96 extern int (**g_papfnVBoxVFSVnodeDirOpsVector)(void *); 97 96 98 97 99
Note:
See TracChangeset
for help on using the changeset viewer.