lua-users home
lua-l archive

Re: any way to issue a statfs() in Lua ?

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>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

AltStyle によって変換されたページ (->オリジナル) /