140 |
|
long long total_inodes |
141 |
|
long long used_inodes |
142 |
|
long long free_inodes |
143 |
+ |
long long avail_inodes |
144 |
+ |
long long io_size |
145 |
+ |
long long block_size |
146 |
+ |
long long total_blocks |
147 |
+ |
long long free_blocks |
148 |
+ |
long long used_blocks |
149 |
+ |
long long avail_blocks |
150 |
|
|
151 |
|
cdef extern sg_fs_stats *sg_get_fs_stats(int *entries) |
152 |
|
|
181 |
|
ctypedef struct sg_network_iface_stats: |
182 |
|
char *interface_name |
183 |
|
int speed |
184 |
< |
sg_iface_duplex dup |
184 |
> |
sg_iface_duplex duplex |
185 |
|
int up |
186 |
|
|
187 |
|
cdef extern sg_network_iface_stats *sg_get_network_iface_stats(int *entries) |
455 |
|
'total_inodes': s.total_inodes, |
456 |
|
'used_inodes': s.used_inodes, |
457 |
|
'free_inodes': s.free_inodes, |
458 |
+ |
'avail_inodes': s.avail_inodes, |
459 |
+ |
'io_size': s.io_size, |
460 |
+ |
'block_size': s.block_size, |
461 |
+ |
'total_blocks': s.total_blocks, |
462 |
+ |
'free_blocks': s.free_blocks, |
463 |
+ |
'used_blocks': s.used_blocks, |
464 |
+ |
'avail_blocks': s.avail_blocks, |
465 |
|
} |
466 |
|
)) |
467 |
|
s = s + 1 |
560 |
|
list.append(Result( |
561 |
|
{'interface_name': s.interface_name, |
562 |
|
'speed': s.speed, |
563 |
< |
'dup': s.dup, |
563 |
> |
'duplex': s.duplex, |
564 |
|
'up' : s.up, |
565 |
|
} |
566 |
|
)) |