... | ... | @@ -109,6 +109,16 @@ _Available since: 1.0.0 (kernel 4.12)_ |
|
|
such as dm-crypt.
|
|
|
_Available since: 1.0.0 (kernel 4.12)_
|
|
|
|
|
|
* **meta_device**: device.
|
|
|
This is optional separate device that is going to be used for metadata.
|
|
|
It allows to add integrity information to already existing device specified in **data_dev**.
|
|
|
It may be specified as a path, like /dev/sdaX, or a device number, major:minor.
|
|
|
_Available since: 1.2.0 (kernel 4.19)_
|
|
|
|
|
|
* **recalculate**: Recalculate the initial integrity tags automatically.
|
|
|
It is only valid when using internal hash.
|
|
|
_Available since: 1.2.0 (kernel 4.19)_
|
|
|
|
|
|
### Optional Journal encryption parameters
|
|
|
The encryption of journal should be used only in combination with data encryption.
|
|
|
|
... | ... | @@ -202,13 +212,15 @@ The current on-disk dm-integrity specification (size of superblock is always 512 |
|
|
```
|
|
|
struct integrity_sb {
|
|
|
uint8_t magic[8]; /* "integrt" */
|
|
|
uint8_t version; /* superblock version, 1 */
|
|
|
uint8_t version; /* superblock version, 1 or 2 */
|
|
|
int8_t log2_interleave_sectors; /* interleave sectors */
|
|
|
uint16_t integrity_tag_size; /* tag size per-sector */
|
|
|
uint32_t journal_sections; /* size of journal */
|
|
|
uint64_t provided_data_sectors; /* available size for data */
|
|
|
uint32_t flags; /* flags */
|
|
|
uint8_t log2_sectors_per_block; /* presented block (sector) size */
|
|
|
uint8_t pad[3]; /* (padding) */
|
|
|
uint64_t recalc_sector; /* current recalculate sector, V2 superblock only */
|
|
|
} __attribute__ ((packed));
|
|
|
|
|
|
```
|
... | ... | |