BlockDev.CryptoIntegrityExtra

Fields

Name

Type

Access

Description

buffer_sectors

int

r/w

number of sectors in one buffer

interleave_sectors

int

r/w

number of interleave sectors (power of two)

journal_commit_time

int

r/w

journal commit time (or bitmap flush time) in ms

journal_size

int

r/w

size of journal in bytes

journal_watermark

int

r/w

journal flush watermark in percents; in bitmap mode sectors-per-bit

sector_size

int

r/w

integrity sector size

tag_size

int

r/w

tag size per-sector in bytes

Methods

class

new (sector_size, journal_size, journal_watermark, journal_commit_time, interleave_sectors, tag_size, buffer_sectors)

Details

class BlockDev.CryptoIntegrityExtra
classmethod new(sector_size, journal_size, journal_watermark, journal_commit_time, interleave_sectors, tag_size, buffer_sectors)
Parameters:
  • sector_size (int) – integrity sector size, 0 for default (512)

  • journal_size (int) – size of journal in bytes

  • journal_watermark (int) – journal flush watermark in percents; in bitmap mode sectors-per-bit

  • journal_commit_time (int) – journal commit time (or bitmap flush time) in ms

  • interleave_sectors (int) – number of interleave sectors (power of two)

  • tag_size (int) – tag size per-sector in bytes

  • buffer_sectors (int) – number of sectors in one buffer

Returns:

a new Integrity extra argument

Return type:

BlockDev.CryptoIntegrityExtra