Commit 30b88ed0 authored by John Garry's avatar John Garry Committed by Mikulas Patocka
Browse files

dm-stripe: Enable atomic writes



Set feature flag DM_TARGET_ATOMIC_WRITES.

Similar to md raid0, the chunk size set in stripe_io_hints() limits the
atomic write unit max.

Signed-off-by: default avatarJohn Garry <john.g.garry@oracle.com>
Reviewed-by: default avatarMike Snitzer <snitzer@kernel.org>
Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
parent 487d1a9c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -465,8 +465,9 @@ static void stripe_io_hints(struct dm_target *ti,

static struct target_type stripe_target = {
	.name   = "striped",
	.version = {1, 6, 0},
	.features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT,
	.version = {1, 7, 0},
	.features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT |
		    DM_TARGET_ATOMIC_WRITES,
	.module = THIS_MODULE,
	.ctr    = stripe_ctr,
	.dtr    = stripe_dtr,