152. Nfs

NFS client configuration data, I/O functions.

152.1. Authors

  • Jan Holesovsky <kendy@suse.cz>

  • Dan Vesely <dan@suse.cz>

  • Martin Vidner <mvidner@suse.cz>

152.2. Summary of Module Globals

List of Global Functions

  • AutoPackages - Return required packages for auto-installation

  • Export - Dump the NFS settings to a map, for autoinstallation use.

  • GetModified - Functions which returns if the settings were modified

  • Import - Get all NFS configuration from a map. When called by nfs_auto (preparing autoinstallation data) the map may be empty.

  • Mount - Mount NFS directory

  • Read - Reads NFS settings from the SCR (.etc.fstab)

  • Set - Set module data

  • SetModified - Function sets internal variable, which indicates, that any settings were modified, to "true"

  • Summary - Summary()

  • Unmount - Unmount NFS directory from the system

  • Write - Writes the NFS client configuration and starts/stops the service. (No parameters because it is too short to abort)

  • WriteOnly - 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)

List of Global Variables

152.3. Global Functions

152.3.1. AutoPackages

Return required packages for auto-installation

Return value

  • map - of packages to be installed and to be removed

152.3.2. Export

Dump the NFS settings to a map, for autoinstallation use.

Return value

  • list - a list of nfs entries.

152.3.3. GetModified

Functions which returns if the settings were modified

Return value

  • boolean - settings were modified

152.3.4. Import

Get all NFS configuration from a map. When called by nfs_auto (preparing autoinstallation data) the map may be empty.

Function parameters

  • list<map> settings

Return value

  • boolean - success

152.3.5. Mount

Mount NFS directory

Function parameters

  • string server

  • string share

  • string mpoint

  • string options

Return value

  • string - directory where volume was mounted or nil if mount failed

152.3.6. Read

Reads NFS settings from the SCR (.etc.fstab)

Return value

  • boolean - true on success

152.3.7. Set

Set module data

Function parameters

  • list<map> settings

Return value

  • void

152.3.8. SetModified

Function sets internal variable, which indicates, that any settings were modified, to "true"

Return value

  • void

152.3.9. Summary

Summary()

Return value

  • string - Html formatted configuration summary

152.3.10. Unmount

Unmount NFS directory from the system

Function parameters

  • string mpoint

Return value

  • boolean - true on success

152.3.11. Write

Writes the NFS client configuration and starts/stops the service. (No parameters because it is too short to abort)

Return value

  • boolean - true on success

152.3.12. WriteOnly

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

  • boolean - true on success

152.4. Global Variables

152.4.1. nfs_entries

eg.: [ $["spec": "moon:/cheese", file: "/mooncheese", "mntopts": "defaults"], ...]

152.4.2. non_nfs_entries

Read only, intended for checking mount-point uniqueness.

152.4.3. required_packages

Required packages

152.5. Module Requirements

152.5.1. Module Imports

  • Mode
  • PackageSystem
  • Progress
  • Report
  • Service
  • SuSEFirewall
  • Summary
  • Wizard

152.5.2. Module Includes

  • nfs/routines.ycp