+++ /dev/null
-diff -ur LVM2.2.03.02.orig/libdm/dm-tools/dmsetup.c LVM2.2.03.02/libdm/dm-tools/dmsetup.c
---- LVM2.2.03.02.orig/libdm/dm-tools/dmsetup.c 2019-03-22 17:08:18.345000000 +0100
-+++ LVM2.2.03.02/libdm/dm-tools/dmsetup.c 2019-03-22 17:09:27.125000000 +0100
-@@ -2562,6 +2562,7 @@
- const char *name = NULL;
- const char *uuid = NULL;
- struct dm_info info;
-+ struct dm_deps *deps;
-
- if (names)
- name = names->name;
-@@ -2631,6 +2632,28 @@
- printf("\n");
- }
-
-+ dm_task_destroy(dmt);
-+
-+ if (!(dmt = dm_task_create(DM_DEVICE_DEPS)))
-+ goto out;
-+
-+ name = NULL;
-+ if (names)
-+ name = names->name;
-+ else if (argc == 2)
-+ name = argv[1];
-+
-+ if (!_set_task_device(dmt, name, 0))
-+ goto out;
-+
-+ if (!dm_task_run(dmt))
-+ goto out;
-+
-+ if (!(deps = dm_task_get_deps(dmt)))
-+ goto out;
-+
-+ printf("DM_DEPS=%d\n", deps->count);
-+
- r = 1;
- out:
- if (dmt)
-diff -ur LVM2.2.03.02.orig/libdm/dm-tools/dmsetup.c LVM2.2.03.02/libdm/dm-tools/dmsetup.c
---- LVM2.2.03.02.orig/libdm/dm-tools/dmsetup.c 2019-03-22 16:55:55.393000000 +0100
-+++ LVM2.2.03.02/libdm/dm-tools/dmsetup.c 2019-03-22 17:00:55.046000000 +0100
-@@ -2551,6 +2551,93 @@
+diff -ur LVM2.2.03.21.orig/libdm/dm-tools/dmsetup.c LVM2.2.03.21/libdm/dm-tools/dmsetup.c
+--- LVM2.2.03.21.orig/libdm/dm-tools/dmsetup.c 2023-07-10 11:25:56.509112198 +0200
++++ LVM2.2.03.21/libdm/dm-tools/dmsetup.c 2023-07-10 11:27:18.722275271 +0200
+@@ -2563,6 +2563,116 @@
return r;
}
+ const char *name = NULL;
+ const char *uuid = NULL;
+ struct dm_info info;
++ struct dm_deps *deps;
+
+ if (names)
+ name = names->name;
+ printf("\n");
+ }
+
++ dm_task_destroy(dmt);
++
++ if (!(dmt = dm_task_create(DM_DEVICE_DEPS)))
++ goto out;
++
++ name = NULL;
++ if (names)
++ name = names->name;
++ else if (argc == 2)
++ name = argv[1];
++
++ if (!_set_task_device(dmt, name, 0))
++ goto out;
++
++ if (!dm_task_run(dmt))
++ goto out;
++
++ if (!(deps = dm_task_get_deps(dmt)))
++ goto out;
++
++ printf("DM_DEPS=%d\n", deps->count);
++
+ r = 1;
+ out:
+ if (dmt)
/* Show target names and their version numbers */
static int _targets(CMD_ARGS)
{
-@@ -6230,6 +6317,7 @@
+@@ -6272,6 +6382,7 @@
{"stats", "<command> [<options>] [<device>...]", 1, -1, 1, 1, _stats},
{"status", "[<device>...] [--noflush] [--target <target_type>]", 0, -1, 2, 0, _status},
{"table", "[<device>...] [--concise] [--target <target_type>] [--showkeys]", 0, -1, 2, 0, _status},
{"wait", "<device> [<event_nr>] [--noflush]", 0, 2, 0, 0, _wait},
{"mknodes", "[<device>...]", 0, -1, 1, 0, _mknodes},
{"mangle", "[<device>...]", 0, -1, 1, 0, _mangle},
-diff -ur LVM2.2.03.02.orig/man/dmsetup.8_main LVM2.2.03.02/man/dmsetup.8_main
---- LVM2.2.03.02.orig/man/dmsetup.8_main 2019-03-22 16:55:55.394000000 +0100
-+++ LVM2.2.03.02/man/dmsetup.8_main 2019-03-22 17:00:55.047000000 +0100
-@@ -59,6 +59,14 @@
+diff -ur LVM2.2.03.21.orig/man/dmsetup.8_main LVM2.2.03.21/man/dmsetup.8_main
+--- LVM2.2.03.21.orig/man/dmsetup.8_main 2023-07-10 11:25:56.511112226 +0200
++++ LVM2.2.03.21/man/dmsetup.8_main 2023-07-10 11:27:08.907136415 +0200
+@@ -61,6 +61,14 @@
.
.HP
.B dmsetup
.de CMD_HELP
. BR help
. RB [ -c | -C | --columns ]
-@@ -651,6 +659,9 @@
+@@ -635,6 +643,9 @@
\fBdevname\fP (map name for device-mapper devices, equal to blkdevname otherwise).
.
.HP