Copyright (C) 2000-2012 |
GNU Info (am-utils.info)Key LookupHow keys are looked up ====================== The key is located in the map whose type was determined when the automount point was first created. In general the key is a pathname component. In some circumstances this may be modified by variable expansion (Note: Variable Expansion) and prefixing. If the automount point has a prefix, specified by the PREF option, then that is prepended to the search key before the map is searched. If the map cache is a `regexp' cache then the key is treated as an egrep-style regular expression, otherwise a normal string comparison is made. If the key cannot be found then a "wildcard" match is attempted. Amd repeatedly strips the basename from the key, appends `/*' and attempts a lookup. Finally, Amd attempts to locate the special key `*'. For example, the following sequence would be checked if `home/dylan/dk2' was being located: home/dylan/dk2 home/dylan/* home/* * At any point when a wildcard is found, Amd proceeds as if an exact match had been found and the value field is then used to resolve the mount request, otherwise an error code is propagated back to the kernel. (Note: Filesystem Types). automatically generated by info2www version 1.2.2.9 |