Changeset 76216 in vbox for trunk/include
- Timestamp:
- Dec 13, 2018 7:26:25 PM (6 years ago)
- Location:
- trunk/include/iprt
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/formats/ext.h
r76215 r76216 1 1 /* $Id$ */ 2 2 /** @file 3 * IPRT Filesystem API (FileSys) - ext2/3format.3 * IPRT, Ext2/3/4 format. 4 4 */ 5 5 6 6 /* 7 * Copyright (C) 2012-201 7Oracle Corporation7 * Copyright (C) 2012-2018 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 25 25 */ 26 26 27 #ifndef ___iprt_formats_ext 2_h28 #define ___iprt_formats_ext 2_h27 #ifndef ___iprt_formats_ext_h 28 #define ___iprt_formats_ext_h 29 29 30 30 #include <iprt/types.h> … … 33 33 34 34 /* 35 * The filesystem structures are from http://wiki.osdev.org/Ext2 and36 * http ://www.nongnu.org/ext2-doc/ext2.html35 * The filesystem structures were retrieved from: 36 * https://www.kernel.org/doc/html/latest/filesystems/ext4/index.html 37 37 */ 38 38 39 39 /** 40 * Ext 2superblock.40 * Ext superblock. 41 41 * 42 42 * Everything is stored little endian on the disk. 43 43 */ 44 typedef struct EXT 2SUPERBLOCK44 typedef struct EXTSUPERBLOCK 45 45 { 46 46 /** Total number of inodes in the filesystem. */ … … 96 96 /** Reserved fields. */ 97 97 uint8_t abReserved[940]; 98 } EXT 2SUPERBLOCK;99 AssertCompileSize(EXT 2SUPERBLOCK, 1024);100 /** Pointer to an ext 2super block. */101 typedef EXT 2SUPERBLOCK *PEXT2SUPERBLOCK;102 /** Pointer to a const ext 2super block. */103 typedef EXT 2SUPERBLOCK const *PCEXT2SUPERBLOCK;98 } EXTSUPERBLOCK; 99 AssertCompileSize(EXTSUPERBLOCK, 1024); 100 /** Pointer to an ext super block. */ 101 typedef EXTSUPERBLOCK *PEXTSUPERBLOCK; 102 /** Pointer to a const ext super block. */ 103 typedef EXTSUPERBLOCK const *PCEXTSUPERBLOCK; 104 104 105 /** Ext 2signature. */106 #define EXT 2_SIGNATURE UINT16_C(0xef53)105 /** Ext signature. */ 106 #define EXT_SIGNATURE UINT16_C(0xef53) 107 107 /** Clean filesystem state. */ 108 #define EXT 2_STATE_CLEAN UINT16_C(0x0001)108 #define EXT_STATE_CLEAN UINT16_C(0x0001) 109 109 /** Error filesystem state. */ 110 #define EXT 2_STATE_ERRORS UINT16_C(0x0002)110 #define EXT_STATE_ERRORS UINT16_C(0x0002) 111 111 112 112 /** 113 113 * Block group descriptor. 114 114 */ 115 typedef struct EXT 2BLOCKGROUPDESC115 typedef struct EXTBLOCKGROUPDESC 116 116 { 117 117 /** Block address of the block bitmap. */ … … 131 131 /** Reserved. */ 132 132 uint8_t abReserved[12]; 133 } EXT 2BLOCKGROUPDESC;134 AssertCompileSize(EXT 2BLOCKGROUPDESC, 32);133 } EXTBLOCKGROUPDESC; 134 AssertCompileSize(EXTBLOCKGROUPDESC, 32); 135 135 /** Pointer to an ext block group descriptor. */ 136 typedef EXT 2BLOCKGROUPDESC *PEXT2BLOCKGROUPDESC;136 typedef EXTBLOCKGROUPDESC *PEXTBLOCKGROUPDESC; 137 137 138 138 #endif -
trunk/include/iprt/mangling.h
r76096 r76216 965 965 # define RTFsQueryType RT_MANGLER(RTFsQueryType) 966 966 # define RTFsTypeName RT_MANGLER(RTFsTypeName) 967 # define RTFsExt 2VolOpen RT_MANGLER(RTFsExt2VolOpen)967 # define RTFsExtVolOpen RT_MANGLER(RTFsExtVolOpen) 968 968 # define RTFsFatVolOpen RT_MANGLER(RTFsFatVolOpen) 969 969 # define RTFsFatVolFormat RT_MANGLER(RTFsFatVolFormat)
Note:
See TracChangeset
for help on using the changeset viewer.