chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[PATCH] update volume_id
[elogind.git]
/
extras
/
multipath-tools
/
libdevmapper
/
ioctl
/
libdm-targets.h
1
/*
2
* Copyright (C) 2001 Sistina Software (UK) Limited.
3
*
4
* This file is released under the LGPL.
5
*/
6
7
#ifndef LIB_DMTARGETS_H
8
#define LIB_DMTARGETS_H
9
10
#include <inttypes.h>
11
12
struct dm_ioctl;
13
struct dm_ioctl_v1;
14
15
struct target {
16
uint64_t start;
17
uint64_t length;
18
char *type;
19
char *params;
20
21
struct target *next;
22
};
23
24
struct dm_task {
25
int type;
26
char *dev_name;
27
28
struct target *head, *tail;
29
30
int read_only;
31
uint32_t event_nr;
32
int major;
33
int minor;
34
union {
35
struct dm_ioctl *v4;
36
struct dm_ioctl_v1 *v1;
37
} dmi;
38
char *newname;
39
40
char *uuid;
41
};
42
43
struct cmd_data {
44
const char *name;
45
const int cmd;
46
const int version[3];
47
};
48
49
int dm_check_version(void);
50
51
#endif