
functions
files
intro
|
|
Configuration of nfs server
|
routines.ycp
|
Network NFS routines
|
|
|
Network NFS routines
Imports
Local Functions
|
|
|
local AllowedToHostsOpts (string hosts) -> list<string>
|
|
Split the allowed host specification
- Parameters:
- Return value:
local AllowedTableItems (list<string> allowed) -> list<term>
|
|
- Parameters:
allowed |
a list of allowed host specifications |
- Return value:
- 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:
- Return value:
|
a ui table list of mountpoints, id'ed by themselves |
local ExportsSelBox (list<map> exports) -> term
|
|
- Parameters:
- 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:
- Return value:
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:
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:
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:
|