summaryrefslogtreecommitdiffstats
path: root/guestfs-structs.pod
blob: dd6b0ed23bc103b4e66568b7e3380c57df2bff8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
=head2 guestfs_lvm_pv

 struct guestfs_lvm_pv {
  char *pv_name;
  /* The next field is NOT nul-terminated, be careful when printing it: */
  char pv_uuid[32];
  char *pv_fmt;
  uint64_t pv_size;
  uint64_t dev_size;
  uint64_t pv_free;
  uint64_t pv_used;
  char *pv_attr;
  int64_t pv_pe_count;
  int64_t pv_pe_alloc_count;
  char *pv_tags;
  uint64_t pe_start;
  int64_t pv_mda_count;
  uint64_t pv_mda_free;
 
 struct guestfs_lvm_pv_list {
   uint32_t len; /* Number of elements in list. */
   struct guestfs_lvm_pv *val; /* Elements. */
 };
 
 void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);

=head2 guestfs_lvm_vg

 struct guestfs_lvm_vg {
  char *vg_name;
  /* The next field is NOT nul-terminated, be careful when printing it: */
  char vg_uuid[32];
  char *vg_fmt;
  char *vg_attr;
  uint64_t vg_size;
  uint64_t vg_free;
  char *vg_sysid;
  uint64_t vg_extent_size;
  int64_t vg_extent_count;
  int64_t vg_free_count;
  int64_t max_lv;
  int64_t max_pv;
  int64_t pv_count;
  int64_t lv_count;
  int64_t snap_count;
  int64_t vg_seqno;
  char *vg_tags;
  int64_t vg_mda_count;
  uint64_t vg_mda_free;
 
 struct guestfs_lvm_vg_list {
   uint32_t len; /* Number of elements in list. */
   struct guestfs_lvm_vg *val; /* Elements. */
 };
 
 void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);

=head2 guestfs_lvm_lv

 struct guestfs_lvm_lv {
  char *lv_name;
  /* The next field is NOT nul-terminated, be careful when printing it: */
  char lv_uuid[32];
  char *lv_attr;
  int64_t lv_major;
  int64_t lv_minor;
  int64_t lv_kernel_major;
  int64_t lv_kernel_minor;
  uint64_t lv_size;
  int64_t seg_count;
  char *origin;
  /* The next field is [0..100] or -1 meaning 'not present': */
  float snap_percent;
  /* The next field is [0..100] or -1 meaning 'not present': */
  float copy_percent;
  char *move_pv;
  char *lv_tags;
  char *mirror_log;
  char *modules;
 
 struct guestfs_lvm_lv_list {
   uint32_t len; /* Number of elements in list. */
   struct guestfs_lvm_lv *val; /* Elements. */
 };
 
 void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);

=head2 guestfs_stat

 struct guestfs_stat {
   int64_t dev;
   int64_t ino;
   int64_t mode;
   int64_t nlink;
   int64_t uid;
   int64_t gid;
   int64_t rdev;
   int64_t size;
   int64_t blksize;
   int64_t blocks;
   int64_t atime;
   int64_t mtime;
   int64_t ctime;
 };

=head2 guestfs_statvfs

 struct guestfs_statvfs {
   int64_t bsize;
   int64_t frsize;
   int64_t blocks;
   int64_t bfree;
   int64_t bavail;
   int64_t files;
   int64_t ffree;
   int64_t favail;
   int64_t fsid;
   int64_t flag;
   int64_t namemax;
 };

=head2 guestfs_dirent

 struct guestfs_dirent {
   int64_t ino;
   char ftyp;
   char *name;
 };

 struct guestfs_dirent_list {
   uint32_t len; /* Number of elements in list. */
   struct guestfs_dirent *val; /* Elements. */
 };
 
 void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);