[Devel] [PATCH RH8 1/7] ploop: Kill "add_delta" interface

Kirill Tkhai ktkhai at virtuozzo.com
Tue May 4 16:05:02 MSK 2021


This was used at development time, but now this is
useless. Userspace never adds a delta into middle
of deltas stack.

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 drivers/md/dm-ploop-cmd.c |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/md/dm-ploop-cmd.c b/drivers/md/dm-ploop-cmd.c
index 31fa424a88f5..85ba713749cf 100644
--- a/drivers/md/dm-ploop-cmd.c
+++ b/drivers/md/dm-ploop-cmd.c
@@ -1846,10 +1846,6 @@ int ploop_message(struct dm_target *ti, unsigned int argc, char **argv,
 		if (argc != 2 || kstrtou64(argv[1], 10, &val) < 0)
 			goto unlock;
 		ret = ploop_resize(ploop, val);
-	} else if (!strcmp(argv[0], "add_delta")) {
-		if (argc != 2)
-			goto unlock;
-		ret = ploop_add_delta(ploop, argv[1]);
 	} else if (!strcmp(argv[0], "merge")) {
 		if (argc == 1)
 			ret = ploop_merge_latest_snapshot(ploop);




More information about the Devel mailing list