1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 18:55:19 +03:00

Kernel functionality that returns device dependencies (ejt).

This commit is contained in:
Alasdair Kergon 2002-03-06 19:42:23 +00:00
parent 1ca81fafd0
commit 9f7b698007
3 changed files with 6 additions and 2 deletions

View File

@ -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:

View File

@ -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);

View File

@ -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;