Hi guys,

On Fri, Feb 1, 2013 at 12:41 AM, Robert Jordan <[email protected]> wrote:

> On 31.01.2013 12:45, Christian Schmid wrote:
>
>> Hi Jon
>>
>> Unfortunately, it did not work. Although /dev/sda2 is a 500 gb device,
>> statfvs("dev/sda2", out stat) and fstatvfs(fd, out stat) returned the
>> following:
>>
>> bavail=2560
>> bfree=2560
>> blocks=2560
>> bsize=4096
>> files=8262645
>> frsize=4096
>>
>
> Maybe the device must be mounted to be able to get meaningful values...
>

The usage is incorrect: you give it a path (or fd) of a file *ON* the
filesystem you're interested in.

If you pass it /dev/sda it probably gives you info on the /dev pseudo
filesystem (or maybe the root filesystem where /dev is mounted).

Cheers,
/ulrich
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to