Ion Badulescu [Sun, 13 Jul 2003 17:41:54 +0000 (17:41 +0000)]
more compile fixes
Ion Badulescu [Sun, 13 Jul 2003 17:40:46 +0000 (17:40 +0000)]
compile fix
Ion Badulescu [Sun, 13 Jul 2003 17:02:47 +0000 (17:02 +0000)]
fix missing parentheses -- parse error
Ion Badulescu [Sun, 13 Jul 2003 14:40:45 +0000 (14:40 +0000)]
* tasks: some updates
* conf/transp/transp_tli.c (check_pmap_up): new function which
detects if the remote portmapper is functional
(amu_clnt_create_best_version): removed
(get_nfs_version): use a much simplified version of the old
amu_clnt_create_best_version(), based on clnt_create_vers() and
its _timed() counterpart
* conf/transp/transp_sockets.c (check_pmap_up): new function which
detects if the remote portmapper is functional
(pmap_ping): deleted
(get_nfs_version): removed calls to pmap_ping, already done by
caller
* amd/srvr_nfs.c: call check_pmap_up() before continuing with
get_nfs_version()
* amd/amfs_generic.c: updated a couple of log messages
* configure.in: detect clnt_create_vers and clnt_create_vers_timed;
changed LIBTOOL versioning to 3:0:0
Erez Zadok [Sun, 13 Jul 2003 01:19:59 +0000 (01:19 +0000)]
* amd/conf_parse.y, amd/conf_tok.l: pretty comments on # cpp
macros.
Ion Badulescu [Sun, 13 Jul 2003 00:37:20 +0000 (00:37 +0000)]
* conf/autofs/autofs_linux.h (AUTOFS_HOST_FS_FLAGS): removed
FS_AUTOFS because the host mount cannot be a top level mount
(AUTOFS_DIRECT_FS_FLAGS): removed FS_AUTOFS because Linux autofs
doesn't support direct mounts
Ion Badulescu [Fri, 11 Jul 2003 01:43:07 +0000 (01:43 +0000)]
* include/am_utils.h (dlog): improved version for gcc, using
vararg macros
* amd/rpc_fwd.c (fwd_packet): unused variable when compiling
without debugging
Erez Zadok [Thu, 10 Jul 2003 17:39:34 +0000 (17:39 +0000)]
* include/am_utils.h (dlog): change the #define of non-debugging
dlog to "nothing" so that all that'll be left behind is a list of
args in parenthesis (arg,arg,...). GCC and other native C
compilers seem OK with it, even if it doesn't optimize away the
whole debugging line.
* ltmain.sh: was from libtool 1.4.2. updated to libtool 1.4.3,
the latest on RH9 systems (but is not the latest libtool
available). Stay with stable version in preparation for 6.1
release.
* config.{guess,sub}, doc/texinfo.tex: update to latest off of
ftp.gnu.org.
* amd/amfs_inherit.c (amfs_inherit_inherit): don't use // C++
style comments: breaks non-C++ compilers (like AIX xlC 6)
Ion Badulescu [Wed, 2 Jul 2003 19:29:51 +0000 (19:29 +0000)]
* doc/am-utils.texi (opts Option): document ignore_portmapper option
* conf/transp/transp_sockets.c (get_nfs_version): better
protocol/version cycling while probing remote server; better log
messages
* amd/srvr_nfs.c (start_ping): improved log message
(find_nfs_srvr): always use requested nfs_version/nfs_proto; make
sure we have a valid NFS port; start the server as "valid, down" if
the remote portmapper tells us the NFS service is not running;
implement the "ignore_portmapper" pseudo-mount option
* amd/rpc_fwd.c (fwd_packet): better debug messages
* amd/ops_nfs.c (got_nfs_fh): log a messages if a root fh is
denied; call wakeup even if mountd call fails
* amd/amq_subr.c (xdr_amq_mount_info_qelem): use FSRV_ISUP/ISDOWN
instead of checking the flags directly
* amd/srvr_amfs_auto.c (free_srvr): ditto
* amd/amfs_generic.c (amfs_bgmount): refined some error/debug
messages
* amd/amd.h (FSRV_ERROR): new macro
(FSRV_ISDOWN, FSRV_ISUP): a server that doesn't exist (i.e. it's a
local filesystem) is always up
Erez Zadok [Mon, 30 Jun 2003 16:55:47 +0000 (16:55 +0000)]
* amd/autil.c (am_mounted): set AMF_NOTIMEOUT if either unmount or
umount options are present.
* doc/am-utils.texi (Program Filesystem): document alias options
to unmount:=, umount:=.
* amd/opts.c (expansions): initialize opt_umount.
(to_free): initialize opt_umount.
* amd/amfs_program.c (amfs_program_match): ensure that only one of
umount:= or unmount:= options are specified, but that at least one
of them is listed.
* amd/amd.h: support unmount:=XXX as well as umount:=XXX (too
annoying in type:program, when one forgets the 'n' in "unmount").
They are two separate fields, so we can catch mistakes when
someone tries to define both options.
* doc/am-utils.texi (Program Filesystem): explain that both mount
and unmount options must be specified. Correct example to show
both.
Erez Zadok [Wed, 25 Jun 2003 19:51:10 +0000 (19:51 +0000)]
* XXX: beginning of new amd.conf option map_defaults: will parse
the option and set remember it in the right places. Need to
document this and actually hook it up with the rest of the code.
Any volunteers? :-)
* scripts/amd.conf-sample (map_defaults): example of map_defaults
amd.conf option.
* amd/conf.c (reset_cf_map): initialize global and per-mount
map_defaults.
(gopt_map_defaults): parse global map_defaults.
(process_regular_option,ropt_map_defaults): parse per-map
map_defaults amd.conf option.
* amd/amd.h: a place to store global and per-mount map_defaults.
* BUGS: more notes about AIX 5.2 problems and how to overcome
them.
Erez Zadok [Tue, 10 Jun 2003 08:10:15 +0000 (08:10 +0000)]
* doc/Makefile.am: force version.texi to be rebuilt regardless of
maintainer mode. Silly Automake will not build version.texi if
maintainer mode is off (this is hardcoded into the automake perl
script!). According to the Automake maintainers, users should
always build in CVS trees with maintainer-mode on; but what if I
don't want to?! I don't want to distribute Makefiles with
maintained rules in them to users. The Automake maintainers also
say that "make dist" will rebuild version.texi no matter what. I
find that not to be the case. It failed to run a "make" before
"make dist" because version.texi doesn't exist! Chicken and Egg
situation. So, until Automake deals with version.texi in a more
flexible and friendly manner, I adapted a rule to build
version.texi and inserted it in this Makefile.am.
Erez Zadok [Mon, 9 Jun 2003 16:58:01 +0000 (16:58 +0000)]
* mk-amd-map/mk-amd-map.c (main): open temp db file using O_EXCL,
next best thing to using mkstemp(). Patch from Hendrik Scholz
<hscholz@raisdorf.net>.
* applied fixes from Rainer Orth for Solaris 8.
Ion Badulescu [Thu, 8 May 2003 17:59:45 +0000 (17:59 +0000)]
added Sean Fagan
Ion Badulescu [Thu, 8 May 2003 17:58:09 +0000 (17:58 +0000)]
* libamu/mount_fs.c (compute_automounter_mount_flags): use
MNT2_GEN_OPT_AUTOMNTFS if available; minor cleanup
* m4/macros/header_templates.m4: added template for
MNT2_GEN_OPT_AUTOMOUNTED
Ion Badulescu [Thu, 1 May 2003 18:00:06 +0000 (18:00 +0000)]
compile fix for ops_xfs.c when autofs support is enabled
Erez Zadok [Wed, 23 Apr 2003 14:49:58 +0000 (14:49 +0000)]
* conf/transp/transp_sockets.c (create_amq_service): minor cpp
directive indentation and commenting.
* conf/transp/transp_sockets.c (create_amq_service): Ugly *BSD fix
for an RPC library DoS issue (original patch from Martin Blapp,
Ion Badulescu [Wed, 23 Apr 2003 03:19:16 +0000 (03:19 +0000)]
* conf/transp/transp_sockets.c (create_amq_service): Ugly *BSD fix for
an RPC library DoS issue (original patch from Martin Blapp,
massaged into something more digestable by me)
Ion Badulescu [Tue, 15 Apr 2003 02:01:47 +0000 (02:01 +0000)]
* conf/autofs/autofs_solaris_v2_v3.c: removed autofs_free_data(),
left over from the recent cleanup
Erez Zadok [Mon, 14 Apr 2003 01:22:40 +0000 (01:22 +0000)]
* doc/Makefile.am (DVIPS): use proper options for dvips.
* doc/am-utils.texi (opts Option): document new 'unmount' option,
and better explain the 'nounmount' option. Also some misc options
for better generation of html manual.
* doc/Makefile.am (install-html): support newer text2html 4.0
options, as older options were renamed or changed behavior.
* amd/autil.c (am_mounted): support new 'unmount' option, to allow
all file system mounts to timeout and thus expire. This option is
useful for removable local media such as CD-ROMs, USB drives,
etc. so they can expire when not in use, and get unmounted (such
drives can get work out when they keep spinning). Patch from
Christos Zoulas <christos@zoulas.com> (originally from Koji
Imada).
Erez Zadok [Thu, 10 Apr 2003 15:55:37 +0000 (15:55 +0000)]
* configure.in: use AM_MAINTAINER_MODE, so maintainer-only rules
do not get added to Makefiles by default (they are confusing to
users who don't have autotools installed).
Ion Badulescu [Wed, 9 Apr 2003 13:06:55 +0000 (13:06 +0000)]
* amd/mntfs.c (find_mntfs): revert the "change of philosophy" (see
the 2001-05-23 entry) back to the 6.0 code
Erez Zadok [Fri, 4 Apr 2003 15:51:55 +0000 (15:51 +0000)]
* libamu/xutil.c (switch_to_logfile): don't try to print logfile
if it is null (strlen core dump on solaris). Bug report from John
P. Rouillard <rouilj@ieee.org>.
Erez Zadok [Mon, 31 Mar 2003 20:49:48 +0000 (20:49 +0000)]
* fsinfo/fsinfo.8: typo co-ordinate -> coodinate. Typo report
from Perry E. Metzger" <perry@piermont.com>.
Erez Zadok [Wed, 26 Mar 2003 02:19:51 +0000 (02:19 +0000)]
* include/am_defs.h: Don't include malloc.h if stdlib.h exists,
because modern systems (e.g., BSD) complain if you use malloc.h
instead of stdlib.h. Let's hope there are no systems out
there that need both.
Erez Zadok [Thu, 20 Mar 2003 23:12:48 +0000 (23:12 +0000)]
* minor new port: sparc64-unknown-linux-suse7.3.
* minor new port: i386-unknown-freebsd5.0.
* configure.in: detect nfsclient/nfsargs.h.
* conf/nfs_prot/nfs_prot_freebsd3.h: include
<nfsclient/nfsargs.h>, needed in FreeBSD 5.0.
Erez Zadok [Mon, 17 Mar 2003 16:20:22 +0000 (16:20 +0000)]
add ldap schema
Erez Zadok [Sun, 16 Mar 2003 01:47:36 +0000 (01:47 +0000)]
* amd/amd.8, amd/amd.8, fixmount/fixmount.8, hlfsd/hlfsd.8,
scripts/amd.conf.5, scripts/expn.1: minor spell checking and
extraneous space elimination.
Ion Badulescu [Fri, 7 Mar 2003 17:24:49 +0000 (17:24 +0000)]
* conf/autofs/autofs_linux.c (autofs_get_fh): don't leak file
descriptors if limit exceeded
(autofs_mounted): call autofs_get_mp(); init am_autofs_ttl
(autofs_release_fh): release pending_mounts and pending_umounts
queues
(autofs_timeout_mp): update am_autofs_ttl instead of am_ttl
* amd/mntfs.c (init_mntfs): delete initialization of removed
mf_autofs_fh
(uninit_mntfs): delete call to autofs_release_fh()
* amd/map.c (init_map): init autofs_fh to 0, delete initialization
of removed autofs_data
(free_map): release autofs_fh after unmounting map; delete call to
autofs_free_data()
(umount_exported): call autofs_release_mp() prior to unmounting
autofs f/s
(unmount_mp): ditto
(free_map_if_success): call autofs_get_mp() if unmounting fails
(timeout_mp): use the dedicated am_autofs_ttl timeout for f/s-wide
timeouts instead of the per-mountpoint am_ttl
* amd/autil.c (am_unmounted): release autofs_fh after unmounting
autofs f/s
* amd/amfs_generic.c (amfs_cont): release autofs_fh if mounting
autofs f/s fails;
(amfs_bgmount): ditto
* amd/amd.h: moved autofs_fh from mntfs to am_node, since it's
more related to the mount point than to the f/s mounted;
added am_autofs_ttl to am_node, for running expirations on entire
filesystems
* conf/autofs/autofs_*: autofs_get_fh() returns int instead of
autofs_fh_t *; autofs_release_fh() now takes an am_node * parameter
instead of autofs_fh_t *, in an effort to not deal with
autofs-specific data structures outside autofs code;
new methods autofs_get_mp() and autofs_release_mp(), which
acquire/release autofs resources to allow clean unmount attempts;
nuke autofs_data_t, never used
* amd/amd.h: prototypes for new and changed autofs functions
Ion Badulescu [Fri, 7 Mar 2003 14:10:41 +0000 (14:10 +0000)]
* amd/nfs_subr.c (do_readlink): eliminate third argument, never used
(nfsproc_getattr_2_svc): reorganize the code a bit
* amd/map.c (mk_fattr): take a nfsfattr * argument instead of an
am_node * argument
* amd/amd.h: changed prototype for mk_fattr()
* amd/autil.c (am_unmounted): when remounting, use the parent
node's lookup_child() and mount_child() operations, not the
generic ones
* amd/amfs_generic.c (amfs_cont): minor code optimization
Ion Badulescu [Thu, 6 Mar 2003 22:54:53 +0000 (22:54 +0000)]
* amd/amfs_auto.c: lots of renames and code moving:
amfs_auto_match() -> amfs_generic_match(), moved to generic;
amfs_auto_mkcacheref() -> amfs_mkcacheref(), moved to autil.c;
amfs_auto_mounted() -> amfs_generic_mounted(), moved to generic;
amfs_auto_umount() -> amfs_generic_umount(), moved to generic;
free_continuation(): moved to generic, made static;
assign_error_mntfs(): moved to autil.c;
amfs_auto_cont() -> amfs_cont(), moved to generic, made static;
amfs_auto_retry() -> amfs_retry(), moved to generic, made static;
try_mount() + mount_node() -> mount_node(), moved to map.c
amfs_auto_bgmount() -> amfs_bgmount(), moved to generic;
amfs_parse_defaults(): moved to generic;
amfs_auto_lookup_node() -> amfs_lookup_node(), moved to generic;
amfs_auto_lookup_one_mntfs() -> amfs_lookup_one_mntfs(), in generic;
amfs_auto_lookup_mntfs() -> amfs_lookup_mntfs(), moved to generic;
amfs_auto_mount_child() -> amfs_generic_mount_child(), in generic;
amfs_auto_lookup_child() -> amfs_generic_lookup_child(), in generic;
next_nonerror_node(): moved to autil.c;
amfs_auto_readdir() -> amfs_generic_readdir(), moved to readdir;
amfs_auto_readdir_browsable() -> amfs_readdir_browsable(), in readdir;
* amd/amfs_toplvl.c: mount_amfs_toplvl() renamed to amfs_mount()
and moved to autil.c
* amd/readdir.c, amd/amfs_generic.c: new files with stuff ripped
out of amd/amfs_auto.c
* amd/amd.h: struct continuation moved to generic.c; prototypes
for the renamed functions; NumChild renamed to NumChildren
* amd/map.c: collaped unmount_node_wrap() and unmount_node() into
the latter
* amd/mapc.c: key_already_in_chain(): moved to readdir.c;
make_entry_chain(): moved to readdir.c;
* amd/srvr_amfs_auto.c: find_amfs_auto_srvr() renamed to
amfs_generic_find_srvr()
* amd/amfs_*.c: adjustments for the renames above
* amd/ops_*.c: low-level filesystems don't need a find_server()
method
* amd/Makefile.am: added amfs_generic.c and readdir.c
* doc/am-utils.texi: minor clarification for auto maps
Ion Badulescu [Thu, 6 Mar 2003 21:27:03 +0000 (21:27 +0000)]
* amd/amd.h: moved lots and lots of amd-only stuff here, from
include/am_utils.h; changed task_fun, cb_fun and fwd_fun typedefs
to be function typedefs, not pointer to function typedefs
* include/am_utils.h: see above
* amd/ops_nfs.c, amd/rpc_fwd.c, amd/sched.c: adjustments for
function typedef changes
Erez Zadok [Wed, 5 Mar 2003 18:12:00 +0000 (18:12 +0000)]
* BUGS: record IBM's patch number for the AIX 5.2 NFS over IPv6
bug.
Erez Zadok [Sun, 2 Feb 2003 21:43:42 +0000 (21:43 +0000)]
* NEWS: minor new port: ia64-unknown-linux-rh2.1AS
Ion Badulescu [Fri, 31 Jan 2003 05:28:29 +0000 (05:28 +0000)]
* m4/macros/os_cflags.m4: rhapsody and darwin are the same
* amd/autil.c (mount_node): vastly simplified, just a wrapper now
* amd/amfs_inherit.c (amfs_inherit_mount): remove the am_mounted()
hack, we now do it properly in the generic code
* amd/amfs_auto.c (amfs_auto_bgmount): get the autofs_fh _before_
forking the child; set and reset MFF_MOUNTING here, not in
mount_node(), because the latter might be running in child
context; call am_mounted() after a successful foreground mount
Ion Badulescu [Wed, 29 Jan 2003 14:09:15 +0000 (14:09 +0000)]
* configure.in: new flag --with[out]-ndbm; don't pull in libldap
if building --without-ldap; look for the gdbm/ndbm.h header; make
explicit the dependency between the ndbm headers and libraries;
define NEW_DBM_H as the ndbm header that should be used
* include/am_defs.h: simply include NEW_DBM_H for ndbm stuff,
instead of trying to second-guess configure
* m4/macros/header_templates.m4: new template for NEW_DBM_H
* m4/macros/check_map_funcs.m4:
(ac_upcase_map_name): use the third argument correctly
* ltmain.sh: working version from libtool-1.4.2-7
* buildall: print the entire configure command, including extra
arguments; pass each of the extra arguments separately, not
commingled into one
Ion Badulescu [Tue, 28 Jan 2003 16:23:48 +0000 (16:23 +0000)]
* include/am_utils.h (DEBUG_MNTTAB): define outside of #ifdef
DEBUG; it is not used without DEBUG, but it is referenced at
compile time. Bug report from John Kilburg <john@physics.unlv.edu>.
(D_ALL): don't include D_XDRTRACE, too verbose and normally
unnecessary
Erez Zadok [Tue, 28 Jan 2003 16:13:59 +0000 (16:13 +0000)]
* ltmain.sh, config.guess, config.sub, doc/texinfo.tex: updates
for latest official GNU versions.
Erez Zadok [Sat, 25 Jan 2003 17:21:42 +0000 (17:21 +0000)]
* BUGS (Note): document AIX-5.1 NFS-client side bug (hangs in
vmount).
Ion Badulescu [Sat, 25 Jan 2003 15:27:47 +0000 (15:27 +0000)]
updated
Ion Badulescu [Sat, 25 Jan 2003 14:56:38 +0000 (14:56 +0000)]
* Released beta version 6.1b2
Ion Badulescu [Sat, 25 Jan 2003 01:46:23 +0000 (01:46 +0000)]
* amd/autil.c (am_unmounted): reset MFF_MKMNT from mf_flags when
calling rmdirs() on mountpoint
* amd/amfs_auto.c (amfs_auto_bgmount): ditto
* amd/amfs_nfsl.c (amfs_nfsl_umounted): ditto
Ion Badulescu [Sat, 25 Jan 2003 01:39:40 +0000 (01:39 +0000)]
* doc/am-utils.texi (opts Option): "sftlookup" -> "softlookup"
* NEWS: "sftlookup" -> "softlookup"
* amd/ops_nfs.c (nfs_mount): "sftlookup" -> "softlookup", also
check for "nosoftlookup" in combination with "soft"
Ion Badulescu [Sat, 25 Jan 2003 01:32:36 +0000 (01:32 +0000)]
updated with the linux & darwin tcp reconnection bug
Ion Badulescu [Thu, 23 Jan 2003 21:52:06 +0000 (21:52 +0000)]
* m4/macros/check_nfs_fh_dref.m4: darwin/rhapsody is another
freebsd22 derivative
Ion Badulescu [Thu, 23 Jan 2003 21:24:27 +0000 (21:24 +0000)]
* m4/macros/os_cflags.m4: add -D_P1003_1B_VISIBLE to cflags for
Darwin
* conf/fh_dref/fh_dref_darwin.h: new file, Darwin needs pointers
to u_char
* undo previous changes
Erez Zadok [Thu, 23 Jan 2003 19:41:34 +0000 (19:41 +0000)]
ignore aix
Erez Zadok [Thu, 23 Jan 2003 19:35:56 +0000 (19:35 +0000)]
* conf/mount/mount_aix.c (mount_aix3): clean back this file from
all the debugging cruft that is no longer needed (and really was
never needed in the first place).
Ion Badulescu [Thu, 23 Jan 2003 18:34:44 +0000 (18:34 +0000)]
* NEWS: updated for Darwin changes
* .cvsignore: added A.i386-apple-darwin6.0
Ion Badulescu [Thu, 23 Jan 2003 18:29:53 +0000 (18:29 +0000)]
* libamu/mount_fs.c (compute_nfs_args): cast &(fh3.fh3_u.data) and
&(fhp->v2.fhs_fh) to (voidp) to avoid warnings on systems that
want them to be signed or unsigned char *.
Ion Badulescu [Thu, 23 Jan 2003 18:12:13 +0000 (18:12 +0000)]
* include/am_defs.h: make sure _P1003_1B_VISIBLE is defined when
including <sys/mman.h>, to expose mlockall() constants on Darwin
Erez Zadok [Fri, 10 Jan 2003 19:02:03 +0000 (19:02 +0000)]
* scripts/test-amd.{misc,conf}: simple amd.conf and amd.misc
(map) files for testing basic amd functionality such as whether it
can mount its own mount NFS points.
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
Erez Zadok [Sun, 29 Dec 2002 01:09:08 +0000 (01:09 +0000)]
put space b/t var decls and code
Ion Badulescu [Sun, 29 Dec 2002 01:04:19 +0000 (01:04 +0000)]
removed entries for deleted revisions
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
Ion Badulescu [Sun, 29 Dec 2002 00:46:31 +0000 (00:46 +0000)]
added explanation for last bugfix
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
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>
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()
Erez Zadok [Fri, 27 Dec 2002 22:43:44 +0000 (22:43 +0000)]
2003 copyright update
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.
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.
Erez Zadok [Tue, 10 Dec 2002 20:06:26 +0000 (20:06 +0000)]
Mention autofs-v4 on solaris9 works.
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!
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.
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
Ion Badulescu [Tue, 10 Dec 2002 02:51:47 +0000 (02:51 +0000)]
* doc/am-utils.texi (opts Option): document sftlookup
* NEWS: updated
Ion Badulescu [Tue, 10 Dec 2002 02:09:56 +0000 (02:09 +0000)]
compile fixes
Erez Zadok [Fri, 22 Nov 2002 21:35:58 +0000 (21:35 +0000)]
minor new ports
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).
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.
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
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
Erez Zadok [Tue, 5 Nov 2002 01:24:54 +0000 (01:24 +0000)]
aix-mount-helper-update
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()
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()
Ion Badulescu [Mon, 4 Nov 2002 19:00:14 +0000 (19:00 +0000)]
removed the "loop" mount option
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)
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()
Erez Zadok [Sun, 3 Nov 2002 02:30:41 +0000 (02:30 +0000)]
cvs ignore updates
Erez Zadok [Sun, 3 Nov 2002 02:29:32 +0000 (02:29 +0000)]
Some AIX 5.2 fixes to compile. Note tested yet.
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).
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.
Erez Zadok [Wed, 30 Oct 2002 06:38:45 +0000 (06:38 +0000)]
remove temp added files
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
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
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.
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>.
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
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.
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)
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
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
Ion Badulescu [Wed, 4 Sep 2002 15:07:35 +0000 (15:07 +0000)]
old changelog for aix 5.1 changes
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>]
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
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
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>.
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