]> sourceware.org Git - lvm2.git/commitdiff
integrity: mark as user of secure_data
authorZdenek Kabelac <zkabelac@redhat.com>
Sat, 27 Feb 2021 21:12:33 +0000 (22:12 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 2 Mar 2021 21:57:35 +0000 (22:57 +0100)
Use the secure_data with integrity target. Not so big difference,
as the secure feature of the integrity target is not used by lvm2.

device_mapper/libdm-deptree.c

index ec345ac55c3a85cd61d309946dca4d14767e735e..7045e1f264fa9f4a82fa3ac0be28563246d99f31 100644 (file)
@@ -2824,6 +2824,9 @@ static int _integrity_emit_segment_line(struct dm_task *dmt,
        if (set->sectors_per_bit_set)
                EMIT_PARAMS(pos, " sectors_per_bit:%llu", (unsigned long long)set->sectors_per_bit);
 
+       if (!dm_task_secure_data(dmt))
+               stack;
+
        return 1;
 }
 
This page took 0.036808 seconds and 5 git commands to generate.