7. .backup.free_space

Agent for getting the free space in the directory (in 1K blocks)

7.1. Authors

  • Lukas Ocilka <locilka@suse.cz>

7.2. Description

Access type: read

File Name: /usr/share/YaST2/scrconf/cfg_backup_freespace.scr

7.3. Usage

Example 6. 

	Read(.backup.free_space, "/tmp")
	(3752236)
	Read(.backup.free_space, "/abcd1")
	(-1) // Directory does not exist or is not a directory
	Read(.backup.free_space, "/abcd2")
	(-1) // Cannot find '/bin/df' binary
 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.