Configuration of nfs |
Nfs.ycp |
| NFS client configuration data, I/O functions. | |
|
|
|
This module has an unstable interface. |
Imports
Includes
Global VariablesGlobal Functions
Local Functions
|
Function sets internal variable, which indicates, that any settings were modified, to "true"
Functions which returns if the settings were modified
- Return value:
-
settings were modified
Required packages
eg.: [ $["spec": "moon:/cheese", file: "/mooncheese", "mntops": "defaults"], ...]
Read only, intended for checking mount-point uniqueness.
From settings (which is a list in SLE11 but a map in oS: bnc#820989), extract the options and the NFS fstab entries.
- Parameters:
-
settings global_options entries
Fill in the defaults for AY profile entries.
- Parameters:
-
entries
Get all NFS configuration from a map. When called by nfs_auto (preparing autoinstallation data) the map may be empty.
- Parameters:
-
settings a list of nfs_entries
- Return value:
-
success
Dump the NFS settings to a map, for autoinstallation use.
- Return value:
-
a list of nfs entries.
Escape spaces " " -> "\\040".
- Parameters:
-
s a string or nil
- Return value:
-
escaped string or nil
Escape spaces " " -> "\\040" in all values of all entries
- Parameters:
-
entries a list of maps, such as nfs_entries
- Return value:
-
escaped entries
(like awk gsub, but return the result, not number of replacements) replaces from back!
- Parameters:
-
regex regular expression to replace replacement the replacement string s where to replace
- Return value:
-
the changed string
Un-escape spaces "\\040" -> " "
- Parameters:
-
s string or nil
- Return value:
-
escaped string or nil
Un-escape spaces "\\040" -> " " in all values of all entries
- Parameters:
-
entries a list of maps, such as nfs_entries
- Return value:
-
escaped entries
Reads NFS settings from the SCR (.etc.fstab)
- Return value:
-
true on success
Merge two partial fstabs so that they are properly ordered. For example / must go before anything else, /foo/bar must go before /foo/bar/baz
- Parameters:
-
a b
Writes the NFS client configuration without starting/stopping the service. Autoinstallation uses this and then calls SuSEconfig only once and starts the services together. (No parameters because it is too short to abort)
- Return value:
-
true on success
Writes the NFS client configuration and starts/stops the service. (No parameters because it is too short to abort)
- Return value:
-
true on success
Summary()
- Return value:
-
Html formatted configuration summary
Mount NFS directory
- Parameters:
-
server remote server name share name of the exported directory mpoint mount point (can be empty or nil, in this case it will be mounted in temporary directory) options mount options - e.g. "ro,hard,intr", see man nfs type nfs type (nfs vs. nfsv4) - if empty, 'nfs' is used
- Return value:
-
directory where volume was mounted or nil if mount failed
Unmount NFS directory from the system
- Parameters:
-
mpoint NFS mount point to unmount
- Return value:
-
true on success
Return required packages for auto-installation
- Return value:
-
of packages to be installed and to be removed
Probe the LAN for NFS servers. Uses RPC broadcast to mountd.
- Return value:
-
a list of hostnames
Probe a server for its exports.
- Parameters:
-
server IP or hostname v4 Use NFSv4?
- Return value:
-
a list of exported paths