VirtualBox

Changeset 76299 in vbox for trunk/include


Ignore:
Timestamp:
Dec 19, 2018 7:10:01 PM (6 years ago)
Author:
vboxsync
Message:

Runtime/fs/extvfs: Updates

File:
1 edited

Legend:

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

    r76292 r76299  
    551551 * @{ */
    552552/** Inode table and bitmaps are not initialized. */
    553 #define EXT_GROUP_DESC_F_INODE_UNINIT                RT_BIT_16(0)
     553#define EXT_GROUP_DESC_F_INODE_UNINIT                RT_BIT(0)
    554554/** Block bitmap is not initialized. */
    555 #define EXT_GROUP_DESC_F_BLOCK_UNINIT                RT_BIT_16(1)
     555#define EXT_GROUP_DESC_F_BLOCK_UNINIT                RT_BIT(1)
    556556/** Inode table is zeroed. */
    557 #define EXT_GROUP_DESC_F_INODE_ZEROED                RT_BIT_16(2)
     557#define EXT_GROUP_DESC_F_INODE_ZEROED                RT_BIT(2)
    558558/** @} */
    559559
     
    576576typedef const EXTBLOCKGROUPDESC *PCEXTBLOCKGROUPDESC;
    577577
     578
     579/** Number of block entries in the inodes block map. */
     580#define EXT_INODE_BLOCK_ENTRIES                      15
    578581
    579582/**
     
    611614    } Osd1;
    612615    /** 0x28: Block map or extent tree. */
    613     uint32_t    au32Block[15];
     616    uint32_t    au32Block[EXT_INODE_BLOCK_ENTRIES];
    614617    /** 0x64: File version. */
    615618    uint32_t    u32Version;
     
    698701 * @{ */
    699702/** Others can execute the file. */
    700 #define EXT_INODE_MODE_EXEC_OTHER                    RT_BIT_16(0)
     703#define EXT_INODE_MODE_EXEC_OTHER                    RT_BIT(0)
    701704/** Others can write to the file. */
    702 #define EXT_INODE_MODE_WRITE_OTHER                   RT_BIT_16(1)
     705#define EXT_INODE_MODE_WRITE_OTHER                   RT_BIT(1)
    703706/** Others can read the file. */
    704 #define EXT_INODE_MODE_READ_OTHER                    RT_BIT_16(2)
     707#define EXT_INODE_MODE_READ_OTHER                    RT_BIT(2)
    705708/** Members of the same group can execute the file. */
    706 #define EXT_INODE_MODE_EXEC_GROUP                    RT_BIT_16(3)
     709#define EXT_INODE_MODE_EXEC_GROUP                    RT_BIT(3)
    707710/** Members of the same group can write to the file. */
    708 #define EXT_INODE_MODE_WRITE_GROUP                   RT_BIT_16(4)
     711#define EXT_INODE_MODE_WRITE_GROUP                   RT_BIT(4)
    709712/** Members of the same group can read the file. */
    710 #define EXT_INODE_MODE_READ_GROUP                    RT_BIT_16(5)
     713#define EXT_INODE_MODE_READ_GROUP                    RT_BIT(5)
    711714/** Owner can execute the file. */
    712 #define EXT_INODE_MODE_EXEC_OWNER                    RT_BIT_16(6)
     715#define EXT_INODE_MODE_EXEC_OWNER                    RT_BIT(6)
    713716/** Owner can write to the file. */
    714 #define EXT_INODE_MODE_WRITE_OWNER                   RT_BIT_16(7)
     717#define EXT_INODE_MODE_WRITE_OWNER                   RT_BIT(7)
    715718/** Owner can read the file. */
    716 #define EXT_INODE_MODE_READ_OWNER                    RT_BIT_16(8)
     719#define EXT_INODE_MODE_READ_OWNER                    RT_BIT(8)
    717720/** Sticky file mode. */
    718 #define EXT_INODE_MODE_STICKY                        RT_BIT_16(9)
     721#define EXT_INODE_MODE_STICKY                        RT_BIT(9)
    719722/** File is set GID. */
    720 #define EXT_INODE_MODE_SET_GROUP_ID                  RT_BIT_16(10)
     723#define EXT_INODE_MODE_SET_GROUP_ID                  RT_BIT(10)
    721724/** File is set UID. */
    722 #define EXT_INODE_MODE_SET_USER_ID                   RT_BIT_16(11)
     725#define EXT_INODE_MODE_SET_USER_ID                   RT_BIT(11)
    723726/** @} */
    724727
     
    739742/** Inode represents a socket. */
    740743#define EXT_INODE_MODE_TYPE_SOCKET                   UINT16_C(0xc000)
     744/** Returns the inode type from the combined mode field. */
     745#define EXT_INODE_MODE_TYPE_GET_TYPE(a_Mode)         ((a_Mode) & 0xf000)
    741746/** @} */
    742747
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