Blame SOURCES/autofs-5.0.9-amd-lookup-add-amd-config-descriptions-to-config.patch

304803
autofs-5.0.9 - amd lookup add amd config descriptions to config
304803
304803
From: Ian Kent <raven@themaw.net>
304803
304803
Add amd configuration option descriptions to the default installed
304803
configuration file.
304803
304803
Including details about amd options that aren't used, haven't been
304803
implemented or have different behaviour within autofs.
304803
---
304803
 redhat/autofs.conf.default.in  |  214 ++++++++++++++++++++++++++++++++++++++++
304803
 samples/autofs.conf.default.in |  214 ++++++++++++++++++++++++++++++++++++++++
304803
 2 files changed, 428 insertions(+)
304803
304803
diff --git a/redhat/autofs.conf.default.in b/redhat/autofs.conf.default.in
304803
index c1362c7..ccccaab 100644
304803
--- a/redhat/autofs.conf.default.in
304803
+++ b/redhat/autofs.conf.default.in
304803
@@ -129,3 +129,217 @@ mount_nfs_default_protocol = 4
304803
 #
304803
 #map_hash_table_size = 1024
304803
 #
304803
+#
304803
+# Otions for the amd parser within autofs.
304803
+#
304803
+# amd configuration options that are aren't used, haven't been
304803
+# implemented or have different behaviour within autofs.
304803
+#
304803
+# A number of the amd configuration options are not used by autofs,
304803
+# some because they are not relevant within autofs, some because
304803
+# they are done differently in autofs and others that are not yet
304803
+# implemented.
304803
+#
304803
+# Since "mount_type" is always autofs (because there's no user space
304803
+# NFS server) the configuration entries relating to that aren't used.
304803
+# Also, server availability is done differently within autofs so the
304803
+# options that relate to the amd server monitoring sub-system are
304803
+# also not used.
304803
+#
304803
+# These options are mount_type, auto_attrcache, portmap_program,
304803
+# nfs_vers_ping, nfs_allow_any_interface, nfs_allow_insecure_port,
304803
+# nfs_proto, nfs_retransmit_counter, nfs_retransmit_counter_udp,
304803
+# nfs_retransmit_counter_tcp, nfs_retransmit_counter_toplvl,
304803
+# nfs_retry_interval, nfs_retry_interval_udp, nfs_retry_interval_tcp,
304803
+# nfs_retry_interval_toplvl and nfs_vers.
304803
+#
304803
+#
304803
+# Other options that are not used within the autofs implementation:
304803
+#
304803
+# log_file, truncate_log - autofs used either stderr when running in
304803
+#	the foreground or sends its output to syslog so an alternate
304803
+#	log file (or truncating the log) can't be used.
304803
+#
304803
+# print_pid - there's no corresponding option for this within autofs.
304803
+#
304803
+# use_tcpwrappers, show_statfs_entries - there's no user space NFS
304803
+#	server to control access to so this option isn't relevant.
304803
+#	The show_statfs_entries can't be implemented for the same
304803
+#	reason.
304803
+#
304803
+# debug_mtab_file - there's no user space NFS server and autofs
304803
+#	avoids using file based mtab whenever possible.
304803
+#
304803
+# sun_map_syntax - obviously, are provided by autofs itself.
304803
+#
304803
+# plock, show_statfs_entries, preferred_amq_port - not supported.
304803
+#
304803
+# ldap_cache_maxmem, ldap_cache_seconds - external ldap caching
304803
+#	is not used by autofs.
304803
+#
304803
+# ldap_proto_version - autofs always attempts to use the highest
304803
+#	available ldap protocol version.
304803
+#
304803
+# cache_duration, map_reload_interval, map_options - the map
304803
+#	entry cache is continually updated and stale entries
304803
+#	cleaned on re-load, which is done when map changes are
304803
+#	detected so these configuration entries are not used
304803
+#	by autofs.
304803
+#
304803
+# localhost_address - is not used within autofs. This
304803
+#	configuration option was only used in the amd user
304803
+#	space server code and is not relevant within autofs.
304803
+#
304803
+#
304803
+# Options that are handled differently within autofs:
304803
+#
304803
+# pid_file - must be given as a command line option on startup.
304803
+#
304803
+# print_version - program version and feature information is obtained
304803
+#	by using the automount command line option "-V".
304803
+#
304803
+# debug_options, log_options - autofs has somewhat more limited
304803
+#	logging and debug logging options. When the log_options
304803
+#	options is encountered it is converted to the nearest
304803
+#	matching autofs logging option. Since the configuration
304803
+#	option debug_options would be handled the same way it
304803
+#	is ignored.
304803
+#
304803
+# restart_mounts - has no sensible meaning within autofs because autofs
304803
+#	always tries to re-connect to existing mounts. While this
304803
+#	has its own set of problems not re-connecting to existing
304803
+#	mounts always results in a non-functional automount tree if
304803
+#	mounts were busy at the last shutdown (as is also the case
304803
+#	with amd when using mount_type autofs).
304803
+#
304803
+# forced_unmounts - detaching mounts often causes serious problems
304803
+#	for users of existing mounts. It is used by autofs in some
304803
+#	cases, either at the explicit request of the user (with a
304803
+#	command line or init option) and in some special cases during
304803
+#	program operation but is avoided whenever possible.
304803
+#
304803
+#
304803
+# A number of configuration options are not yet implemented:
304803
+#
304803
+# search_path - always a little frustrating, the compiled in
304803
+#	map location should be used to locate maps but isn't
304803
+#	in some cases. This requires work within autofs itself
304803
+#	and that will (obviously) include implementing this
304803
+#	configuration option for the amd map parser as well.
304803
+#
304803
+# fully_qualified_hosts - not yet implemented.
304803
+#
304803
+# unmount_on_exit - since autofs always tries to re-connect
304803
+#	to mounts left mounted from a previous shutdown this
304803
+#	is a sensible option to implement and that will be
304803
+#	done.
304803
+#
304803
+# browsable_dirs - not yet implemented.
304803
+#
304803
+# exec_map_timeout - a timeout is not currently used for
304803
+#	for program maps, might be implemented.
304803
+#
304803
+# tag - the tag option is not implemented within autofs.
304803
+#
304803
+#
304803
+# Supported options:
304803
+#
304803
+# arch, karch, os, osver - these options default to what is returned
304803
+#	from uname(2) and can be overridden if required.
304803
+#
304803
+# full_os - has no default and must be set in the configuration
304803
+#	if used in maps.
304803
+#
304803
+# cluster - if not set defaults to the host domain name. This option
304803
+#	corresponds to the HP_UX cluster name (according to the amd
304803
+#	source) and is probably not used in Linux but is set anyway.
304803
+#
304803
+# vendor - has a default value of "unknown", it must be set in the
304803
+#	configuration if used in maps.
304803
+#
304803
+# auto_dir - is the base name of the mount tree used for external
304803
+#	mounts that are sometimes needed by amd maps. Its default
304803
+#	value is "/a".
304803
+#
304803
+# map_type - specifies the autofs map source, such as file, nis,
304803
+#	ldap etc. and has no default value set.
304803
+#
304803
+# map_defaults - is used to override /defaults entries within maps
304803
+#	and can be used to provide different defaults on specific
304803
+#	machines without having to modify centrally managed maps.
304803
+#	It is empty by default.
304803
+#
304803
+# dismount_interval - is equivalent to the autofs timeout option. It
304803
+#	is only possible to use this with type "auto" mounts due
304803
+#	to the way the autofs kernel module performs expiry. It
304803
+#	takes its default value from the autofs internal default
304803
+#	of 600 seconds.
304803
+#
304803
+# autofs_use_lofs - if set to "yes" autofs will attempt to use bind
304803
+#	mounts for type "auto" when possible.
304803
+#
304803
+# nis_domain - allows setting of a domain name other than the system
304803
+#	default.
304803
+#
304803
+# local_domain - is used to override (or set) the host domain name.
304803
+#
304803
+# normalize_hostnames - if set to "yes" then the contents of ${rhost}
304803
+#	is translated in its official host name.
304803
+#
304803
+# domain_strip - if set to "yes" the domain name part of the host
304803
+# 	is strippped when normalizing hostnames. This can be useful
304803
+#	when using of the same maps in a multiple domain environment.
304803
+#
304803
+# normalize_slashes - is set to "yes" by default and will collapse
304803
+#	multiple unescaped occurrences of "/" to a single "/".
304803
+#
304803
+# selectors_in_defaults, selectors_on_default - has a default value
304803
+#	of "no". If set to "yes" then any defaults entry will be
304803
+#	checked for selectors to determine the values to be used.
304803
+#	selectors_in_defaults is the preferred option to use.
304803
+#
304803
+# ldap_base - has no default value. It must be set to the base dn
304803
+#	that is used for queries if ldap is to be used as a map
304803
+#	source.
304803
+#
304803
+# ldap_hostports - has no default value set. It must be set to
304803
+#	the URI of the LDAP server to be used for lookups when
304803
+#	ldap is used a map source. It may contain a comma or
304803
+#	space seperated list of LDAP URIs.
304803
+#
304803
+# hesiod_base - the base name used for hesiod map sources.
304803
+#
304803
+# Define global options for the amd parser within autofs.
304803
+#
304803
+[ amd ]
304803
+#
304803
+# Override the internal default with the same timeout that
304803
+# is used by the override in the autofs configuration, sanity
304803
+# only change.
304803
+#
304803
+dismount_interval = 300
304803
+#
304803
+# map_type = file
304803
+#
304803
+# Overriding this can cause autofs to use less resources because
304803
+# it will use symlinks instead of bind mounts in certain cases.
304803
+# You should ensure that the autofs kernel module your using
304803
+# supports expration of symlinks for best results (although this
304803
+# appears to work reasonably well most of the time without the
304803
+# update).
304803
+#
304803
+# autofs_use_lofs = no
304803
+#
304803
+# Several configuration options can be set per mount point.
304803
+# In particulr map_type, map_name, map_defaults, search_path,
304803
+# browsable_dirs, dismount_interval and selectors_in_defaults
304803
+# (not all of which are currently implemented, see above).
304803
+#
304803
+# Also, if a section for an amd mount point is defined here
304803
+# it isn't necessary to specify the format in the corresponding
304803
+# master map entry and the format will be inherited for type
304803
+# "auto" mounts.
304803
+#
304803
+# [ /expamle/mount ]
304803
+# dismount_interval = 60
304803
+# map_type = nis
304803
diff --git a/samples/autofs.conf.default.in b/samples/autofs.conf.default.in
304803
index c8e4006..616bc66 100644
304803
--- a/samples/autofs.conf.default.in
304803
+++ b/samples/autofs.conf.default.in
304803
@@ -128,3 +128,217 @@ browse_mode = no
304803
 #
304803
 #map_hash_table_size = 1024
304803
 #
304803
+#
304803
+# Otions for the amd parser within autofs.
304803
+#
304803
+# amd configuration options that are aren't used, haven't been
304803
+# implemented or have different behaviour within autofs.
304803
+#
304803
+# A number of the amd configuration options are not used by autofs,
304803
+# some because they are not relevant within autofs, some because
304803
+# they are done differently in autofs and others that are not yet
304803
+# implemented.
304803
+#
304803
+# Since "mount_type" is always autofs (because there's no user space
304803
+# NFS server) the configuration entries relating to that aren't used.
304803
+# Also, server availability is done differently within autofs so the
304803
+# options that relate to the amd server monitoring sub-system are
304803
+# also not used.
304803
+#
304803
+# These options are mount_type, auto_attrcache, portmap_program,
304803
+# nfs_vers_ping, nfs_allow_any_interface, nfs_allow_insecure_port,
304803
+# nfs_proto, nfs_retransmit_counter, nfs_retransmit_counter_udp,
304803
+# nfs_retransmit_counter_tcp, nfs_retransmit_counter_toplvl,
304803
+# nfs_retry_interval, nfs_retry_interval_udp, nfs_retry_interval_tcp,
304803
+# nfs_retry_interval_toplvl and nfs_vers.
304803
+#
304803
+#
304803
+# Other options that are not used within the autofs implementation:
304803
+#
304803
+# log_file, truncate_log - autofs used either stderr when running in
304803
+#	the foreground or sends its output to syslog so an alternate
304803
+#	log file (or truncating the log) can't be used.
304803
+#
304803
+# print_pid - there's no corresponding option for this within autofs.
304803
+#
304803
+# use_tcpwrappers, show_statfs_entries - there's no user space NFS
304803
+#	server to control access to so this option isn't relevant.
304803
+#	The show_statfs_entries can't be implemented for the same
304803
+#	reason.
304803
+#
304803
+# debug_mtab_file - there's no user space NFS server and autofs
304803
+#	avoids using file based mtab whenever possible.
304803
+#
304803
+# sun_map_syntax - obviously, are provided by autofs itself.
304803
+#
304803
+# plock, show_statfs_entries, preferred_amq_port - not supported.
304803
+#
304803
+# ldap_cache_maxmem, ldap_cache_seconds - external ldap caching
304803
+#	is not used by autofs.
304803
+#
304803
+# ldap_proto_version - autofs always attempts to use the highest
304803
+#	available ldap protocol version.
304803
+#
304803
+# cache_duration, map_reload_interval, map_options - the map
304803
+#	entry cache is continually updated and stale entries
304803
+#	cleaned on re-load, which is done when map changes are
304803
+#	detected so these configuration entries are not used
304803
+#	by autofs.
304803
+#
304803
+# localhost_address - is not used within autofs. This
304803
+#	configuration option was only used in the amd user
304803
+#	space server code and is not relevant within autofs.
304803
+#
304803
+#
304803
+# Options that are handled differently within autofs:
304803
+#
304803
+# pid_file - must be given as a command line option on startup.
304803
+#
304803
+# print_version - program version and feature information is obtained
304803
+#	by using the automount command line option "-V".
304803
+#
304803
+# debug_options, log_options - autofs has somewhat more limited
304803
+#	logging and debug logging options. When the log_options
304803
+#	options is encountered it is converted to the nearest
304803
+#	matching autofs logging option. Since the configuration
304803
+#	option debug_options would be handled the same way it
304803
+#	is ignored.
304803
+#
304803
+# restart_mounts - has no sensible meaning within autofs because autofs
304803
+#	always tries to re-connect to existing mounts. While this
304803
+#	has its own set of problems not re-connecting to existing
304803
+#	mounts always results in a non-functional automount tree if
304803
+#	mounts were busy at the last shutdown (as is also the case
304803
+#	with amd when using mount_type autofs).
304803
+#
304803
+# forced_unmounts - detaching mounts often causes serious problems
304803
+#	for users of existing mounts. It is used by autofs in some
304803
+#	cases, either at the explicit request of the user (with a
304803
+#	command line or init option) and in some special cases during
304803
+#	program operation but is avoided whenever possible.
304803
+#
304803
+#
304803
+# A number of configuration options are not yet implemented:
304803
+#
304803
+# search_path - always a little frustrating, the compiled in
304803
+#	map location should be used to locate maps but isn't
304803
+#	in some cases. This requires work within autofs itself
304803
+#	and that will (obviously) include implementing this
304803
+#	configuration option for the amd map parser as well.
304803
+#
304803
+# fully_qualified_hosts - not yet implemented.
304803
+#
304803
+# unmount_on_exit - since autofs always tries to re-connect
304803
+#	to mounts left mounted from a previous shutdown this
304803
+#	is a sensible option to implement and that will be
304803
+#	done.
304803
+#
304803
+# browsable_dirs - not yet implemented.
304803
+#
304803
+# exec_map_timeout - a timeout is not currently used for
304803
+#	for program maps, might be implemented.
304803
+#
304803
+# tag - the tag option is not implemented within autofs.
304803
+#
304803
+#
304803
+# Supported options:
304803
+#
304803
+# arch, karch, os, osver - these options default to what is returned
304803
+#	from uname(2) and can be overridden if required.
304803
+#
304803
+# full_os - has no default and must be set in the configuration
304803
+#	if used in maps.
304803
+#
304803
+# cluster - if not set defaults to the host domain name. This option
304803
+#	corresponds to the HP_UX cluster name (according to the amd
304803
+#	source) and is probably not used in Linux but is set anyway.
304803
+#
304803
+# vendor - has a default value of "unknown", it must be set in the
304803
+#	configuration if used in maps.
304803
+#
304803
+# auto_dir - is the base name of the mount tree used for external
304803
+#	mounts that are sometimes needed by amd maps. Its default
304803
+#	value is "/a".
304803
+#
304803
+# map_type - specifies the autofs map source, such as file, nis,
304803
+#	ldap etc. and has no default value set.
304803
+#
304803
+# map_defaults - is used to override /defaults entries within maps
304803
+#	and can be used to provide different defaults on specific
304803
+#	machines without having to modify centrally managed maps.
304803
+#	It is empty by default.
304803
+#
304803
+# dismount_interval - is equivalent to the autofs timeout option. It
304803
+#	is only possible to use this with type "auto" mounts due
304803
+#	to the way the autofs kernel module performs expiry. It
304803
+#	takes its default value from the autofs internal default
304803
+#	of 600 seconds.
304803
+#
304803
+# autofs_use_lofs - if set to "yes" autofs will attempt to use bind
304803
+#	mounts for type "auto" when possible.
304803
+#
304803
+# nis_domain - allows setting of a domain name other than the system
304803
+#	default.
304803
+#
304803
+# local_domain - is used to override (or set) the host domain name.
304803
+#
304803
+# normalize_hostnames - if set to "yes" then the contents of ${rhost}
304803
+#	is translated in its official host name.
304803
+#
304803
+# domain_strip - if set to "yes" the domain name part of the host
304803
+# 	is strippped when normalizing hostnames. This can be useful
304803
+#	when using of the same maps in a multiple domain environment.
304803
+#
304803
+# normalize_slashes - is set to "yes" by default and will collapse
304803
+#	multiple unescaped occurrences of "/" to a single "/".
304803
+#
304803
+# selectors_in_defaults, selectors_on_default - has a default value
304803
+#	of "no". If set to "yes" then any defaults entry will be
304803
+#	checked for selectors to determine the values to be used.
304803
+#	selectors_in_defaults is the preferred option to use.
304803
+#
304803
+# ldap_base - has no default value. It must be set to the base dn
304803
+#	that is used for queries if ldap is to be used as a map
304803
+#	source.
304803
+#
304803
+# ldap_hostports - has no default value set. It must be set to
304803
+#	the URI of the LDAP server to be used for lookups when
304803
+#	ldap is used a map source. It may contain a comma or
304803
+#	space seperated list of LDAP URIs.
304803
+#
304803
+# hesiod_base - the base name used for hesiod map sources.
304803
+#
304803
+# Define global options for the amd parser within autofs.
304803
+#
304803
+[ amd ]
304803
+#
304803
+# Override the internal default with the same timeout that
304803
+# is used by the override in the autofs configuration, sanity
304803
+# only change.
304803
+#
304803
+dismount_interval = 300
304803
+#
304803
+# map_type = file
304803
+#
304803
+# Overriding this can cause autofs to use less resources because
304803
+# it will use symlinks instead of bind mounts in certain cases.
304803
+# You should ensure that the autofs kernel module your using
304803
+# supports expration of symlinks for best results (although this
304803
+# appears to work reasonably well most of the time without the
304803
+# update).
304803
+#
304803
+# autofs_use_lofs = no
304803
+#
304803
+# Several configuration options can be set per mount point.
304803
+# In particulr map_type, map_name, map_defaults, search_path,
304803
+# browsable_dirs, dismount_interval and selectors_in_defaults
304803
+# (not all of which are currently implemented, see above).
304803
+#
304803
+# Also, if a section for an amd mount point is defined here
304803
+# it isn't necessary to specify the format in the corresponding
304803
+# master map entry and the format will be inherited for type
304803
+# "auto" mounts.
304803
+#
304803
+# [ /expamle/mount ]
304803
+# dismount_interval = 60
304803
+# map_type = nis