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", "mntopts": "defaults"], ...]
Read only, intended for checking mount-point uniqueness.
Set module data
- Parameters:
-
settings module settings
Get all NFS configuration from a map. When called by nfs_auto (preparing autoinstallation data) the map may be empty.
- Parameters:
-
settings a map with a single key: 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
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
- 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