-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathe2fstool.h
executable file
·55 lines (43 loc) · 1.17 KB
/
e2fstool.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef E2FSTOOL_H_INC
#define E2FSTOOL_H_INC
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sparse/sparse.h>
#include <assert.h>
#include <e2p/e2p.h>
#include <ext2fs/ext2fs.h>
#include <ext2fs/ext2fsP.h>
#include <private/android_filesystem_capability.h>
#define E2FSTOOL_VERSION "1.1.0"
#define E2FSTOOL_DATE "15-July-2024"
#define E2FSTOOL_ERROR(pfx, ...) printf("%s: %s " pfx "\n", __func__, strerror(errno) __VA_OPT__(,) __VA_ARGS__)
#ifdef SVB_MINGW
#ifdef HAVE_LIB_NT_H
#include "libnt.h"
#endif
#define mkdir(p, m) mkdir(p)
#endif
#ifndef XATTR_SELINUX_SUFFIX
#define XATTR_SELINUX_SUFFIX "selinux"
#endif
#ifndef XATTR_CAPS_SUFFIX
#define XATTR_CAPS_SUFFIX "capability"
#endif
#define FILE_MODE_MASK 0x0FFF
#define FILE_READ_BUFLEN (1 << 27)
#define RESERVED_INODES_COUNT 0xA /* Excluding EXT2_ROOT_INO */
#define SYMLINK_I_BLOCK_MAX_SIZE 0x3D
#define SPARSE_HEADER_MAGIC 0xed26ff3a
#define MOTO_HEADER_MAGIC 0x4f544f4d
typedef enum image_type {
SPARSE,
RAW,
MOTO,
UNKNOWN
} image_type_t;
struct inode_params {
char *path;
char *filename;
};
#endif /* E2FSTOOL_H_INC */