VirtualBox

Ignore:
Timestamp:
Nov 9, 2016 6:30:42 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
111842
Message:

direnum-r3-nt.cpp: Fill in inode info when we can.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstDir.cpp

    r62477 r64623  
    4141     */
    4242    bool fLong      = false;
     43    bool fTimes     = false;
     44    bool fInode     = false;
    4345    bool fShortName = false;
    4446    bool fFiltered  = false;
     
    5557                        fLong = true;
    5658                        break;
     59                    case 'i':
     60                        fLong = fInode = true;
     61                        break;
     62                    case 't':
     63                        fLong = fTimes = true;
     64                        break;
    5765                    case 's':
    58                         fShortName = true;
     66                        fLong = fShortName = true;
    5967                        break;
    6068                    case 'f':
     
    168176                                     fMode & RTFS_DOS_NT_NOT_CONTENT_INDEXED ? 'I' : '-',
    169177                                     fMode & RTFS_DOS_NT_ENCRYPTED      ? 'E' : '-');
    170                             RTPrintf(" %d %4d %4d %10lld %10lld %#llx %#llx %#llx %#llx",
     178                            RTPrintf(" %d %4d %4d %10lld %10lld",
    171179                                     DirEntry.Info.Attr.u.Unix.cHardlinks,
    172180                                     DirEntry.Info.Attr.u.Unix.uid,
    173181                                     DirEntry.Info.Attr.u.Unix.gid,
    174182                                     DirEntry.Info.cbObject,
    175                                      DirEntry.Info.cbAllocated,
    176                                      DirEntry.Info.BirthTime,
    177                                      DirEntry.Info.ChangeTime,
    178                                      DirEntry.Info.ModificationTime,
    179                                      DirEntry.Info.AccessTime);
     183                                     DirEntry.Info.cbAllocated);
     184                            if (fTimes)
     185                                RTPrintf(" %#llx %#llx %#llx %#llx",
     186                                         DirEntry.Info.BirthTime,
     187                                         DirEntry.Info.ChangeTime,
     188                                         DirEntry.Info.ModificationTime,
     189                                         DirEntry.Info.AccessTime);
     190
     191                            if (fInode)
     192                                RTPrintf(" %#x:%#018llx",
     193                                         DirEntry.Info.Attr.u.Unix.INodeIdDevice, DirEntry.Info.Attr.u.Unix.INodeId);
    180194                            if (fShortName)
    181195                                RTPrintf(" %2d %-12ls ", DirEntry.cwcShortName, DirEntry.wszShortName);
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