Lines Matching refs:amd

7 	* add ylwrap.amd, sick and tired of patching broken ylwrap.
250 Unfortunately amd initializes that value to zero, meaning
370 * amd/ops_udf.c: don't define functions/variables which may not be
373 * amd/ops_tmpfs.c (mount_tmpfs): force gcc not to complain about
463 * amd/sun_map.c (sun_append_str): When translating '&' from Sun
473 * amd/opts.c (expand_op): Don't call xstrlcpy() to truncate a
488 * amd/sun2amd.c: define rfc931_timeout and allow/deny_severity for
491 * amd/amq_svc.c: some versions of libwrap require the caller to
494 * amd/amfs_toplvl.c (amfs_toplvl_init): properly detect when
583 * scripts/amd.conf-sample, scripts/amd.conf.5, doc/am-utils.texi,
601 * amd/nfs_prot_svc.c (nfs_program_2): if
605 * amd/conf.c (gopt_nfs_allow_any_interface): implement the new
606 amd.conf parameter nfs_allow_any_interface.
608 * amd/amd.h (CFM_NFS_ANY_INTERFACE): define new global flag when
613 * amd/opts.c: Add support for optionally specifying the hostname
640 * amd/nfs_subr.c (fh_to_mp3): use long int printf format for
645 * amd/amfs_generic.c (amfs_lookup_mntfs): fix use-after-free bug
650 * doc/am-utils.texi, scripts/{amd.conf.5,amd.conf-sample}:
652 nfs_retry_interval_toplvl global amd.conf parameters.
654 * amd/conf.c (gopt_nfs_retransmit_counter_toplvl,
655 (gopt_nfs_retry_interval_toplvl): parse amd.conf
659 * amd/amfs_toplvl.c (amfs_toplvl_mount): support setting toplvl
663 * amd/amd.h: define a new timeo/retrans parameter for toplvl
672 * amd/am_ops.c (merge_opts): Remove useless check found by
679 * amd/info_ldap.c: as of Linux Fedora Core 5 (which comes with
692 (show_mti), amd/amq_subr.c (xdr_amq_setopt, xdr_amq_mount_subtree,
713 * amd/sched.c (sigchld): properly check for the end of the waiting
716 * amd/mapc.c (mapc_create): initialize 'modify' to zero (Coverity).
718 * amd/autil.c (amfs_mkcacheref, am_unmounted): avoid potential
721 * amd/amfs_generic.c (amfs_lookup_mntfs): free def_opts before
726 * amd/am_ops.c (merge_opts): no need to check if newstr is NULL
731 * amd/nfs_subr.c (mp_to_fh): fixed old-style filehandles--the pid
743 * amd/sum_map_tok.l: Fixed a bug in a regular expression that
785 * amd/amq_subr.c (amqproc_pawd_1_svc): repeatedly resolve path in
793 finished. Bug fix from Jonathan Chen <jon+amd-at-spock.org>.
802 * amd/ops_pcfs.c (mount_pcfs): process new pcfs options longname,
841 (main), amd/srvr_nfs.c (find_nfs_srvr), amd/autil.c
865 * amd/info_nis.c (nis_search): Bug fix for bugzilla #428; make
871 * amd/sun_map.c (sun_entry2amd): Fix a comment.
918 * amd/info_exec.c (exec_map_open): break assignment from inside
921 * amd/Makefile.am (amd_LDADD, sun2amd_LDADD): put libaminfo.a
925 * fsinfo/fsi_util.c (set_ether_if), amd/map.c (unmount_mp),
945 * amd/amq_svc.c (amq_program_1): dispatch point for
948 * amd/amq_subr.c (amqproc_pawd_1_svc): moved pawd's path-matching
957 * amd/amd.h: extern for amqproc_pawd_1_svc, amd's service routine
965 * amd/amfs_toplvl.c (amfs_toplvl_mount): break complex ifdef macro
991 conf/autofs/autofs_solaris_v1.c (autofs_mount_1_req), amd/opts.c,
992 amd/nfs_subr.c (nfsproc_lookup_2_svc), amd/nfs_start.c
993 (mount_automounter), amd/get_args.c (get_args), amd/amfs_toplvl.c,
994 amd/amfs_auto.c (amfs_auto_mount), amd/amd.h, amd/amd.c (main):
1009 * amd/amfs_toplvl.c (amfs_toplvl_mount), amd/amfs_auto.c
1013 * amd/amd.h (SIZEOF_OPTS): moved #define to common header.
1017 * amd/opts.c (expand_op): Need to check BUFSPACE for env for
1020 * amd/amfs_toplvl.c (amfs_toplvl_mount) [HAVE_FS_AUTOFS]: Pass new
1031 strings. Suggestion from jon+amd-at-spock.org.
1033 * amd/opts.c (expand_op): should check BUFSPACE for vlen+1, not
1046 * amd/amd.h, include/am_utils.h, amd/amd.c: moved 'hostd' extern
1047 from am_utils.h to amd.h, and define its size as a macro that
1052 * mk-amd-map/Makefile.am (LDADD): link with libamu to get
1055 * amd/amd.h, amd/amd.c, include/am_utils.h: moved pid_fsname
1056 extern from am_utils.h to amd.h, and define its size as a macro
1117 <jon+amd@spock.org>.
1157 scripts/amd.conf.5, scripts/amd.conf-sample: document attribute
1178 (open_locked_mtab), amd/nfs_start.c (do_select, run_rpc),
1179 amd/autil.c (host_normalize): remove defunct clock_valid.
1181 * amd/nfs_subr.c (nfsproc_getattr_2_svc): Print microseconds for
1186 * amd/mapc.c (mapc_reload_map): change prototype from returning
1193 * amd/map.c (new_ttl): update am_ttl and na_atime in one shot.
1203 * amd/autil.c (forcibly_timeout_mp): MAJOR BUG FIX: force mtime
1213 * amd/amfs_generic.c (amfs_bgmount): now that clocktime() doesn't
1219 amd/srvr_nfs.c (nfs_keepalive_callback, nfs_keepalive_timeout)
1220 (find_nfs_srvr), amd/rpc_fwd.c (fwd_alloc), amd/nfs_subr.c
1221 (nfsproc_getattr_2_svc), amd/nfs_start.c (do_select, run_rpc),
1222 amd/mapc.c (root_init), amd/map.c(map_flush_srvr, timeout_mp),
1223 amd/info_ndbm.c (ndbm_init), amd/info_ldap.c (amu_ldap_rebind),
1224 amd/info_file.c (file_open), amd/info_exec.c (fgets_timed,
1225 exec_search), amd/clock.c (timeout, softclock), amd/autil.c
1226 (forcibly_timeout_mp), amd/amfs_generic.c (amfs_retry,
1227 amfs_bgmount, amfs_generic_mount_child), amd/amd.c (main): pass
1232 * amd/nfs_subr.c (nfsproc_getattr_2_svc): initialize 'retry', just
1237 * amd/info_exec.c (exec_parse_qanswer), amd/info_file.c
1238 (file_search_or_reload), amd/info_hesiod.c (hesiod_search),
1239 amd/info_ldap.c (amu_ldap_search), amd/info_ndbm.c (search_ndbm),
1240 amd/info_nis.c (nis_search), amd/info_nisplus.c (nisplus_search,
1242 if we're not using an amd.conf file.
1252 * mk-amd-map/mk-amd-map.c (read_file_file), libamu/util.c
1253 (strsplit), libamu/hasmntopt.c (nextmntopt), amd/sun_map.c
1254 (sun_entry2amd), amd/sun2amd.c (sun2amd_convert_convert),
1255 amd/mapc.c (mapc_add_kv), amd/info_file.c (file_search_or_reload),
1256 amd/info_exec.c (exec_parse_qanswer): cast isspace() and isascii()
1259 * amd/sun_map.c (sun_entry2amd): isspace takes an int, not a char.
1298 * amd/sun_map.c (sun_entry2amd) : Wipe out any trailing white
1301 * amd/amd.h : oops, reverting bad changes
1303 * amd/info_file.c : oops, reverting bad changes
1305 * amd/mapc.c : oops, reverting bad changes
1307 * amd/sun_map_parse.y : oops, reverting bad changes
1322 * amd/nfs_start.c (mount_automounter): when registering Amd with
1336 amd.conf; afterward, prevent it (i.e., one tries it via "amq -D").
1342 * amd/Makefile.am (DISTCLEANFILES): also remove ops_autofs.c on
1347 * amd/info_file.c (file_search_or_reload): Changed the key
1350 * amd/mapc.c (mapc_add_kv): Add support for multiple entries
1358 * amd/sun2amd.c (sun2amd_convert): Add print statement that
1373 * amd/sun_map.h: Add a fstype member to the sun_mountpt struct.
1375 * amd/sun_map_parse.y: Parser now supports fstype for multi-mount
1378 * amd/sun_map_tok.l: No longer print the line and column number
1391 * amd/sun_map.c: Clean up #defines
1395 * amd/sun_map.h: Add some "not implemented yet" comments to the
1398 * amd/sun_map_parse.y: Removed automap include functionality, it
1404 * amd/sun2amd.c (sun2amd_convert): If the input line is too long
1408 * amd/sun_map.c: Add a new Amd device, and cdfs constant.
1419 * amd/sun_map_parse.y (sun_map_parse_read): Reset the entry list
1424 * amd/get_args.c (get_args): initialize debug_flags if they've
1429 * amd/mapc.c (mapc_create): mapc find takes 4th arg, the mount
1437 * amd/amfs_generic.c (amfs_parse_defaults): remove ugly hack to
1440 * amd/autil.c (amfs_mkcacheref): pass mount point as 4th arg to
1443 * amd/amfs_root.c (amfs_root_mount): pass NULL as new 4th arg to
1446 * amd/amd.h: extern for mapc_find changed to pass the mount point.
1461 * scripts/amd.conf-sample (debug_options): mention new "defaults"
1464 * scripts/amd.conf.5,doc/am-utils.texi: document new debug option
1477 * amd/nfs_start.c (mount_automounter): proper use of D_AMQ.
1479 * amd/amd.h (DEBUG_MNTTAB_FILE): change default to /tmp/mtab,
1482 * amd/amd.c (main): properly use D_DAEMON.
1489 * scripts/amd.conf.5, doc/am-utils.texi, amd/amd.8: document new
1511 * doc/am-utils.texi, amq/amq.8, scripts/amd.conf.5, amd/amd.8:
1521 * amd/mapc.c (mapc_create): 'alloc' flags variable should be
1524 * amd/get_args.c (get_args): no need for hack using
1527 * amd/Makefile.am: separate sources common to amd and sun2amd into
1548 * amd/info_file.c: add key to sun_entry2amd()'s parameters
1550 * amd/info_hesiod.c: add key to sun_entry2amd()'s parameters
1552 * amd/info_ldap.c: add key to sun_entry2amd()'s parameters
1554 * amd/info_ndbm.c: add key to sun_entry2amd()'s parameters
1556 * amd/info_nis.c: add key to sun_entry2amd()'s parameters
1558 * amd/info_nisplus.c: add key to sun_entry2amd()'s parameters
1560 * amd/sun_map.c: New functions to support sun translation to amd.
1564 * amd/sun_map.h: Expand sun_entry2amd's parameters to include key
1567 * amd/sun_map_parse.y: Change how file system types are parsed out
1573 * amd/amd.h: Added an extern from info_file.c called
1577 * amd/info_file.c: Changed the static function read_line() to a
1581 * amd/sun2amd.8: Filled in the contents of this man page. This is
1584 * amd/sun2amd.c: Implemented a working version of this utility.
1588 * amd/sun_map_parse.y: instead of using a custom FOO_alloc()
1591 * amd/sun_map.h: remove extern definitions to functions no longer
1594 * amd/sun_map.c: removed superfluous *_alloc() functions, some of
1601 * amd/Makefile.am: f/lex libraries are incompatible with multiple
1606 * amd/sun_map_tok.l: Clean up regular expression so HPUX stops
1611 * amd/sun_map_parse.y: Moved license below special yacc bracket to
1614 * amd/sun_map_tok.l: Moved license below special lex bracket to be
1622 * amd/sun_map_tok.l: Applied some definition goop to handle the
1631 * amd/sun_map_tok.l: allocate more output slots so lex scanners
1634 * amd/sun_map_parse.y: declare extern for sun_map_parse().
1641 * libamu/util.c, amd/autil.c (strsplit): moved strsplit() function
1644 * amd/Makefile.am (sbin_PROGRAMS): build sun2amd binary and man
1648 * amd/sun2amd.8: placeholder for man page.
1650 * amd/sun2amd.c: placeholder for C version of translator from Sun
1662 * amd/mapc.c (maptypes): add placeholder for Sun-syntax map
1665 * amd/Makefile.am (EXTRA_amd_SOURCES): compile info_sun.c
1667 * amd/info_sun.c: placeholder for meta info parser to get info
1677 * amd/sun_map.[hc]: cleanup and formatting.
1679 * amd/sun_map_parse.y: to match the literal string "fstype=" use
1682 * amd/get_args.c (get_args): call conf_parse() using conf_in.
1684 * amd/amd.h: use renamed parser symbols (yyparse -> conf_parse;
1695 * amd/Makefile.am (BUILT_SOURCES): define which yacc/lex .h/.c
1702 * amd/sun_map_{parse.y,tok.l}: cleanup and formatting.
1706 * amd/Makefile.am: Added new files sun_map.h, sun_map.c,
1711 * amd/amd.h: Added "#define INFO_MAX_LINE_LEN" that specifies the
1714 * amd/info_exec.c: Replaced MAX_LINE_LEN with INFO_MAX_LINE_LEN
1716 * amd/info_file.c: Replaced MAX_LINE_LEN with INFO_MAX_LINE_LEN,
1723 * amd/sun_map.h: new header file for Sun style map support
1725 * amd/sun_map.c: new source file for Sun style map support, clean
1728 * amd/sun_map_parse.y: new yacc file for parsing Sun style maps,
1731 * amd/sun_map_tok.l: new lex file for parsing Sun style maps, fix
1734 * amd/get_args.c: replace usage of strlcat with xstrlcat
1743 * amd/info_file.c (file_search, file_reload): pass mnt_map to
1747 * amd/info_nis.c (nis_search): call sun_entry2amd() if
1750 * amd/info_ldap.c (amu_ldap_search): call sun_entry2amd() if
1753 * amd/info_hesiod.c (hesiod_search): call sun_entry2amd() if
1756 * amd/info_ndbm.c (ndbm_search): pass mnt_map to search_ndbm.
1759 * amd/info_nisplus.c (nisplus_search): call sun_entry2amd() if
1762 * amd/info_exec.c (exec_search): pass mnt_map to
1769 * scripts/amd.conf.5: selectors_in_defaults is a common parameter,
1773 * scripts/amd.conf-sample: properly list all of the parameters
1780 * scripts/amd.conf-sample (sun_map_syntax): example of new flag.
1782 * amd/conf.c ({ropt,gopt}_sun_map_syntax): new function to parse
1785 * amd/amd.h (CFM_SUN_MAP_SYNTAX): new flag for users to say if the
1809 * amd/mntfs.c (free_mntfs): don't discard the last reference to an
1814 * amd/autil.c (mf_mounted), amd/restart.c (restart_fake_mntfs):
1836 * amd/amd.c (main): use new setup_sighandler() for Amd's four main
1851 * amd/restart.c (restart_automounter_nodes): cleanup function.
1860 * amd/srvr_nfs.c (find_nfs_srvr): don't blindly copy the hostent
1869 * amd/ops_nfs.c (nfs_umount), amd/sched.c (sched_task),
1870 amd/nfs_subr.c (nfs_quick_reply): code clarity.
1881 * amd/amd.h (FSF_FORCE_UNMOUNT): new flag used to indicate that a
1885 * amd/ops_nfs.c (nfs_umount): a simple unmount returned EBUSY, and
1886 the user specified forced_unmounts=yes in amd.conf, and this
1891 * amd/srvr_nfs.c (find_nfs_srvr): move away IP-address change
1907 * amd/get_args.c (get_args): pass "truncate_log" flag as per
1908 amd.conf global settings.
1910 * amd/conf.c (gopt_truncate_log): store global value of
1913 * amd/amq_subr.c (amqproc_setopt_1_svc), hlfsd/hlfsd.c (main,
1916 * amd/amd.h (CFM_TRUNCATE_LOG): new flag. Fix comment typo.
1919 scripts/amd.conf.5, scripts/amd.conf-sample (log_file): document
1920 new truncate_log amd.conf parameter.
1922 * amd/conf.c (gopt_forced_unmounts): check Linux kernel version
1946 * amd/amfs_toplvl.c (amfs_toplvl_init): new function, called
1956 * amd/amfs_toplvl.c (amfs_toplvl_umount): don't unconditionally
1995 * amd/autil.c (amfs_mount), amd/amfs_toplvl.c
1999 * scripts/amd.conf.5: document new force_unmount global parameter.
2004 * amd/conf.c (gopt_forced_unmounts): process forced_unmounts
2009 * scripts/amd.conf-sample (forced_unmounts): example usage of new
2012 * amd/amd.h (CFM_FORCED_UNMOUNTS): new flag for forced_unmounts
2023 * amd/amfs_toplvl.c (amfs_toplvl_umount): pass _FORCE and _DETACH
2031 * amd/autil.c (amfs_mount): if mount(2) failed with ESTALE or EIO,
2038 * amd/amfs_generic.c (amfs_generic_umount), amd/amfs_host.c
2039 (amfs_host_umount), amd/ops_cachefs.c (cachefs_umount),
2040 amd/ops_cdfs.c (cdfs_umount), amd/ops_efs.c (efs_umount),
2041 amd/ops_lofs.c (lofs_umount), amd/ops_nfs.c (nfs_umount),
2042 amd/ops_pcfs.c (pcfs_umount), amd/ops_ufs.c (ufs_umount),
2043 amd/ops_xfs.c (xfs_umount), conf/umount/umount_bsd44.c
2060 * amd/srvr_nfs.c (find_nfs_srvr): flush NFS handle cache if the IP
2063 * amd/info_union.c (union_reload): use safer xsnprintf() routine.
2065 * amd/srvr_nfs.c (find_nfs_srvr): check to see if the IP address
2086 * amd/get_args.c (get_version_string): use safer strlcat (or
2125 * amd/map.c (get_next_exported_ap): Avoid running off the end of
2126 the exported_ap[] array. Patch from jon+amd-at-spock.org. Fixed
2203 * amd/mapc.c (maptypes): move MAP_EXEC after MAP_FILE, because
2204 exec maps will always match when users use amd with command line
2205 args (not amd.conf). Using that legacy way, unfortunately, means
2207 doesn't work for everyone. It's much better to use amd.conf and
2222 * scripts/amd.conf-sample (map_type): typo, said mount_type
2233 * amd/ops_nfs.c (mount_nfs_fh): set timeo/retrans mount options
2234 only if the user specified them in amd.conf or elsewhere. If they
2238 * amd/get_args.c (get_args): negative timeo/retrans are "good" in
2243 * amd/amd.h: define AMU_TYPE_NONE so we know when users didn't
2287 * amd/amq_svc.c (amqsvc_is_client_allowed): rewrite function to
2342 * amd/ops_nfs.c (prime_nfs_fhandle_cache): never, ever, use C++
2345 * amd/info_ldap.c (amu_ldap_init, get_ldap_timestamp): force cast
2349 * amd/get_args.c: rename symbol conf_file to amu_conf_file to
2396 * amd/nfs_subr.c: use NFS_FHSIZE, not FHSIZE.
2404 * amd/info_ldap.c (amu_ldap_init): change plog to dlog, to avoid
2409 * amd/nfs_subr.c: check for NULL pointer before dereferencing it.
2420 * amd/nfs_subr.c: use [1] for out-of-band pointer at the end of
2426 * amd/amfs_generic.c (amfs_lookup_mntfs): reset currently used
2439 * amd/amd.c (main) : fixed memory leak detected by valgrind
2441 * amd/info_ldap.c (amu_ldap_init) : fixed memory leak detected by
2469 * amd/amfs_generic.c (amfs_lookup_mntfs): removed redundant use of
2474 * amd/amfs_generic.c (amfs_lookup_mntfs) : Make sure when a map
2486 * doc/am-utils.texi (amd): document proper use of
2497 * amd/amfs_host.c (amfs_host_umount): We do not want to pass
2506 * amd/nfs_subr.c: am_fh definition moved here from amd.h;
2511 * amd/amd.h: moved am_fh definition to nfs_subr.c (which is the
2533 * scripts/amd.conf.5, doc/am-utils.texi (normalize_slashes
2534 Parameter), scripts/amd.conf-sample: document new
2537 * amd/opts.c (deslashify, normalize_slash): don't touch trailing
2539 normalize_slashes=no in amd.conf.
2541 * amd/conf.c (gopt_normalize_slashes): new function to record if
2544 * amd/amd.h (CFM_NORMALIZE_SLASHES): new flag to decide if to
2547 * amd/autil.c (am_mounted): pass TRUE when calling mf_mounted.
2552 * amd/autil.c (mf_mounted): Be careful when calling free_ops and
2554 function, even though it would be called by the lower-level amd
2564 * amd/amd.h: pass flag to mf_mounted, to free or not to free the
2567 * amd/amfs_nfsx.c (amfs_nfsx_cont): call mf_mounted with FALSE to
2579 * amd/amfs_toplvl.c (amfs_toplvl_mount): do NOT set retrans/timeo
2587 * amd/nfs_subr.c (mp_to_fh): Replace xstrlcpy with memcpy because the
2590 * amd/nfs_subr.c (fh_to_mp3): Replace xstrlcpy with memcpy because the
2593 * amd/opts.c (free_op): No longer need to assign pointer to NULL
2596 * amd/opts.c (expand_op): Revert back to using strncpy() instead
2624 amd/opts.c (expand_op),
2625 amd/ops_nfs.c (mount_nfs_fh),
2626 amd/nfs_subr.c (fh_to_mp3, mp_to_fh),
2627 amd/amfs_host.c (amfs_host_mount),
2628 amd/am_ops.c (merge_opts):
2671 * amd/nfs_subr.c (fh_to_mp3): strncpy may not null terminate if
2676 * amd/nfs_subr.c (fh_to_mp3): Increased the n of strncpy()
2681 * amd/nfs_subr.c (fh_to_mp3): Fix memset bug. In this case
2697 * amd/readdir.c (amfs_readdir_browsable): use %p, not %lx.
2713 * amd/mapc.c (mapc_showtypes): if last map type to print, don't
2728 * amd/map.c (exported_ap_free): We're using a free-list data
2763 * amd/ops_nfs.c (prime_nfs_fhandle_cache): rearrange code so it's
2780 * amd/get_args.c (get_version_string): print again full_os, os,
2785 * amd/mapc.c (mapc_showtypes): wrap around list of supported map.
2789 * amd/map.c (umount_exported): when unmounting file systems on
2790 exit (when amd.conf global unmount_on_exit=yes), use unmount_mp()
2794 if the unmount hangs, amd hangs, and (2) for type:=program, the
2795 unmount script is execve'd(!) thus replacing the main amd process,
2796 which never gets to finish up, leaving the amd mount points hung.
2802 * scripts/amd.conf.5: document executable maps and
2805 * scripts/amd.conf-sample: examples of an executable map and
2813 * amd/conf.c (gopt_exec_map_timeout): function to parse
2816 * amd/amd.h (AMFS_EXEC_MAP_TIMEOUT): define default executable map
2820 * amd/amd.c (init_global_options): initialize default executable
2823 * amd/Makefile.am (EXTRA_amd_SOURCES): include info_exec.c in
2828 * amd/mapc.c: define executable map functions and behavior.
2830 * amd/info_exec.c: executable map implementation from Erik Kline
2835 * amd/info_file.c (file_init_or_mtime): consolidate identical
2843 * amd/amfs_program.c (amfs_program_match): if neither unmount nor
2855 * amd/ops_cachefs.c (cachefs_init): save unmount program string in
2861 * amd/get_args.c (get_version_string): hack to still show that we
2862 support the inherit file system in output of amd -v.
2866 * amd/amfs_inherit.c: removed, dead code
2868 * amd/Makefile.am,
2869 amd/am_ops.c,
2870 amd/amd.h,
2878 * amd/autil.c (am_mounted): completely rewrite the unmount
2893 * scripts/amd.conf.5, doc/am-utils.texi (cache_duration
2901 * amd/amd.h (AM_TTL, AM_TTL_W): better comments, minor cleanup.
2907 * scripts/amd.conf.5: document new debug_mtab_file option.
2909 * scripts/amd.conf-sample (debug_mtab_file): show example.
2918 * amd/conf.c (gopt_debug_mtab_file): new function to parse
2921 * amd/amd.h: placeholder for debug_mtab_file string.
2934 * amd/srvr_nfs.c (start_nfs_pings): move code from elsewhere
2940 * amd/srvr_amfs_auto.c (amfs_generic_find_srvr): when creating a
2944 * amd/amd.h (FSF_PING_UNINIT): new flag to tell whether the NFS
2947 * scripts/ctl-amd.in (stop): no need to check if
2948 /var/lock/subsys/amd file exists if you do an rm -f afterward.
2957 * amd/nfs_prot_svc.c (nfs_program_2): on TLI system, try to call
2979 * amd/srvr_nfs.c (update_nfs_pingval): new function to update NFS
2986 * amd/amd.c (parent_exit): This signal handler is called during
3005 * scripts/wait4amd2die.in: change default to recognize that amd is
3013 * scripts/ctl-{amd,hlfsd}.in: before running any real program in
3015 existing NFS mounts. This was causing ctl-amd's forked
3016 grand-child amd process to hang if restartable_mounts=no. Go
3040 * scripts/amd.conf.5, doc/am-utils.texi (preferred_amq_port):
3043 * scripts/amd.conf-sample (preferred_amq_port): example.
3058 * amd/nfs_start.c (mount_automounter): pass global
3061 * amd/conf.c (gopt_preferred_amq_port): new function to parse
3062 amd.conf value for preferred_amq_port.
3064 * amd/amd.h: placeholder for preferred_amq_port.
3090 * amd/opts.c (f_xhost): if we don't have hstrerror, just print the
3098 * amd/nfs_subr.c (mp_to_fh): pathlen should be u_int because it is
3106 * doc/am-utils.texi, scripts/amd.conf.5, scripts/amd.conf-sample,
3107 NEWS: document four new amd.conf options: nfs_retry_interval_udp,
3111 * amd/ops_nfs.c (mount_nfs_fh): set timeo/retrans values based on
3114 * amd/amfs_toplvl.c (amfs_toplvl_mount): set retrans/timeo values
3117 * amd/get_args.c (get_args): use parameters to -t option to set
3120 * amd/conf.c: (gopt_nfs_retransmit_counter_udp,
3127 * amd/amd.c (init_global_options): initialize default values of
3130 * amd/amd.h (AMU_TYPE_{TCP,UDP,MAX}): define separate retrans and
3138 * amd/get_args.c (get_args): move call to switch_to_logfile()
3150 * amd/info_union.c (union_reload): rewrite code to avoid negative
3153 * amd/opts.c (split_opts, expand_op): rewrite code to avoid
3171 * amd/opts.c (f_xhost): new function for use when matching the
3182 * amd/map.c (mount_auto_node): force the fileid of the
3195 * amd/restart.c (restart_automounter_nodes): new function, takes
3200 * amd/nfs_subr.c (fh_to_mp3, mp_to_fh): new filehandle
3205 * amd/nfs_start.c (mount_automounter): reorder things so that
3210 * amd/mntfs.c (locate_mntfs): remove dead code; add special
3213 * amd/mapc.c (root_keyiter): fix up a comment.
3215 * amd/map.c (path_to_exported_ap): new function, searches for and
3223 * libamu/util.c (rmdirs): prevent amd from logging 'Read-only
3258 * amd/get_args.c (show_usage): separate function to print usage
3262 * amd/get_args.c (get_version_string): print also domain, host,
3284 * amd/amfs_toplvl.c (set_auto_attrcache_timeout): just to be safe,
3285 add "noac" if amd.conf option auto_attrcache was set to 0. This
3297 * scripts/amd.conf-sample: show examples of new global options
3300 * scripts/amd.conf.5: document new global options domain_strip and
3308 * amd/conf.c (gopt_auto_attrcache): parse new global amd.conf
3310 (gopt_domain_strip): parse new global amd.conf option
3314 * amd/autil.c (host_normalize): don't call domain_strip()
3315 unconditionally, but depend on the new global amd.conf flag
3318 * amd/amfs_toplvl.c (set_auto_attrcache_timeout): new function to
3325 * amd/amd.h (CFM_DOMAIN_STRIP, CFM_DEFAULT_FLAGS): flag to decide
3330 * amd/amd.c (init_global_options): add flag to record automount
3333 * amd/amd.c (do_memory_locking): new function to encapsulate all
3336 (main): call do_memory_locking() to pin process memory if amd.conf
3340 <jon+amd@spock.org>.
3370 * amd/opts.c (expand_op): use #define for expand_error string
3401 * scripts/amd.conf.5: Small fixes to typos in man page, from
3423 * amd/opts.c (normalize_slash): support escaped slashes, needed
3428 * amd/amfs_program.c (amfs_program_match): bug fix. Complain if
3467 * amd/ops_pcfs.c (mount_pcfs): set pcfs_args_t.dirmask field to
3477 * amd/info_ldap.c (amu_ldap_rebind): don't use ldap_enable_cache()
3518 * amd/srvr_nfs.c (find_nfs_srvr): change proto_nfs_version to
3521 * amd/amd.h: change prototype of vreaddir and amfs_error_readdir
3524 * amd/ops_TEMPLATE.c (foofs_readdir), amd/amfs_error.c
3527 * amd/amd.h: change proto of amfs_generic_readdir() to use u_int
3530 * amd/readdir.c (make_entry_chain): preflen should be u_int.
3534 * amd/amd.h: amu_global_options's portmap_program field should be
3538 * amd/conf.c (gopt_portmap_program): use atol() instead of atoi()
3561 * amd/amfs_generic.c (amfs_lookup_one_mntfs): fix the creation of
3573 * amd/map.c (umount_exported): make sure we don't try to free the
3577 * amd/get_args.c (get_version_string): a static pointer is pretty
3580 * amd/conf.c (gopt_debug_options): remove unnecessary strdup();
3584 * amd/autil.c (mf_mounted): free mntfs->mf_fo instead of leaking
3587 * amd/amfs_generic.c (amfs_lookup_one_mntfs): use the CALLOC macro
3590 * amd/amd.c (daemon_mode): zero out struct sigaction before using
3596 * amd/amfs_generic.c (amfs_lookup_one_mntfs): force FS_MKMNT on
3601 * amd/map.c (free_map_if_success): avoid dereferencing a pointer
3630 localhost_address amd.conf parameter, if defined (else default to
3633 wrong) since plog("My IP address is...") in amd.c was printing
3639 localhost_address amd.conf parameter, if defined (else default to
3642 * amd/conf.c (gopt_localhost_address): new function to parse
3643 amd.conf parameter localhost_address.
3645 * amd/amd.h: global field to store amd.conf localhost_address
3648 * amd/amd.c (main): call amu_get_myaddress with global option,
3649 which could have been set in amd.conf.
3651 * NEWS, doc/am-utils.texi, scripts/amd.conf-sample,
3652 scripts/amd.conf.5: document new option localhost_address.
3656 * amd/conf.c (gopt_nfs_allow_insecure_port): support function for
3657 the new "nfs_allow_insecure_port" amd.conf directive
3659 * amd/nfs_prot_svc.c (nfs_program_2): complain about the insecure
3661 option is not set in amd.conf
3664 amd.conf directive "nfs_allow_insecure_port"
3666 * scripts/amd.conf.5 (nfs_allow_insecure_port): ditto
3668 * scripts/amd.conf-sample (nfs_allow_insecure_port): added the
3673 * doc/am-utils.texi: amd-workers is defunct.
3751 * amd/amfs_host.c, amd/ops_nfs.c, amd/srvr_nfs.c,
3768 * amd/amd.h: removed declaration for xdr_mountres3
3811 * amd/ops_nfs.c (nfs_init): declare as static to match forward
3820 libamu/mount_fs.c (compute_nfs_args), amd/ops_nfs.c
3822 webnfs_lookup), amd/amfs_host.c (fetch_fhandle): Attempt to
3873 * amd/ops_nfs.c (prime_nfs_fhandle_cache): add {} to disambiguate
3878 * amd/get_args.c (get_version_string): change "Built by" to
3885 * amd/mntfs.c (locate_mntfs): fix restarted filesystems: mf_fo
3889 * amd/amfs_generic.c (amfs_bgmount): The fix for the mf_fo NULL
3900 * amd/mntfs.c (locate_mntfs): disable amfs_inherit and simply
3905 * amd/autil.c (mf_mounted): remove the MFF_RESTART flag once the
3908 * amd/amfs_nfsx.c (amfs_nfsx_init): only call fs_init() if the
3913 * amd/amfs_generic.c (amfs_bgmount): only call fs_init() if the
3928 * amd/amd.h (FSF_WEBNFS): New mntfs flag.
3931 * amd/amfs_host.c (amfs_host_mount, amfs_host_umounted): Reject
3933 * amd/ops_nfs.c (got_nfs_fh_mount): Renamed from got_nfs_fh.
3941 * amd/rpc_fwd.c (fwd_packet, fwd_reply): Send/receive WebNFS
3943 * amd/srvr_nfs.c (recompute_portmap): Don't contact portmap for
3992 * amd/amfs_generic.c (amfs_bgmount): don't use mf_fo until after
3996 * amd/amd.h: fixed a copy&paste comment bug
3998 * amd/am_ops.c (ops_match): minor code cleanup
4014 * amd/nfs_start.c (run_rpc): Use it.
4020 * amd/rpc_fwd.c (fwd_packet, fwd_reply): Always log xid.
4029 * amd/amfs_host.c (fetch_fhandle): Use local variables to store
4031 * amd/autil.c (amfs_mount): Use new am_nfs_fhandle_t.
4032 * amd/ops_nfs.c (struct fh_cache): New member fh_status.
4042 * amd/clock.c (CID_ALLOC): Remove unused argument.
4045 * amd/ops_nfs.c (FHID_ALLOC): Remove unused argument.
4049 * amd/rpc_fwd.c (XID_ALLOC): Remove unused argument.
4069 * amd/amfs_nfsx.c (amfs_nfsx_match): more restrictive sanity check
4080 * amd/amfs_generic.c (amfs_cont): one more dlog
4088 * amd/Makefile.am ($(amd_OBJECTS) $(EXTRA_amd_OBJECTS)): depend on
4096 * amd/srvr_nfs.c (find_nfs_srvr): don't run code that expects
4103 * amd/amq_svc.c: Move alloca support ...
4105 * amd/conf_parse.y: Remove alloca support.
4123 * amd/amq_svc.c: Provide alloca prerequisites.
4138 * amd/amfs_nfsl.c (amfs_nfsl_match): checking opt_fs is not always
4144 * amd/amfs_link.c (amfs_link_match): more up-to-date explanation
4148 * amd/amfs_generic.c (amfs_lookup_one_mntfs): the sublink is
4151 * amd/am_ops.c (ops_match): normalize the sublink here, early into
4154 * amd/autil.c (am_mounted): be consistent and accept both
4158 * amd/Makefile.am (build_version.h): fixed dependencies (depends
4163 * amd/amq_subr.c (amqproc_export_1_svc): force double casting to
4178 * amd/srvr_nfs.c (find_nfs_srvr): set MFF_WEBNFS if the "webnfs"
4181 * amd/ops_nfs.c (prime_nfs_fhandle_cache): generate a public
4185 * amd/amd.h (MFF_WEBNFS): new flag, obvious meaning
4189 * amd/srvr_nfs.c: renamed np_xid to global_xid; sanitized the
4197 * amd/amd.h: renamed nfs_srvr_port() to get_mountd_port()
4199 * amd/amfs_host.c (amfs_host_init): ditto
4201 * amd/ops_nfs.c (call_mountd): ditto
4210 * amd/autil.c (strealloc): don't call malloc_verify() unless it
4250 * amd/amfs_generic.c (amfs_lookup_one_mntfs): moved the setting of
4254 * amd/mntfs.c (init_mntfs): ditto
4258 * amd/ops_nfs.c (got_nfs_fh): make the error EACCES if we are
4287 * amd/amfs_generic.c (amfs_lookup_one_mntfs): don't modify the
4296 * amd/ops_nfs.c (prime_nfs_fhandle_cache): use get_mntfs_wchan to
4301 * amd/map.c (free_map_if_success): use get_mntfs_wchan for the
4304 * amd/amfs_nfsx.c (amfs_nfsx_cont): use get_mntfs_wchan for the
4307 * amd/amfs_host.c (amfs_host_init): use get_mntfs_wchan for the
4310 * amd/amfs_generic.c (ALL): use get_mntfs_wchan for the wchan_t
4315 * amd/sched.c (get_mntfs_wchan): new function which calls the
4319 * amd/amfs_inherit.c (amfs_inherit_get_wchan): new function,
4322 * amd/amfs_*.c, amd/ops_*.c: initialize the new get_wchan member
4325 * amd/amd.h: new function type vget_wchan
4355 * amd/map.c (unmount_mp, unmount_exported): move the code that
4363 * amd/info_ldap.c (amu_ldap_init): don't try to pass a null
4369 * amd/amd.h: introduced two new types, wchan_t and opaque_t, as
4393 * amd/map.c (get_first_exported_ap, get_next_exported_ap): new
4397 * amd/amfs_union.c (amfs_union_mounted): use get_first_exported_ap
4428 * amd/amfs_generic.c (amfs_lookup_mntfs): remove the shortcut for
4435 * amd/map.c (mount_node): always call autofs_mount_fs(), but only
4459 amd), but we forgot to move it out of mount_headers1.h (used to
4497 * amd/amq_svc.c: if libwrap does not include the severity
4500 * amd/Makefile.am (LIBS): explicitly include @WRAPLIB@ only for
4575 * amd/map.c (mount_node): autofs_mount_fs() now calls
4580 * amd/autil.c (am_mounted): minor cleanup
4582 * amd/amfs_program.c (amfs_program_ops): added FS_MKMNT to
4585 * amd/amfs_generic.c (amfs_lookup_one_mntfs): use the FS_ON_AUTOFS
4589 * amd/amd.h (FS_ON_AUTOFS): new flag which tells the code that
4594 * amd/amfs_nfsl.c (amfs_nfsl_umount): fix copy&paste error (was
4633 * NEWS, doc/am-utils.texi, scripts/amd.conf.5: revised explanation
4638 * amd/ops_efs.c (efs_mount): Replace on_autofs arg with
4655 * scripts/amd.conf.5: document new option autofs_use_lofs
4657 * scripts/amd.conf-sample (autofs_use_lofs): document new option
4716 * amd/opts.c: made fs_static static
4718 * amd/ops_nfs.c: made nfs_init, nfs_match, nfs_mount, nfs_umount
4722 * amd/ops_cachefs.c (cachefs_ops): use amfs_generic_find_srvr for
4725 * amd/ops_cdfs.c (cdfs_ops): ditto
4727 * amd/ops_efs.c (efs_ops): ditto
4729 * amd/ops_lofs.c (lofs_ops): ditto
4731 * amd/ops_pcfs.c (pcfs_ops): ditto
4733 * amd/ops_ufs.c (ufs_ops): ditto
4735 * amd/ops_xfs.c (xfs_ops): ditto
4737 * amd/nfs_subr.c (fh_to_mp3, fh_to_mp, mp_to_fh): moved here from
4740 * amd/nfs_start.c: use get_exported_ap() instead of referencing
4743 * amd/mntfs.c (locate_mntfs): new function, factored out of
4749 * amd/map.c (get_exported_ap): new function that returns an
4762 * amd/conf.c: new global option "autofs_use_lofs", takes yes/no
4765 * amd/autil.c (amfs_mount): take an extra argument (mf)
4771 * amd/amfs_union.c (amfs_union_mounted): use get_exported_ap()
4774 * amd/amq_subr.c (amqproc_export_1_svc): ditto
4776 * amd/amfs_toplvl.c (amfs_toplvl_ops): removed FS_AUTOFS from
4782 * amd/amfs_nfsx.c (amfs_nfsx_init): propagate the MFF_ON_AUTOFS
4785 * amd/amfs_nfsl.c: call nfs and link member functions through
4788 * amd/amfs_linkx.c (amfs_linkx_umount): new static stub
4790 * amd/amfs_link.c: made amfs_link_mount() and amfs_link_umount()
4795 * amd/amfs_host.c (amfs_host_ops): removed FS_AUTOFS from
4799 * amd/amfs_direct.c (amfs_direct_ops): removed FS_AUTOFS from
4802 * amd/amfs_auto.c (amfs_auto_ops): removed FS_AUTOFS from
4806 * amd/amd.h (CFM_AUTOFS_USE_LOFS): new flag, tells amd whether to
4811 (MFF_ON_AUTOFS): new flag, tells amd if a f/s is mounted directly
4825 * doc/am-utils.texi, scripts/amd.conf.5: document that
4828 * amd/amd.c (init_global_options): set default global options.
4830 * amd/amd.h (CFM_DEFAULT_FLAGS): define default options which
4833 * scripts/amd.conf-sample: reorganize values per option so default
4840 * amd/conf.c (set_conf_kv): initialize the very first map in conf
4860 * amd/amq_svc.c (amq_program_1): only check for tcpwrappers if
4861 amd.conf global option use_tcpwrappers=yes.
4863 * scripts/amd.conf.5, scripts/amd.conf-sample (use_tcpwrappers),
4865 amd.conf global option.
4867 * amd/conf.c (gopt_use_tcpwrappers): define a new amd.conf global
4870 * amd/amq_svc.c (amqsvc_is_client_allowed): include tcpd/libwrap
4875 * amd/amd.h (CFM_USE_TCPWRAPPERS): define [global] amd.conf flag.
4885 * scripts/expn.1, amd/amd.8 amq/amq.8, fixmount/fixmount.8,
4892 * amq/amq.8: Document the libwrap/amd behavior.
4894 * amd/amq_svc.c (libwrap_check_client): New function to validate
4903 * amd/amq_subr.c (amqproc_mnttree_1_svc, amqproc_stats_1_svc,
4913 * scripts/amd.conf-sample: Remove obsolete comment.
4917 * amd/info_file.c (read_line): check for errors from fgets().
4931 * scripts/amd.conf.5: document new map_defaults option.
4933 * scripts/amd.conf-sample (map_type): show examples of new
4936 * amd/mapc.c (mapc_create): initialize mnt_map->cfm field to NULL.
4938 * amd/get_args.c (get_args): call process_all_regular_maps().
4940 * amd/conf.c: keep head and tail of cfm list.
4945 amd.conf file, and then try to process the maps one at a time.
4953 * amd/amfs_generic.c (amfs_parse_defaults): find if amd.conf
4965 * amd/amd.h: struct cf_map becomes linked list. struct mnt_map
4966 includes pointer to cf_map_t, amd.conf defaults and options for a
4971 * amd/info_hesiod.c (hesiod_search): It's not possible to have a
5001 * amd/amfs_generic.c (free_continuation): free _all_ mntfs's in
5018 * fsinfo/fsi_lex.l, amd/conf_tok.l: allocate more output slots so
5023 * amd/amfs_generic.c (amfs_lookup_mntfs): ditto as below for the
5026 * amd/mntfs.c (find_mntfs): compare the filesystem type
5040 * amd/amd.8, amq/amq.8, amq/pawd.1, fixmount/fixmount.8,
5041 fsinfo/fsinfo.8, hlfsd/hlfsd.8, mk-amd-map/mk-amd-map.8,
5042 scripts/amd.conf.5, scripts/automount2amd.8,
5044 authors, am-utils Web page, and amd book.
5048 * amd/mntfs.c (find_mntfs): re-add the check for mf_info, but with
5052 * amd/amfs_generic.c (amfs_lookup_mntfs): for restarted
5057 * amd/amd.8: reference am-utils info page in amd man page, as per
5063 * amd/conf_parse.y, amd/conf_tok.l, fsinfo/fsi_gram.y,
5070 * amd/amfs_generic.c (amfs_cont): check for (am_error > 0) before
5074 * amd/autil.c (assign_error_mntfs): move the check for
5092 * amd/srvr_nfs.c: call check_pmap_up() before continuing with
5095 * amd/amfs_generic.c: updated a couple of log messages
5109 * amd/conf_parse.y, amd/conf_tok.l: pretty comments on # cpp
5117 * amd/rpc_fwd.c (fwd_packet): unused variable when compiling
5138 * amd/amfs_inherit.c (amfs_inherit_inherit): don't use // C++
5149 * amd/srvr_nfs.c (start_ping): improved log message
5155 * amd/rpc_fwd.c (fwd_packet): better debug messages
5157 * amd/ops_nfs.c (got_nfs_fh): log a messages if a root fh is
5160 * amd/amq_subr.c (xdr_amq_mount_info_qelem): use FSRV_ISUP/ISDOWN
5162 * amd/srvr_amfs_auto.c (free_srvr): ditto
5164 * amd/amfs_generic.c (amfs_bgmount): refined some error/debug
5167 * amd/amd.h (FSRV_ERROR): new macro
5173 * amd/autil.c (am_mounted): set AMF_NOTIMEOUT if either unmount or
5179 * amd/opts.c (expansions): initialize opt_umount.
5182 * amd/amfs_program.c (amfs_program_match): ensure that only one of
5186 * amd/amd.h: support unmount:=XXX as well as umount:=XXX (too
5197 * XXX: beginning of new amd.conf option map_defaults: will parse
5202 * scripts/amd.conf-sample (map_defaults): example of map_defaults
5203 amd.conf option.
5205 * amd/conf.c (reset_cf_map): initialize global and per-mount
5209 map_defaults amd.conf option.
5211 * amd/amd.h: a place to store global and per-mount map_defaults.
5234 * mk-amd-map/mk-amd-map.c (main): open temp db file using O_EXCL,
5248 * amd/ops_xfs.c (mount_xfs): compile fix (s/genflags/flags/)
5277 * amd/autil.c (am_mounted): support new 'unmount' option, to allow
5293 * amd/mntfs.c (find_mntfs): revert the "change of philosophy" (see
5329 * amd/amd.8, amd/amd.8, fixmount/fixmount.8, hlfsd/hlfsd.8,
5330 scripts/amd.conf.5, scripts/expn.1: minor spell checking and
5342 * amd/mntfs.c (init_mntfs): delete initialization of removed
5346 * amd/map.c (init_map): init autofs_fh to 0, delete initialization
5357 * amd/autil.c (am_unmounted): release autofs_fh after unmounting
5360 * amd/amfs_generic.c (amfs_cont): release autofs_fh if mounting
5364 * amd/amd.h: moved autofs_fh from mntfs to am_node, since it's
5377 * amd/amd.h: prototypes for new and changed autofs functions
5381 * amd/nfs_subr.c (do_readlink): eliminate third argument, never used
5384 * amd/map.c (mk_fattr): take a nfsfattr * argument instead of an
5387 * amd/amd.h: changed prototype for mk_fattr()
5389 * amd/autil.c (am_unmounted): when remounting, use the parent
5393 * amd/amfs_generic.c (amfs_cont): minor code optimization
5397 * amd/amfs_auto.c: lots of renames and code moving:
5418 * amd/amfs_toplvl.c: mount_amfs_toplvl() renamed to amfs_mount()
5421 * amd/readdir.c, amd/amfs_generic.c: new files with stuff ripped
5422 out of amd/amfs_auto.c
5424 * amd/amd.h: struct continuation moved to generic.c; prototypes
5427 * amd/map.c: collaped unmount_node_wrap() and unmount_node() into
5430 * amd/mapc.c: key_already_in_chain(): moved to readdir.c;
5433 * amd/srvr_amfs_auto.c: find_amfs_auto_srvr() renamed to
5436 * amd/amfs_*.c: adjustments for the renames above
5438 * amd/ops_*.c: low-level filesystems don't need a find_server()
5441 * amd/Makefile.am: added amfs_generic.c and readdir.c
5447 * amd/amd.h: moved lots and lots of amd-only stuff here, from
5453 * amd/ops_nfs.c, amd/rpc_fwd.c, amd/sched.c: adjustments for
5469 * amd/autil.c (mount_node): vastly simplified, just a wrapper now
5471 * amd/amfs_inherit.c (amfs_inherit_mount): remove the am_mounted()
5474 * amd/amfs_auto.c (amfs_auto_bgmount): get the autofs_fh _before_
5524 * amd/autil.c (am_unmounted): reset MFF_MKMNT from mf_flags when
5527 * amd/amfs_auto.c (amfs_auto_bgmount): ditto
5529 * amd/amfs_nfsl.c (amfs_nfsl_umounted): ditto
5535 * amd/ops_nfs.c (nfs_mount): "sftlookup" -> "softlookup", also
5558 * scripts/test-amd.{misc,conf}: simple amd.conf and amd.misc
5559 (map) files for testing basic amd functionality such as whether it
5564 * amd/srvr_nfs.c (start_nfs_pings): don't set FSF_PINGING if
5608 * amd/am_ops.c, amd/amfs_auto.c, amd/autil.c, amd/nfs_subr.c,
5609 amd/ops_cdfs.c, amd/ops_nfs.c, amd/srvr_nfs.c, libamu/hasmntopt.c,
5649 * amd/info_ldap.c (amu_ldap_rebind): gopt.ldap_cache_seconds is
5654 * {amd,fsinfo}/Makefile.am: remove special rules for processing
5702 * amd/am_ops.c (ops_search): new function for searching the right
5705 * amd/restart.c (restart): cleanup and split into two functions in
5706 preparation for handling the restart of amd's own mount points
5711 * amd/ops_cdfs.c (mount_cdfs): remove special code for loop device
5733 this early into this file. Luckily, amd doesn't need the size of
5738 but I couldn't find its definition anywhere. Luckily, amd doesn't
5767 * scripts/amd.conf.5 (ldap_proto_version): document in amd.conf
5770 * scripts/amd.conf-sample (ldap_proto_version): show example of use
5773 amd.conf option.
5775 * amd/conf.c (gopt_ldap_proto_version): new conf function to
5776 support ldap_proto_version amd.conf parameter.
5778 * amd/amd.h: field to hold LDAP protocol version.
5780 * amd/amd.c (init_global_options): set default for
5784 * amd/info_ldap.c (amu_ldap_unbind): ignore SIGPIPE errors while
5820 * amd/amd.c (main): don't init debug_flags, leave it as zero (no
5831 - D_ALL contains only options that don't affect amd's functionality
5835 * amd/amfs_auto.c (free_continuation): avoid double-free'ing the
5840 * amd/amfs_auto.c (amfs_auto_lookup_mntfs): use ereturn() instead
5849 * amd/amfs_auto.c (assign_error_mntfs): do not discard old mntfs,
5852 * amd/srvr_nfs.c (nfs_timed_out): allocate a new XID on server
5855 * amd/mntfs.c (free_mntfs): sanity check for mf_refc; assorted
5858 * amd/map.c (unmount_node): more verbose debug message
5862 * amd/amfs_auto.c (amfs_auto_lookup_mntfs): prevent deferencing
5916 * amd/mntfs.c (init_mntfs): don't use autofs if !amd_use_autofs
5935 * amd/autil.c (am_mounted): call autofs_mounted here, instead of
5938 * amd/amd.h (NEVER): moved here from map.c
5947 * amd/map.c (timeout_mp): don't call autofs_timeout_mp unless the
5954 * amd/amfs_auto.c (amfs_auto_lookup_one_mntfs): strdup am_path
5969 (autofs_mount_succeeded): tell amd core not to expire autofs entries
5981 * amd/map.c (timeout_mp): call autofs_timeout_mp() for autofs
5984 * amd/autil.c (mf_mounted): move here the call autofs_mounted()
5989 * amd/nfs_start.c (mount_automounter): Security fix. if user sets
6041 * doc/am-utils.texi, scripts/amd.conf.5, scripts/amd.conf-sample,
6042 amd/amd.8, amd/get_args.c (get_args): document amd -A option.
6044 * amd/get_args.c (get_args): support "amd -A arg" option to
6048 * amd/info_ldap.c (amu_ldap_rebind): don't use ldap_enable_cache()
6054 * amd/info_ldap.c: LDAP patches from George Ross
6115 * amd/amfs_auto.c (amfs_auto_lookup_child): split part of this
6177 * amd/nfs_start.c (checkup): implement it as an emtpy stub if
6183 * amd/mntfs.c (init_mntfs): initialize mf_real_mount from mp
6186 * amd/autil.c (am_unmounted): don't remove the mount point if a
6190 * amd/amfs_nfsx.c (amfs_nfsx_remount): call mkdirs() on
6193 * amd/amfs_nfsl.c, amd/amfs_nfsx.c: (amfs_nfsl_umounted): call
6196 * amd/amfs_host.c (make_mntpt): change the third argument to be
6200 * amd/amfs_auto.c (amfs_auto_bgmount): move the creation of the
6213 * amd/amd.h, amd/ops_nfs.c, amd/amfs_host.c: mount_nfs_fh takes
6218 * amd/ops_cdfs.c (mount_cdfs): correctly interpret error return
6242 * amd/nfs_start.c (mount_automounter): move the debug message into
6245 * amd/amd.c (main): call destroy_autofs_service() before
6253 * amd/info_ldap.c: patch from "Sebastien Bahloul"
6269 * amd/Makefile.am (TESTS): enable one test script, test1.sh.
6271 * amd/test1.sh: re-commit simple test script.
6288 stat() on the am_link if called from the parent amd, to prevent
6291 * amd/autil.c (am_unmounted): call amfs_link_ops.umount_fs if the
6296 * amd/amfs_auto.c (amfs_auto_bgmount): print the real mountpoint,
6297 not the amd entry point
6326 * amd/mapc.c (mapc_find): fixed indentation
6328 * amd/map.c (find_ap_recursive): renamed from find_ap2(), made
6331 * amd/amd.h: removed prototype for find_ap2(), added prototype for
6334 * amd/amd.c (main): call destroy_autofs_service() before going
6374 * amd/map.c (unmount_mp): same fix as for hlfsd, update the
6402 * scripts/redhat-ctl-amd.in: refer to @sbindir@ not
6405 * scripts/ctl-{amd,hlfsd}.in: refer to @sysconfdir@ not
6437 "loop" (since it was given in amd map entry), but not over
6446 * amd/ops_cdfs.c (mount_cdfs): pass loop device name to function.
6453 * amd/mntfs.c (init_mntfs): initialize mf_loopdev to NULL.
6486 (map_reload_interval Parameter): document new amd.conf global
6489 * scripts/amd.conf.5 document new global option
6493 * amd/nfs_start.c (do_select): increment do_mapc_reload's value by
6496 * amd/amd.c (main): increment do_mapc_reload's value by global
6499 * scripts/amd.conf-sample (map_reload_interval): usage example
6501 * amd/amd.c (init_global_options): initialize map_reload_interval
6504 * amd/conf.c (gopt_map_reload_interval): support a new global
6505 amd.conf option map_reload_interval, to determine how often (in
6513 * scripts/amd.conf.5: document -S option as using mlockall(2) if
6521 * amd/amd.c (main): support mlockall() on systems that have it and
6532 * amd/test1.sh: simple test script for "make check". Runs "amd
6535 * amd/Makefile.am (TESTS): add one simple test script, running
6536 "amd -v" and checking its return value. More tests can be added.
6565 * fsinfo/fsi_gram.y, amd/conf_parse.y: indent #pragma command so
6599 * amd/get_args.c (get_version_string): use new PACKAGE_* macros
6635 * scripts/amd.conf.5: correct title to section 5, not 8. Correct
6641 * scripts/ctl-amd.in: run "test" or "[" in front of -x/-f
6650 * scripts/ctl-amd.in: touch/remove /var/lock/subsys/amd to make RH
6706 * amd/nfs_start.c (checkup): cast getpagesize() return val to
6743 expands a non-printf amd-special syntax %m.
6820 * mk-amd-map/mk-amd-map.c (main): use mkstemp instead of mktemp,
6829 * amd/amfs_auto.c (amfs_auto_readdir_browsable): cast to u_long,
6864 * amd/amfs_auto.c (amfs_auto_lookup_mntfs): don't dispose of the
6869 * amd/amfs_auto.c (amfs_auto_lookup_mntfs): fixed silly typo (mf
6899 * amd/amfs_direct.c (amfs_direct_ops): use amfs_auto_lookup_child
6902 * amd/amfs_auto.c (amfs_auto_lookup_child): don't leak an am_node
6919 * amd/mntfs.c (init_mntfs): copy the filesystem's nfs_fs_flags
6922 * amd/autil.c (am_unmounted): start the remounting right away if
6926 * amd/amfs_auto.c (amfs_auto_lookup_node): mark the node as
6932 * amd/amfs_*.c, amd/ops_*.c: added initialization for the new
6952 * amd/mntfs.c (init_mntfs): mf_dev and mf_rdev don't exist anymore
6954 * amd/map.c (init_map): init am_dev and am_rdev to -1
6957 * amd/autil.c (mf_mounted): move the lstat of the node to the
6960 * amd/amfs_link.c (amfs_link_ops): don't background symlink creation
6969 * doc/am-utils.texi (redhat-ctl-amd): document new script.
6971 * scripts/Makefile.am: build redhat-ctl-amd but do not install it.
6973 * scripts/redhat-ctl-amd.in: new script, useful to correctly
6974 control Amd on Red Hat Linux systems. Script adapted from ctl-amd
7018 * amd/map.c (init_map): initialize am_autofs_data
7028 * amd/map.c (free_map_if_success): run autofs_umount_failed() only
7033 * amd/amd.h: removed mf_array from struct continuation (moved into
7041 * amd/map.c (init_map): initialize am_mfarray to 0
7043 * amd/amfs_*, amd/ops_*: new API function mount_child, old API
7046 * amd/amfs_auto.c: renamed amfs_auto_lookuppn1 to
7054 * amd/amfs_error.c: added stub implementations of
7057 * amd/amfs_direct.c, amd/amfs_union.c, amd/map.c, amd/nfs_subr.c,
7064 * amd/get_args.c (get_args): a better way to handle GNU and
7069 * amd/info_ldap.c (amu_ldap_rebind): The first time you called
7113 * amd/get_args.c (get_args): Prepend "+" to the getopt string if
7144 * amd/mntfs.c (find_mntfs): reuse the mntfs only if both the mount
7148 * amd/map.c (get_ap_child): helper function for
7152 * amd/amfs_auto.c (free_continuation): free unused mntfs's; don't
7171 data if amd was not daemonized.
7183 * amd/amfs_host.c (amfs_host_mount): don't fail the mount if at
7198 * amd/opts.c (expand_op): align the debugging messages
7200 * amd/map.c (mount_auto_node): use am_node *mp instead of casting
7203 * amd/autil.c (am_mounted): check the FS_DIRECT flag instead of
7208 * amd/amfs_direct.c (amfs_direct_ops): added FS_DIRECT to fs_flags
7210 * amd/amfs_auto.c (amfs_auto_mount): removed the autofs hack to
7220 * amd/am_ops.c (vops): updated a comment
7237 * amd/autil.c (forcibly_timeout_mp): always log a message when the
7242 * amd/amfs_auto.c (amfs_auto_bgmount): don't gratuitously add
7250 * amd/amfs_auto.c, amd/amfs_host.c, amd/amfs_nfsx.c,
7251 amd/amfs_toplvl.c, amd/amfs_union.c, amd/conf.c, amd/info_nis.c,
7252 amd/info_nisplus.c, amd/mapc.c, amd/nfs_subr.c, amd/ops_nfs.c,
7253 amd/rpc_fwd.c, amd/srvr_amfs_auto.c, amd/srvr_nfs.c,
7261 * amd/nfs_subr.c (nfsproc_lookup_2_svc): moved trace message of
7278 * amd/amd.h, amd/amfs_auto.c, amd/conf.c,
7280 scripts/amd.conf-sample, scripts/amd.conf.5:
7288 * amd/amfs_toplvl.c, amd/amfs_auto.c, amd/srvr_nfs.c,
7308 * amd/opts.c (eval_fs_opts): changed some annoying debugging plogs
7338 * amd/map.c (umount_exported): try to unmount all mount points on
7342 * amd/amfs_link.c (amfs_link_[u]mount): call autofs_link_[u]mount,
7345 * amd/amfs_auto.c (amfs_auto_bgmount): fixed a bug that was
7350 * amd/amfs_link.c: added FS_MBACKGROUND to fs flags -- cleaner
7354 * amd/amd.h: removed prototype for autofs_lookup_failed (internal
7417 * amd/Makefile.am (EXTRA_amd_SOURCES): don't forget to distribute
7432 * amd/am_ops.c: revised merge_ops to use new haseq function
7434 * amd/srvr_nfs.c: revised find_nfs_srvr to use hasmnteq to
7497 * amd/amd.h (autofs_lookuppn): Fixup whitespace.
7498 * amd/amfs_auto.c (amfs_auto_bgmount): Likewise.
7499 * amd/amfs_error.c: (amfs_error_match): Likewise.
7500 * amd/amfs_host.c (fetch_fhandle): Fixup whitespace. Remove
7502 * amd/info_file.c (read_line): Likewise.
7504 * amd/info_ldap.c (get_ldap_timestamp): Likewise.
7505 * amd/map.c (get_root_ap): Likewise.
7506 * amd/nfs_prot_svc.c: Likewise.
7507 * amd/ops_TEMPLATE.c (foofs_match, foofs_lookuppn,
7509 * amd/ops_autofs.c (autofs_bgmount): Likewise.
7510 * amd/ops_lofs.c (lofs_match): Likewise.
7511 * amd/ops_nfs.c (got_nfs_fh): Fixup whitespace.
7512 * amd/ops_xfs.c (xfs_match): Likewise.
7513 * amd/srvr_amfs_auto.c (srvrlog): Line break.
7514 * amd/srvr_nfs.c (got_portmap, call_portmap, nfs_pinged,
7545 * amd/amq_subr.c (ok_security, amqproc_mount_1_svc): Removed.
7546 * amd/amq_svc.c (amq_program_1): Removed amq -M support.
7554 reference, but retain comment on mount -t amd.
7671 * amd/amd.c (main): print a warning if PROCLOCK is requested but
7727 * made amd *not* timeout autofs mounts -- the kernel will do it
7736 * amd/Makefile.am: shuffled things around to make
7741 * split amd/ops_autofs.c into conf/autofs/autofs_<system>.c files
7772 * amd/srvr_nfs.c: comment on NFS proto search order.
7780 * amd/amfs_auto.c (amfs_auto_bgmount): removed the initialization of
7783 * amd/map.c (init_map): initialize fattr.na_fileid to am_gen, not
7821 * amd/sched.c (do_task_notify): typo in comment.
7823 * amd/opts.c (expand_op): expand_error[] is a const char *.
7825 * amd/amd.c (main): use proper printf style to plog.
7849 * include/am_compat.h: define amd mount option "proplist" if the
7893 * scripts/ctl-amd.in: add targets condrestart (redhat) and
7903 * amd/opts.c (backslash): Bell char (ASCII 007) should be \g, not
7910 * amd/opts.c: removed unused variable $autopref
7930 * scripts/amd.conf.5: correct swapped descriptions for ldap_base
7936 * scripts/amd.conf-sample: swap examples for ldap_base and
7941 * scripts/amd.conf-sample: -O is CLI equivalent to "os"
7942 amd.conf parameter
7946 * scripts/amd.conf-sample (nfs_retransmit_counter): correct
7962 * amd/opts.c: special new variable ${dollar} which expands into a
7964 dollar symbol in an amd map.
7968 * amd/opts.c (eval_selectors): don't deref opt after it's been
7973 * amd/opts.c: move mount_type expansion until later in the list,
7978 * amd/opts.c (split_opts, eval_selectors): split old function
8006 * amd/mapc.c (maptypes): Change default allocation mode to
8020 * amd/nfs_subr.c (nfsproc_getattr_2_svc): Don't conditionalize the
8032 * amd/map.c (unmount_mp): update mtime of amd symlink to further
8082 * amd/restart.c (restart): grr.. passing around initialized
8088 * amd/am_ops.c (ops_match): changed XLOG_USER messages about
8105 * amd/ops_autofs.c (autofs_mounted): retrieve the autofs protocol
8109 * amd/mntfs.c (uninit_mntfs): clear the autofs fh pointer after
8115 * amd/amfs_auto.c (amfs_auto_bgmount): if the filesystem wants
8131 * amd/autil.c (am_unmounted): check mp->am_parent before dereferencing
8133 * amd/srvr_nfs.c (find_nfs_srvr): if NFS_SCALEDOWN, force
8136 * amd/ops_nfs.c (prime_nfs_fhandle_cache): take an explicit mntfs
8140 * amd/amfs_toplvl.c (amfs_toplvl_mount): removed ugly if
8144 * amd/amfs_nfsx.c (amfs_nfsx_init): call fs_init() only if it's
8151 * amd/amfs_auto.c: removed amfs_auto_umounted and moved its
8156 * amd/amfs_*.c: changed all fmount/fumount functions to
8160 * amd/{amfs,ops}_*.c: changed the umounted() function to take an
8165 * amd/amfs_toplvl.c (mount_amfs_toplvl): init error to 0 to shut
8171 * amd/ops_autofs.c (autofs_mounted): remove MFF_AUTOFS
8174 * amd/mntfs.c (init_mntfs): init mf_flags to MFF_AUTOFS if we are
8177 * amd/*.c: use the MFF_AUTOFS flag instead of doing a costly STREQ
8179 * amd/amfs_toplvl.c (mount_amfs_toplvl): MTYPE_TYPE is not
8183 * amd/amfs_auto.c (amfs_auto_bgmount): removed initialization of
8186 * amd/am_ops.c (ops_match): need to initialize opt_mount_type if
8223 * amd/ops_autofs.c (autofs_handle_fdset): call
8229 * amd/autil.c (am_unmounted): notify autofs that the umount
8232 * amd/amfs_link.c (amfs_link_[u]mount): autofs link notification
8237 * amd/amfs_auto.c (amfs_auto_bgmount): initialize opt_mount_type
8242 * amd/ops_autofs.c (autofs_mount_failed): remove autofs directory
8247 * amd/ops_autofs.c (autofs_link_mount): use am_link as target
8249 * amd/map.c (unmount_mp): release file handle for autofs f/s about
8252 * amd/amfs_auto.c (amfs_auto_umount): removed autofs-specific
8306 (main): new amq -w option, translates getpwd() into an amd path.
8326 * amd/opts.c: added "mount_type" option
8328 * amd/ops_autofs.c: ifdef-ed out solaris code; moved all autofs
8332 * amd/nfs_start.c: removed autofs-specific variables
8334 * amd/map.c (get_root_nfs_fh): renamed root_fh to get_root_nfs_fh
8337 * amd/amfs_toplvl.c (amfs_toplvl_ops): replaced
8342 * amd/amfs_nfsl.c (amfs_nfsl_ops): removed amfs_auto_fu?mount,
8345 * amd/amfs_linkx.c (amfs_linkx_ops): removed amfs_auto_fumount,
8348 * amd/amfs_link.c (amfs_link_ops): removed amfs_auto_fu?mount,
8351 * amd/amfs_direct.c (amfs_direct_ops): changed "mounted" function
8356 * amd/am_ops.c (vops): autofs_ops doesn't belong in here, removed
8371 kernel! Must set nfs_proto=udp in amd.conf [global].
8389 * amd/amfs_auto.c (amfs_auto_bgmount): changed log message to
8393 * amd/ops_autofs.c (autofs_bgmount): ditto
8413 * amd/mntfs.c (realloc_mntfs): don't fallback on certain ops such
8416 * amd/conf.c (gopt_nfs_vers, gopt_nfs_proto): two new (documented)
8417 global options in amd.conf: one to set the NFS version globally
8421 * amd/mntfs.c (realloc_mntfs): attempt to fix the failover code,
8426 * amd/amfs_auto.c: a new debug option "readdir" to trace the
8455 * scripts/amd.conf.5: document -D hrtime,xdrtrace
8570 * amd/mapc.c (mapc_reload_map): more fixes from Nick Williams.
8575 * amd/mapc.c (make_entry_chain): patch from Steven Danz
8582 * amd/mapc.c (mapc_reload_map): fixes to sync maps even if they
8592 * amd/nfs_subr.c (nfsproc_getattr_2_svc): patch from Nick Williams
8608 * amd/get_args.c (get_args): don't use MNTTAB_FILE_NAME for
8661 * amd/get_args.c (get_args): Initialize mnttab_file_name even for
8665 * amd/info_ldap.c (get_ldap_timestamp): Don't peek into opaque
8702 * amd/info_ldap.c (string2he): updated function which does not
8714 * amd/nfs_subr.c (nfsproc_lookup_2_svc): find the uid/gid of the
8721 so it can be used by amd.
8723 * amd/opts.c: new variables ${uid} and ${gid}.
8727 * scripts/ctl-amd.in: add "status" command that tells you if amd
8738 * amd/amd.c (main): On AIX you must lower the stack size using
8751 * amd/amfs_auto.c (amfs_auto_bgmount): patch from Nick Williams
8802 * scripts/amd.conf-sample: examples of $full_os and $vendor.
8804 * scripts/amd.conf.5: document $full_os and $vendor.
8806 * amd/conf.c: add support for $full_os and $vendor.
8813 * amd/amfs_auto.c (amfs_auto_bgmount): corectly indent long
8820 * amd/amd.8: Major fixes to the description of the option -t
8824 amd -H (not -v) shows log_options and debug_options. Major fixes
8825 to the description of amd -t timeout.retransmit, and the amd.conf
8828 * scripts/amd.conf.5: better description of "trace" debug option.
8829 amd -H (not -v) shows log_options and debug_options. Major fixes
8843 * amd/mapc.c (mapc_reload_map): count and show the number of times
8847 * amd/amd.h: new flag to struct mnt_map to count number of times a
8850 * amd/mapc.c (mapc_reload_map): attempt to reload the map without
8858 * amd/info_ldap.c (amu_ldap_rebind): don't busy-loop trying to
8996 * scripts/ctl-amd.in: sleep 1 second between killing amd and
8997 restarting it, because amq may respond that amd is down, where in
9008 * scripts/ctl-{amd,hlfsd}.in: update RH tags for start/stop
9023 * amd/amq_svc.c (amq_program_1): all code that relates to amq -M
9026 * amd/amq_subr.c: remove amqproc_mount_1_svc() function invoked
9060 * amd/nfs_prot_svc.c (nfs_program_2): verify that requests come
9064 * amd/amq_subr.c (ok_security): use IPPORT_RESERVED, instead of
9071 * amd/map.c (free_map_if_success): If the program doing an unmount
9072 of a program filesystem fails, amd tries to interpret the return
9075 * amd/info_nis.c (determine_nis_domain): don't always print
9081 * amd/info_ldap.c (get_ldap_timestamp): initialize variable err.
9105 bug in that amd neglected to set these fields, but told the
9115 * amd/opts.c (f_netgrpd): new amd map function netgrpd(ARG) to
9137 * amd/amfs_auto.c (DOT_DOT_COOKIE): set the NFS cookie of '..' to
9143 * amd/mapc.c (make_entry_chain): NFS cookies should be
9155 amd is configured on linux hosts that run one kernel but have
9158 * amd/info_nis.c (nis_isup, nis_search, nis_init): fixes for the
9208 * amd/amfs_program.c (amfs_program_exec): make sure logfp is
9215 * amd/amfs_program.c (amfs_program_exec): set logfp to stderr if
9260 * amd/conf_parse.y: alloca support.
9306 * scripts/amd.conf.5: fix typo. From Jeffrey C Honig
9317 * amd/ops_cdfs.c (mount_cdfs): support options norrip, gens, and
9377 * amd/opts.c (eval_opts): changed log level of "executing
9389 * amd/am_ops.c (ops_match): if addopts are specified, apply them
9392 * amd/ops_nfs.c (mount_nfs_fh): tell users when remopts are used.
9421 * amd/nfs_start.c (amd_use_autofs): Define.
9425 * amd/amd.h (amd_use_autofs): Declare.
9427 * amd/conf.c (gopt_mount_type): Set amd_use_autofs.
9445 * amd/info_hesiod.c: some forward declarations. Patch from
9462 * amd/amfs_toplvl.c (mount_amfs_toplvl): print generic mount flags
9484 * mk-amd-map/mk-amd-map.c: removed dummy variables.
9496 * amd/info_ldap.c (amu_ldap_init): don't run STREQ if one of the
9509 * amd/amfs_toplvl.c (mount_amfs_toplvl): add generic mount flags
9525 * amd/info_ldap.c (get_ldap_timestamp): dlog format fixes.
9556 * amd/info_nis.c (nis_init): Cast order to unsigned long, adapt
9564 * amd/amfs_program.c (amfs_program_exec): Cast ptr difference to
9586 * amd/info_hesiod.c (hesiod_search): Cast m, pval, tp to unsigned
9589 * amd/ops_nfs.c (find_nfs_fhandle_cache): Cast fh_wchan to
9597 * amd/ops_autofs.c (autofs_program_1): Cast args to int to match
9605 * amd/srvr_nfs.c (start_ping): Cast nfs_version to int to match
9611 * amd/sched.c (sched_task): Cast wchan to unsigned long, adapt
9614 * amd/nfs_start.c (checkup): Cast ptr difference to long, next_mem
9618 * amd/nfs_prot_svc.c (nfs_program_2): Cast args to int to match
9621 * amd/map.c (root_fh): Cast pid to long, adapt format.
9624 * amd/clock.c (reschedule_timeouts): Use long format, cast time_t
9627 * amd/amfs_host.c (fetch_fhandle): Cast nfs_version to int to
9632 * amd/amfs_auto.c (amfs_auto_bgmount): Cast pointer to unsigned
9637 * amd/amd.c (main): Cast geteuid() result to long, adapt format.
9648 * amd/info_hesiod.c (hesiod_isup): New function.
9649 * amd/mapc.c (maptypes): Add it.
9700 * amd/info_hesiod.c: add extern definition for hesiod_init()
9740 * amd/ops_autofs.c (autofs_bgmount, autofs_lookuppn): put explicit
9753 * {amd,fsinfo}/Makefile.am: force path to .y/.l files, because
9780 * amd/amfs_nfsl.c (amfs_nfsl_ffserver): use case insensitive host
9785 * scripts/ctl-amd.in: wait4amd2die runs in the stop action, to
9786 avoid race conditions when shutting down systems running amd.
9795 * amd/srvr_nfs.c (find_nfs_srvr): allow overriding if nfsv2 option
9801 amd/get_args.c (get_args): posix: use -1 to check for return from
9804 * amd/amq_subr.c (xdr_amq_mount_tree_node): patches from "David
9811 * scripts/ctl-{amd,hlfsd}.in: include comments useful for redhat's
9827 * amd/nfs_subr.c (nfsproc_lookup_2_svc): try to avoid a race
9844 * amd/amd.c (main): bug fix: swapped arguments to kill(2). Fix
9867 * mk-amd-map/mk-amd-map.c (main): use perror not strerror.
9883 * mk-amd-map/mk-amd-map.c: patch from "David O'Brien"
9891 amd/amd.c (main): avoid overrunning hostname buffer. Bug fix from
9894 * scripts/amd.conf.5: minor typo reported by "David O'Brien"
9897 * amd/info_nis.c (am_yp_all): don't leak key-val entries. Patch
9912 * amd/ops_autofs.c (autofs_lookuppn): don't leak memory while
9916 * amd/amfs_auto.c (amfs_auto_lookuppn): don't leak memory while
9931 * amd/conf.c (gopt_map_type, ropt_map_type): check if map type
9934 * amd/mapc.c (mapc_type_exists): function to test if a map of
9963 * amd/amfs_host.c (fetch_fhandle, amfs_host_fmount,
9972 * amd/info_nis.c: patch from [email protected] (Christos Zoulas)
10012 * amd/ops_autofs.c (mount_autofs): cast pid to long.
10018 avoid amd/am_ops.c (show_fstypes) from erroneously claiming
10038 * amd/ops_ufs.c (mount_ufs): Removed obsolete comment.
10065 * amd/opts.c: new option addopts:=ARG, which smartly merges ARG
10069 * amd/am_ops.c (ops_match): strdup/malloc string assigned to
10080 * amd/get_args.c (get_version_string): allocate enough space for
10095 undefined it when not needed (similar to amd/conf_tok.l)
10111 * scripts/amd.conf.5: document info debugging option.
10125 * amd/amd.c (daemon_mode): set a temporary secure umask(0022)
10129 * amd/get_args.c (get_args):
10131 * doc/am-utils.texi (-F Option), amd/amd.8: mention that amd.conf
10134 * amd/amd.c (daemon_mode): do not fclose(stdout) so that the fd
10142 * amd/restart.c (restart): correctly inherit existing NFS V.3
10166 * amd/mapc.c (mapc_sync): don't dereference pointer (so it
10182 * amd/amd.8,doc/am-utils.texi: document correct usage of default
10183 /etc/amd.conf file.
10188 * amd/get_args.c (get_args): use default /etc/amd.conf file only
10189 if no arguments had been passed to amd.
10222 * amd/ops_nfs.c (mount_nfs_fh): no need to run code again checking
10227 checks for overlay mount option which was in amd/amfs_toplvl.c:
10235 * merged Ultrix port with am-utils 6.0 a16s5: amd/ops_afs.c
10236 (mount_toplvl) -> amd/amfs_toplvl.c (mount_amfs_toplvl)
10264 * amd/ops_ufs.c (mount_ufs): Ultrix stores generic mount flags in
10267 * amd/ops_cdfs.c (mount_cdfs): handle Ultrix/Digital UNIX specific
10270 * amd/ops_afs.c (mount_toplvl), amd/ops_nfs.c (mount_nfs_fh),
10324 * fsinfo/fsi_lex.l,amd/conf_tok.l: define ECHO after undefining
10333 * doc/am-utils.texi,amd/opts.c: rename all references to nomadic
10349 * conf/nfs_prot/nfs_prot_hpux11.h: a first working port of amd to
10382 * amd/rpc_fwd.c (fwd_init): don't use O_NDELAY for t_open()
10405 * amd/conf_tok.l: cast yytext to char* when passed to strlen and
10416 * amd/info_nis.c (nis_isup): new function to test if NIS is up
10417 without hanging amd. Used to ensure that amd does not clear the
10422 * amd/mapc.c (mapc_sync): check to see if map service is up.
10431 * amd/conf_tok.l: undefine ECHO again, so it doesn't get used
10484 * amd/{ops_xfs.c,ops_efs.c}: new support for irix xfs/efs.
10488 * scripts/amd.conf.5: new unmount_on_exit option documented.
10492 * amd/conf.c (gopt_unmount_on_exit): new function to handle new
10493 amd.conf option.
10495 * amd/map.c (umount_exported): if global amd.conf flag
10499 * amd/amd.c: if print_pid option is on, then normally print it to
10503 * amd/get_args.c (get_args): print correct -l option depending if
10510 * amd/ops_cdfs.c (mount_cdfs): support cdfs options defperm,
10528 amd.conf global variable hesiod_base.
10530 * scripts/amd.conf.5: update man page for new amd.conf global
10533 * amd/get_args.c (get_args): use /etc/amd.conf file if exists by
10539 * amd/info_hesiod.c (hesiod_search), amd/conf.c
10540 (gopt_hesiod_base), amd/amd.h, amd/amd.c (init_global_options):
10542 support a hesiod base name in the amd.conf file.
10545 amd.conf parameter.
10547 * scripts/amd.conf.5: document new global option pid_file.
10549 * amd/amd.c (daemon_mode): if cannot open pid_file, continue to
10552 * amd/conf.c (gopt_pid_file), amd/amd.h, amd/amd.c (daemon_mode,
10554 <[email protected]>, to support pid files in the amd.conf file.
10556 * amd/get_args.c (get_args): correct usage info on amd -t.
10558 * amd/*.c: massive file name and symbol name changes. All amd
10562 clear distinction between amd file system and generic ones like
10566 * amd/amfs_union.c: unionfs for amd is always defined, no need to
10579 * amd/am_ops.c (ops_showfstypes): when showing F/S types in amd
10610 * amd/ops_nfsl.c (nfsl_match): host names should be compared using
10613 * amd/opts.c: for each map variable, define if the comparison
10642 * amd/get_args.c (get_args): minor bug in output of amd -H.
10652 * amd/conf.c (*_browsable_dirs): allow specifying
10656 * amd/info_file.c (MAX_LINE_LEN): up maximum readdir chain length
10666 * scripts/amd.conf-sample: updated example for log_file.
10668 * scripts/amd.conf.5: updated for new way to declare new syslog
10671 * amd/amd.8: updated for new way to declare new syslog facility in
10675 syslog facility as an appended string to the log device. Ex. amd
10679 * amd/get_args.c (get_args): updated new syntax for amd -l
10717 * amq/amq.c: two new switches to amq. -U will contact amd using
10740 * amd/ops_cachefs.c: initial cachefs support, for solaris.
10748 * amd/ops_cdfs.c: cdfs should be named 'cdfs', not whatever the
10753 * amd/opts.c: added support for new variable $cachedir.
10759 * amd/ops_nfsl.c (nfsl_ffserver, nfsl_match): also check if the
10767 * amd/ops_nfsl.c: new amd meta file system "type:=nfsl". Behaves
10770 popular amd map entry.
10772 * amd/amd.c (main): amd should chdir to / before starting, to
10775 * amd/ops_TEMPLATE.c: added an empty template file for developers
10776 who wish to write new amd pseudo file systems.
10798 * amd/ops_afs.c (mount_toplvl): Bug fix. Don't try to free() an
10826 * amd/info_ldap.c: use xmalloc() not malloc().
10846 * amd/ops_afs.c (afs_readdir_browsable): reduce the number of
10850 * amd/mntfs.c (uninit_mntfs): bug fix. Moved freeing of
10855 * amd/ops_host.c (host_umounted): don't use clnt_spcreateerror()
10893 * amd/opts.c: allow options to be processed by executing arbitrary
10922 * amd/opts.c (f_in_network): print debugging info that is correct,
10930 table entries (and amd opts switches) "proto" and "vers".
10966 amd.
10980 * scripts/ctl-amd.in: look for amd.conf file in ${prefix}/etc
11001 * mk-amd-map/mk-amd-map.c (main): use mkstemp() whenever possible
11009 * amd/ops_nfs.c (mount_nfs_fh): Systems that include the mount
11085 * scripts/amd.conf.5: corrected info for -o/-O options.
11087 * amd/amd.8: updated man page for new -O op_sys_name option, and
11090 * amd/get_args.c (get_args): added new amd option -O to override
11106 instructions to amd-dev. Patch from Stefan Vogel
11144 * amd/ops_nfs.c (mount_nfs_fh): use the new and cleaner
11147 * amd/ops_afs.c (mount_toplvl): MAJOR CODE REVISION. Use the new
11154 Code cleaned up, organized, and moved from amd/hlfsd into
11158 mounting an automounter's mount point. Used by hlfsd and amd.
11235 * amd/nfs_start.c (mount_automounter): if autofs service listener
11236 fails to initialize it is OK if using a test amd.
11238 * amd/opts.c (f_in_network): new nomadic function in_network(arg),
11261 * amd/info_nis.c: allow for override of ypall_callback_fxn_t
11267 and ioctl() (in order). This new function is used in amd/amd.c
11274 it was in amd/ops_afs.c, amd/ops_nfs.c, and hlfsd/hlfsd.c, but
11283 * amd/ops_afs.c (mount_toplvl): turn on 'ignore' option in nfs
11285 hpux-10 will mount amd's mounts points as 'ignore' (by df).
11293 mount type and not NFS, for the amd mount points.
11317 * amd/info_nis.c (am_yp_all): code for a replacement yp_all that
11326 * amd/conf_tok.l (yywrap): avoid redefining yywrap for systems
11353 * amd/ops_pcfs.c (mount_pcfs): fill in uid/gid fields of
11356 * amd/ops_cdfs.c (mount_cdfs): fill in ssector field of
11376 * amd/ops_pcfs.c (mount_pcfs): set mask field of pcfs_args to
11410 <[email protected]> to make sure that amd works with more
11429 * amd/ops_<FOO>fs.c (mount_<FOO>fs): initialize mntent_t fields to
11440 * amd/ops_afs.c (mount_toplvl): limit hostname size to HOSTNAMESZ
11482 * amd/amd.c (main): if plock() succeeded, don't try to display
11519 * amd/ops_autofs.c (autofs_unmount_1_svc): only display rdevid
11541 * amd/info_nis.c: patch from Jason Thorpe <[email protected]>
11542 to make amd works when talking to NIS+ servers in NIS
11547 * amd/mapc.c (MAX_CHAIN): increased maximum chain size to 1024.
11551 * amd/conf.c (gopt_fully_qualified_hosts): a new function to
11554 * amd/ops_nfs.c (make_nfs_auth): if a new global variable
11558 * amd/conf.c (process_last_regular_map): If the amd.conf file only
11562 * scripts/amd.conf.5: fixed typos (repeated 'as' word).
11566 * amd/conf.c (reset_cf_map): Bug fix. Reset 'tag' field of cfm
11571 * amd/amd.c (main): fixed the meaning of the plock option. A bug
11581 * amd/conf.c (gopt_show_statfs_entries): new function and a global
11582 amd.conf key show_statfs_entries. Defaults to 'no'. If 'yes',
11586 * amd/nfs_subr.c (count_map_entries): new function to count number
11616 * amd/conf.c (ropt_mount_type, gopt_mount_type): don't accept
11619 * amd/amd.c (main): log am-utils version string (same as amd -v)
11636 * amd/amd.c (init_global_options): run uname() only if
11639 * amd/rpc_fwd.c (fwd_packet): if remote host is down, the
11646 * amd/ops_nfs.c (discard_fh): don't dereference a null pointer
11651 * amd/sched.c: nobody uses "union wait" any more, or so it
11670 * amd/rpc_fwd.c (fwd_packet): if fwdto packet is null, remote
11681 the amd.conf file.
11695 * scripts/amd.conf.5: new map page.
11697 * amd/info_hesiod.c: define extern for hesiod_resolve, since bsdi3
11700 * amd/amd.8: updated man page.
11702 * amd/get_args.c (get_args): removed defunct -h option to amd.
11706 * amd/info_nisplus.c (nisplus_search): prototype fixes so Sun
11709 * amd/info_hesiod.c (hesiod_search): small fixes to compile with
11716 * amd/ops_nfs.c (mount_nfs_fh): bug fixed. Should initialize
11720 * amd/info_ldap.c: ldap patches from Leif Johansson
11721 <[email protected]>, adding two new amd.conf ldap variables:
11729 * amd/nfs_start.c (mount_automounter): register amd with the rpc
11730 program number that may have been overridden by amd.conf.
11733 allow storing and retrieving alternate amd program numbers.
11735 * amd/conf.c (gopt_portmap_program): new function to parse
11736 amd.conf entry portmap_program=1234.
11739 number for amd via -P prognum.
11741 * new amq RPC to get the process id of the running amd. This is
11742 used in ctl-amd to quickly find the pid of the amd that is to be
11757 * amd/amd.c (init_global_options): find the kernel architecture
11782 * mk-amd-map/mk-amd-map.8: man page taken from bsd44.
11810 * amd/mapc.c (make_entry_chain): from Debian folks: don't skip
11811 over amd map keys that have a prefix, and include the prefix in
11814 * amd/info_passwd.c (passwd_init, passwd_search): format
11823 * amd/ops_afs.c (afs_retry): patches from Debian Linux. If
11836 * amd/info_hesiod.c: minor cleanup to use hes_init and hesiod_init
11840 * amd/ops_nfs.c (mount_nfs_fh): If "noconn" option exists in NFS
11853 * hlfsd/hlfsd.c (main), amd/ops_afs.c (mount_toplvl): ensure that
11871 * verified that amd on NetBSD 1.2.1 (i386) works, but the OS
11874 * verified that amd AIX 3 works w/ the new readdir() code.
11878 * amd/mapc.c (maptypes): changed the default map caching type for
11880 be available to amd for browsable_dirs=yes.
11884 * amd/ops_afs.c (afs_readdir, afs_readdir_browsable): split
11891 * amd/ops_afs.c (afs_readdir): fixed up the browsable code to
11897 * amd/conf.c (set_conf_kv): fixed bug that resulted in the first
11905 * scripts/ctl-{amd,hlfsd}.in (killproc): better method to find the
11906 amd/hlfsd process to kill.
11908 * amd/ops_afs.c (mount_toplvl), hlfsd/hlfsd.c (main): code to
11909 determine how to avoid df from seeing amd's toplvl mounts. Moved
11928 * amd/am_ops.c (ops_showfstypes): added styles for new bsd44
11933 * amd/ops_{nullfs, unionfs, umapfs}.c: 3 new empty templates for
11939 * amd/conf_tok.l, fsinof/fsi_lex.c: undefine ECHO to avoid
11945 * amd/ops_nfs.c (mount_nfs_fh): fill in nfs_args' fields
11969 * amd/get_args.c (get_args): moved amd.conf file parsing to before
11974 of amd, along with the rest of the info thet comes up with amd -v.
11984 * amd/conf_tok.l, conf_parse.y: allow values of keys to include
11987 * amd/info_hesiod.c (hesiod_search): cleanup and minor bug fixes
12008 * scripts/amd2ldif.in: Script to convert amd maps to plain text
12015 * amd/conf.c: several variables that were local to a map, were
12021 * amd/amd.h: eliminated several global flags each of which took an
12024 * amd/amd.c (init_global_options): moved all global variables into
12028 * amd/get_args.c (get_args): removed unused amd -m option.
12030 * amd/conf.c (gopt_cluster): added new amd.conf option for cluster
12031 name, same as amd -C.
12033 * amd/info_ldap.c: LDAP info map functions from Leif Johansson
12036 * amd/conf.c (gopt_ldap_base, gopt_ldap_hostports): put in global
12037 amd.conf options for ldap_base and ldap_hostports.
12039 * amd/opts.c (f_netgrp): new amd map function netgrp(ARG) to test
12071 * amd/info_nis.c (nis_reload): cast nis' callback function so
12091 * amd/info_hesiod.c (hs_zone_transfer): minor fixes to buffer
12097 * amd/ops_nfs.c (mount_nfs_fh): fixed NFS V.3 support for bsdi3.
12104 * amd/ops_nfs.c (mount_nfs_fh): added nfsv3 option to
12110 * amd/info_hesiod.c: got hesiod support for bsdi3.
12116 * amd/get_args.c (get_args): reformat usage so it fits in 80
12119 * scripts/ctl-amd.in: changed directory name for optional tftpboot
12120 map to /tftpboot/.amd.
12130 * scripts/ctl-amd.in: include -T tag for tftpboot.
12138 * amd/get_args.c (get_args): new options amd -T tag. A map with
12159 * amd/conf.c: AIX3 doesn't like strdup() being passed a constant
12162 * amd/mapc.c (root_newmap): don't try to strdup only a "const
12184 * amd/amd.c,wire-test/wire-test.c (main): convert IP address to
12194 * scripts/ctl-amd.in: don't use full pathname so killproc() works
12211 * amd/ops_afs.c (afs_lookuppn): bug in enable_default_selectors
12217 * scripts/ctl-{amd,hlfsd}.in (killproc): if failed to find process
12223 * aux/configure.in, amd/info_ldap.c, etc.: put in all the autoconf
12225 amd/info_ldap.c.
12233 * scripts/ctl-amd.in: updated amd control script to look for and
12234 use amd.conf file.
12238 * amd/mapc.c (mapc_create): now, each map in the amd.conf can be
12244 * amd/ops_afs.c (afs_readdir): per-map browsing (readdir) done.
12245 if browsable_dirs=yes is set in the map section in amd.conf, that
12250 * rudimentary amd.conf file support included. You may even
12256 * amd/conf.c: new file to process amd.conf file.
12258 * amd/get_args.c (get_args): new options -H to print help.
12260 * moved enable_default_selectors to be amd.conf controlled, and
12263 * amd/get_args.c (get_args): new options -F <conf-file> to parse an
12264 amd configuration file.
12278 * amd/mapc.c: Included patch from Leif Johansson
12286 * amd/ops_nfs.c (mount_nfs_fh): Included patch from Andreas
12305 * amd/*.c: lots of 64-bit "ugly" ports like casts to long ints.
12318 * amd/rpc_fwd.c (fwd_packet): TLI bug fix. if fwdto socket is
12323 * scripts/fix-amd-map.in (name): replace all matching patterns on
12334 * amd/amq_subr.c (amqproc_getvers_1_svc): amq's RPC service
12335 procedure now returns the full string that amd -v returns.
12337 * amd/get_args.c (get_version_string): new function to return
12340 * amd/am_ops.c (ops_showamfstypes, ops_showfstypes): put the list
12343 * amd/mapc.c (mapc_showtypes): put the list of map types into a
12348 * amd/get_args.c (get_args): amd -v also prints user who built
12349 amd, hostname built on, and date of configuration.
12361 automount maps to amd maps.
12368 * scripts/ctl-amd.in: new script ctl-amd. Used to start, stop, or
12369 restart amd.
12375 * scripts/wait4amd.in: new script wait4amd added. Waits for amd
12386 * amd/ops_pcfs.c (pcfs_ops): don't timeout pcfs mounts by default
12389 * amd/ops_cdfs.c (cdfs_ops): don't timeout cdfs mounts by default
12392 * amd/mapc.c (make_entry_chain): fixed bug that resulted in amd
12403 * amd/info_hesiod.c (hs_strip_our_domain): use strcasecmp()
12453 * amd/ops_nfs.c (mount_nfs_fh): set the mount types, mnttab types,
12460 * amd/ops_nfs.c: store NFS file handle version and version
12474 * amd/srvr_nfs.c (start_ping): ping program performs NFS version
12506 * amd/sched.c (sigchld): signal handler must waitpid() for all
12518 * amd/ops_nfs.c (mount_nfs_fh): set nfs_args_t version number.
12520 * amd/ops_afs.c (mount_toplvl): set nfs_args_t version number.
12522 * amd/ops_nfs.c (mount_nfs_fh): process nfs mount option resvport
12546 * amd/amq_subr.c (ok_security): turned off insecure code unless
12551 * amd/nfs_start.c (mount_automounter): use code that separately
12553 services for amd.
12556 separately create the amq service for amd. Simplified prototypes
12580 * amd/ops_{nfs,afs}.c (mount_toplvl): fill in fhsize field if
12632 * lib/xutil.c (debug_option): moved from amd/getargs.c to this
12638 * amd/get_args.c: moved structure for debug options out.
12651 * ported mk-amd-map.
12794 * amd/ops_nfs.c (mount_nfs_fh): encapsulated some more code in
12797 * amd/ops_afs.c (mount_toplvl): make sure TIMEO/RETRANS code is
12803 * amd/autil.c (host_normalize): make sure hostent->h_name is
12808 * {lib,amq,amd}/*.c (many functions): cast xdr_entry to
12832 * amd/info_hesiod.c: removed macro HAVE_HS_ZONE_TRANSFER and
12836 * amd/mapc.c: removed macro HAVE_HS_ZONE_TRANSFER and turned all
12840 function (will never find it because it is an amd-internal
12843 * amd/mapc.c (maptypes): must used correct new name for am-utils'
12846 * amd/info_hesiod.c (hesiod_am_init): renamed hesiod_init to
12875 * amd/info_ndbm.c (ndbm_search,ndbm_init): fixed the code so that
12881 * amd/ops_afs.c (mount_toplvl): added a sleep(1) right before the
12886 * amd/rpc_fwd.c: removed all TLI (HAVE_T_OPEN) code.
12892 * amd/amd.c (main): fix local address using htonl(). Free up
12897 * amd/fix-amd-map.in: new script that will convert old-style amd
12911 * amd/sched.c: removed HAS_SVR3_SIGNALS code to handle older
12914 * amd/rpc_fwd.c (fwd_reply): removed all code that was triggered
12919 * amd/opts.c (eval_opts): removed AMD_COMPAT code. Amd no longer
12925 * amd/ops_nfsx.c (nfsx_init): removed HARD_NFSX_ERRORS, code which
12928 * amd/ops_nfs.c (make_nfs_auth): removed code dependent on
12940 attempted to set the port on which amd's nfs mounts on. This
12944 * amd/srvr_nfs.c (find_nfs_srvr), amd/ops_nfs.c (mount_nfs_fh):
12949 * amd/nfs_subr.c (nfsproc_getattr_2): removed all code dependent
12952 * amd/mapc.c (mapc_meta_search): removed code that depended on
12958 * amd/{map.c,ops_sfs.c,ops_ufs.c}: removed all code dependent on
12963 * amd/map.c (exported_ap_alloc): removed all code triggered by
12966 * amd/info_nis.c: removed HAS_NIS_RELOAD macro, and left the code
12976 * amd/info_hesiod.c: renamed macro HAS_HESIOD_RELOAD to
12981 * amd/{nfs,host}_ops.cremoved INFORM_MOUNTD macro, so its code is
12986 * amd/host_ops.c: removed all that optionally did not make the
12987 directory mount points for amd.
12995 * amd/*_ops.c: removed all references to mntent_t's fields
12999 * amd/am_ops.c: removed function sunos4_match, which was off
13003 * amd/afs_ops.c (afs_bgmount): removed SUNOS4_COMPAT code which