Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
lvm2
device-mapper-dmsetup-deps-export.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File device-mapper-dmsetup-deps-export.patch of Package lvm2
Index: LVM2.2.02.84/tools/dmsetup.c =================================================================== --- LVM2.2.02.84.orig/tools/dmsetup.c 2011-02-15 15:00:52.000000000 +0800 +++ LVM2.2.02.84/tools/dmsetup.c 2011-02-15 15:00:54.000000000 +0800 @@ -1645,6 +1645,7 @@ const char *name = NULL; const char *uuid = NULL; struct dm_info info; + struct dm_deps *deps; if (data) name = names->name; @@ -1714,6 +1715,28 @@ 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)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor