Skip to content
Commit 9356fcfe authored by Fan Wu's avatar Fan Wu Committed by Mike Snitzer
Browse files

dm verity: set DM_TARGET_SINGLETON feature flag



The device-mapper has a flag to mark targets as singleton, which is a
required flag for immutable targets. Without this flag, multiple
dm-verity targets can be added to a mapped device, which has no
practical use cases and will let dm_table_get_immutable_target return
NULL. This patch adds the missing flag, restricting only one
dm-verity target per mapped device.

Signed-off-by: default avatarFan Wu <wufan@linux.microsoft.com>
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
parent 5d8d4081
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment