Android-cuttlefish cvd tool
Classes | Macros | Typedefs | Functions | Variables
ext4_utils.h File Reference
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
#include <setjmp.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ext4_sb.h"
Include dependency graph for ext4_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ext2_group_desc
 
struct  fs_aux_info
 

Macros

#define EXT4_JNL_BACKUP_BLOCKS   1
 
#define min(a, b)   ((a) < (b) ? (a) : (b))
 
#define DIV_ROUND_UP(x, y)   (((x) + (y)-1) / (y))
 
#define EXT4_ALIGN(x, y)   ((y)*DIV_ROUND_UP((x), (y)))
 
#define cpu_to_le32(x)   (x)
 
#define cpu_to_le16(x)   (x)
 
#define le32_to_cpu(x)   (x)
 
#define le16_to_cpu(x)   (x)
 
#define PRIext4u64   PRIu64
 

Typedefs

typedef unsigned long long u64
 
typedef signed long long s64
 
typedef unsigned int u32
 
typedef unsigned short int u16
 
typedef unsigned char u8
 

Functions

int bitmap_get_bit (u8 *bitmap, u32 bit)
 
u64 get_block_device_size (int fd)
 
int is_block_device_fd (int fd)
 
u64 get_file_size (int fd)
 
int ext4_bg_has_super_block (int bg)
 
int read_ext (int fd, int verbose)
 

Variables

int force
 
struct fs_info info
 
struct fs_aux_info aux_info
 
jmp_buf setjmp_env
 

Macro Definition Documentation

◆ cpu_to_le16

#define cpu_to_le16 (   x)    (x)

◆ cpu_to_le32

#define cpu_to_le32 (   x)    (x)

◆ DIV_ROUND_UP

#define DIV_ROUND_UP (   x,
 
)    (((x) + (y)-1) / (y))

◆ EXT4_ALIGN

#define EXT4_ALIGN (   x,
 
)    ((y)*DIV_ROUND_UP((x), (y)))

◆ EXT4_JNL_BACKUP_BLOCKS

#define EXT4_JNL_BACKUP_BLOCKS   1

◆ le16_to_cpu

#define le16_to_cpu (   x)    (x)

◆ le32_to_cpu

#define le32_to_cpu (   x)    (x)

◆ min

#define min (   a,
 
)    ((a) < (b) ? (a) : (b))

◆ PRIext4u64

#define PRIext4u64   PRIu64

Typedef Documentation

◆ s64

typedef signed long long s64

◆ u16

typedef unsigned short int u16

◆ u32

typedef unsigned int u32

◆ u64

typedef unsigned long long u64

◆ u8

typedef unsigned char u8

Function Documentation

◆ bitmap_get_bit()

int bitmap_get_bit ( u8 bitmap,
u32  bit 
)

◆ ext4_bg_has_super_block()

int ext4_bg_has_super_block ( int  bg)

◆ get_block_device_size()

u64 get_block_device_size ( int  fd)

◆ get_file_size()

u64 get_file_size ( int  fd)

◆ is_block_device_fd()

int is_block_device_fd ( int  fd)

◆ read_ext()

int read_ext ( int  fd,
int  verbose 
)

Variable Documentation

◆ aux_info

struct fs_aux_info aux_info
extern

◆ force

int force
extern

◆ info

struct fs_info info
extern

◆ setjmp_env

jmp_buf setjmp_env
extern