Configuration of nfs |
routines.ycp |
| Network NFS routines | |
|
|
|
This module has an unstable interface. |
Network NFS routines
Imports
Local Functions
|
- Parameters:
-
spec "server:/path/specification"
- Return value:
-
`couple("server", "/path/specification")
Creates a list of ui table items for nfs fstab entries
- Parameters:
-
fstab list of nfs fstab entries
- Return value:
-
itemized table entries
- Example
-
UI::ChangeWidget(`id(`fstable), `Items, FstabTableItems(nfs_entries));
Check for the validity of a hostname: nonempty, shorter than 50 chars, [-A-Za-z._]. If invalid, a message is displayed.
- Parameters:
-
name a hostname
- Return value:
-
whether valid
Check if a mountpoint is in the fstab. If yes, display a message.
- Parameters:
-
fstab in .etc.fstab format (must contain the key "file") mpoint mount point
- Return value:
-
is it there?
Check for the validity of a path/mountpoint: nonempty, fewer than 70 chars, starts with a slash. If invalid, a message is displayed.
- Parameters:
-
name path
- Return value:
-
whether valid
Checks the nfs options for /etc/fstab: nonempty, comma separated list of foo,nofoo,bar=baz (see nfs(5))
- Parameters:
-
options options
- Return value:
-
a translated string with error message, emtpy string if ok
Strips a superfluous slash off the end of a pathname.
- Parameters:
-
p pathname
- Return value:
-
stripped pathname
Formats hostname into form suitable for fstab. If given param is IPv6 then encloses it into square brackets.
- Parameters:
-
hostname
Check whether pormap is installed, ask user to install it if it is missing
- Parameters:
-
portmapper
- Return value:
-
true if portmap is installed