|
|
6bbd11 |
autofs-5.0.9 - amd lookup add README.amd-maps
|
|
|
6bbd11 |
|
|
|
6bbd11 |
From: Ian Kent <ikent@redhat.com>
|
|
|
6bbd11 |
|
|
|
6bbd11 |
|
|
|
6bbd11 |
---
|
|
|
6bbd11 |
README.amd-maps | 126 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
6bbd11 |
1 file changed, 126 insertions(+)
|
|
|
6bbd11 |
create mode 100644 README.amd-maps
|
|
|
6bbd11 |
|
|
|
6bbd11 |
diff --git a/README.amd-maps b/README.amd-maps
|
|
|
6bbd11 |
new file mode 100644
|
|
|
6bbd11 |
index 0000000..b31a7db
|
|
|
6bbd11 |
--- /dev/null
|
|
|
6bbd11 |
+++ b/README.amd-maps
|
|
|
6bbd11 |
@@ -0,0 +1,126 @@
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+amd map parser
|
|
|
6bbd11 |
+==============
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+The ability to parse amd format maps has been added to autofs.
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+How to use amd maps in autofs
|
|
|
6bbd11 |
+-----------------------------
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+To add amd map parsing to autofs new "format" module has been added.
|
|
|
6bbd11 |
+To use this new map format module the existing master map syntax is
|
|
|
6bbd11 |
+used as described below.
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+The master map entry syntax is:
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+mount-point [map-type[,format]:]map [options]
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+For amd format maps this becomes:
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+/amd/mp file,amd:amd.mp
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+which will use file as the map source and the amd format parser for
|
|
|
6bbd11 |
+the map. But see the section below on configuration below for how to
|
|
|
6bbd11 |
+eliminate the need to specify "map-type,format" in the master map.
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+Configuration sub-system changes
|
|
|
6bbd11 |
+--------------------------------
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+The configuration sub-system has changed to accommodate the amd parser.
|
|
|
6bbd11 |
+See autofs.conf(5) for more information on format changes.
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+The configuration is now split into system initialization only
|
|
|
6bbd11 |
+configuration and the daemon configuration. Previously everything was
|
|
|
6bbd11 |
+located in the system initialization configuration file, but now the
|
|
|
6bbd11 |
+configuration is located in autofs.conf in the directory the distribution
|
|
|
6bbd11 |
+uses for the autofs configuration.
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+There is information about what amd configuration entries can be used
|
|
|
6bbd11 |
+in comments of the installed configuration so that's worth a look.
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+All that's needed to add an existing amd configuration to autofs is to
|
|
|
6bbd11 |
+add it below the autofs configuration. Apart from changing the amd
|
|
|
6bbd11 |
+"[ global ]" section name to "[ amd ]" nothing else should need to be
|
|
|
6bbd11 |
+changed. However, quite a few amd configuration options don't have
|
|
|
6bbd11 |
+meaning within autofs. When these options are seen it should be logged.
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+Be aware that, if the an old configuration exists and the configuration
|
|
|
6bbd11 |
+hasn't been updated after the installation, changes to the the old
|
|
|
6bbd11 |
+configuration will override changes to the new configuration because
|
|
|
6bbd11 |
+backward compatibility takes priority over the new implementation.
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+The amd per-map sections have two functions, to allow per-mount
|
|
|
6bbd11 |
+configuration, as it does in amd, and to allow master map entries to
|
|
|
6bbd11 |
+avoid the need to specify the "type,format" part of the master map
|
|
|
6bbd11 |
+entry so they can use the nsswitch map source functionality in the
|
|
|
6bbd11 |
+same way autofs master map entries do.
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+If a section for an amd mount is added below the global amd section
|
|
|
6bbd11 |
+using the mount point path (as is done in amd.conf) then autofs will
|
|
|
6bbd11 |
+know the map format is amd (it doesn't matter if there are no other
|
|
|
6bbd11 |
+configuration options in the mount point section). Since the map must
|
|
|
6bbd11 |
+be given in the master map entry the map_name option is not mandatory
|
|
|
6bbd11 |
+as it is in amd and will no be used.
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+If a mount point is present in the master map and the source of the
|
|
|
6bbd11 |
+map is nis then it should be sufficient to use (for example):
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+/amd/mp amd.mp
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+in the master map and
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+automount: nis
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+in /etc/nsswitch.conf or
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+[ amd ]
|
|
|
6bbd11 |
+map_type = nis
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+in the configuration along with
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+[ /amd/mp ]
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+or
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+[ /amd/mp ]
|
|
|
6bbd11 |
+map_type = nis
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+amd map options that can be used
|
|
|
6bbd11 |
+--------------------------------
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+In an attempt to describe the usable amd map options, many of the amd
|
|
|
6bbd11 |
+map options have been added to autofs(5).
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+Not all the amd functionality has been implemented. The autofs(5) man
|
|
|
6bbd11 |
+page usually mentions if something hasn't been implemented so that's
|
|
|
6bbd11 |
+worth checking.
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+What hasn't been implemented
|
|
|
6bbd11 |
+----------------------------
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+The configuration options fully_qualified_hosts, unmount_on_exit and
|
|
|
6bbd11 |
+browsable_dirs (and a couple of others) aren't implemented.
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+Map types (sources) ndbm, passwd are not implemented.
|
|
|
6bbd11 |
+The map source "sss" can't be used for amd format maps.
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+Map caching options aren't used, the existing autofs map caching is
|
|
|
6bbd11 |
+always used for available map sources.
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+The regex map key matching feature is not implemented.
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+Mount types lustre, nfsx, jfs, program and direct haven't been
|
|
|
6bbd11 |
+implemented and other mount types that aren't implemented in amd are
|
|
|
6bbd11 |
+also not available.
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+How to find out more
|
|
|
6bbd11 |
+--------------------
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+Have a look at the man pages autofs.conf(5), autofs(5) and to a
|
|
|
6bbd11 |
+lesser extent auto.master(5). These may help.
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+But the best way to get more information is to ask on the
|
|
|
6bbd11 |
+autofs mailing list as described in the README file.
|
|
|
6bbd11 |
+
|
|
|
6bbd11 |
+Ian
|