lua-users home
lua-l archive

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


>On Fri, Mar 15, 2013 at 8:37 AM, petah <lua@laufenberg.ch> wrote:
>>>I wonder if their is anyway to do a statfs() from Lua ?
>>
>> can't you just issue io.popen() commands and retrieve the result?
>
>He specifically said he didn't want to exec another process due to the
>weight of doing so.

Sorray. Pre-morning coffee.

That being said, df can be pretty heavy so forking it may be irrelevant, possibly faster than a blocking native call.

-- p