[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: any way to issue a statfs() in Lua ?
- From: petah <lua@...>
- Date: Fri, 15 Mar 2013 19:04:37 +0100
>I've been able to retrieve cpuload and memory usage directly in Linuxs
>/proc but nothing regarding disk usage :(
you can get actual statistics from /proc/diskstats [1] but for used space you'll need statfs(), or statvfs() depending on desired LSB-compliance.
cheers,
-- p
[1] http://www.kernel.org/doc/Documentation/iostats.txt