mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Kernel functionality that returns device dependencies (ejt).
This commit is contained in:
parent
844545411f
commit
a9532b189c
@ -291,7 +291,7 @@ int dm_task_run(struct dm_task *dmt)
|
||||
break;
|
||||
|
||||
case DM_DEVICE_DEPS:
|
||||
command = DM_DEP;
|
||||
command = DM_DEPS;
|
||||
break;
|
||||
|
||||
case DM_DEVICE_RENAME:
|
||||
|
@ -9,6 +9,7 @@
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <sys/types.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
/*
|
||||
* Since it is quite laborious to build the ioctl
|
||||
@ -69,7 +70,7 @@ struct dm_info {
|
||||
|
||||
struct dm_deps {
|
||||
unsigned int count;
|
||||
dev_t device[0];
|
||||
__kernel_dev_t device[0];
|
||||
};
|
||||
|
||||
int dm_get_library_version(char *version, size_t size);
|
||||
|
@ -283,6 +283,9 @@ static int _deps(int argc, char **argv)
|
||||
if (!dm_task_run(dmt))
|
||||
goto out;
|
||||
|
||||
if (!dm_task_get_info(dmt, &info))
|
||||
goto out;
|
||||
|
||||
if (!(deps = dm_task_get_deps(dmt)))
|
||||
goto out;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user