am-utils-6.0.git
22 years ago * amd/srvr_nfs.c (start_nfs_pings): don't set FSF_PINGING if
Ion Badulescu [Sun, 29 Dec 2002 01:51:25 +0000 (01:51 +0000)]
* amd/srvr_nfs.c (start_nfs_pings): don't set FSF_PINGING if
pings are disabled

22 years agoput space b/t var decls and code
Erez Zadok [Sun, 29 Dec 2002 01:09:08 +0000 (01:09 +0000)]
put space b/t var decls and code

22 years agoremoved entries for deleted revisions
Ion Badulescu [Sun, 29 Dec 2002 01:04:19 +0000 (01:04 +0000)]
removed entries for deleted revisions

22 years ago * libamu/xdr_func.c (xdr_ftype): use a local enum_t variable
Ion Badulescu [Sun, 29 Dec 2002 00:56:08 +0000 (00:56 +0000)]
* libamu/xdr_func.c (xdr_ftype): use a local enum_t variable
instead of casting the pointer to (enum_t *)
(xdr_mountstat3): ditto
(xdr_nfsstat): ditto

22 years agoadded explanation for last bugfix
Ion Badulescu [Sun, 29 Dec 2002 00:46:31 +0000 (00:46 +0000)]
added explanation for last bugfix

22 years ago * amd/amq_subr.c (xdr_amq_setopt): remove casts to (enum_t *),
Ion Badulescu [Sun, 29 Dec 2002 00:17:31 +0000 (00:17 +0000)]
* amd/amq_subr.c (xdr_amq_setopt): remove casts to (enum_t *),
they are at best useless and at worst broken

* libamu/xdr_func.c (xdr_ftype): ditto
(xdr_mountstat3): ditto
(xdr_nfsstat): ditto

* amq/amq_xdr.c (xdr_amq_opt): ditto

22 years ago * libamu/misc_rpc.c (make_rpc_packet): fix make_rpc_packet() on
Ion Badulescu [Sat, 28 Dec 2002 23:48:35 +0000 (23:48 +0000)]
* libamu/misc_rpc.c (make_rpc_packet): fix make_rpc_packet() on
64-bit big-endian platforms, bug report from Bill Fenner
<fenner@research.att.com>

22 years ago * configure.in: increase library patchlevel
Ion Badulescu [Sat, 28 Dec 2002 22:28:56 +0000 (22:28 +0000)]
* configure.in: increase library patchlevel

* libamu/xutil.c (amu_release_controlling_tty): close and reopen
file descriptors 0,1,2 before calling setsid()

22 years ago2003 copyright update
Erez Zadok [Fri, 27 Dec 2002 22:43:44 +0000 (22:43 +0000)]
2003 copyright update

22 years ago* rename "aux/" subdir into "m4/" so as to avoid problems with
Erez Zadok [Tue, 10 Dec 2002 22:32:55 +0000 (22:32 +0000)]
* rename "aux/" subdir into "m4/" so as to avoid problems with
MS-DOS systems (where "AUX" is a reserved name).  This required
fixing numerous files.

22 years ago* configure.in: don't check for bad hasmntopt() function if
Erez Zadok [Tue, 10 Dec 2002 20:23:51 +0000 (20:23 +0000)]
* configure.in: don't check for bad hasmntopt() function if
hasmntopt() doesn't exist on the system, because we will replace
it with our own version anyway.

* conf/transp/transp_sockets.c (amu_get_myaddress): use "%lx" in
dlog because htonl() returns a u_long.

22 years agoMention autofs-v4 on solaris9 works.
Erez Zadok [Tue, 10 Dec 2002 20:06:26 +0000 (20:06 +0000)]
Mention autofs-v4 on solaris9 works.

22 years ago* include/am_defs.h: use system's hasmntopt() only if it is found
Erez Zadok [Tue, 10 Dec 2002 19:55:31 +0000 (19:55 +0000)]
* include/am_defs.h: use system's hasmntopt() only if it is found
and it is not buggy.

* libamu/hasmntopt.c (nextmntopt): isspace() takes an int, not a
char.

* amd/am_ops.c, amd/amfs_auto.c, amd/autil.c, amd/nfs_subr.c,
amd/ops_cdfs.c, amd/ops_nfs.c, amd/srvr_nfs.c, libamu/hasmntopt.c,
libamu/mount_fs.c, libamu/mtab.c: rename all uses of hasmntopt()
to amu_hasmntopt().  Don't use hasmntopt() directly any more!

22 years ago* aux/macros/func_bad_hasmntopt.m4: new M4 macro to test for a bad
Erez Zadok [Tue, 10 Dec 2002 19:08:18 +0000 (19:08 +0000)]
* aux/macros/func_bad_hasmntopt.m4: new M4 macro to test for a bad
hasmntopt() function, which incorrectly finds the option "soft" in
a string "hard,softlookup,ro".

* libamu/hasmntopt.c (hasmntopt): use 'const' on two args to
hasmntopt(), to match what most systems use.

* aux/macros/header_templates.m4: template for HAVE_BAD_HASMNTOPT.

* configure.in: invoke test for bad hasmntopt()

* NEWS: minor new port, i386-pc-linux-rh8.0.

* bootstrap: remove any autom4te-*.cache directories, now that
autoconf uses a version number for them.

22 years ago Patches from Christos Zoulas:
Ion Badulescu [Tue, 10 Dec 2002 02:57:48 +0000 (02:57 +0000)]
Patches from Christos Zoulas:

-1- am_utils.h: add full prototypes
-2- amfs_auto.c make functions static and add prototypes
-3- map.c: kill double free
-5- transp_sockets.c: add full prototypes

22 years ago * doc/am-utils.texi (opts Option): document sftlookup
Ion Badulescu [Tue, 10 Dec 2002 02:51:47 +0000 (02:51 +0000)]
* doc/am-utils.texi (opts Option): document sftlookup

* NEWS: updated

22 years agocompile fixes
Ion Badulescu [Tue, 10 Dec 2002 02:09:56 +0000 (02:09 +0000)]
compile fixes

23 years agominor new ports
Erez Zadok [Fri, 22 Nov 2002 21:35:58 +0000 (21:35 +0000)]
minor new ports

23 years ago* amd/info_ldap.c (amu_ldap_rebind): gopt.ldap_cache_seconds is
Erez Zadok [Fri, 22 Nov 2002 21:34:00 +0000 (21:34 +0000)]
* amd/info_ldap.c (amu_ldap_rebind): gopt.ldap_cache_seconds is
%ld not %d.

* {amd,fsinfo}/Makefile.am: remove special rules for processing
yacc/lex files, now that autoconf/automake properly handle them
better (esp. now that bison 1.75 behaves differently than older
bison versions).

23 years ago* config.guess.long: updated script so it will properly find the
Erez Zadok [Thu, 21 Nov 2002 15:49:43 +0000 (15:49 +0000)]
* config.guess.long: updated script so it will properly find the
version number of the new Itanium 2 machines running "Red Hat
Linux Advanced Workstation release 2.1AW (Derry)".  The script now
will report ia64-unknown-linux-rh2.1AW.

23 years ago * amfs_auto_bgmount(): almost complete rewrite
Ion Badulescu [Thu, 21 Nov 2002 04:09:16 +0000 (04:09 +0000)]
* amfs_auto_bgmount(): almost complete rewrite

* fixed amfs_inherit to do the right thing and not dereference
freed mntfs'es

* #if 0'ed bogus code in fh_to_mp3() -- it is now done properly in
amfs_autofs_lookup_child()

* release the autofs_fh only in one place

* remove the mountpoint only if mf_refc == 1

* print the mntfs type in free_mntfs()

* new pseudo-mount option 'sftlookup' which causes lookups to
mounted shares from downed servers to return EIO; the default
depends on whether the mount is 'hard' or 'soft'

* improved querying of supported NFS versions on the server --
don't even try if it's known to be down

* solaris autofs mount code moved to transp_{sockets,tli}.c

* incipient (non-functional) AIX autofs support

23 years ago * doc/am-utils.texi (Keep-alives): removed outdated info about not
Ion Badulescu [Mon, 11 Nov 2002 20:18:58 +0000 (20:18 +0000)]
* doc/am-utils.texi (Keep-alives): removed outdated info about not
maintaining the state of TCP NFS servers

23 years agoaix-mount-helper-update
Erez Zadok [Tue, 5 Nov 2002 01:24:54 +0000 (01:24 +0000)]
aix-mount-helper-update

23 years ago * include/am_utils.h: prototype for ops_search()
Ion Badulescu [Mon, 4 Nov 2002 20:59:43 +0000 (20:59 +0000)]
* include/am_utils.h: prototype for ops_search()

* amd/am_ops.c (ops_search): new function for searching the right
set of ops for a given filesystem type

* amd/restart.c (restart): cleanup and split into two functions in
preparation for handling the restart of amd's own mount points
(restart_fake_mntfs): new function, factored out from restart()

23 years ago * include/am_utils.h: prototype for ops_search()
Ion Badulescu [Mon, 4 Nov 2002 19:51:37 +0000 (19:51 +0000)]
* include/am_utils.h: prototype for ops_search()

* amd/am_ops.c (ops_search): new function for searching the right
set of ops for a given filesystem type

* amd/restart.c (restart): cleanup and split into two functions in
preparation for handling the restart of amd's own mount points
(restart_fake_mntfs): new function, factored out from restart()

23 years agoremoved the "loop" mount option
Ion Badulescu [Mon, 4 Nov 2002 19:00:14 +0000 (19:00 +0000)]
removed the "loop" mount option

23 years ago- automatic support for loop mounts on Linux (deprecates the "loop" mount
Ion Badulescu [Mon, 4 Nov 2002 18:57:35 +0000 (18:57 +0000)]
- automatic support for loop mounts on Linux (deprecates the "loop" mount
  option)

23 years ago * amd/ops_cdfs.c (mount_cdfs): remove special code for loop device
Ion Badulescu [Mon, 4 Nov 2002 18:54:21 +0000 (18:54 +0000)]
* amd/ops_cdfs.c (mount_cdfs): remove special code for loop device
(cdfs_umount): ditto

* conf/mount/mount_linux.c (mount_linux): factor it out to
mount_linux_nfs() and mount_linux_nonfs()
(mount_linux_nonfs): generalize loop device support to all
filesystems (not just cdfs); make it automatic for anything that's
a regular file
(parse_opts): deprecate the explicit "loop" mount option
(do_mount_linux): minor cleanup

* conf/umount/umount_default.c (umount_fs2): release loop device
on umount()

23 years agocvs ignore updates
Erez Zadok [Sun, 3 Nov 2002 02:30:41 +0000 (02:30 +0000)]
cvs ignore updates

23 years agoSome AIX 5.2 fixes to compile. Note tested yet.
Erez Zadok [Sun, 3 Nov 2002 02:29:32 +0000 (02:29 +0000)]
Some AIX 5.2 fixes to compile.  Note tested yet.

23 years ago* config.guess, config.sub, doc/texinfo.tex: updates from
Erez Zadok [Sun, 3 Nov 2002 01:29:22 +0000 (01:29 +0000)]
* config.guess, config.sub, doc/texinfo.tex: updates from
the latest GNU distributions (2002-09-05).

23 years ago* conf/nfs_prot/nfs_prot_aix5_2.h: add more definitions from
Erez Zadok [Wed, 30 Oct 2002 15:53:12 +0000 (15:53 +0000)]
* conf/nfs_prot/nfs_prot_aix5_2.h: add more definitions from
mount.h for NFSOPT_* and NFSMNT_*.
Don't use typedefs that aren't found in system header files.

23 years agoremove temp added files
Erez Zadok [Wed, 30 Oct 2002 06:38:45 +0000 (06:38 +0000)]
remove temp added files

23 years agotemp add auto-generated files. easier than getting autotools to work on aix5.2
Erez Zadok [Wed, 30 Oct 2002 05:45:57 +0000 (05:45 +0000)]
temp add auto-generated files. easier than getting autotools to work on aix5.2

23 years agotemp add auto-generated files. easier than getting autotools to work on aix5.2
Erez Zadok [Wed, 30 Oct 2002 05:29:52 +0000 (05:29 +0000)]
temp add auto-generated files. easier than getting autotools to work on aix5.2

23 years ago* Makefile.am (EXTRA_DIST_CONF): distribute nfs_prot_aix5_2.h.
Erez Zadok [Wed, 30 Oct 2002 05:27:40 +0000 (05:27 +0000)]
* Makefile.am (EXTRA_DIST_CONF): distribute nfs_prot_aix5_2.h.

* conf/nfs_prot/nfs_prot_aix5_2.h: new file.

* aux/macros/struct_nfs_args.m4 (ac_cv_have_struct_nfs_args): look
for "struct aux52_nfs_args".

* aux/macros/check_nfs_prot_headers.m4: define new header file for
AIX 5.2.

23 years ago* scripts/amd.conf.5 (ldap_proto_version): document in amd.conf
Erez Zadok [Mon, 21 Oct 2002 19:12:59 +0000 (19:12 +0000)]
* scripts/amd.conf.5 (ldap_proto_version): document in amd.conf
man page.

* scripts/amd.conf-sample (ldap_proto_version): show example of use

* doc/am-utils.texi (ldap_proto_version Parameter): document new
amd.conf option.

* amd/conf.c (gopt_ldap_proto_version): new conf function to
support ldap_proto_version amd.conf parameter.

* amd/amd.h: field to hold LDAP protocol version.

* amd/amd.c (init_global_options): set default for
ldap_proto_version.  ldap_proto_version patch from George Ross
<gdmr@dcs.ed.ac.uk> and Tim Colles <timc@inf.ed.ac.uk>.

* amd/info_ldap.c (amu_ldap_unbind): ignore SIGPIPE errors while
unbinding from an LDAP server that may have been restarted.  Fix
from George Ross <gdmr@dcs.ed.ac.uk>.

23 years ago * remove all autoconf stuff added for sys_nerr
Ion Badulescu [Wed, 2 Oct 2002 02:05:13 +0000 (02:05 +0000)]
    * remove all autoconf stuff added for sys_nerr

        * amq/amq.c, libamu/xutil.c, hlfsd/hlfsd.c: always use strerror

        * libamu/strerror.c: more explicit text for unknown errno's

23 years ago* include/am_defs.h: define "extern int sys_err" if needed.
Erez Zadok [Tue, 1 Oct 2002 14:17:48 +0000 (14:17 +0000)]
* include/am_defs.h: define "extern int sys_err" if needed.

* aux/macros/header_templates.m4: template for
HAVE_EXTERN_SYS_NERR.

* hlfsd/hlfsd.h, libamu/xutil.c (expand_error), amq/amq.c
(show_mi): remove "extern int sys_err"

* configure.in: execute test for "extern int sys_err"

* Makefile.am (EXTRA_DIST_AUX): distribute new extern_sys_err.m4 file.

* aux/macros/extern_sys_nerr.m4: new test to check for existence
of "extern int sys_nerr" definition in system headers.

23 years ago * libamu/xutil.c (dbg_opt): bring comments in line with the code
Ion Badulescu [Tue, 17 Sep 2002 15:24:49 +0000 (15:24 +0000)]
* libamu/xutil.c (dbg_opt): bring comments in line with the code

* hlfsd/hlfsd.c (main): use amuDebug() instead of touching
debug_flags directly

* amd/amd.c (main): don't init debug_flags, leave it as zero (no
debugging by default)

23 years ago Debug code sanitization:
Ion Badulescu [Wed, 11 Sep 2002 15:56:54 +0000 (15:56 +0000)]
Debug code sanitization:

- amuDebug() becomes an expression, and explicit if() statements
are added around it throughout the code
- amuDebugNo() goes away (ugh!)
- D_AMQ, D_DAEMON and D_FORK reverse their meaning
- D_ALL contains only options that don't affect amd's functionality

23 years ago * amd/amfs_auto.c (free_continuation): avoid double-free'ing the
Ion Badulescu [Wed, 4 Sep 2002 19:54:25 +0000 (19:54 +0000)]
* amd/amfs_auto.c (free_continuation): avoid double-free'ing the
mntfs if there was an error/timeout

23 years agoold changelog for aix 5.1 changes
Ion Badulescu [Wed, 4 Sep 2002 15:07:35 +0000 (15:07 +0000)]
old changelog for aix 5.1 changes

23 years ago * amd/amfs_auto.c (amfs_auto_lookup_mntfs): use ereturn() instead
Ion Badulescu [Wed, 4 Sep 2002 15:06:44 +0000 (15:06 +0000)]
* amd/amfs_auto.c (amfs_auto_lookup_mntfs): use ereturn() instead
of "return NULL" to signal an error to the upper layers
(amfs_auto_mount): use strdup so the string can be free'd later on
[Debian bug report from Matt Chapman <matthewc@cse.unsw.edu.au>]

23 years ago Patches from George Ross <gdmr@dcs.ed.ac.uk>:
Ion Badulescu [Tue, 3 Sep 2002 16:02:54 +0000 (16:02 +0000)]
Patches from George Ross <gdmr@dcs.ed.ac.uk>:

* amd/amfs_auto.c (assign_error_mntfs): do not discard old mntfs,
it will be done in free_continuation(); assorted debugging messages

* amd/srvr_nfs.c (nfs_timed_out): allocate a new XID on server
timeout to avoid problems with late ping replies

* amd/mntfs.c (free_mntfs): sanity check for mf_refc; assorted
debugging messages

* amd/map.c (unmount_node): more verbose debug message

23 years ago * amd/amfs_auto.c (amfs_auto_lookup_mntfs): prevent deferencing
Ion Badulescu [Mon, 29 Jul 2002 16:14:07 +0000 (16:14 +0000)]
* amd/amfs_auto.c (amfs_auto_lookup_mntfs): prevent deferencing
de-allocated memory in str3cat
(amfs_auto_lookup_mntfs): check for buffer overflow

23 years ago* scripts/expn.{1,in}: fixed typos as reported by Thomas Klausner
Erez Zadok [Thu, 11 Jul 2002 14:28:19 +0000 (14:28 +0000)]
* scripts/expn.{1,in}: fixed typos as reported by Thomas Klausner
<wiz@danbala.ifoer.tuwien.ac.at>.

23 years agoyou can do NFS mounts. In the past we found that some NFS clients
Erez Zadok [Thu, 27 Jun 2002 15:06:02 +0000 (15:06 +0000)]
you can do NFS mounts.  In the past we found that some NFS clients

23 years ago* doc/Makefile.am (install-html): don't use locally hacked
Erez Zadok [Thu, 27 Jun 2002 02:14:59 +0000 (02:14 +0000)]
* doc/Makefile.am (install-html): don't use locally hacked
texi2html features.

* conf/transp/transp_sockets.c (amu_get_myaddress): Most modern
systems should use 127.0.0.1 as the localhost address over which
you can do NFS mounts.  In the past we found that some NFS servers
may not allow mounts from localhost.  So we used get_myaddress()
and that seemed to work.  Alas, on some other systems,
get_myaddress() may return one of the interface addresses at
random, and thus use a less efficient IP address than 127.0.0.1.
The solution is to hard-code 127.0.0.1, but still check if
get_myaddress() returns a different value and warn about it.

* doc/am-utils.texi: don't use ':' in @cindex entries.

23 years agochanged version to 6.1b2-pre
Ion Badulescu [Wed, 26 Jun 2002 19:42:41 +0000 (19:42 +0000)]
changed version to 6.1b2-pre

23 years ago * Released beta version 6.1b1 am-utils-6_1b1
Ion Badulescu [Wed, 26 Jun 2002 04:28:37 +0000 (04:28 +0000)]
    * Released beta version 6.1b1

23 years ago * include/am_compat.h: better test for struct netconfig
Ion Badulescu [Tue, 25 Jun 2002 02:49:55 +0000 (02:49 +0000)]
    * include/am_compat.h: better test for struct netconfig
        (!HAVE_NETCONFIG_H && !HAVE_SYS_NETCONFIG_H)

23 years ago * aux/macros/struct_nfs_args.m4: added test for aix51_nfs_args
Ion Badulescu [Tue, 25 Jun 2002 02:35:58 +0000 (02:35 +0000)]
* aux/macros/struct_nfs_args.m4: added test for aix51_nfs_args

* conf/nfs_prot/nfs_prot_aix5_1.h: rename aix42_nfs_args to
aix51_nfs_args, rename unknown fields to u<number>, add the
unknown new field into the middle of the old 4.2 structure

23 years ago * aux/macros/check_nfs_prot_headers.m4: added new header for aix5.1+
Ion Badulescu [Mon, 24 Jun 2002 22:07:23 +0000 (22:07 +0000)]
* aux/macros/check_nfs_prot_headers.m4: added new header for aix5.1+

23 years ago * buildall: fix 'buildall -b' on hpux9 and aix5.1
Ion Badulescu [Mon, 24 Jun 2002 17:25:12 +0000 (17:25 +0000)]
* buildall: fix 'buildall -b' on hpux9 and aix5.1

23 years ago * INSTALL: updated
Ion Badulescu [Mon, 24 Jun 2002 15:41:32 +0000 (15:41 +0000)]
* INSTALL: updated

* conf/autofs/autofs_solaris_v1.c (autofs_link_mount): compile fix
(autofs_link_umount): ditto

* amd/mntfs.c (init_mntfs): don't use autofs if !amd_use_autofs

23 years ago * conf/autofs/autofs_linux.c: compile fixes for autofs v3
Ion Badulescu [Mon, 24 Jun 2002 03:51:25 +0000 (03:51 +0000)]
* conf/autofs/autofs_linux.c: compile fixes for autofs v3

23 years ago * conf/autofs/autofs_solaris_v2_v3.c (autofs_mounted): no
Ion Badulescu [Mon, 24 Jun 2002 03:05:14 +0000 (03:05 +0000)]
* conf/autofs/autofs_solaris_v2_v3.c (autofs_mounted): no
expirations needed;
(autofs_timeout_mp): likewise

* conf/autofs/autofs_solaris_v1.c (autofs_mounted): no expirations
needed;
(autofs_timeout_mp): likewise

* conf/autofs/autofs_linux.c (autofs_mounted): set the first
expiration interval

* amd/autil.c (am_mounted): call autofs_mounted here, instead of
in mf_mounted()

* amd/amd.h (NEVER): moved here from map.c
(autofs_mounted): change argument from mntfs* to am_node*

23 years ago (autofs_timeout_mp): don't update the ttl if we're going down
Ion Badulescu [Sun, 23 Jun 2002 16:28:12 +0000 (16:28 +0000)]
(autofs_timeout_mp): don't update the ttl if we're going down

23 years ago * conf/autofs/autofs_linux.c (autofs_mounted): set the kernel
Ion Badulescu [Sun, 23 Jun 2002 16:10:03 +0000 (16:10 +0000)]
* conf/autofs/autofs_linux.c (autofs_mounted): set the kernel
timeout on the autofs mountpoint to cache_duration (gopt.am_timeo)

* amd/map.c (timeout_mp): don't call autofs_timeout_mp unless the
timeout on that particular am_node has expired

23 years ago * conf/autofs/autofs_linux.c (autofs_timeout_mp): really update
Ion Badulescu [Sun, 23 Jun 2002 15:12:08 +0000 (15:12 +0000)]
* conf/autofs/autofs_linux.c (autofs_timeout_mp): really update
the ttl, as per the comment (compilers are not very good at
translating comments into code...)

* amd/amfs_auto.c (amfs_auto_lookup_one_mntfs): strdup am_path
instead of opt_rfs into opt_fs for autofs, thus avoiding conflicts
between link mounts pointing to the same target

23 years agomore additions
Ion Badulescu [Sun, 23 Jun 2002 05:43:31 +0000 (05:43 +0000)]
more additions

23 years ago * conf/autofs/autofs_linux.c (send_fail, send_ready): new helper
Ion Badulescu [Sun, 23 Jun 2002 05:37:51 +0000 (05:37 +0000)]
* conf/autofs/autofs_linux.c (send_fail, send_ready): new helper
functions for sending messages back to the kernel
(autofs_expire_one): initial implementation of the kernel-based
expiration handler
(autofs_handle_expire): call autofs_expire_one()
(autofs_handle_expire_multi): ditto
(autofs_umount_succeeded): search pending_umounts, send message
back to the kernel
(autofs_umount_failed): ditto
(autofs_mount_succeeded): tell amd core not to expire autofs entries
(autofs_timeout_mp): expiration function for autofs filesystems
(autofs_timeout_mp_task): helper function for autofs_timeout_mp

* conf/autofs/autofs_linux.h: new struct autofs_pending_umount for
keeping tracking of pending umounts
(autofs_fh_t) rename pending to pending_mounts, add pending_umounts

* conf/autofs/autofs_solaris_v1.c (autofs_timeout_mp): stub

* conf/autofs/autofs_solaris_v2_v3.c (autofs_timeout_mp): stub

* amd/map.c (timeout_mp): call autofs_timeout_mp() for autofs
filesystems

* amd/autil.c (mf_mounted): move here the call autofs_mounted()
from amfs_auto_mounted().

23 years agoupdate tasks
Erez Zadok [Sun, 23 Jun 2002 05:12:17 +0000 (05:12 +0000)]
update tasks

23 years agocommit stamp-h.in and aux/amdgrep
Erez Zadok [Sun, 23 Jun 2002 02:37:31 +0000 (02:37 +0000)]
commit stamp-h.in and aux/amdgrep

23 years agoupdate NEWS and prep for 6.1b1
Erez Zadok [Sun, 23 Jun 2002 02:30:53 +0000 (02:30 +0000)]
update NEWS and prep for 6.1b1

23 years agominor updates
Ion Badulescu [Sun, 23 Jun 2002 01:57:20 +0000 (01:57 +0000)]
minor updates

23 years agoamd/amd.8, amd/get_args.c (get_args): document amd -A option.
Erez Zadok [Sun, 23 Jun 2002 01:50:10 +0000 (01:50 +0000)]
amd/amd.8, amd/get_args.c (get_args): document amd -A option.

23 years ago* amd/nfs_start.c (mount_automounter): Security fix. if user sets
Erez Zadok [Sun, 23 Jun 2002 01:46:58 +0000 (01:46 +0000)]
* amd/nfs_start.c (mount_automounter): Security fix.  if user sets
-D noamq, don't even create listening socket.  Suggestion by Ed
Ravin <eravin@panix.com>.

23 years agoupdate help message
Ion Badulescu [Sun, 23 Jun 2002 01:46:22 +0000 (01:46 +0000)]
update help message

23 years ago * hlfsd/homedir.c (homedir): use setgid() instead of setegid()
Ion Badulescu [Sun, 23 Jun 2002 01:38:36 +0000 (01:38 +0000)]
* hlfsd/homedir.c (homedir): use setgid() instead of setegid()

23 years ago * ALL: #ifdef cleanups, unify some TLI/socket function prototypes
Ion Badulescu [Sun, 23 Jun 2002 01:05:37 +0000 (01:05 +0000)]
* ALL: #ifdef cleanups, unify some TLI/socket function prototypes

23 years ago* doc/am-utils.texi: Added @dircategory Administration.
Erez Zadok [Sun, 23 Jun 2002 00:57:37 +0000 (00:57 +0000)]
* doc/am-utils.texi: Added @dircategory Administration.

23 years agotypo
Erez Zadok [Sat, 22 Jun 2002 23:44:52 +0000 (23:44 +0000)]
typo

23 years ago* conf/nfs_prot/nfs_prot_netbsd1_4.h: minor port to support
Erez Zadok [Sat, 22 Jun 2002 23:06:22 +0000 (23:06 +0000)]
* conf/nfs_prot/nfs_prot_netbsd1_4.h: minor port to support
na_gid and na_uid.  NetBSD patch from Jun-ichiro itojun Hagino
<itojun@iijlab.net>.

23 years agosilence a gcc warning
Ion Badulescu [Sat, 22 Jun 2002 23:01:38 +0000 (23:01 +0000)]
silence a gcc warning

23 years ago* doc/am-utils.texi (Option): document xlatecookie mount option.
Erez Zadok [Sat, 22 Jun 2002 22:49:56 +0000 (22:49 +0000)]
* doc/am-utils.texi (Option): document xlatecookie mount option.

* libamu/mount_fs.c (compute_nfs_args): support "xlatecookie"
NFS mount option.  Patch from Matthias Scheler <tron@zhadum.de>
for NetBSD.

23 years ago * conf/autofs/autofs_solaris_v1.h: add FS_MBACKGROUND to
Ion Badulescu [Sat, 22 Jun 2002 22:43:27 +0000 (22:43 +0000)]
    * conf/autofs/autofs_solaris_v1.h: add FS_MBACKGROUND to
        AUTOFS_LINK_FS_FLAGS

        * conf/autofs/autofs_solaris_v1.c: convert link mounts to lofs
        mounts in autofs_link_mount/umount

23 years agocompile fix
Ion Badulescu [Sat, 22 Jun 2002 22:16:30 +0000 (22:16 +0000)]
compile fix

23 years ago * configure.in: check for devid inside struct umntrequest
Ion Badulescu [Sat, 22 Jun 2002 21:53:06 +0000 (21:53 +0000)]
* configure.in: check for devid inside struct umntrequest

* conf/autofs/autofs_solaris_v2_v3.c (xdr_umntrequest): handle the
new umntrequest structure in v4.
(autofs_unmount_2_req): ditto

* README.autofs: updated for Solaris 2.5/2.5.1

23 years agotypo fix
Erez Zadok [Sat, 22 Jun 2002 21:42:48 +0000 (21:42 +0000)]
typo fix

23 years ago* configure.in: only define LDAP/Hesiod if the user asked for that
Erez Zadok [Sat, 22 Jun 2002 21:32:32 +0000 (21:32 +0000)]
* configure.in: only define LDAP/Hesiod if the user asked for that
map, and both headers and libraries exist.

23 years ago* doc/am-utils.texi: fix typos. Can't use ":" in @cindex entries.
Erez Zadok [Sat, 22 Jun 2002 20:57:32 +0000 (20:57 +0000)]
* doc/am-utils.texi: fix typos.  Can't use ":" in @cindex entries.

23 years ago* doc/am-utils.texi, scripts/amd.conf.5, scripts/amd.conf-sample,
Erez Zadok [Sat, 22 Jun 2002 20:52:43 +0000 (20:52 +0000)]
* doc/am-utils.texi, scripts/amd.conf.5, scripts/amd.conf-sample,
amd/amd.8: document amd -A option.

* amd/get_args.c (get_args): support "amd -A arg" option to
override the system's detected architecture.  Patch from George
Ross <gdmr@dcs.ed.ac.uk>.

23 years agobuildall: pass the extra arguments after -- to configure, not to make
Ion Badulescu [Sat, 22 Jun 2002 19:50:50 +0000 (19:50 +0000)]
buildall: pass the extra arguments after -- to configure, not to make

23 years ago* amd/info_ldap.c (amu_ldap_rebind): don't use ldap_enable_cache()
Erez Zadok [Sat, 22 Jun 2002 18:16:13 +0000 (18:16 +0000)]
* amd/info_ldap.c (amu_ldap_rebind): don't use ldap_enable_cache()
if the system doesn't have it.

* configure.in: detect existence of ldap_enable_cache function,
because it doesn't exist on Solaris 9's latest ldap libraries.

* amd/info_ldap.c: LDAP patches from George Ross
<gdmr@dcs.ed.ac.uk>.  Rework of old code, support for wildcards in
LDAP queries, and an FD leak fix.

23 years ago * BUGS: update for direct mounts on Linux; document the brokenness
Ion Badulescu [Sat, 22 Jun 2002 17:18:22 +0000 (17:18 +0000)]
* BUGS: update for direct mounts on Linux; document the brokenness
of /bin/sh on AIX 5.1 and HP-UX 9

* NEWS: aix5.1 port, aix4.3 workaround

23 years ago * buildall: use ksh for configure on aix5.1
Ion Badulescu [Sat, 22 Jun 2002 16:52:09 +0000 (16:52 +0000)]
* buildall: use ksh for configure on aix5.1

* Makefile.am: added nfs_prot_aix4_3.h to EXTRA_DIST_CONF

* conf/mount/mount_aix.c (mount_aix3): if the NFSv3 mount fails
with EINVAL and we have MOUNT_TYPE_NFS3_BIS defined, retry the
mount with the alternative nfs3_args structure

* conf/nfs_prot/nfs_prot_aix4_3.h: added alternative nfs3_args
structure, similar to that in aix5.1, for a hack that tries to
compensate for IBM's brain fart

* conf/nfs_prot/nfs_prot_aix5_1.h: new nfs_prot header for aix5.1+

* aux/macros/check_nfs_prot_headers.m4: added new header for aix5.1+

23 years ago* ltmain.sh: use libtool 1.4d, needed support for newer AIX.
Erez Zadok [Sat, 22 Jun 2002 16:03:28 +0000 (16:03 +0000)]
* ltmain.sh: use libtool 1.4d, needed support for newer AIX.

23 years ago * aux/macros/check_autofs_style.m4: enable autofs_v2_v3 for
Ion Badulescu [Fri, 21 Jun 2002 21:46:11 +0000 (21:46 +0000)]
* aux/macros/check_autofs_style.m4: enable autofs_v2_v3 for
all solaris2.6+, not just for 2.[6-8]

* conf/autofs/autofs_default.h: disable autofs if configure
detects it

23 years agoupdate tasks
Erez Zadok [Fri, 21 Jun 2002 18:19:41 +0000 (18:19 +0000)]
update tasks

23 years ago* aux/macros/with_addon.m4: correct M4 quoting.
Erez Zadok [Fri, 21 Jun 2002 17:12:12 +0000 (17:12 +0000)]
* aux/macros/with_addon.m4: correct M4 quoting.

* aux/macros/cache_check_dynamic.m4: correct M4 quoting.

* bootstrap: show version of autotools being used.  Helps
maintainer debugging.

* configure.in: new proper syntax for libtool and
ansi2knr-filtering rules, required by autoconf 1.53 and higher.

23 years ago* aux/GNUmakefile: new search paths for "update" target.
Erez Zadok [Fri, 21 Jun 2002 14:07:28 +0000 (14:07 +0000)]
* aux/GNUmakefile: new search paths for "update" target.

* config.guess, config.sub, doc/texinfo.tex, ltmain: updates from
the latest GNU distributions.

* mdate-sh: new script for autotools.

23 years ago * amd/amfs_auto.c (amfs_auto_lookup_child): split part of this
Ion Badulescu [Thu, 20 Jun 2002 14:49:22 +0000 (14:49 +0000)]
* amd/amfs_auto.c (amfs_auto_lookup_child): split part of this
function into the new amfs_auto_lookup_one_child function; return
null if all ivecs failed to match

23 years ago* config.guess.long: support SuSE version names in long
Erez Zadok [Fri, 31 May 2002 01:28:39 +0000 (01:28 +0000)]
* config.guess.long: support SuSE version names in long
config.guess format.

23 years agotasks: noamq opt should be always available
Erez Zadok [Wed, 15 May 2002 16:29:35 +0000 (16:29 +0000)]
tasks: noamq opt should be always available

23 years ago* scripts/lostaltmail.in (vrfy_user): unlink temp files if too
Erez Zadok [Wed, 1 May 2002 23:19:17 +0000 (23:19 +0000)]
* scripts/lostaltmail.in (vrfy_user): unlink temp files if too
small.

23 years ago * hlfsd/hlfsd.c (main): compile fix for --enable-debug=no
Ion Badulescu [Sun, 7 Apr 2002 16:12:08 +0000 (16:12 +0000)]
* hlfsd/hlfsd.c (main): compile fix for --enable-debug=no

23 years ago ***Initial support for Solaris 2.5/2.5.1 autofs***
Ion Badulescu [Fri, 29 Mar 2002 20:01:24 +0000 (20:01 +0000)]
***Initial support for Solaris 2.5/2.5.1 autofs***
type==link and sublinks are not yet functional

* README.autofs: solaris 2.5/2.5.1 info, other minor changes

* doc/am-utils.texi (History): document solaris 2.5+ support

* include/am_utils.h: new member in struct mntfs: mfs_real_mount;
autofs_fs_flags becomes conditional of HAVE_AUTOFS_FS; new
prototype for umount_fs2(); extra argument for UMOUNT_FS()

* hlfsd/hlfsd.c: use the new mount_fs2() and UMOUNT_FS()

* libamu/mount_fs.c (mount_fs): wrapper around the new mount_fs2()
function; swap mntdir and real_mntdir as necessary for solaris 2.5
autofs support

* conf/umount/umount_default.c (umount_fs2): swap mntdir and
real_mntdir as necessary for solaris 2.5 autofs support

* conf/umount/umount_*.c (umount_fs): wrapper around the new
umount_fs2() function
(umount_fs2): new function which takes the real mountpoint as an
extra argument

* conf/nfs_prot/nfs_prot_sunos5_5.h: allow autofs support to be
compiled in

* conf/autofs/autofs_solaris_v1.h (autofs_strdup_space_hack): new
function that appends a space at the end of a string (the famous
"Autofs Space Protocol")

* conf/autofs/autofs_solaris_v1.c: almost complete reimplementation

* conf/autofs/autofs_*.h (AUTOFS_*_FS_FLAGS): add
system-specific definitions for these macros

* conf/autofs/autofs_linux.c (create_autofs_service): remove hacks
which are now handled properly by more generic code
(autofs_link_umount): complain if umount_fs() fails, rmdir the
mountpoint on success
(autofs_umount_succeeded): remove the rmdirs() code, now handled
by generic code
(autofs_mount_succeeded): ditto

* amd/nfs_start.c (checkup): implement it as an emtpy stub if
DEBUG is not defined
(run_rpc): call autofs_add_fdset() after umount_exported() to
avoid passing invalid file descriptors to select(); use plog()
instead of perror()

* amd/mntfs.c (init_mntfs): initialize mf_real_mount from mp
(uninit_mntfs): free mf_real_mount

* amd/autil.c (am_unmounted): don't remove the mount point if a
remount is pending, also don't make the removal conditional on not
being an autofs mount point

* amd/amfs_nfsx.c (amfs_nfsx_remount): call mkdirs() on
mf->mf_real_mount instead of mf->mf_mount

* amd/amfs_nfsl.c, amd/amfs_nfsx.c: (amfs_nfsl_umounted): call
rmdirs() on mf->mf_real_mount instead of mf->mf_mount

* amd/amfs_host.c (make_mntpt): change the third argument to be
the mountpoint, not the entire mntfs structure
(do_mount): takes real_mntdir as an extra argument

* amd/amfs_auto.c (amfs_auto_bgmount): move the creation of the
mountpoint here from try_mount(), otherwise the change to mf_flags
is lost for background mounts; remove the mountpoint if we created
it and the mount fails
(amfs_auto_lookup_mntfs): re-initialize mf->mf_real_mount using
autofs_strdup_space_hack() if NEED_AUTOFS_SPACE_HACK is defined

* amfs_*.c, ops_*.c: initialize autofs_fs_flags using the
AUTOFS_*_FS_FLAGS macro defined in the system-specific autofs
header; UMOUNT_FS() takes mf->mf_real_mount as an extra argument;
mount_fs() becomes mount_fs2() and takes mf->mf_real_mount as an
extra argument

* amd/amd.h, amd/ops_nfs.c, amd/amfs_host.c: mount_nfs_fh takes
the real mountpoint as an additional argument

23 years ago* amd/ops_cdfs.c (mount_cdfs): correctly interpret error return
Erez Zadok [Fri, 29 Mar 2002 01:46:21 +0000 (01:46 +0000)]
* amd/ops_cdfs.c (mount_cdfs): correctly interpret error return
values back from mount_fs().  Return correct error number from
this function.

* conf/mount/mount_linux.c (do_mount_linux): cleanup loop mount
cruft from this function, moved elsewhere.
(mount_linux): prepare for loop-device mounts of ISO images.