VirtualBox

Ignore:
Timestamp:
May 2, 2017 9:37:06 AM (8 years ago)
Author:
vboxsync
Message:

fatvfs,iso9660vfs,vfsbase: Sorted volume reference fun. Volumes will be freed now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/fs/iso9660vfs.cpp

    r66736 r66742  
    918918{
    919919    RT_NOREF(pvThis, pszSubDir, fMode, phVfsDir);
    920 RTAssertMsg2("%s: %s\n", __FUNCTION__, pszSubDir);
    921     return VERR_NOT_IMPLEMENTED;
     920    return VERR_WRITE_PROTECT;
    922921}
    923922
     
    941940{
    942941    RT_NOREF(pvThis, pszSymlink, pszTarget, enmType, phVfsSymlink);
    943 RTAssertMsg2("%s: %s\n", __FUNCTION__, pszSymlink);
    944     return VERR_NOT_SUPPORTED;
     942    return VERR_WRITE_PROTECT;
    945943}
    946944
     
    952950{
    953951    RT_NOREF(pvThis, pszEntry, fType);
    954 RTAssertMsg2("%s: %s\n", __FUNCTION__, pszEntry);
    955     return VERR_NOT_IMPLEMENTED;
     952    return VERR_WRITE_PROTECT;
    956953}
    957954
     
    972969 */
    973970static DECLCALLBACK(int) rtFsIso9660Dir_ReadDir(void *pvThis, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry,
    974                                             RTFSOBJATTRADD enmAddAttr)
     971                                                RTFSOBJATTRADD enmAddAttr)
    975972{
    976973    RT_NOREF(pvThis, pDirEntry, pcbDirEntry, enmAddAttr);
     
    11901187
    11911188    PRTFSISO9660DIR pNewDir;
    1192     int rc = RTVfsNewDir(&g_rtFsIso9660DirOps, sizeof(*pNewDir), 0 /*fFlags*/, pThis->hVfsSelf, NIL_RTVFSLOCK /*use volume lock*/,
    1193                          phVfsDir, (void **)&pNewDir);
     1189    int rc = RTVfsNewDir(&g_rtFsIso9660DirOps, sizeof(*pNewDir), pParentDir ? 0 : RTVFSDIR_F_NO_VFS_REF,
     1190                         pThis->hVfsSelf, NIL_RTVFSLOCK /*use volume lock*/, phVfsDir, (void **)&pNewDir);
    11941191    if (RT_SUCCESS(rc))
    11951192    {
     
    12411238{
    12421239    PRTFSISO9660VOL pThis = (PRTFSISO9660VOL)pvThis;
    1243     LogFlow(("rtFsIso9660Vol_Close(%p)\n", pThis));
     1240    Log(("rtFsIso9660Vol_Close(%p)\n", pThis));
    12441241
    12451242    if (pThis->hVfsRootDir != NIL_RTVFSDIR)
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