YaST2 Developers Documentation: Configuration of nfs server



functions
files
intro

Configuration of nfs server

routines.ycp
Network NFS routines
Network NFS routines

Imports

  • Popup

Local Functions

local AllowedToHostsOpts (string hosts) -> list<string>

Split the allowed host specification

Parameters:
hosts "hosts(opts)"
Return value:
["hosts", "opts"]

local AllowedTableItems (list<string> allowed) -> list<term>

Parameters:
allowed a list of allowed host specifications
Return value:
a ui table list of items
Example:
  AllowedTableItems (["*.local.domain(ro)", "@trusted(rw)"])

local FindAllowed (list<map> exports, string mp) -> list<string>

Find entry in exports according to the mountpoint

Parameters:
exports list of exports
mp mount point
Return value:
a list of allowed host specifications or nil if not found

local ExportsItems (list<map> exports) -> list<term>

Parameters:
exports list of exports
Return value:
a ui table list of mountpoints, id'ed by themselves

local ExportsSelBox (list<map> exports) -> term

Parameters:
exports list of exports
Return value:
a SelectionBox for the mountpoints, `id(`exportsbox)

local CheckNoSpaces (string name) -> boolean

Check for the validity of client specification: fewer than 70 chars, no blanks. If invalid, a message is displayed.

Parameters:
name options
Return value:
whether valid

local CheckExportOptions (string options) -> boolean

Check for the validity of export options: [A-Za-z0-9=/.,_-]* If invalid, a message is displayed.

Parameters:
options spaces and parentheses already removed
Return value:
whether valid

local CheckExportOptions_strict (string options) -> boolean

Check for the validity of export options: only those listed in exports(5) are accepted. Unused - to allow not only nfs-utils but also nfs-server. If invalid, a message is displayed.

Parameters:
options spaces and parentheses already removed
Return value:
whether valid

local ReplaceInExports (list<map<string,any> > exports, string mountpoint, list<string> allowed) -> list<map<string,any> >

Replaces 'allowed' list in exports (for specified mountpoint)

Parameters:
exports exports list
mountpoint mount point
allowed new allowed host list for that mout point
Return value:
modified exports list

YaST2 Developers Documentation