Felix Schäfer wrote:
> Hello,
> 
> I'm not quite sure if this list is the right to discuss facter-related  
> stuff, but I couldn't find another one, so here it goes.
> 
> I'm in the process of writing facts to get the size and usage of a  
> partition. Finding the size in /sys wasn't too hard, but I can't find  
> how much is actually used in either /proc or /sys. Am I just missing  
> something, or will I have to resolve myself to using `df` or something  
> similar (which I'd rather like to avoid, for that matter)?
> 

I don't know the status of disk usage in Facter, but why wouldn't you leverage 
df?  It already exists, and is part of the Unix standards[1].  If you read /sys 
or /proc, well, that assumes existence of /sys or /proc, which are not widely 
cross-platform.

Steven Jenkins
End Point Corporation

[1] http://www.opengroup.org/onlinepubs/009695399/utilities/df.html

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to