VirtualBox

Changeset 13104 in vbox for trunk/src/VBox/Runtime/r3/win


Ignore:
Timestamp:
Oct 8, 2008 11:38:46 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37598
Message:

IPRT: Added todos for implementing INodeId and INodeIdDevice using the fileid and volume serial number. It seems that this actually is pretty identical to the unix inode/dev stuff and implemented for both NTFS and FAT.

Location:
trunk/src/VBox/Runtime/r3/win
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/dir-win.cpp

    r8245 r13104  
    325325     */
    326326    pDir->fDataUnread  = false;
    327     pDirEntry->INodeId = 0;
     327    pDirEntry->INodeId = 0; /** @todo we can use the fileid here if we must (see GetFileInformationByHandle). */
    328328    pDirEntry->enmType = pDir->Data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY
    329329                       ? RTDIRENTRYTYPE_DIRECTORY : RTDIRENTRYTYPE_FILE;
     
    479479            pDirEntry->Info.Attr.u.Unix.gid             = ~0U;
    480480            pDirEntry->Info.Attr.u.Unix.cHardlinks      = 1;
    481             pDirEntry->Info.Attr.u.Unix.INodeIdDevice   = 0;
    482             pDirEntry->Info.Attr.u.Unix.INodeId         = 0;
     481            pDirEntry->Info.Attr.u.Unix.INodeIdDevice   = 0; /** @todo Use the volume serial number (see GetFileInformationByHandle). */
     482            pDirEntry->Info.Attr.u.Unix.INodeId         = 0; /** @todo Use the fileid (see GetFileInformationByHandle). */
    483483            pDirEntry->Info.Attr.u.Unix.fFlags          = 0;
    484484            pDirEntry->Info.Attr.u.Unix.GenerationId    = 0;
  • trunk/src/VBox/Runtime/r3/win/fileio-win.cpp

    r8913 r13104  
    668668            pObjInfo->Attr.u.Unix.gid             = ~0U;
    669669            pObjInfo->Attr.u.Unix.cHardlinks      = Data.nNumberOfLinks ? Data.nNumberOfLinks : 1;
    670             pObjInfo->Attr.u.Unix.INodeIdDevice   = 0;
    671             pObjInfo->Attr.u.Unix.INodeId         = 0;
     670            pObjInfo->Attr.u.Unix.INodeIdDevice   = 0; /** @todo Use the volume serial number (see GetFileInformationByHandle). */
     671            pObjInfo->Attr.u.Unix.INodeId         = 0; /** @todo Use the fileid (see GetFileInformationByHandle). */
    672672            pObjInfo->Attr.u.Unix.fFlags          = 0;
    673673            pObjInfo->Attr.u.Unix.GenerationId    = 0;
  • trunk/src/VBox/Runtime/r3/win/path-win.cpp

    r11836 r13104  
    238238            pObjInfo->Attr.u.Unix.gid             = ~0U;
    239239            pObjInfo->Attr.u.Unix.cHardlinks      = 1;
    240             pObjInfo->Attr.u.Unix.INodeIdDevice   = 0;
    241             pObjInfo->Attr.u.Unix.INodeId         = 0;
     240            pObjInfo->Attr.u.Unix.INodeIdDevice   = 0; /** @todo use volume serial number */
     241            pObjInfo->Attr.u.Unix.INodeId         = 0; /** @todo use fileid (see GetFileInformationByHandle). */
    242242            pObjInfo->Attr.u.Unix.fFlags          = 0;
    243243            pObjInfo->Attr.u.Unix.GenerationId    = 0;
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