Skip to content

Commit

Permalink
dm integrity: update documentation
Browse files Browse the repository at this point in the history
Update documentation with the "meta_device" parameter and flags.

Signed-off-by: Mikulas Patocka <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
  • Loading branch information
Mikulas Patocka authored and snitm committed May 7, 2019
1 parent 893e3c3 commit 88ad5d1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 9 additions & 1 deletion Documentation/device-mapper/dm-integrity.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ interleave_sectors:number
a power of two. If the device is already formatted, the value from
the superblock is used.

meta_device:device
Don't interleave the data and metadata on on device. Use a
separate device for metadata.

buffer_sectors:number
The number of sectors in one buffer. The value is rounded down to
a power of two.
Expand Down Expand Up @@ -167,7 +171,11 @@ The layout of the formatted block device:
provides (i.e. the size of the device minus the size of all
metadata and padding). The user of this target should not send
bios that access data beyond the "provided data sectors" limit.
* flags - a flag is set if journal_mac is used
* flags
SB_FLAG_HAVE_JOURNAL_MAC - a flag is set if journal_mac is used
SB_FLAG_RECALCULATING - recalculating is in progress
* log2(sectors per block)
* a position where recalculating finished
* journal
The journal is divided into sections, each section contains:
* metadata area (4kiB), it contains journal entries
Expand Down
4 changes: 3 additions & 1 deletion drivers/md/dm-integrity.c
Original file line number Diff line number Diff line change
Expand Up @@ -3081,10 +3081,12 @@ static int create_journal(struct dm_integrity_c *ic, char **error)
* buffer_sectors
* journal_watermark
* commit_time
* meta_device
* block_size
* internal_hash
* journal_crypt
* journal_mac
* block_size
* recalculate
*/
static int dm_integrity_ctr(struct dm_target *ti, unsigned argc, char **argv)
{
Expand Down

0 comments on commit 88ad5d1

Please sign in to comment.