VirtualBox

Changeset 64639 in vbox for trunk/src


Ignore:
Timestamp:
Nov 10, 2016 3:27:00 PM (8 years ago)
Author:
vboxsync
Message:

fileio-win.cpp: Made RTFileQueryInfo return link count and Inode info.

File:
1 edited

Legend:

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

    r64620 r64639  
    909909            pObjInfo->Attr.u.Unix.gid             = ~0U;
    910910            pObjInfo->Attr.u.Unix.cHardlinks      = Data.nNumberOfLinks ? Data.nNumberOfLinks : 1;
    911             pObjInfo->Attr.u.Unix.INodeIdDevice   = 0; /** @todo Use the volume serial number (see GetFileInformationByHandle). */
    912             pObjInfo->Attr.u.Unix.INodeId         = 0; /** @todo Use the fileid (see GetFileInformationByHandle). */
     911            pObjInfo->Attr.u.Unix.INodeIdDevice   = Data.dwVolumeSerialNumber;
     912            pObjInfo->Attr.u.Unix.INodeId         = RT_MAKE_U64(Data.nFileIndexLow, Data.nFileIndexHigh);
    913913            pObjInfo->Attr.u.Unix.fFlags          = 0;
    914914            pObjInfo->Attr.u.Unix.GenerationId    = 0;
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