Blame SOURCES/autofs-5.0.9-amd-lookup-add-REDAME-amd-maps.patch

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