Christian Hofstaedtler wrote:
> You probably can't avoid `df` if you want something which works for
> anything else than Linux too.
Of course, the output from df differs between different Unixes...
I don't think there is information about filesystem usage in /proc
or /sys on Linux. That information is easily available using the
statvfs(2) system call, which is standardized by Posix. Isn't there
a Ruby binding for statvfs()? I can't find one in the Ruby docs,
but it seems strange for such a basic syscall to not have a Ruby
binding.
/Bellman
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---