ACC SHELL
/**
* File:
* cfg_freespace.scr
*
* Summary:
* Agent for getting the free space in the directory (in 1K blocks)
*
* Author:
* Lukas Ocilka <locilka@suse.cz>
*
* Access:
* read
*
* Example:
* Read(.system.freespace, "/tmp")
* (3752236)
*
* Read(.system.freespace, "/abcd1")
* (-1) // Directory does not exist or is not a directory
*
* Read(.system.freespace, "/abcd2")
* (-1) // Cannot find '/bin/df' binary
*
* Description:
* Agent calls command '/bin/df $directory' and returns the available space
* in 1K blocks. -1 is returned in case of any error, such as 'Directory does
* not exist', 'Object is not a directory', '/bin/df does not exist on the
* system' or 'Directory not defined'. Every error should appear in the y2log.
*
* $Id: system_freespace.scr 61236 2010-03-10 15:39:50Z mvidner $
*
*/
.system.freespace
`ag_freespace ()
ACC SHELL 2018