Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/ext2fs
File: ext2fs.h
/*
[0] Fix | Delete
* ext2fs.h --- ext2fs
[1] Fix | Delete
*
[2] Fix | Delete
* Copyright (C) 1993, 1994, 1995, 1996 Theodore Ts'o.
[3] Fix | Delete
*
[4] Fix | Delete
* %Begin-Header%
[5] Fix | Delete
* This file may be redistributed under the terms of the GNU Library
[6] Fix | Delete
* General Public License, version 2.
[7] Fix | Delete
* %End-Header%
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
#ifndef _EXT2FS_EXT2FS_H
[11] Fix | Delete
#define _EXT2FS_EXT2FS_H
[12] Fix | Delete
[13] Fix | Delete
#ifdef __GNUC__
[14] Fix | Delete
#define EXT2FS_ATTR(x) __attribute__(x)
[15] Fix | Delete
#else
[16] Fix | Delete
#define EXT2FS_ATTR(x)
[17] Fix | Delete
#endif
[18] Fix | Delete
[19] Fix | Delete
#ifdef CONFIG_TDB
[20] Fix | Delete
#define EXT2FS_NO_TDB_UNUSED
[21] Fix | Delete
#else
[22] Fix | Delete
#define EXT2FS_NO_TDB_UNUSED EXT2FS_ATTR((unused))
[23] Fix | Delete
#endif
[24] Fix | Delete
[25] Fix | Delete
#ifdef __cplusplus
[26] Fix | Delete
extern "C" {
[27] Fix | Delete
#endif
[28] Fix | Delete
[29] Fix | Delete
/*
[30] Fix | Delete
* Non-GNU C compilers won't necessarily understand inline
[31] Fix | Delete
*/
[32] Fix | Delete
#if (!defined(__GNUC__) && !defined(__WATCOMC__))
[33] Fix | Delete
#define NO_INLINE_FUNCS
[34] Fix | Delete
#endif
[35] Fix | Delete
[36] Fix | Delete
/*
[37] Fix | Delete
* Where the master copy of the superblock is located, and how big
[38] Fix | Delete
* superblocks are supposed to be. We define SUPERBLOCK_SIZE because
[39] Fix | Delete
* the size of the superblock structure is not necessarily trustworthy
[40] Fix | Delete
* (some versions have the padding set up so that the superblock is
[41] Fix | Delete
* 1032 bytes long).
[42] Fix | Delete
*/
[43] Fix | Delete
#define SUPERBLOCK_OFFSET 1024
[44] Fix | Delete
#define SUPERBLOCK_SIZE 1024
[45] Fix | Delete
[46] Fix | Delete
#define UUID_STR_SIZE 37
[47] Fix | Delete
[48] Fix | Delete
/*
[49] Fix | Delete
* The last ext2fs revision level that this version of the library is
[50] Fix | Delete
* able to support.
[51] Fix | Delete
*/
[52] Fix | Delete
#define EXT2_LIB_CURRENT_REV EXT2_DYNAMIC_REV
[53] Fix | Delete
[54] Fix | Delete
#ifdef HAVE_SYS_TYPES_H
[55] Fix | Delete
#include <sys/types.h>
[56] Fix | Delete
#endif
[57] Fix | Delete
[58] Fix | Delete
#include <stdio.h>
[59] Fix | Delete
#include <stdlib.h>
[60] Fix | Delete
#include <string.h>
[61] Fix | Delete
#include <time.h>
[62] Fix | Delete
#include <errno.h>
[63] Fix | Delete
[64] Fix | Delete
#if EXT2_FLAT_INCLUDES
[65] Fix | Delete
#include "e2_types.h"
[66] Fix | Delete
#include "ext2_fs.h"
[67] Fix | Delete
#include "ext3_extents.h"
[68] Fix | Delete
#else
[69] Fix | Delete
#include <ext2fs/ext2_types.h>
[70] Fix | Delete
#include <ext2fs/ext2_fs.h>
[71] Fix | Delete
#include <ext2fs/ext3_extents.h>
[72] Fix | Delete
#endif /* EXT2_FLAT_INCLUDES */
[73] Fix | Delete
[74] Fix | Delete
typedef __u32 __bitwise ext2_ino_t;
[75] Fix | Delete
typedef __u32 __bitwise blk_t;
[76] Fix | Delete
typedef __u64 __bitwise blk64_t;
[77] Fix | Delete
typedef __u32 __bitwise dgrp_t;
[78] Fix | Delete
typedef __s32 __bitwise ext2_off_t;
[79] Fix | Delete
typedef __s64 __bitwise ext2_off64_t;
[80] Fix | Delete
typedef __s64 __bitwise e2_blkcnt_t;
[81] Fix | Delete
typedef __u32 __bitwise ext2_dirhash_t;
[82] Fix | Delete
[83] Fix | Delete
#if EXT2_FLAT_INCLUDES
[84] Fix | Delete
#include "com_err.h"
[85] Fix | Delete
#include "ext2_io.h"
[86] Fix | Delete
#include "ext2_err.h"
[87] Fix | Delete
#include "ext2_ext_attr.h"
[88] Fix | Delete
#else
[89] Fix | Delete
#include <et/com_err.h>
[90] Fix | Delete
#include <ext2fs/ext2_io.h>
[91] Fix | Delete
#include <ext2fs/ext2_err.h>
[92] Fix | Delete
#include <ext2fs/ext2_ext_attr.h>
[93] Fix | Delete
#endif
[94] Fix | Delete
[95] Fix | Delete
#include "hashmap.h"
[96] Fix | Delete
[97] Fix | Delete
/*
[98] Fix | Delete
* Portability help for Microsoft Visual C++
[99] Fix | Delete
*/
[100] Fix | Delete
#ifdef _MSC_VER
[101] Fix | Delete
#define EXT2_QSORT_TYPE int __cdecl
[102] Fix | Delete
#else
[103] Fix | Delete
#define EXT2_QSORT_TYPE int
[104] Fix | Delete
#endif
[105] Fix | Delete
[106] Fix | Delete
typedef struct struct_ext2_filsys *ext2_filsys;
[107] Fix | Delete
[108] Fix | Delete
#define EXT2FS_MARK_ERROR 0
[109] Fix | Delete
#define EXT2FS_UNMARK_ERROR 1
[110] Fix | Delete
#define EXT2FS_TEST_ERROR 2
[111] Fix | Delete
[112] Fix | Delete
typedef struct ext2fs_struct_generic_bitmap *ext2fs_generic_bitmap;
[113] Fix | Delete
typedef struct ext2fs_struct_generic_bitmap *ext2fs_inode_bitmap;
[114] Fix | Delete
typedef struct ext2fs_struct_generic_bitmap *ext2fs_block_bitmap;
[115] Fix | Delete
[116] Fix | Delete
#define EXT2_FIRST_INODE(s) EXT2_FIRST_INO(s)
[117] Fix | Delete
[118] Fix | Delete
[119] Fix | Delete
/*
[120] Fix | Delete
* Badblocks list definitions
[121] Fix | Delete
*/
[122] Fix | Delete
[123] Fix | Delete
typedef struct ext2_struct_u32_list *ext2_badblocks_list;
[124] Fix | Delete
typedef struct ext2_struct_u32_iterate *ext2_badblocks_iterate;
[125] Fix | Delete
[126] Fix | Delete
typedef struct ext2_struct_u32_list *ext2_u32_list;
[127] Fix | Delete
typedef struct ext2_struct_u32_iterate *ext2_u32_iterate;
[128] Fix | Delete
[129] Fix | Delete
/* old */
[130] Fix | Delete
typedef struct ext2_struct_u32_list *badblocks_list;
[131] Fix | Delete
typedef struct ext2_struct_u32_iterate *badblocks_iterate;
[132] Fix | Delete
[133] Fix | Delete
#define BADBLOCKS_FLAG_DIRTY 1
[134] Fix | Delete
[135] Fix | Delete
/*
[136] Fix | Delete
* ext2_dblist structure and abstractions (see dblist.c)
[137] Fix | Delete
*/
[138] Fix | Delete
struct ext2_db_entry2 {
[139] Fix | Delete
ext2_ino_t ino;
[140] Fix | Delete
blk64_t blk;
[141] Fix | Delete
e2_blkcnt_t blockcnt;
[142] Fix | Delete
};
[143] Fix | Delete
[144] Fix | Delete
/* Ye Olde 32-bit version */
[145] Fix | Delete
struct ext2_db_entry {
[146] Fix | Delete
ext2_ino_t ino;
[147] Fix | Delete
blk_t blk;
[148] Fix | Delete
int blockcnt;
[149] Fix | Delete
};
[150] Fix | Delete
[151] Fix | Delete
typedef struct ext2_struct_dblist *ext2_dblist;
[152] Fix | Delete
[153] Fix | Delete
#define DBLIST_ABORT 1
[154] Fix | Delete
[155] Fix | Delete
/*
[156] Fix | Delete
* ext2_fileio definitions
[157] Fix | Delete
*/
[158] Fix | Delete
[159] Fix | Delete
#define EXT2_FILE_WRITE 0x0001
[160] Fix | Delete
#define EXT2_FILE_CREATE 0x0002
[161] Fix | Delete
[162] Fix | Delete
#define EXT2_FILE_MASK 0x00FF
[163] Fix | Delete
[164] Fix | Delete
#define EXT2_FILE_BUF_DIRTY 0x4000
[165] Fix | Delete
#define EXT2_FILE_BUF_VALID 0x2000
[166] Fix | Delete
[167] Fix | Delete
typedef struct ext2_file *ext2_file_t;
[168] Fix | Delete
[169] Fix | Delete
#define EXT2_SEEK_SET 0
[170] Fix | Delete
#define EXT2_SEEK_CUR 1
[171] Fix | Delete
#define EXT2_SEEK_END 2
[172] Fix | Delete
[173] Fix | Delete
/*
[174] Fix | Delete
* Flags for the ext2_filsys structure and for ext2fs_open()
[175] Fix | Delete
*/
[176] Fix | Delete
#define EXT2_FLAG_RW 0x01
[177] Fix | Delete
#define EXT2_FLAG_CHANGED 0x02
[178] Fix | Delete
#define EXT2_FLAG_DIRTY 0x04
[179] Fix | Delete
#define EXT2_FLAG_VALID 0x08
[180] Fix | Delete
#define EXT2_FLAG_IB_DIRTY 0x10
[181] Fix | Delete
#define EXT2_FLAG_BB_DIRTY 0x20
[182] Fix | Delete
#define EXT2_FLAG_SWAP_BYTES 0x40
[183] Fix | Delete
#define EXT2_FLAG_SWAP_BYTES_READ 0x80
[184] Fix | Delete
#define EXT2_FLAG_SWAP_BYTES_WRITE 0x100
[185] Fix | Delete
#define EXT2_FLAG_MASTER_SB_ONLY 0x200
[186] Fix | Delete
#define EXT2_FLAG_FORCE 0x400
[187] Fix | Delete
#define EXT2_FLAG_SUPER_ONLY 0x800
[188] Fix | Delete
#define EXT2_FLAG_JOURNAL_DEV_OK 0x1000
[189] Fix | Delete
#define EXT2_FLAG_IMAGE_FILE 0x2000
[190] Fix | Delete
#define EXT2_FLAG_EXCLUSIVE 0x4000
[191] Fix | Delete
#define EXT2_FLAG_SOFTSUPP_FEATURES 0x8000
[192] Fix | Delete
#define EXT2_FLAG_NOFREE_ON_ERROR 0x10000
[193] Fix | Delete
#define EXT2_FLAG_64BITS 0x20000
[194] Fix | Delete
#define EXT2_FLAG_PRINT_PROGRESS 0x40000
[195] Fix | Delete
#define EXT2_FLAG_DIRECT_IO 0x80000
[196] Fix | Delete
#define EXT2_FLAG_SKIP_MMP 0x100000
[197] Fix | Delete
#define EXT2_FLAG_IGNORE_CSUM_ERRORS 0x200000
[198] Fix | Delete
#define EXT2_FLAG_SHARE_DUP 0x400000
[199] Fix | Delete
#define EXT2_FLAG_IGNORE_SB_ERRORS 0x800000
[200] Fix | Delete
#define EXT2_FLAG_BBITMAP_TAIL_PROBLEM 0x1000000
[201] Fix | Delete
#define EXT2_FLAG_IBITMAP_TAIL_PROBLEM 0x2000000
[202] Fix | Delete
[203] Fix | Delete
/*
[204] Fix | Delete
* Special flag in the ext2 inode i_flag field that means that this is
[205] Fix | Delete
* a new inode. (So that ext2_write_inode() can clear extra fields.)
[206] Fix | Delete
*/
[207] Fix | Delete
#define EXT2_NEW_INODE_FL 0x80000000
[208] Fix | Delete
[209] Fix | Delete
/*
[210] Fix | Delete
* Flags for mkjournal
[211] Fix | Delete
*/
[212] Fix | Delete
#define EXT2_MKJOURNAL_V1_SUPER 0x0000001 /* create V1 superblock (deprecated) */
[213] Fix | Delete
#define EXT2_MKJOURNAL_LAZYINIT 0x0000002 /* don't zero journal inode before use*/
[214] Fix | Delete
#define EXT2_MKJOURNAL_NO_MNT_CHECK 0x0000004 /* don't check mount status */
[215] Fix | Delete
[216] Fix | Delete
struct blk_alloc_ctx;
[217] Fix | Delete
struct opaque_ext2_group_desc;
[218] Fix | Delete
[219] Fix | Delete
struct struct_ext2_filsys {
[220] Fix | Delete
errcode_t magic;
[221] Fix | Delete
io_channel io;
[222] Fix | Delete
int flags;
[223] Fix | Delete
char * device_name;
[224] Fix | Delete
struct ext2_super_block * super;
[225] Fix | Delete
unsigned int blocksize;
[226] Fix | Delete
int fragsize;
[227] Fix | Delete
dgrp_t group_desc_count;
[228] Fix | Delete
unsigned long desc_blocks;
[229] Fix | Delete
struct opaque_ext2_group_desc * group_desc;
[230] Fix | Delete
unsigned int inode_blocks_per_group;
[231] Fix | Delete
ext2fs_inode_bitmap inode_map;
[232] Fix | Delete
ext2fs_block_bitmap block_map;
[233] Fix | Delete
/* XXX FIXME-64: not 64-bit safe, but not used? */
[234] Fix | Delete
errcode_t (*get_blocks)(ext2_filsys fs, ext2_ino_t ino, blk_t *blocks);
[235] Fix | Delete
errcode_t (*check_directory)(ext2_filsys fs, ext2_ino_t ino);
[236] Fix | Delete
errcode_t (*write_bitmaps)(ext2_filsys fs);
[237] Fix | Delete
errcode_t (*read_inode)(ext2_filsys fs, ext2_ino_t ino,
[238] Fix | Delete
struct ext2_inode *inode);
[239] Fix | Delete
errcode_t (*write_inode)(ext2_filsys fs, ext2_ino_t ino,
[240] Fix | Delete
struct ext2_inode *inode);
[241] Fix | Delete
ext2_badblocks_list badblocks;
[242] Fix | Delete
ext2_dblist dblist;
[243] Fix | Delete
__u32 stride; /* for mke2fs */
[244] Fix | Delete
struct ext2_super_block * orig_super;
[245] Fix | Delete
struct ext2_image_hdr * image_header;
[246] Fix | Delete
__u32 umask;
[247] Fix | Delete
time_t now;
[248] Fix | Delete
int cluster_ratio_bits;
[249] Fix | Delete
__u16 default_bitmap_type;
[250] Fix | Delete
__u16 pad;
[251] Fix | Delete
[252] Fix | Delete
/*
[253] Fix | Delete
* RedHat specific change to prevent ABI change by using 8
[254] Fix | Delete
* reserved bytes
[255] Fix | Delete
*/
[256] Fix | Delete
const struct ext2fs_nls_table *encoding;
[257] Fix | Delete
[258] Fix | Delete
/*
[259] Fix | Delete
* Reserved for future expansion
[260] Fix | Delete
*/
[261] Fix | Delete
__u32 reserved[5 - (sizeof(long int)/4)];
[262] Fix | Delete
[263] Fix | Delete
/*
[264] Fix | Delete
* Reserved for the use of the calling application.
[265] Fix | Delete
*/
[266] Fix | Delete
void * priv_data;
[267] Fix | Delete
[268] Fix | Delete
/*
[269] Fix | Delete
* Inode cache
[270] Fix | Delete
*/
[271] Fix | Delete
struct ext2_inode_cache *icache;
[272] Fix | Delete
io_channel image_io;
[273] Fix | Delete
[274] Fix | Delete
/*
[275] Fix | Delete
* More callback functions
[276] Fix | Delete
*/
[277] Fix | Delete
errcode_t (*get_alloc_block)(ext2_filsys fs, blk64_t goal,
[278] Fix | Delete
blk64_t *ret);
[279] Fix | Delete
errcode_t (*get_alloc_block2)(ext2_filsys fs, blk64_t goal,
[280] Fix | Delete
blk64_t *ret, struct blk_alloc_ctx *ctx);
[281] Fix | Delete
void (*block_alloc_stats)(ext2_filsys fs, blk64_t blk, int inuse);
[282] Fix | Delete
[283] Fix | Delete
/*
[284] Fix | Delete
* Buffers for Multiple mount protection(MMP) block.
[285] Fix | Delete
*/
[286] Fix | Delete
void *mmp_buf;
[287] Fix | Delete
void *mmp_cmp;
[288] Fix | Delete
int mmp_fd;
[289] Fix | Delete
[290] Fix | Delete
/*
[291] Fix | Delete
* Time at which e2fsck last updated the MMP block.
[292] Fix | Delete
*/
[293] Fix | Delete
long mmp_last_written;
[294] Fix | Delete
[295] Fix | Delete
/* progress operation functions */
[296] Fix | Delete
struct ext2fs_progress_ops *progress_ops;
[297] Fix | Delete
[298] Fix | Delete
/* Precomputed FS UUID checksum for seeding other checksums */
[299] Fix | Delete
__u32 csum_seed;
[300] Fix | Delete
[301] Fix | Delete
io_channel journal_io;
[302] Fix | Delete
char *journal_name;
[303] Fix | Delete
[304] Fix | Delete
/* New block range allocation hooks */
[305] Fix | Delete
errcode_t (*new_range)(ext2_filsys fs, int flags, blk64_t goal,
[306] Fix | Delete
blk64_t len, blk64_t *pblk, blk64_t *plen);
[307] Fix | Delete
void (*block_alloc_stats_range)(ext2_filsys fs, blk64_t blk, blk_t num,
[308] Fix | Delete
int inuse);
[309] Fix | Delete
[310] Fix | Delete
/* hashmap for SHA of data blocks */
[311] Fix | Delete
struct ext2fs_hashmap* block_sha_map;
[312] Fix | Delete
};
[313] Fix | Delete
[314] Fix | Delete
#if EXT2_FLAT_INCLUDES
[315] Fix | Delete
#include "e2_bitops.h"
[316] Fix | Delete
#else
[317] Fix | Delete
#include <ext2fs/bitops.h>
[318] Fix | Delete
#endif
[319] Fix | Delete
[320] Fix | Delete
/*
[321] Fix | Delete
* 64-bit bitmap backend types
[322] Fix | Delete
*/
[323] Fix | Delete
#define EXT2FS_BMAP64_BITARRAY 1
[324] Fix | Delete
#define EXT2FS_BMAP64_RBTREE 2
[325] Fix | Delete
#define EXT2FS_BMAP64_AUTODIR 3
[326] Fix | Delete
[327] Fix | Delete
/*
[328] Fix | Delete
* Return flags for the block iterator functions
[329] Fix | Delete
*/
[330] Fix | Delete
#define BLOCK_CHANGED 1
[331] Fix | Delete
#define BLOCK_ABORT 2
[332] Fix | Delete
#define BLOCK_ERROR 4
[333] Fix | Delete
#define BLOCK_INLINE_DATA_CHANGED 8
[334] Fix | Delete
[335] Fix | Delete
/*
[336] Fix | Delete
* Block interate flags
[337] Fix | Delete
*
[338] Fix | Delete
* BLOCK_FLAG_APPEND, or BLOCK_FLAG_HOLE, indicates that the interator
[339] Fix | Delete
* function should be called on blocks where the block number is zero.
[340] Fix | Delete
* This is used by ext2fs_expand_dir() to be able to add a new block
[341] Fix | Delete
* to an inode. It can also be used for programs that want to be able
[342] Fix | Delete
* to deal with files that contain "holes".
[343] Fix | Delete
*
[344] Fix | Delete
* BLOCK_FLAG_DEPTH_TRAVERSE indicates that the iterator function for
[345] Fix | Delete
* the indirect, doubly indirect, etc. blocks should be called after
[346] Fix | Delete
* all of the blocks contained in the indirect blocks are processed.
[347] Fix | Delete
* This is useful if you are going to be deallocating blocks from an
[348] Fix | Delete
* inode.
[349] Fix | Delete
*
[350] Fix | Delete
* BLOCK_FLAG_DATA_ONLY indicates that the iterator function should be
[351] Fix | Delete
* called for data blocks only.
[352] Fix | Delete
*
[353] Fix | Delete
* BLOCK_FLAG_READ_ONLY is a promise by the caller that it will not
[354] Fix | Delete
* modify returned block number.
[355] Fix | Delete
*
[356] Fix | Delete
* BLOCK_FLAG_NO_LARGE is for internal use only. It informs
[357] Fix | Delete
* ext2fs_block_iterate2 that large files won't be accepted.
[358] Fix | Delete
*/
[359] Fix | Delete
#define BLOCK_FLAG_APPEND 1
[360] Fix | Delete
#define BLOCK_FLAG_HOLE 1
[361] Fix | Delete
#define BLOCK_FLAG_DEPTH_TRAVERSE 2
[362] Fix | Delete
#define BLOCK_FLAG_DATA_ONLY 4
[363] Fix | Delete
#define BLOCK_FLAG_READ_ONLY 8
[364] Fix | Delete
[365] Fix | Delete
#define BLOCK_FLAG_NO_LARGE 0x1000
[366] Fix | Delete
[367] Fix | Delete
/*
[368] Fix | Delete
* Magic "block count" return values for the block iterator function.
[369] Fix | Delete
*/
[370] Fix | Delete
#define BLOCK_COUNT_IND (-1)
[371] Fix | Delete
#define BLOCK_COUNT_DIND (-2)
[372] Fix | Delete
#define BLOCK_COUNT_TIND (-3)
[373] Fix | Delete
#define BLOCK_COUNT_TRANSLATOR (-4)
[374] Fix | Delete
[375] Fix | Delete
#define BLOCK_ALLOC_UNKNOWN 0
[376] Fix | Delete
#define BLOCK_ALLOC_DATA 1
[377] Fix | Delete
#define BLOCK_ALLOC_METADATA 2
[378] Fix | Delete
[379] Fix | Delete
struct blk_alloc_ctx {
[380] Fix | Delete
ext2_ino_t ino;
[381] Fix | Delete
struct ext2_inode *inode;
[382] Fix | Delete
blk64_t lblk;
[383] Fix | Delete
int flags;
[384] Fix | Delete
};
[385] Fix | Delete
[386] Fix | Delete
#if 0
[387] Fix | Delete
/*
[388] Fix | Delete
* Flags for ext2fs_move_blocks
[389] Fix | Delete
*/
[390] Fix | Delete
#define EXT2_BMOVE_GET_DBLIST 0x0001
[391] Fix | Delete
#define EXT2_BMOVE_DEBUG 0x0002
[392] Fix | Delete
#endif
[393] Fix | Delete
[394] Fix | Delete
/*
[395] Fix | Delete
* Generic (non-filesystem layout specific) extents structure
[396] Fix | Delete
*/
[397] Fix | Delete
[398] Fix | Delete
#define EXT2_EXTENT_FLAGS_LEAF 0x0001
[399] Fix | Delete
#define EXT2_EXTENT_FLAGS_UNINIT 0x0002
[400] Fix | Delete
#define EXT2_EXTENT_FLAGS_SECOND_VISIT 0x0004
[401] Fix | Delete
[402] Fix | Delete
struct ext2fs_extent {
[403] Fix | Delete
blk64_t e_pblk; /* first physical block */
[404] Fix | Delete
blk64_t e_lblk; /* first logical block extent covers */
[405] Fix | Delete
__u32 e_len; /* number of blocks covered by extent */
[406] Fix | Delete
__u32 e_flags; /* extent flags */
[407] Fix | Delete
};
[408] Fix | Delete
[409] Fix | Delete
typedef struct ext2_extent_handle *ext2_extent_handle_t;
[410] Fix | Delete
typedef struct ext2_extent_path *ext2_extent_path_t;
[411] Fix | Delete
[412] Fix | Delete
/*
[413] Fix | Delete
* Flags used by ext2fs_extent_get()
[414] Fix | Delete
*/
[415] Fix | Delete
#define EXT2_EXTENT_CURRENT 0x0000
[416] Fix | Delete
#define EXT2_EXTENT_MOVE_MASK 0x000F
[417] Fix | Delete
#define EXT2_EXTENT_ROOT 0x0001
[418] Fix | Delete
#define EXT2_EXTENT_LAST_LEAF 0x0002
[419] Fix | Delete
#define EXT2_EXTENT_FIRST_SIB 0x0003
[420] Fix | Delete
#define EXT2_EXTENT_LAST_SIB 0x0004
[421] Fix | Delete
#define EXT2_EXTENT_NEXT_SIB 0x0005
[422] Fix | Delete
#define EXT2_EXTENT_PREV_SIB 0x0006
[423] Fix | Delete
#define EXT2_EXTENT_NEXT_LEAF 0x0007
[424] Fix | Delete
#define EXT2_EXTENT_PREV_LEAF 0x0008
[425] Fix | Delete
#define EXT2_EXTENT_NEXT 0x0009
[426] Fix | Delete
#define EXT2_EXTENT_PREV 0x000A
[427] Fix | Delete
#define EXT2_EXTENT_UP 0x000B
[428] Fix | Delete
#define EXT2_EXTENT_DOWN 0x000C
[429] Fix | Delete
#define EXT2_EXTENT_DOWN_AND_LAST 0x000D
[430] Fix | Delete
[431] Fix | Delete
/*
[432] Fix | Delete
* Flags used by ext2fs_extent_insert()
[433] Fix | Delete
*/
[434] Fix | Delete
#define EXT2_EXTENT_INSERT_AFTER 0x0001 /* insert after handle loc'n */
[435] Fix | Delete
#define EXT2_EXTENT_INSERT_NOSPLIT 0x0002 /* insert may not cause split */
[436] Fix | Delete
[437] Fix | Delete
/*
[438] Fix | Delete
* Flags used by ext2fs_extent_delete()
[439] Fix | Delete
*/
[440] Fix | Delete
#define EXT2_EXTENT_DELETE_KEEP_EMPTY 0x001 /* keep node if last extent gone */
[441] Fix | Delete
[442] Fix | Delete
/*
[443] Fix | Delete
* Flags used by ext2fs_extent_set_bmap()
[444] Fix | Delete
*/
[445] Fix | Delete
#define EXT2_EXTENT_SET_BMAP_UNINIT 0x0001
[446] Fix | Delete
[447] Fix | Delete
/*
[448] Fix | Delete
* Data structure returned by ext2fs_extent_get_info()
[449] Fix | Delete
*/
[450] Fix | Delete
struct ext2_extent_info {
[451] Fix | Delete
int curr_entry;
[452] Fix | Delete
int curr_level;
[453] Fix | Delete
int num_entries;
[454] Fix | Delete
int max_entries;
[455] Fix | Delete
int max_depth;
[456] Fix | Delete
int bytes_avail;
[457] Fix | Delete
blk64_t max_lblk;
[458] Fix | Delete
blk64_t max_pblk;
[459] Fix | Delete
__u32 max_len;
[460] Fix | Delete
__u32 max_uninit_len;
[461] Fix | Delete
};
[462] Fix | Delete
[463] Fix | Delete
/*
[464] Fix | Delete
* Flags for directory block reading and writing functions
[465] Fix | Delete
*/
[466] Fix | Delete
#define EXT2_DIRBLOCK_V2_STRUCT 0x0001
[467] Fix | Delete
[468] Fix | Delete
/*
[469] Fix | Delete
* Return flags for the directory iterator functions
[470] Fix | Delete
*/
[471] Fix | Delete
#define DIRENT_CHANGED 1
[472] Fix | Delete
#define DIRENT_ABORT 2
[473] Fix | Delete
#define DIRENT_ERROR 3
[474] Fix | Delete
[475] Fix | Delete
/*
[476] Fix | Delete
* Directory iterator flags
[477] Fix | Delete
*/
[478] Fix | Delete
[479] Fix | Delete
#define DIRENT_FLAG_INCLUDE_EMPTY 1
[480] Fix | Delete
#define DIRENT_FLAG_INCLUDE_REMOVED 2
[481] Fix | Delete
#define DIRENT_FLAG_INCLUDE_CSUM 4
[482] Fix | Delete
#define DIRENT_FLAG_INCLUDE_INLINE_DATA 8
[483] Fix | Delete
[484] Fix | Delete
#define DIRENT_DOT_FILE 1
[485] Fix | Delete
#define DIRENT_DOT_DOT_FILE 2
[486] Fix | Delete
#define DIRENT_OTHER_FILE 3
[487] Fix | Delete
#define DIRENT_DELETED_FILE 4
[488] Fix | Delete
#define DIRENT_CHECKSUM 5
[489] Fix | Delete
[490] Fix | Delete
/*
[491] Fix | Delete
* Inode scan definitions
[492] Fix | Delete
*/
[493] Fix | Delete
typedef struct ext2_struct_inode_scan *ext2_inode_scan;
[494] Fix | Delete
[495] Fix | Delete
/*
[496] Fix | Delete
* ext2fs_scan flags
[497] Fix | Delete
*/
[498] Fix | Delete
#define EXT2_SF_CHK_BADBLOCKS 0x0001
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function