Motr  M0
battr.h File Reference

Go to the source code of this file.

Macros

#define __MOTR_STOB_BATTR_H__
 

Enumerations

enum  m0_battr_id {
  M0_BI_T10_DIF_512B, M0_BI_T10_DIF_4KB_0, M0_BI_T10_DIF_4KB_1, M0_BI_VERNO,
  M0_BI_CKSUM_CRC_32, M0_BI_CKSUM_FLETCHER_32, M0_BI_CKSUM_FLETCHER_64, M0_BI_CKSUM_SHA256_0,
  M0_BI_CKSUM_SHA256_1, M0_BI_CKSUM_SHA256_2, M0_BI_CKSUM_SHA256_3, M0_BI_REF_TAG
}
 

Macro Definition Documentation

◆ __MOTR_STOB_BATTR_H__

#define __MOTR_STOB_BATTR_H__

Definition at line 26 of file battr.h.

Enumeration Type Documentation

◆ m0_battr_id

Identifiers of stob block attributes

Enumerator
M0_BI_T10_DIF_512B 

64-bit of T10 Data Integrity Field for sector size of 512B

  • Reference Tag: 4 bytes
  • Meta Tag: 2 bytes
  • Guard Tag: 2 bytes
M0_BI_T10_DIF_4KB_0 

128-bit of T10 Data Integrity Field for sector size of 4KiB

  • Reference Tag: ? bytes
  • Meta Tag: ? bytes
  • Guard Tag: ? bytes
M0_BI_T10_DIF_4KB_1 
M0_BI_VERNO 

64-bits of data block version, used by DTM

M0_BI_CKSUM_CRC_32 

32-bit CRC checksum

M0_BI_CKSUM_FLETCHER_32 

32-bit Fletcher-32 checksum

M0_BI_CKSUM_FLETCHER_64 

64-bit Fletcher-64 checksum

M0_BI_CKSUM_SHA256_0 

256-bit SHA-256 checksum

M0_BI_CKSUM_SHA256_1 
M0_BI_CKSUM_SHA256_2 
M0_BI_CKSUM_SHA256_3 
M0_BI_REF_TAG 

64-bit Reference Tag

Definition at line 32 of file battr.h.