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

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