1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/Documentation/admin-guide/device-mapper
Mikulas Patocka d537858ac8 dm integrity: fix excessive alignment of metadata runs
Metadata runs are supposed to be aligned on 4k boundary (so that they work
efficiently with disks with 4k sectors). However, there was a programming
bug that makes them aligned on 128k boundary instead. The unused space is
wasted.

Fix this bug by providing a proper 4k alignment. In order to keep
existing volumes working, we introduce a new flag SB_FLAG_FIXED_PADDING
- when the flag is clear, we calculate the padding the old way. In order
to make sure that the old version cannot mount the volume created by the
new version, we increase superblock version to 4.

Also in order to not break with old integritysetup, we fix alignment
only if the parameter "fix_padding" is present when formatting the
device.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
2019-11-15 14:49:16 -05:00
..
cache-policies.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
cache.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
delay.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
dm-clone.rst dm: add clone target 2019-09-12 09:32:31 -04:00
dm-crypt.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
dm-dust.txt docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
dm-flakey.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
dm-init.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
dm-integrity.rst dm integrity: fix excessive alignment of metadata runs 2019-11-15 14:49:16 -05:00
dm-io.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
dm-log.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
dm-queue-length.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
dm-raid.rst dm raid: to ensure resynchronization, perform raid set grow in preresume 2019-11-05 14:02:26 -05:00
dm-service-time.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
dm-uevent.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
dm-zoned.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
era.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
index.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
kcopyd.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
linear.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
log-writes.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
persistent-data.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
snapshot.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
statistics.rst docs: admin-guide: add a series of orphaned documents 2019-07-15 11:03:02 -03:00
striped.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
switch.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
thin-provisioning.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
unstriped.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
verity.rst dm verity: add root hash pkcs#7 signature verification 2019-08-23 10:13:14 -04:00
writecache.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00
zero.rst docs: device-mapper: move it to the admin-guide 2019-07-15 11:03:01 -03:00