git://git.onelab.eu
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fcf6f4
)
now returns 1k block count rather than 512byte block count
author
Marc Fiuczynski
<mef@cs.princeton.edu>
Tue, 21 Jun 2005 21:52:18 +0000
(21:52 +0000)
committer
Marc Fiuczynski
<mef@cs.princeton.edu>
Tue, 21 Jun 2005 21:52:18 +0000
(21:52 +0000)
python/vduimpl.c
patch
|
blob
|
history
diff --git
a/python/vduimpl.c
b/python/vduimpl.c
index
00ff5db
..
01fc63c
100644
(file)
--- a/
python/vduimpl.c
+++ b/
python/vduimpl.c
@@
-551,7
+551,13
@@
do_vdu(PyObject *self, PyObject *args)
Dispose(&tbl);
/* create a python (inode, block, size) tuple */
- tuple = Py_BuildValue("(L,L,L)",s.inodes,s.blocks,s.size);
+ tuple = Py_BuildValue("(L,L,L)",
+ s.inodes,
+ s.blocks>>1, /* NOTE: div by 2 to adjust
+ * 512b block count to 1K
+ * block count
+ */
+ s.size);
return (res == -1) ? PyErr_SetFromErrno(PyExc_OSError) : tuple;
}