[Haskell-cafe] Re: listing mountpoints and getting their properties
barsoap at web.de
Sat Feb 27 12:46:13 EST 2010
Eugene Dzhurinsky <bofh at redwerk.com> wrote:
> 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.
There's mount, which I think has a portable output format, and my df
comes with the -P option to switch to POSIX output.
(c) this sig last receiving data processing entity. Inspect headers
for copyright history. All rights reserved. Copying, hiring, renting,
performance and/or quoting of this signature prohibited.
More information about the Haskell-Cafe