Skip to content

Commit

Permalink
This commit was manufactured by cvs2git to create tag 'PYSTATGRAB_0_4'.
Browse files Browse the repository at this point in the history
Sprout from master 2005-07-30 10:53:28 UTC Tim Bishop <tim@bishnet.net> 'Version 0.4 of pystatgrab.'
Cherrypick from master 2005-07-30 18:16:14 UTC Tim Bishop <tim@bishnet.net> 'Yes, and the REST of libstatgrab 0.12 too :)':
    _statgrab.pyx
  • Loading branch information
tdb committed Jul 30, 2005
1 parent b76a499 commit 385f63a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions _statgrab.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@ cdef extern from "statgrab.h":
long long total_inodes
long long used_inodes
long long free_inodes
long long avail_inodes
long long io_size
long long block_size
long long total_blocks
long long free_blocks
long long used_blocks
long long avail_blocks

cdef extern sg_fs_stats *sg_get_fs_stats(int *entries)

Expand Down Expand Up @@ -448,6 +455,13 @@ def py_sg_get_fs_stats():
'total_inodes': s.total_inodes,
'used_inodes': s.used_inodes,
'free_inodes': s.free_inodes,
'avail_inodes': s.avail_inodes,
'io_size': s.io_size,
'block_size': s.block_size,
'total_blocks': s.total_blocks,
'free_blocks': s.free_blocks,
'used_blocks': s.used_blocks,
'avail_blocks': s.avail_blocks,
}
))
s = s + 1
Expand Down

0 comments on commit 385f63a

Please # to comment.