€•YŒsphinx.addnodes”Œdocument”“”)�”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)�”}”(hhh]”(hŒ pending_xref”“”)�”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…”�”}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ:/translations/zh_CN/admin-guide/device-mapper/dm-integrity”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)�”}”(hhh]”hŒChinese (Traditional)”…”�”}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ:/translations/zh_TW/admin-guide/device-mapper/dm-integrity”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒItalian”…”�”}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ:/translations/it_IT/admin-guide/device-mapper/dm-integrity”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒJapanese”…”�”}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ:/translations/ja_JP/admin-guide/device-mapper/dm-integrity”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒKorean”…”�”}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ:/translations/ko_KR/admin-guide/device-mapper/dm-integrity”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒPortuguese (Brazilian)”…”�”}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ:/translations/pt_BR/admin-guide/device-mapper/dm-integrity”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒSpanish”…”�”}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ:/translations/sp_SP/admin-guide/device-mapper/dm-integrity”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒ dm-integrity”h]”hŒ dm-integrity”…”�”}”(hh¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhh·h²hh³ŒT/var/lib/git/docbuild/linux/Documentation/admin-guide/device-mapper/dm-integrity.rst”h´KubhŒ paragraph”“”)�”}”(hŒ‡The dm-integrity target emulates a block device that has additional per-sector tags that can be used for storing integrity information.”h]”hŒ‡The dm-integrity target emulates a block device that has additional per-sector tags that can be used for storing integrity information.”…”�”}”(hhÍh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhÌ)�”}”(hŒÙA general problem with storing integrity tags with every sector is that writing the sector and the integrity tag must be atomic - i.e. in case of crash, either both sector and integrity tag or none of them is written.”h]”hŒÙA general problem with storing integrity tags with every sector is that writing the sector and the integrity tag must be atomic - i.e. in case of crash, either both sector and integrity tag or none of them is written.”…”�”}”(hhÛh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhÌ)�”}”(hŒÚTo guarantee write atomicity, the dm-integrity target uses journal, it writes sector data and integrity tags into a journal, commits the journal and then copies the data and integrity tags to their respective location.”h]”hŒÚTo guarantee write atomicity, the dm-integrity target uses journal, it writes sector data and integrity tags into a journal, commits the journal and then copies the data and integrity tags to their respective location.”…”�”}”(hhéh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K hh·h²hubhÌ)�”}”(hX•The dm-integrity target can be used with the dm-crypt target - in this situation the dm-crypt target creates the integrity data and passes them to the dm-integrity target via bio_integrity_payload attached to the bio. In this mode, the dm-crypt and dm-integrity targets provide authenticated disk encryption - if the attacker modifies the encrypted device, an I/O error is returned instead of random data.”h]”hX•The dm-integrity target can be used with the dm-crypt target - in this situation the dm-crypt target creates the integrity data and passes them to the dm-integrity target via bio_integrity_payload attached to the bio. In this mode, the dm-crypt and dm-integrity targets provide authenticated disk encryption - if the attacker modifies the encrypted device, an I/O error is returned instead of random data.”…”�”}”(hh÷h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhÌ)�”}”(hŒùThe dm-integrity target can also be used as a standalone target, in this mode it calculates and verifies the integrity tag internally. In this mode, the dm-integrity target can be used to detect silent data corruption on the disk or in the I/O path.”h]”hŒùThe dm-integrity target can also be used as a standalone target, in this mode it calculates and verifies the integrity tag internally. In this mode, the dm-integrity target can be used to detect silent data corruption on the disk or in the I/O path.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhÌ)�”}”(hXàThere's an alternate mode of operation where dm-integrity uses a bitmap instead of a journal. If a bit in the bitmap is 1, the corresponding region's data and integrity tags are not synchronized - if the machine crashes, the unsynchronized regions will be recalculated. The bitmap mode is faster than the journal mode, because we don't have to write the data twice, but it is also less reliable, because if data corruption happens when the machine crashes, it may not be detected.”h]”hXæThere’s an alternate mode of operation where dm-integrity uses a bitmap instead of a journal. If a bit in the bitmap is 1, the corresponding region’s data and integrity tags are not synchronized - if the machine crashes, the unsynchronized regions will be recalculated. The bitmap mode is faster than the journal mode, because we don’t have to write the data twice, but it is also less reliable, because if data corruption happens when the machine crashes, it may not be detected.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhÌ)�”}”(hŒóWhen loading the target for the first time, the kernel driver will format the device. But it will only format the device if the superblock contains zeroes. If the superblock is neither valid nor zeroed, the dm-integrity target can't be loaded.”h]”hŒõWhen loading the target for the first time, the kernel driver will format the device. But it will only format the device if the superblock contains zeroes. If the superblock is neither valid nor zeroed, the dm-integrity target can’t be loaded.”…”�”}”(hj!h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K$hh·h²hubhÌ)�”}”(hX/Accesses to the on-disk metadata area containing checksums (aka tags) are buffered using dm-bufio. When an access to any given metadata area occurs, each unique metadata area gets its own buffer(s). The buffer size is capped at the size of the metadata area, but may be smaller, thereby requiring multiple buffers to represent the full metadata area. A smaller buffer size will produce a smaller resulting read/write operation to the metadata area for small reads/writes. The metadata is still read even in a full write to the data covered by a single buffer.”h]”hX/Accesses to the on-disk metadata area containing checksums (aka tags) are buffered using dm-bufio. When an access to any given metadata area occurs, each unique metadata area gets its own buffer(s). The buffer size is capped at the size of the metadata area, but may be smaller, thereby requiring multiple buffers to represent the full metadata area. A smaller buffer size will produce a smaller resulting read/write operation to the metadata area for small reads/writes. The metadata is still read even in a full write to the data covered by a single buffer.”…”�”}”(hj/h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K)hh·h²hubhÌ)�”}”(hŒ%To use the target for the first time:”h]”hŒ%To use the target for the first time:”…”�”}”(hj=h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K2hh·h²hubhŒenumerated_list”“”)�”}”(hhh]”(hŒ list_item”“”)�”}”(hŒ$overwrite the superblock with zeroes”h]”hÌ)�”}”(hjTh]”hŒ$overwrite the superblock with zeroes”…”�”}”(hjVh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K4hjRubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjMh²hh³hÊh´NubjQ)�”}”(hŒ[load the dm-integrity target with one-sector size, the kernel driver will format the device”h]”hÌ)�”}”(hŒ[load the dm-integrity target with one-sector size, the kernel driver will format the device”h]”hŒ[load the dm-integrity target with one-sector size, the kernel driver will format the device”…”�”}”(hjmh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K5hjiubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjMh²hh³hÊh´NubjQ)�”}”(hŒunload the dm-integrity target”h]”hÌ)�”}”(hjƒh]”hŒunload the dm-integrity target”…”�”}”(hj…h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K7hj�ubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjMh²hh³hÊh´NubjQ)�”}”(hŒ:read the "provided_data_sectors" value from the superblock”h]”hÌ)�”}”(hjšh]”hŒ>read the “provided_data_sectorsâ€� value from the superblock”…”�”}”(hjœh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K8hj˜ubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjMh²hh³hÊh´NubjQ)�”}”(hŒIload the dm-integrity target with the target size "provided_data_sectors"”h]”hÌ)�”}”(hŒIload the dm-integrity target with the target size "provided_data_sectors"”h]”hŒMload the dm-integrity target with the target size “provided_data_sectorsâ€�”…”�”}”(hj³h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K9hj¯ubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjMh²hh³hÊh´NubjQ)�”}”(hŒoif you want to use dm-integrity with dm-crypt, load the dm-crypt target with the size "provided_data_sectors" ”h]”hÌ)�”}”(hŒmif you want to use dm-integrity with dm-crypt, load the dm-crypt target with the size "provided_data_sectors"”h]”hŒqif you want to use dm-integrity with dm-crypt, load the dm-crypt target with the size “provided_data_sectorsâ€�”…”�”}”(hjËh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K;hjÇubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjMh²hh³hÊh´Nubeh}”(h]”h ]”h"]”h$]”h&]”Œenumtype”Œarabic”Œprefix”hŒsuffix”Œ.”uh1jKhh·h²hh³hÊh´K4ubhÌ)�”}”(hŒTarget arguments:”h]”hŒTarget arguments:”…”�”}”(hjêh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K?hh·h²hubjL)�”}”(hhh]”(jQ)�”}”(hŒthe underlying block device ”h]”hÌ)�”}”(hŒthe underlying block device”h]”hŒthe underlying block device”…”�”}”(hjÿh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KAhjûubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjøh²hh³hÊh´NubjQ)�”}”(hŒrthe number of reserved sector at the beginning of the device - the dm-integrity won't read of write these sectors ”h]”hÌ)�”}”(hŒqthe number of reserved sector at the beginning of the device - the dm-integrity won't read of write these sectors”h]”hŒsthe number of reserved sector at the beginning of the device - the dm-integrity won’t read of write these sectors”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KChjubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjøh²hh³hÊh´NubjQ)�”}”(hŒcthe size of the integrity tag (if "-" is used, the size is taken from the internal-hash algorithm) ”h]”hÌ)�”}”(hŒbthe size of the integrity tag (if "-" is used, the size is taken from the internal-hash algorithm)”h]”hŒfthe size of the integrity tag (if “-â€� is used, the size is taken from the internal-hash algorithm)”…”�”}”(hj/h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KFhj+ubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjøh²hh³hÊh´NubjQ)�”}”(hXÈmode: D - direct writes (without journal) in this mode, journaling is not used and data sectors and integrity tags are written separately. In case of crash, it is possible that the data and integrity tag doesn't match. J - journaled writes data and integrity tags are written to the journal and atomicity is guaranteed. In case of crash, either both data and tag or none of them are written. The journaled mode degrades write throughput twice because the data have to be written twice. B - bitmap mode - data and metadata are written without any synchronization, the driver maintains a bitmap of dirty regions where data and metadata don't match. This mode can only be used with internal hash. R - recovery mode - in this mode, journal is not replayed, checksums are not checked and writes to the device are not allowed. This mode is useful for data recovery if the device cannot be activated in any of the other standard modes. I - inline mode - in this mode, dm-integrity will store integrity data directly in the underlying device sectors. The underlying device must have an integrity profile that allows storing user integrity data and provides enough space for the selected integrity tag. ”h]”(hÌ)�”}”(hŒmode:”h]”hŒmode:”…”�”}”(hjGh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KIhjCubhŒ block_quote”“”)�”}”(hXDD - direct writes (without journal) in this mode, journaling is not used and data sectors and integrity tags are written separately. In case of crash, it is possible that the data and integrity tag doesn't match. J - journaled writes data and integrity tags are written to the journal and atomicity is guaranteed. In case of crash, either both data and tag or none of them are written. The journaled mode degrades write throughput twice because the data have to be written twice. B - bitmap mode - data and metadata are written without any synchronization, the driver maintains a bitmap of dirty regions where data and metadata don't match. This mode can only be used with internal hash. R - recovery mode - in this mode, journal is not replayed, checksums are not checked and writes to the device are not allowed. This mode is useful for data recovery if the device cannot be activated in any of the other standard modes. I - inline mode - in this mode, dm-integrity will store integrity data directly in the underlying device sectors. The underlying device must have an integrity profile that allows storing user integrity data and provides enough space for the selected integrity tag. ”h]”hŒdefinition_list”“”)�”}”(hhh]”(hŒdefinition_list_item”“”)�”}”(hŒÔD - direct writes (without journal) in this mode, journaling is not used and data sectors and integrity tags are written separately. In case of crash, it is possible that the data and integrity tag doesn't match.”h]”(hŒterm”“”)�”}”(hŒ#D - direct writes (without journal)”h]”hŒ#D - direct writes (without journal)”…”�”}”(hjhh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´KNhjbubhŒ definition”“”)�”}”(hhh]”hÌ)�”}”(hŒ°in this mode, journaling is not used and data sectors and integrity tags are written separately. In case of crash, it is possible that the data and integrity tag doesn't match.”h]”hŒ²in this mode, journaling is not used and data sectors and integrity tags are written separately. In case of crash, it is possible that the data and integrity tag doesn’t match.”…”�”}”(hj{h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KLhjxubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhjbubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´KNhj]ubja)�”}”(hX J - journaled writes data and integrity tags are written to the journal and atomicity is guaranteed. In case of crash, either both data and tag or none of them are written. The journaled mode degrades write throughput twice because the data have to be written twice.”h]”(jg)�”}”(hŒJ - journaled writes”h]”hŒJ - journaled writes”…”�”}”(hj™h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´KThj•ubjw)�”}”(hhh]”hÌ)�”}”(hŒõdata and integrity tags are written to the journal and atomicity is guaranteed. In case of crash, either both data and tag or none of them are written. The journaled mode degrades write throughput twice because the data have to be written twice.”h]”hŒõdata and integrity tags are written to the journal and atomicity is guaranteed. In case of crash, either both data and tag or none of them are written. The journaled mode degrades write throughput twice because the data have to be written twice.”…”�”}”(hjªh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KQhj§ubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhj•ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´KThj]ubja)�”}”(hŒÏB - bitmap mode - data and metadata are written without any synchronization, the driver maintains a bitmap of dirty regions where data and metadata don't match. This mode can only be used with internal hash.”h]”(jg)�”}”(hŒ;B - bitmap mode - data and metadata are written without any”h]”hŒ;B - bitmap mode - data and metadata are written without any”…”�”}”(hjÈh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´KXhjÄubjw)�”}”(hhh]”hÌ)�”}”(hŒ“synchronization, the driver maintains a bitmap of dirty regions where data and metadata don't match. This mode can only be used with internal hash.”h]”hŒ•synchronization, the driver maintains a bitmap of dirty regions where data and metadata don’t match. This mode can only be used with internal hash.”…”�”}”(hjÙh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KWhjÖubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhjÄubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´KXhj]ubja)�”}”(hŒêR - recovery mode - in this mode, journal is not replayed, checksums are not checked and writes to the device are not allowed. This mode is useful for data recovery if the device cannot be activated in any of the other standard modes.”h]”(jg)�”}”(hŒ:R - recovery mode - in this mode, journal is not replayed,”h]”hŒ:R - recovery mode - in this mode, journal is not replayed,”…”�”}”(hj÷h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´K]hjóubjw)�”}”(hhh]”hÌ)�”}”(hŒ¯checksums are not checked and writes to the device are not allowed. This mode is useful for data recovery if the device cannot be activated in any of the other standard modes.”h]”hŒ¯checksums are not checked and writes to the device are not allowed. This mode is useful for data recovery if the device cannot be activated in any of the other standard modes.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K[hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhjóubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´K]hj]ubja)�”}”(hX I - inline mode - in this mode, dm-integrity will store integrity data directly in the underlying device sectors. The underlying device must have an integrity profile that allows storing user integrity data and provides enough space for the selected integrity tag. ”h]”(jg)�”}”(hŒAI - inline mode - in this mode, dm-integrity will store integrity”h]”hŒAI - inline mode - in this mode, dm-integrity will store integrity”…”�”}”(hj&h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´Kchj"ubjw)�”}”(hhh]”hÌ)�”}”(hŒÆdata directly in the underlying device sectors. The underlying device must have an integrity profile that allows storing user integrity data and provides enough space for the selected integrity tag.”h]”hŒÆdata directly in the underlying device sectors. The underlying device must have an integrity profile that allows storing user integrity data and provides enough space for the selected integrity tag.”…”�”}”(hj7h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K`hj4ubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhj"ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´Kchj]ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j[hjWubah}”(h]”h ]”h"]”h$]”h&]”uh1jUh³hÊh´KKhjCubeh}”(h]”h ]”h"]”h$]”h&]”uh1jPhjøh²hh³hÊh´NubjQ)�”}”(hŒ#the number of additional arguments ”h]”hÌ)�”}”(hŒ"the number of additional arguments”h]”hŒ"the number of additional arguments”…”�”}”(hjgh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kehjcubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjøh²hh³hÊh´Nubeh}”(h]”h ]”h"]”h$]”h&]”jåjæjçhjèjéuh1jKhh·h²hh³hÊh´KAubhÌ)�”}”(hŒAdditional arguments:”h]”hŒAdditional arguments:”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kghh·h²hubj\)�”}”(hhh]”(ja)�”}”(hŒ¬journal_sectors:number The size of journal, this argument is used only if formatting the device. If the device is already formatted, the value from the superblock is used. ”h]”(jg)�”}”(hŒjournal_sectors:number”h]”hŒjournal_sectors:number”…”�”}”(hj–h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´Klhj’ubjw)�”}”(hhh]”hÌ)�”}”(hŒ”The size of journal, this argument is used only if formatting the device. If the device is already formatted, the value from the superblock is used.”h]”hŒ”The size of journal, this argument is used only if formatting the device. If the device is already formatted, the value from the superblock is used.”…”�”}”(hj§h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kjhj¤ubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhj’ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´Klhj�ubja)�”}”(hŒÇinterleave_sectors:number (default 32768) The number of interleaved sectors. This values is rounded down to a power of two. If the device is already formatted, the value from the superblock is used. ”h]”(jg)�”}”(hŒ)interleave_sectors:number (default 32768)”h]”hŒ)interleave_sectors:number (default 32768)”…”�”}”(hjÅh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´KqhjÁubjw)�”}”(hhh]”hÌ)�”}”(hŒœThe number of interleaved sectors. This values is rounded down to a power of two. If the device is already formatted, the value from the superblock is used.”h]”hŒœThe number of interleaved sectors. This values is rounded down to a power of two. If the device is already formatted, the value from the superblock is used.”…”�”}”(hjÖh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KohjÓubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhjÁubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´Kqhj�h²hubja)�”}”(hŒmmeta_device:device Don't interleave the data and metadata on the device. Use a separate device for metadata. ”h]”(jg)�”}”(hŒmeta_device:device”h]”hŒmeta_device:device”…”�”}”(hjôh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´Kuhjðubjw)�”}”(hhh]”hÌ)�”}”(hŒYDon't interleave the data and metadata on the device. Use a separate device for metadata.”h]”hŒ[Don’t interleave the data and metadata on the device. Use a separate device for metadata.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kthjubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhjðubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´Kuhj�h²hubja)�”}”(hŒbuffer_sectors:number (default 128) The number of sectors in one metadata buffer. The value is rounded down to a power of two. ”h]”(jg)�”}”(hŒ#buffer_sectors:number (default 128)”h]”hŒ#buffer_sectors:number (default 128)”…”�”}”(hj#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´Kyhjubjw)�”}”(hhh]”hÌ)�”}”(hŒZThe number of sectors in one metadata buffer. The value is rounded down to a power of two.”h]”hŒZThe number of sectors in one metadata buffer. The value is rounded down to a power of two.”…”�”}”(hj4h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kxhj1ubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´Kyhj�h²hubja)�”}”(hŒ³journal_watermark:number (default 50) The journal watermark in percents. When the size of the journal exceeds this watermark, the thread that flushes the journal will be started. ”h]”(jg)�”}”(hŒ%journal_watermark:number (default 50)”h]”hŒ%journal_watermark:number (default 50)”…”�”}”(hjRh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´K~hjNubjw)�”}”(hhh]”hÌ)�”}”(hŒŒThe journal watermark in percents. When the size of the journal exceeds this watermark, the thread that flushes the journal will be started.”h]”hŒŒThe journal watermark in percents. When the size of the journal exceeds this watermark, the thread that flushes the journal will be started.”…”�”}”(hjch²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K|hj`ubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhjNubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´K~hj�h²hubja)�”}”(hŒ¹commit_time:number (default 10000) Commit time in milliseconds. When this time passes, the journal is written. The journal is also written immediately if the FLUSH request is received. ”h]”(jg)�”}”(hŒ"commit_time:number (default 10000)”h]”hŒ"commit_time:number (default 10000)”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´Kƒhj}ubjw)�”}”(hhh]”hÌ)�”}”(hŒ•Commit time in milliseconds. When this time passes, the journal is written. The journal is also written immediately if the FLUSH request is received.”h]”hŒ•Commit time in milliseconds. When this time passes, the journal is written. The journal is also written immediately if the FLUSH request is received.”…”�”}”(hj’h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K�hj�ubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhj}ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´Kƒhj�h²hubja)�”}”(hXÔinternal_hash:algorithm(:key) (the key is optional) Use internal hash or crc. When this argument is used, the dm-integrity target won't accept integrity tags from the upper target, but it will automatically generate and verify the integrity tags. You can use a crc algorithm (such as crc32), then integrity target will protect the data against accidental corruption. You can also use a hmac algorithm (for example "hmac(sha256):0123456789abcdef"), in this mode it will provide cryptographic authentication of the data without encryption. When this argument is not used, the integrity tags are accepted from an upper layer target, such as dm-crypt. The upper layer target should check the validity of the integrity tags. ”h]”(jg)�”}”(hŒ5internal_hash:algorithm(:key) (the key is optional)”h]”hŒ5internal_hash:algorithm(:key) (the key is optional)”…”�”}”(hj°h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´K“hj¬ubjw)�”}”(hhh]”(hÌ)�”}”(hŒÂUse internal hash or crc. When this argument is used, the dm-integrity target won't accept integrity tags from the upper target, but it will automatically generate and verify the integrity tags.”h]”hŒÄUse internal hash or crc. When this argument is used, the dm-integrity target won’t accept integrity tags from the upper target, but it will automatically generate and verify the integrity tags.”…”�”}”(hjÁh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K†hj¾ubhÌ)�”}”(hX"You can use a crc algorithm (such as crc32), then integrity target will protect the data against accidental corruption. You can also use a hmac algorithm (for example "hmac(sha256):0123456789abcdef"), in this mode it will provide cryptographic authentication of the data without encryption.”h]”hX&You can use a crc algorithm (such as crc32), then integrity target will protect the data against accidental corruption. You can also use a hmac algorithm (for example “hmac(sha256):0123456789abcdefâ€�), in this mode it will provide cryptographic authentication of the data without encryption.”…”�”}”(hjÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K‹hj¾ubhÌ)�”}”(hŒµWhen this argument is not used, the integrity tags are accepted from an upper layer target, such as dm-crypt. The upper layer target should check the validity of the integrity tags.”h]”hŒµWhen this argument is not used, the integrity tags are accepted from an upper layer target, such as dm-crypt. The upper layer target should check the validity of the integrity tags.”…”�”}”(hjÝh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K‘hj¾ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jvhj¬ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´K“hj�h²hubja)�”}”(hŒerecalculate Recalculate the integrity tags automatically. It is only valid when using internal hash. ”h]”(jg)�”}”(hŒ recalculate”h]”hŒ recalculate”…”�”}”(hjûh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´K—hj÷ubjw)�”}”(hhh]”hÌ)�”}”(hŒXRecalculate the integrity tags automatically. It is only valid when using internal hash.”h]”hŒXRecalculate the integrity tags automatically. It is only valid when using internal hash.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K–hj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhj÷ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´K—hj�h²hubja)�”}”(hX3journal_crypt:algorithm(:key) (the key is optional) Encrypt the journal using given algorithm to make sure that the attacker can't read the journal. You can use a block cipher here (such as "cbc(aes)") or a stream cipher (for example "chacha20" or "ctr(aes)"). The journal contains history of last writes to the block device, an attacker reading the journal could see the last sector numbers that were written. From the sector numbers, the attacker can infer the size of files that were written. To protect against this situation, you can encrypt the journal. ”h]”(jg)�”}”(hŒ5journal_crypt:algorithm(:key) (the key is optional)”h]”hŒ5journal_crypt:algorithm(:key) (the key is optional)”…”�”}”(hj*h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´K£hj&ubjw)�”}”(hhh]”(hÌ)�”}”(hŒÐEncrypt the journal using given algorithm to make sure that the attacker can't read the journal. You can use a block cipher here (such as "cbc(aes)") or a stream cipher (for example "chacha20" or "ctr(aes)").”h]”hŒÞEncrypt the journal using given algorithm to make sure that the attacker can’t read the journal. You can use a block cipher here (such as “cbc(aes)â€�) or a stream cipher (for example “chacha20â€� or “ctr(aes)â€�).”…”�”}”(hj;h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kšhj8ubhÌ)�”}”(hX*The journal contains history of last writes to the block device, an attacker reading the journal could see the last sector numbers that were written. From the sector numbers, the attacker can infer the size of files that were written. To protect against this situation, you can encrypt the journal.”h]”hX*The journal contains history of last writes to the block device, an attacker reading the journal could see the last sector numbers that were written. From the sector numbers, the attacker can infer the size of files that were written. To protect against this situation, you can encrypt the journal.”…”�”}”(hjIh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KŸhj8ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jvhj&ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´K£hj�h²hubja)�”}”(hXäjournal_mac:algorithm(:key) (the key is optional) Protect sector numbers in the journal from accidental or malicious modification. To protect against accidental modification, use a crc algorithm, to protect against malicious modification, use a hmac algorithm with a key. This option is not needed when using internal-hash because in this mode, the integrity of journal entries is checked when replaying the journal. Thus, modified sector number would be detected at this stage. ”h]”(jg)�”}”(hŒ5journal_mac:algorithm(:key) (the key is optional)”h]”hŒ5journal_mac:algorithm(:key) (the key is optional)”…”�”}”(hjgh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´K®hjcubjw)�”}”(hhh]”(hÌ)�”}”(hŒÝProtect sector numbers in the journal from accidental or malicious modification. To protect against accidental modification, use a crc algorithm, to protect against malicious modification, use a hmac algorithm with a key.”h]”hŒÝProtect sector numbers in the journal from accidental or malicious modification. To protect against accidental modification, use a crc algorithm, to protect against malicious modification, use a hmac algorithm with a key.”…”�”}”(hjxh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K¦hjuubhÌ)�”}”(hŒÎThis option is not needed when using internal-hash because in this mode, the integrity of journal entries is checked when replaying the journal. Thus, modified sector number would be detected at this stage.”h]”hŒÎThis option is not needed when using internal-hash because in this mode, the integrity of journal entries is checked when replaying the journal. Thus, modified sector number would be detected at this stage.”…”�”}”(hj†h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K«hjuubeh}”(h]”h ]”h"]”h$]”h&]”uh1jvhjcubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´K®hj�h²hubja)�”}”(hŒÏblock_size:number (default 512) The size of a data block in bytes. The larger the block size the less overhead there is for per-block integrity metadata. Supported values are 512, 1024, 2048 and 4096 bytes. ”h]”(jg)�”}”(hŒblock_size:number (default 512)”h]”hŒblock_size:number (default 512)”…”�”}”(hj¤h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´K³hj ubjw)�”}”(hhh]”hÌ)�”}”(hŒ®The size of a data block in bytes. The larger the block size the less overhead there is for per-block integrity metadata. Supported values are 512, 1024, 2048 and 4096 bytes.”h]”hŒ®The size of a data block in bytes. The larger the block size the less overhead there is for per-block integrity metadata. Supported values are 512, 1024, 2048 and 4096 bytes.”…”�”}”(hjµh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K±hj²ubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´K³hj�h²hubja)�”}”(hŒ‡sectors_per_bit:number In the bitmap mode, this parameter specifies the number of 512-byte sectors that corresponds to one bitmap bit. ”h]”(jg)�”}”(hŒsectors_per_bit:number”h]”hŒsectors_per_bit:number”…”�”}”(hjÓh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´K·hjÏubjw)�”}”(hhh]”hÌ)�”}”(hŒoIn the bitmap mode, this parameter specifies the number of 512-byte sectors that corresponds to one bitmap bit.”h]”hŒoIn the bitmap mode, this parameter specifies the number of 512-byte sectors that corresponds to one bitmap bit.”…”�”}”(hjäh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K¶hjáubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhjÏubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´K·hj�h²hubja)�”}”(hŒŠbitmap_flush_interval:number The bitmap flush interval in milliseconds. The metadata buffers are synchronized when this interval expires. ”h]”(jg)�”}”(hŒbitmap_flush_interval:number”h]”hŒbitmap_flush_interval:number”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´K»hjþubjw)�”}”(hhh]”hÌ)�”}”(hŒlThe bitmap flush interval in milliseconds. The metadata buffers are synchronized when this interval expires.”h]”hŒlThe bitmap flush interval in milliseconds. The metadata buffers are synchronized when this interval expires.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kºhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhjþubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´K»hj�h²hubja)�”}”(hXJallow_discards Allow block discard requests (a.k.a. TRIM) for the integrity device. Discards are only allowed to devices using internal hash. A discarded block is marked with a constant filler tag that anyone with raw write access to the backing device can forge without the key. Use allow_discards_keyed instead on new volumes. ”h]”(jg)�”}”(hŒallow_discards”h]”hŒallow_discards”…”�”}”(hj1h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´KÃhj-ubjw)�”}”(hhh]”(hÌ)�”}”(hŒ~Allow block discard requests (a.k.a. TRIM) for the integrity device. Discards are only allowed to devices using internal hash.”h]”hŒ~Allow block discard requests (a.k.a. TRIM) for the integrity device. Discards are only allowed to devices using internal hash.”…”�”}”(hjBh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K¾hj?ubhÌ)�”}”(hŒºA discarded block is marked with a constant filler tag that anyone with raw write access to the backing device can forge without the key. Use allow_discards_keyed instead on new volumes.”h]”hŒºA discarded block is marked with a constant filler tag that anyone with raw write access to the backing device can forge without the key. Use allow_discards_keyed instead on new volumes.”…”�”}”(hjPh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÁhj?ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jvhj-ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´KÃhj�h²hubja)�”}”(hX]allow_discards_keyed Like allow_discards, but marks a discarded block with a keyed checksum of the sector number, HMAC_key(salt || sector), instead of the constant filler tag, so it can't be forged without the integrity key. Not compatible with volumes that already have discarded blocks marked the old way; only use on a freshly formatted volume. ”h]”(jg)�”}”(hŒallow_discards_keyed”h]”hŒallow_discards_keyed”…”�”}”(hjnh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´KÌhjjubjw)�”}”(hhh]”(hÌ)�”}”(hŒËLike allow_discards, but marks a discarded block with a keyed checksum of the sector number, HMAC_key(salt || sector), instead of the constant filler tag, so it can't be forged without the integrity key.”h]”hŒÍLike allow_discards, but marks a discarded block with a keyed checksum of the sector number, HMAC_key(salt || sector), instead of the constant filler tag, so it can’t be forged without the integrity key.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÆhj|ubhÌ)�”}”(hŒzNot compatible with volumes that already have discarded blocks marked the old way; only use on a freshly formatted volume.”h]”hŒzNot compatible with volumes that already have discarded blocks marked the old way; only use on a freshly formatted volume.”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KËhj|ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jvhjjubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´KÌhj�h²hubja)�”}”(hŒµfix_padding Use a smaller padding of the tag area that is more space-efficient. If this option is not present, large padding is used - that is for compatibility with older kernels. ”h]”(jg)�”}”(hŒ fix_padding”h]”hŒ fix_padding”…”�”}”(hj«h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´KÑhj§ubjw)�”}”(hhh]”hÌ)�”}”(hŒ¨Use a smaller padding of the tag area that is more space-efficient. If this option is not present, large padding is used - that is for compatibility with older kernels.”h]”hŒ¨Use a smaller padding of the tag area that is more space-efficient. If this option is not present, large padding is used - that is for compatibility with older kernels.”…”�”}”(hj¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÏhj¹ubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhj§ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´KÑhj�h²hubja)�”}”(hXÉfix_hmac Improve security of internal_hash and journal_mac: - the section number is mixed to the mac, so that an attacker can't copy sectors from one journal section to another journal section - the superblock is protected by journal_mac - a 16-byte salt stored in the superblock is mixed to the mac, so that the attacker can't detect that two disks have the same hmac key and also to disallow the attacker to move sectors from one disk to another ”h]”(jg)�”}”(hŒfix_hmac”h]”hŒfix_hmac”…”�”}”(hjÚh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´KÜhjÖubjw)�”}”(hhh]”(hÌ)�”}”(hŒ2Improve security of internal_hash and journal_mac:”h]”hŒ2Improve security of internal_hash and journal_mac:”…”�”}”(hjëh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÔhjèubhŒ bullet_list”“”)�”}”(hhh]”(jQ)�”}”(hŒ‚the section number is mixed to the mac, so that an attacker can't copy sectors from one journal section to another journal section”h]”hÌ)�”}”(hŒ‚the section number is mixed to the mac, so that an attacker can't copy sectors from one journal section to another journal section”h]”hŒ„the section number is mixed to the mac, so that an attacker can’t copy sectors from one journal section to another journal section”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÖhjþubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjûubjQ)�”}”(hŒ*the superblock is protected by journal_mac”h]”hÌ)�”}”(hjh]”hŒ*the superblock is protected by journal_mac”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KØhjubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjûubjQ)�”}”(hŒÐa 16-byte salt stored in the superblock is mixed to the mac, so that the attacker can't detect that two disks have the same hmac key and also to disallow the attacker to move sectors from one disk to another ”h]”hÌ)�”}”(hŒÏa 16-byte salt stored in the superblock is mixed to the mac, so that the attacker can't detect that two disks have the same hmac key and also to disallow the attacker to move sectors from one disk to another”h]”hŒÑa 16-byte salt stored in the superblock is mixed to the mac, so that the attacker can’t detect that two disks have the same hmac key and also to disallow the attacker to move sectors from one disk to another”…”�”}”(hj1h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KÙhj-ubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjûubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1jùh³hÊh´KÖhjèubeh}”(h]”h ]”h"]”h$]”h&]”uh1jvhjÖubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´KÜhj�h²hubja)�”}”(hŒçlegacy_recalculate Allow recalculating of volumes with HMAC keys. This is disabled by default for security reasons - an attacker could modify the volume, set recalc_sector to zero, and the kernel would not detect the modification. ”h]”(jg)�”}”(hŒlegacy_recalculate”h]”hŒlegacy_recalculate”…”�”}”(hj]h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´KâhjYubjw)�”}”(hhh]”hÌ)�”}”(hŒÓAllow recalculating of volumes with HMAC keys. This is disabled by default for security reasons - an attacker could modify the volume, set recalc_sector to zero, and the kernel would not detect the modification.”h]”hŒÓAllow recalculating of volumes with HMAC keys. This is disabled by default for security reasons - an attacker could modify the volume, set recalc_sector to zero, and the kernel would not detect the modification.”…”�”}”(hjnh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kßhjkubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhjYubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´Kâhj�h²hubeh}”(h]”h ]”h"]”h$]”h&]”uh1j[hh·h²hh³hÊh´NubhÌ)�”}”(hXlThe journal mode (D/J), buffer_sectors, journal_watermark, commit_time and allow_discards can be changed when reloading the target (load an inactive table and swap the tables with suspend and resume). The other arguments should not be changed when reloading the target because the layout of disk data depend on them and the reloaded target would be non-functional.”h]”hXlThe journal mode (D/J), buffer_sectors, journal_watermark, commit_time and allow_discards can be changed when reloading the target (load an inactive table and swap the tables with suspend and resume). The other arguments should not be changed when reloading the target because the layout of disk data depend on them and the reloaded target would be non-functional.”…”�”}”(hjŽh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kähh·h²hubhÌ)�”}”(hXFor example, on a device using the default interleave_sectors of 32768, a block_size of 512, and an internal_hash of crc32c with a tag size of 4 bytes, it will take 128 KiB of tags to track a full data area, requiring 256 sectors of metadata per data area. With the default buffer_sectors of 128, that means there will be 2 buffers per metadata area, or 2 buffers per 16 MiB of data.”h]”hXFor example, on a device using the default interleave_sectors of 32768, a block_size of 512, and an internal_hash of crc32c with a tag size of 4 bytes, it will take 128 KiB of tags to track a full data area, requiring 256 sectors of metadata per data area. With the default buffer_sectors of 128, that means there will be 2 buffers per metadata area, or 2 buffers per 16 MiB of data.”…”�”}”(hjœh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kêhh·h²hubhÌ)�”}”(hŒ Status line:”h]”hŒ Status line:”…”�”}”(hjªh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kñhh·h²hubjL)�”}”(hhh]”(jQ)�”}”(hŒ"the number of integrity mismatches”h]”hÌ)�”}”(hj½h]”hŒ"the number of integrity mismatches”…”�”}”(hj¿h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kóhj»ubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhj¸h²hh³hÊh´NubjQ)�”}”(hŒMprovided data sectors - that is the number of sectors that the user could use”h]”hÌ)�”}”(hŒMprovided data sectors - that is the number of sectors that the user could use”h]”hŒMprovided data sectors - that is the number of sectors that the user could use”…”�”}”(hjÖh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KôhjÒubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhj¸h²hh³hÊh´NubjQ)�”}”(hŒFthe current recalculating position (or '-' if we didn't recalculate) ”h]”hÌ)�”}”(hŒDthe current recalculating position (or '-' if we didn't recalculate)”h]”hŒJthe current recalculating position (or ‘-’ if we didn’t recalculate)”…”�”}”(hjîh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Köhjêubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhj¸h²hh³hÊh´Nubeh}”(h]”h ]”h"]”h$]”h&]”jåjæjçhjèjéuh1jKhh·h²hh³hÊh´KóubhÌ)�”}”(hŒ)The layout of the formatted block device:”h]”hŒ)The layout of the formatted block device:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kùhh·h²hubjú)�”}”(hhh]”(jQ)�”}”(hŒ¿reserved sectors (they are not used by this target, they can be used for storing LUKS metadata or for other purpose), the size of the reserved area is specified in the target arguments ”h]”j\)�”}”(hhh]”ja)�”}”(hŒ¹reserved sectors (they are not used by this target, they can be used for storing LUKS metadata or for other purpose), the size of the reserved area is specified in the target arguments ”h]”(jg)�”}”(hŒreserved sectors”h]”hŒreserved sectors”…”�”}”(hj$h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´Kþhj ubjw)�”}”(hhh]”hÌ)�”}”(hŒ§(they are not used by this target, they can be used for storing LUKS metadata or for other purpose), the size of the reserved area is specified in the target arguments”h]”hŒ§(they are not used by this target, they can be used for storing LUKS metadata or for other purpose), the size of the reserved area is specified in the target arguments”…”�”}”(hj5h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Kühj2ubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´Kþhjubah}”(h]”h ]”h"]”h$]”h&]”uh1j[hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjh²hh³Nh´NubjQ)�”}”(hXQsuperblock (4kiB) * magic string - identifies that the device was formatted * version * log2(interleave sectors) * integrity tag size * the number of journal sections * provided data sectors - the number of sectors that this target 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 SB_FLAG_HAVE_JOURNAL_MAC - a flag is set if journal_mac is used SB_FLAG_RECALCULATING - recalculating is in progress SB_FLAG_DIRTY_BITMAP - journal area contains the bitmap of dirty blocks * log2(sectors per block) * a position where recalculating finished”h]”j\)�”}”(hhh]”ja)�”}”(hXßsuperblock (4kiB) * magic string - identifies that the device was formatted * version * log2(interleave sectors) * integrity tag size * the number of journal sections * provided data sectors - the number of sectors that this target 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 SB_FLAG_HAVE_JOURNAL_MAC - a flag is set if journal_mac is used SB_FLAG_RECALCULATING - recalculating is in progress SB_FLAG_DIRTY_BITMAP - journal area contains the bitmap of dirty blocks * log2(sectors per block) * a position where recalculating finished”h]”(jg)�”}”(hŒsuperblock (4kiB)”h]”hŒsuperblock (4kiB)”…”�”}”(hjfh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´Mhjbubjw)�”}”(hhh]”jú)�”}”(hhh]”(jQ)�”}”(hŒ7magic string - identifies that the device was formatted”h]”hÌ)�”}”(hj|h]”hŒ7magic string - identifies that the device was formatted”…”�”}”(hj~h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhjzubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjwubjQ)�”}”(hŒversion”h]”hÌ)�”}”(hj“h]”hŒversion”…”�”}”(hj•h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj‘ubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjwubjQ)�”}”(hŒlog2(interleave sectors)”h]”hÌ)�”}”(hjªh]”hŒlog2(interleave sectors)”…”�”}”(hj¬h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj¨ubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjwubjQ)�”}”(hŒintegrity tag size”h]”hÌ)�”}”(hjÁh]”hŒintegrity tag size”…”�”}”(hjÃh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj¿ubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjwubjQ)�”}”(hŒthe number of journal sections”h]”hÌ)�”}”(hjØh]”hŒthe number of journal sections”…”�”}”(hjÚh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´MhjÖubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjwubjQ)�”}”(hŒùprovided data sectors - the number of sectors that this target 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.”h]”hÌ)�”}”(hŒùprovided data sectors - the number of sectors that this target 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.”h]”hŒýprovided data sectors - the number of sectors that this target 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.”…”�”}”(hjñh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhjíubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjwubjQ)�”}”(hŒâflags SB_FLAG_HAVE_JOURNAL_MAC - a flag is set if journal_mac is used SB_FLAG_RECALCULATING - recalculating is in progress SB_FLAG_DIRTY_BITMAP - journal area contains the bitmap of dirty blocks”h]”j\)�”}”(hhh]”ja)�”}”(hŒÔflags SB_FLAG_HAVE_JOURNAL_MAC - a flag is set if journal_mac is used SB_FLAG_RECALCULATING - recalculating is in progress SB_FLAG_DIRTY_BITMAP - journal area contains the bitmap of dirty blocks”h]”(jg)�”}”(hŒflags”h]”hŒflags”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´Mhj ubjw)�”}”(hhh]”j\)�”}”(hhh]”(ja)�”}”(hŒ?SB_FLAG_HAVE_JOURNAL_MAC - a flag is set if journal_mac is used”h]”(jg)�”}”(hŒSB_FLAG_HAVE_JOURNAL_MAC”h]”hŒSB_FLAG_HAVE_JOURNAL_MAC”…”�”}”(hj( h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´M hj$ ubjw)�”}”(hhh]”jú)�”}”(hhh]”jQ)�”}”(hŒ$a flag is set if journal_mac is used”h]”hÌ)�”}”(hj> h]”hŒ$a flag is set if journal_mac is used”…”�”}”(hj@ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´M hj< ubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhj9 ubah}”(h]”h ]”h"]”h$]”h&]”jKjLuh1jùh³hÊh´M hj6 ubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhj$ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´M hj! ubja)�”}”(hŒ4SB_FLAG_RECALCULATING - recalculating is in progress”h]”(jg)�”}”(hŒSB_FLAG_RECALCULATING”h]”hŒSB_FLAG_RECALCULATING”…”�”}”(hji h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´M hje ubjw)�”}”(hhh]”jú)�”}”(hhh]”jQ)�”}”(hŒrecalculating is in progress”h]”hÌ)�”}”(hj h]”hŒrecalculating is in progress”…”�”}”(hj� h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj} ubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjz ubah}”(h]”h ]”h"]”h$]”h&]”jKjLuh1jùh³hÊh´Mhjw ubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhje ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´M hj! ubja)�”}”(hŒISB_FLAG_DIRTY_BITMAP - journal area contains the bitmap of dirty blocks”h]”(jg)�”}”(hŒSB_FLAG_DIRTY_BITMAP”h]”hŒSB_FLAG_DIRTY_BITMAP”…”�”}”(hjª h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´Mhj¦ ubjw)�”}”(hhh]”jú)�”}”(hhh]”jQ)�”}”(hŒ0journal area contains the bitmap of dirty blocks”h]”hÌ)�”}”(hŒ0journal area contains the bitmap of dirty blocks”h]”hŒ0journal area contains the bitmap of dirty blocks”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj¾ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhj» ubah}”(h]”h ]”h"]”h$]”h&]”jKjLuh1jùh³hÊh´Mhj¸ ubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhj¦ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´Mhj! ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j[hj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´Mhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1j[hj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjwubjQ)�”}”(hŒlog2(sectors per block)”h]”hÌ)�”}”(hj h]”hŒlog2(sectors per block)”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjwubjQ)�”}”(hŒ'a position where recalculating finished”h]”hÌ)�”}”(hj h]”hŒ'a position where recalculating finished”…”�”}”(hj! h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Mhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjwubeh}”(h]”h ]”h"]”h$]”h&]”jKŒ*”uh1jùh³hÊh´Mhjtubah}”(h]”h ]”h"]”h$]”h&]”uh1jvhjbubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`h³hÊh´Mhj_ubah}”(h]”h ]”h"]”h$]”h&]”uh1j[hj[ubah}”(h]”h ]”h"]”h$]”h&]”uh1jPhjh²hh³Nh´NubjQ)�”}”(hX­journal The journal is divided into sections, each section contains: * metadata area (4kiB), it contains journal entries - every journal entry contains: * logical sector (specifies where the data and tag should be written) * last 8 bytes of data * integrity tag (the size is specified in the superblock) - every metadata sector ends with * mac (8-bytes), all the macs in 8 metadata sectors form a 64-byte value. It is used to store hmac of sector numbers in the journal section, to protect against a possibility that the attacker tampers with sector numbers in the journal. * commit id * data area (the size is variable; it depends on how many journal entries fit into the metadata area) - every sector in the data area contains: * data (504 bytes of data, the last 8 bytes are stored in the journal entry) * commit id To test if the whole journal section was written correctly, every 512-byte sector of the journal ends with 8-byte commit id. If the commit id matches on all sectors in a journal section, then it is assumed that the section was written correctly. If the commit id doesn't match, the section was written partially and it should not be replayed. ”h]”j\)�”}”(hhh]”ja)�”}”(hXjournal The journal is divided into sections, each section contains: * metadata area (4kiB), it contains journal entries - every journal entry contains: * logical sector (specifies where the data and tag should be written) * last 8 bytes of data * integrity tag (the size is specified in the superblock) - every metadata sector ends with * mac (8-bytes), all the macs in 8 metadata sectors form a 64-byte value. It is used to store hmac of sector numbers in the journal section, to protect against a possibility that the attacker tampers with sector numbers in the journal. * commit id * data area (the size is variable; it depends on how many journal entries fit into the metadata area) - every sector in the data area contains: * data (504 bytes of data, the last 8 bytes are stored in the journal entry) * commit id To test if the whole journal section was written correctly, every 512-byte sector of the journal ends with 8-byte commit id. If the commit id matches on all sectors in a journal section, then it is assumed that the section was written correctly. If the commit id doesn't match, the section was written partially and it should not be replayed. ”h]”(jg)�”}”(hŒjournal”h]”hŒjournal”…”�”}”(hj^ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jfh³hÊh´M7hjZ ubjw)�”}”(hhh]”(hÌ)�”}”(hŒ