Getting mount stats for filesystems
mitko at qlogic.com
Tue Jun 5 23:11:13 CEST 2007
On Tue, 05 Jun 2007 21:32:21 +0200
"Martin v. Löwis" <martin at v.loewis.de> wrote:
> You could try to invoke getmntent(3). I'm not aware of a Python wrapper
> for it, so you either try to write one yourself in C, or use ctypes to
> write it in Python.
I am looking at ctypes and it might do what I need but I can't figure
out a way to convert a Python File object to a C FILE pointer (which is
the needed argument for getmntent).
Mitko Haralanov mitko at qlogic.com
Senior Software Engineer 650.934.8064
System Interconnect Group http://www.qlogic.com
Fry: That clover helped my rat-fink brother steal my dream of going
into space. Now I'll never get there.
Leela: You went there this morning for donuts.
More information about the Python-list