VirtualBox

Changeset 69924 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Dec 4, 2017 9:12:01 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
119411
Message:

iprt/ntfsvfs.cpp: working on the directory access (readonly) bits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/formats/ntfs.h

    r69910 r69924  
    8585
    8686/** @name NTFSMFTREF_GET_IDX
    87  * Gets the MFT index number from a MFT reference. */
     87 * Gets the MFT index number (host endian) from a MFT reference. */
    8888/** @name NTFSMFTREF_GET_SEQ
    89  * Gets the MFT reuse sequence number from a MFT reference. */
     89 * Gets the MFT reuse sequence number (host endian) from a MFT reference. */
    9090/** @name NTFSMFTREF_SET_IDX
    9191 * Sets the MFT index number of a MFT reference. */
     
    120120    } while (0)
    121121#endif
     122/** Check that the reference is zero. */
     123#define NTFSMFTREF_IS_ZERO(a_pMftRef)               ((a_pMftRef)->u64 == 0)
    122124
    123125
     
    437439#define NTFSATSTDINFO_SIZE_NTFS_V12     (0x30)
    438440
    439 /** @name NTFS_FA_XXX - NTFS file attributes.
     441/** @name NTFS_FA_XXX - NTFS file attributes (host endian).
    440442 * @{ */
    441443#define NTFS_FA_READONLY                            UINT32_C(0x00000001)
     
    480482    /** 0x30: Actual size of unnamed data attribute. */
    481483    int64_t             cbData;
    482     /** 0x38: File attributes. */
     484    /** 0x38: File attributes (NTFS_FA_XXX). */
    483485    uint32_t            fFileAttribs;
    484486    union
     
    588590#define NTFSINDEXHDR_F_INTERNAL        UINT8_C(0x01)
    589591/** @} */
     592
     593/** Gets the pointer to the first entry header for an index.  */
     594#define NTFSINDEXHDR_GET_FIRST_ENTRY(a_pIndexHdr) \
     595    ( (PNTFSIDXENTRYHDR)((uint8_t *)(a_pIndexHdr) + RT_LE2H_U32((a_pIndexHdr)->offFirstEntry)) )
    590596
    591597
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