diff mbox

[11/15] dm stripe: support copy

Message ID alpine.LRH.2.02.1512101214320.25927@file01.intranet.prod.int.rdu2.redhat.com (mailing list archive)
State Deferred, archived
Delegated to: Mike Snitzer
Headers show

Commit Message

Mikulas Patocka Dec. 10, 2015, 5:31 p.m. UTC
Support the copy operation for the stripe target.

In stripe_merge, we verify that the underlying device supports copy. If it
doesn't, we can fail fast without any bio being contructed.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

---
 drivers/md/dm-stripe.c |    1 +
 1 file changed, 1 insertion(+)


--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
diff mbox

Patch

Index: linux-4.3-rc1/drivers/md/dm-stripe.c
===================================================================
--- linux-4.3-rc1.orig/drivers/md/dm-stripe.c	2015-09-14 16:06:36.000000000 +0200
+++ linux-4.3-rc1/drivers/md/dm-stripe.c	2015-09-14 16:23:01.000000000 +0200
@@ -169,6 +169,7 @@  static int stripe_ctr(struct dm_target *
 	ti->num_flush_bios = stripes;
 	ti->num_discard_bios = stripes;
 	ti->num_write_same_bios = stripes;
+	ti->copy_supported = 1;
 
 	sc->chunk_size = chunk_size;
 	if (chunk_size & (chunk_size - 1))