137. .run.df

SCR Agent for reading the result from /bin/df -P

137.1. Authors

  • Unknown <yast2-hacker@suse.de>

137.2. Description

Returns a list of maps. Each map (list-entry) corresponds with one mount. Keys for the maps are: "spec", "whole", "used", "free", "prz", "name", "dummy"

Access type: read-only

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

See also:

anyagent
libscr
man df

137.3. Usage

Example 81. 

Read(.run.df)
([$["dummy":"on", 
    "free":"Available", 
    "name":"Mounted", 
    "prz":"Capacity", 
    "spec":"Filesystem", 
    "used":"Used", 
    "whole":"1024-blocks"], 
  $["free":"2170396", 
    "name":"/", 
    "prz":"75%", 
    "spec":"/dev/sda3", 
    "used":"6496372", 
    "whole":"8666768"], 
  $["free":"18715", 
    "name":"/boot", 
    "prz":"16%", 
    "spec":"/dev/sda1", 
    "used":"3382", 
    "whole":"23300"], 
])