Eugene,

The only Linux function that can do this is `statvfs`. But binding to
it weren't implemented in the current libraries.

Year ago I implemented function that queries free size of the mounted
filesystem. The file is attached. To get other parameters you should
only extend `peek` function of the `Storable` class.

Hope it helps.

Vasyl

2010/2/27 Eugene Dzhurinsky <b...@redwerk.com>:
> Hello!
>
> I need to list all currently mounted filesystems and get some stats like
> total space, free space, mount point and physical device.
>
> Is there any library capable of obtaining such information from OS itself?
> Parsing output of 'df' is locale-dependent and error-prone (because of locale
> settings, output settings etc).
>
> Thank you in advance.
>
> --
> Eugene N Dzhurinsky
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>

Attachment: statvfs.hsc
Description: Binary data

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to