[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 17:10:12 +0100
>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