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

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