46. .etc.exports

SCR Agent for reading/writing /etc/exports

46.1. Description

Returns/Takes a list of maps containing the mountpoints and their options. Keys for the maps are: "mountpoint" and "allowed".

Access type: read/write

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

See: anyagent libscr man exports

46.2. Usage

Example 17. 

  Original /etc/exports:
    /projects       proj*.local.domain(rw)
    /usr            *.local.domain(ro) @trusted(rw)
    /pub            (ro,insecure,all_squash)

  Read(.etc.exports)
  ([$["allowed":["proj*.local.domain(rw)"], 
      "mountpoint":"/projects"], 
    $["allowed":["*.local.domain(ro)", "@trusted(rw)"], 
      "mountpoint":"/usr"], 
    $["allowed":["(ro,insecure,all_squash)"], 
      "mountpoint":"/pub"]])

  Write(.etc.exports, $["allowed":["(ro,insecure,all_squash)"],
                        "mountpoint":"/pub"]]))
  (true)