X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;ds=sidebyside;f=device-mapper-dmsetup-deps-export.patch;fp=device-mapper-dmsetup-deps-export.patch;h=0000000000000000000000000000000000000000;hb=959a818ea43c23dc2638b665d66f2ff2a6a6b5fe;hp=bace4d3792f0da0c583e5093c3611384aec7ae8e;hpb=f229bb081cff2272e043112feeb1960a8da0a4c4;p=packages%2Flvm2.git diff --git a/device-mapper-dmsetup-deps-export.patch b/device-mapper-dmsetup-deps-export.patch deleted file mode 100644 index bace4d3..0000000 --- a/device-mapper-dmsetup-deps-export.patch +++ /dev/null @@ -1,40 +0,0 @@ -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)