f1a960eb91
- lvm2.spec: merge rules for device-mapper and lvm2-clvm packages, so there is only one spec file and all packages are built consistently. OBS-URL: https://build.opensuse.org/request/show/138672 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lvm2?expand=0&rev=47
44 lines
854 B
Diff
44 lines
854 B
Diff
---
|
|
tools/dmsetup.c | 23 +++++++++++++++++++++++
|
|
1 file changed, 23 insertions(+)
|
|
|
|
--- LVM2.2.02.98.orig/tools/dmsetup.c
|
|
+++ LVM2.2.02.98/tools/dmsetup.c
|
|
@@ -1720,6 +1720,7 @@ static int _export(int argc, char **argv
|
|
const char *name = NULL;
|
|
const char *uuid = NULL;
|
|
struct dm_info info;
|
|
+ struct dm_deps *deps;
|
|
|
|
if (data)
|
|
name = names->name;
|
|
@@ -1789,6 +1790,28 @@ static int _export(int argc, char **argv
|
|
printf("\n");
|
|
}
|
|
|
|
+ dm_task_destroy(dmt);
|
|
+
|
|
+ if (!(dmt = dm_task_create(DM_DEVICE_DEPS)))
|
|
+ goto out;
|
|
+
|
|
+ name = NULL;
|
|
+ if (data)
|
|
+ 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)
|