Android-cuttlefish cvd tool
Classes | Macros | Typedefs
jbd2.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  journal_header_s
 
struct  commit_header
 
struct  journal_block_tag_s
 
struct  jbd2_journal_revoke_header_s
 
struct  journal_superblock_s
 

Macros

#define JBD2_DEBUG
 
#define jfs_debug   jbd_debug
 
#define journal_oom_retry   1
 
#define JBD2_DEFAULT_MAX_COMMIT_AGE   5
 
#define jbd_debug(f, a...)
 
#define JBD2_MIN_JOURNAL_BLOCKS   1024
 
#define JBD2_MAGIC_NUMBER   0xc03b3998U
 
#define JBD2_DESCRIPTOR_BLOCK   1
 
#define JBD2_COMMIT_BLOCK   2
 
#define JBD2_SUPERBLOCK_V1   3
 
#define JBD2_SUPERBLOCK_V2   4
 
#define JBD2_REVOKE_BLOCK   5
 
#define JBD2_CRC32_CHKSUM   1
 
#define JBD2_MD5_CHKSUM   2
 
#define JBD2_SHA1_CHKSUM   3
 
#define JBD2_CRC32_CHKSUM_SIZE   4
 
#define JBD2_CHECKSUM_BYTES   (32 / sizeof(__u32))
 
#define JBD2_TAG_SIZE32   (offsetof(journal_block_tag_t, t_blocknr_high))
 
#define JBD2_TAG_SIZE64   (sizeof(journal_block_tag_t))
 
#define JBD2_FLAG_ESCAPE   1
 
#define JBD2_FLAG_SAME_UUID   2
 
#define JBD2_FLAG_DELETED   4
 
#define JBD2_FLAG_LAST_TAG   8
 
#define JBD2_HAS_COMPAT_FEATURE(j, mask)    ((j)->j_format_version >= 2 && ((j)->j_superblock->s_feature_compat & cpu_to_be32((mask))))
 
#define JBD2_HAS_RO_COMPAT_FEATURE(j, mask)    ((j)->j_format_version >= 2 && ((j)->j_superblock->s_feature_ro_compat & cpu_to_be32((mask))))
 
#define JBD2_HAS_INCOMPAT_FEATURE(j, mask)    ((j)->j_format_version >= 2 && ((j)->j_superblock->s_feature_incompat & cpu_to_be32((mask))))
 
#define JBD2_FEATURE_COMPAT_CHECKSUM   0x00000001
 
#define JBD2_FEATURE_INCOMPAT_REVOKE   0x00000001
 
#define JBD2_FEATURE_INCOMPAT_64BIT   0x00000002
 
#define JBD2_FEATURE_INCOMPAT_ASYNC_COMMIT   0x00000004
 
#define JBD2_KNOWN_COMPAT_FEATURES   JBD2_FEATURE_COMPAT_CHECKSUM
 
#define JBD2_KNOWN_ROCOMPAT_FEATURES   0
 
#define JBD2_KNOWN_INCOMPAT_FEATURES
 
#define BJ_None   0
 
#define BJ_Metadata   1
 
#define BJ_Forget   2
 
#define BJ_IO   3
 
#define BJ_Shadow   4
 
#define BJ_LogCtl   5
 
#define BJ_Reserved   6
 
#define BJ_Types   7
 

Typedefs

typedef struct journal_header_s journal_header_t
 
typedef struct journal_block_tag_s journal_block_tag_t
 
typedef struct jbd2_journal_revoke_header_s jbd2_journal_revoke_header_t
 
typedef struct journal_superblock_s journal_superblock_t
 

Macro Definition Documentation

◆ BJ_Forget

#define BJ_Forget   2

◆ BJ_IO

#define BJ_IO   3

◆ BJ_LogCtl

#define BJ_LogCtl   5

◆ BJ_Metadata

#define BJ_Metadata   1

◆ BJ_None

#define BJ_None   0

◆ BJ_Reserved

#define BJ_Reserved   6

◆ BJ_Shadow

#define BJ_Shadow   4

◆ BJ_Types

#define BJ_Types   7

◆ JBD2_CHECKSUM_BYTES

#define JBD2_CHECKSUM_BYTES   (32 / sizeof(__u32))

◆ JBD2_COMMIT_BLOCK

#define JBD2_COMMIT_BLOCK   2

◆ JBD2_CRC32_CHKSUM

#define JBD2_CRC32_CHKSUM   1

◆ JBD2_CRC32_CHKSUM_SIZE

#define JBD2_CRC32_CHKSUM_SIZE   4

◆ JBD2_DEBUG

#define JBD2_DEBUG

◆ JBD2_DEFAULT_MAX_COMMIT_AGE

#define JBD2_DEFAULT_MAX_COMMIT_AGE   5

◆ JBD2_DESCRIPTOR_BLOCK

#define JBD2_DESCRIPTOR_BLOCK   1

◆ JBD2_FEATURE_COMPAT_CHECKSUM

#define JBD2_FEATURE_COMPAT_CHECKSUM   0x00000001

◆ JBD2_FEATURE_INCOMPAT_64BIT

#define JBD2_FEATURE_INCOMPAT_64BIT   0x00000002

◆ JBD2_FEATURE_INCOMPAT_ASYNC_COMMIT

#define JBD2_FEATURE_INCOMPAT_ASYNC_COMMIT   0x00000004

◆ JBD2_FEATURE_INCOMPAT_REVOKE

#define JBD2_FEATURE_INCOMPAT_REVOKE   0x00000001

◆ JBD2_FLAG_DELETED

#define JBD2_FLAG_DELETED   4

◆ JBD2_FLAG_ESCAPE

#define JBD2_FLAG_ESCAPE   1

◆ JBD2_FLAG_LAST_TAG

#define JBD2_FLAG_LAST_TAG   8

◆ JBD2_FLAG_SAME_UUID

#define JBD2_FLAG_SAME_UUID   2

◆ JBD2_HAS_COMPAT_FEATURE

#define JBD2_HAS_COMPAT_FEATURE (   j,
  mask 
)     ((j)->j_format_version >= 2 && ((j)->j_superblock->s_feature_compat & cpu_to_be32((mask))))

◆ JBD2_HAS_INCOMPAT_FEATURE

#define JBD2_HAS_INCOMPAT_FEATURE (   j,
  mask 
)     ((j)->j_format_version >= 2 && ((j)->j_superblock->s_feature_incompat & cpu_to_be32((mask))))

◆ JBD2_HAS_RO_COMPAT_FEATURE

#define JBD2_HAS_RO_COMPAT_FEATURE (   j,
  mask 
)     ((j)->j_format_version >= 2 && ((j)->j_superblock->s_feature_ro_compat & cpu_to_be32((mask))))

◆ JBD2_KNOWN_COMPAT_FEATURES

#define JBD2_KNOWN_COMPAT_FEATURES   JBD2_FEATURE_COMPAT_CHECKSUM

◆ JBD2_KNOWN_INCOMPAT_FEATURES

#define JBD2_KNOWN_INCOMPAT_FEATURES
Value:
JBD2_FEATURE_INCOMPAT_ASYNC_COMMIT)
#define JBD2_FEATURE_INCOMPAT_64BIT
Definition: jbd2.h:122
#define JBD2_FEATURE_INCOMPAT_REVOKE
Definition: jbd2.h:121

◆ JBD2_KNOWN_ROCOMPAT_FEATURES

#define JBD2_KNOWN_ROCOMPAT_FEATURES   0

◆ JBD2_MAGIC_NUMBER

#define JBD2_MAGIC_NUMBER   0xc03b3998U

◆ JBD2_MD5_CHKSUM

#define JBD2_MD5_CHKSUM   2

◆ JBD2_MIN_JOURNAL_BLOCKS

#define JBD2_MIN_JOURNAL_BLOCKS   1024

◆ JBD2_REVOKE_BLOCK

#define JBD2_REVOKE_BLOCK   5

◆ JBD2_SHA1_CHKSUM

#define JBD2_SHA1_CHKSUM   3

◆ JBD2_SUPERBLOCK_V1

#define JBD2_SUPERBLOCK_V1   3

◆ JBD2_SUPERBLOCK_V2

#define JBD2_SUPERBLOCK_V2   4

◆ JBD2_TAG_SIZE32

#define JBD2_TAG_SIZE32   (offsetof(journal_block_tag_t, t_blocknr_high))

◆ JBD2_TAG_SIZE64

#define JBD2_TAG_SIZE64   (sizeof(journal_block_tag_t))

◆ jbd_debug

#define jbd_debug (   f,
  a... 
)

◆ jfs_debug

#define jfs_debug   jbd_debug

◆ journal_oom_retry

#define journal_oom_retry   1

Typedef Documentation

◆ jbd2_journal_revoke_header_t

◆ journal_block_tag_t

◆ journal_header_t

◆ journal_superblock_t