~registry/lvm2/master

« back to all changes in this revision

Viewing changes to lib/activate/activate.h

  • Committer: Alasdair Kergon
  • Date: 2003-01-08 22:44:07 UTC
  • Revision ID: git-v1:199e490e7d71b21a3e5e1495c9981260f570c1bf
configure --disable-devmapper  if you don't have libdevmapper

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
#define LVM_ACTIVATE_H
9
9
 
10
10
#include "metadata.h"
 
11
 
 
12
#ifdef DEVMAPPER_SUPPORT
11
13
#include <libdevmapper.h>
 
14
#endif
 
15
 
 
16
struct lvinfo {
 
17
        int exists;
 
18
        int suspended;
 
19
        unsigned int open_count;
 
20
        int major;
 
21
        int minor;
 
22
        int read_only;
 
23
};
12
24
 
13
25
void set_activation(int activation);
14
26
int activation(void);
19
31
/*
20
32
 * Returns 1 if info structure has been populated, else 0.
21
33
 */
22
 
int lv_info(const struct logical_volume *lv, struct dm_info *info);
 
34
int lv_info(const struct logical_volume *lv, struct lvinfo *info);
23
35
/*
24
36
 * Returns 1 if percent has been set, else 0.
25
37
 */