]> git.decadent.org.uk Git - nfs-utils.git/log
nfs-utils.git
13 years agoImported Debian patch 1.0.10-6~quilt.2 debian/1%1.0.10-6_quilt.2
Steinar H. Gunderson [Tue, 2 Jan 2007 13:47:36 +0000 (14:47 +0100)]
Imported Debian patch 1.0.10-6~quilt.2

13 years agoImported Debian patch 1.0.10-6~quilt.1 debian/1%1.0.10-6_quilt.1
Steinar H. Gunderson [Tue, 26 Dec 2006 22:43:51 +0000 (23:43 +0100)]
Imported Debian patch 1.0.10-6~quilt.1

13 years agoImported Debian patch 1.0.10-6~quilt.0 debian/1%1.0.10-6_quilt.0
Steinar H. Gunderson [Tue, 26 Dec 2006 20:03:50 +0000 (21:03 +0100)]
Imported Debian patch 1.0.10-6~quilt.0

13 years agoImported Debian patch 1.0.10-5 debian/1%1.0.10-5
Steinar H. Gunderson [Thu, 21 Dec 2006 11:13:10 +0000 (12:13 +0100)]
Imported Debian patch 1.0.10-5

13 years agoImported Debian patch 1.0.10-4 debian/1%1.0.10-4
Steinar H. Gunderson [Tue, 7 Nov 2006 01:57:21 +0000 (02:57 +0100)]
Imported Debian patch 1.0.10-4

13 years agoImported Debian patch 1.0.10-3 debian/1%1.0.10-3
Steinar H. Gunderson [Wed, 25 Oct 2006 09:50:52 +0000 (11:50 +0200)]
Imported Debian patch 1.0.10-3

13 years agoImported Debian patch 1.0.10-2 debian/1%1.0.10-2
Steinar H. Gunderson [Wed, 11 Oct 2006 13:15:49 +0000 (15:15 +0200)]
Imported Debian patch 1.0.10-2

13 years agoImported Debian patch 1.0.10-1 debian/1%1.0.10-1
Steinar H. Gunderson [Tue, 5 Sep 2006 22:30:32 +0000 (00:30 +0200)]
Imported Debian patch 1.0.10-1

13 years agoMerge branch 'upstream'
Ben Hutchings [Wed, 14 Jul 2010 01:38:03 +0000 (02:38 +0100)]
Merge branch 'upstream'

Conflicts:
configure

13 years agoImported Upstream version 1.0.10 upstream/1.0.10
Ben Hutchings [Wed, 14 Jul 2010 01:37:47 +0000 (02:37 +0100)]
Imported Upstream version 1.0.10

13 years agoImported Debian patch 1.0.9-12 debian/1%1.0.9-12
Steinar H. Gunderson [Tue, 5 Sep 2006 11:59:29 +0000 (13:59 +0200)]
Imported Debian patch 1.0.9-12

13 years agoImported Debian patch 1.0.9-11 debian/1%1.0.9-11
Steinar H. Gunderson [Wed, 30 Aug 2006 23:53:45 +0000 (01:53 +0200)]
Imported Debian patch 1.0.9-11

13 years agoImported Debian patch 1.0.9-10 debian/1%1.0.9-10
Steinar H. Gunderson [Sat, 26 Aug 2006 01:29:09 +0000 (03:29 +0200)]
Imported Debian patch 1.0.9-10

13 years agoImported Debian patch 1.0.9-9 debian/1%1.0.9-9
Anibal Monsalve Salazar [Fri, 25 Aug 2006 01:45:07 +0000 (11:45 +1000)]
Imported Debian patch 1.0.9-9

13 years agoImported Debian patch 1.0.9-8 debian/1%1.0.9-8
Steinar H. Gunderson [Thu, 17 Aug 2006 15:24:11 +0000 (17:24 +0200)]
Imported Debian patch 1.0.9-8

13 years agoImported Debian patch 1.0.9-7 debian/1%1.0.9-7
Steinar H. Gunderson [Sat, 12 Aug 2006 17:55:35 +0000 (19:55 +0200)]
Imported Debian patch 1.0.9-7

13 years agoImported Debian patch 1.0.9-6 debian/1%1.0.9-6
Steinar H. Gunderson [Mon, 7 Aug 2006 19:27:37 +0000 (21:27 +0200)]
Imported Debian patch 1.0.9-6

13 years agoImported Debian patch 1.0.9-5 debian/1%1.0.9-5
Steinar H. Gunderson [Wed, 19 Jul 2006 12:06:33 +0000 (14:06 +0200)]
Imported Debian patch 1.0.9-5

13 years agoImported Debian patch 1.0.9-4 debian/1%1.0.9-4
Steinar H. Gunderson [Sat, 15 Jul 2006 23:59:13 +0000 (01:59 +0200)]
Imported Debian patch 1.0.9-4

13 years agoImported Debian patch 1.0.9-3 debian/1%1.0.9-3
Steinar H. Gunderson [Thu, 13 Jul 2006 19:39:08 +0000 (21:39 +0200)]
Imported Debian patch 1.0.9-3

13 years agoImported Debian patch 1.0.9-2 debian/1%1.0.9-2
Steinar H. Gunderson [Sat, 8 Jul 2006 22:16:54 +0000 (00:16 +0200)]
Imported Debian patch 1.0.9-2

13 years agoImported Debian patch 1.0.9-1 debian/1%1.0.9-1
Anibal Monsalve Salazar [Sat, 8 Jul 2006 04:26:40 +0000 (14:26 +1000)]
Imported Debian patch 1.0.9-1

13 years agoMerge branch 'upstream'
Ben Hutchings [Wed, 14 Jul 2010 01:35:24 +0000 (02:35 +0100)]
Merge branch 'upstream'

Conflicts:
Makefile.in
configure
linux-nfs/Makefile.in
support/Makefile.in
support/export/Makefile.in
support/include/Makefile.in
support/include/config.h.in
support/include/nfs/Makefile.in
support/include/rpcsvc/Makefile.in
support/include/sys/Makefile.in
support/include/sys/fs/Makefile.in
support/misc/Makefile.in
support/nfs/Makefile.in
support/nfs/clients.c
tools/Makefile.in
tools/getiversion/Makefile.in
tools/getkversion/Makefile.in
tools/locktest/Makefile.in
tools/nlmtest/Makefile.in
tools/rpcdebug/Makefile.in
tools/rpcgen/Makefile.in
utils/Makefile.in
utils/exportfs/Makefile.in
utils/gssd/Makefile.am
utils/gssd/Makefile.in
utils/gssd/svcgssd_proc.c
utils/idmapd/Makefile.in
utils/lockd/Makefile.in
utils/mount/Makefile.in
utils/mountd/Makefile.in
utils/nfsd/Makefile.in
utils/nfsstat/Makefile.in
utils/nhfsstone/Makefile.in
utils/rquotad/Makefile.in
utils/showmount/Makefile.in
utils/statd/Makefile.in

13 years agoImported Upstream version 1.0.9 upstream/1.0.9
Ben Hutchings [Wed, 14 Jul 2010 01:33:27 +0000 (02:33 +0100)]
Imported Upstream version 1.0.9

13 years agoImported Debian patch 1.0.8+1.0.9pre1-4 debian/1%1.0.8+1.0.9pre1-4
Steinar H. Gunderson [Sat, 8 Jul 2006 14:43:38 +0000 (16:43 +0200)]
Imported Debian patch 1.0.8+1.0.9pre1-4

13 years agoImported Debian patch 1.0.8+1.0.9pre1-3 debian/1%1.0.8+1.0.9pre1-3
Steinar H. Gunderson [Fri, 7 Jul 2006 19:12:06 +0000 (21:12 +0200)]
Imported Debian patch 1.0.8+1.0.9pre1-3

13 years agoImported Debian patch 1.0.8+1.0.9pre1-2 debian/1%1.0.8+1.0.9pre1-2
Steinar H. Gunderson [Thu, 6 Jul 2006 17:37:58 +0000 (19:37 +0200)]
Imported Debian patch 1.0.8+1.0.9pre1-2

13 years agoImported Debian patch 1.0.8+1.0.9pre1-1 debian/1%1.0.8+1.0.9pre1-1
Steinar H. Gunderson [Tue, 4 Jul 2006 16:55:51 +0000 (18:55 +0200)]
Imported Debian patch 1.0.8+1.0.9pre1-1

13 years agoMerge branch 'upstream'
Ben Hutchings [Wed, 14 Jul 2010 01:32:49 +0000 (02:32 +0100)]
Merge branch 'upstream'

Conflicts:
configure
debian/changelog
debian/control
debian/etc.exports
debian/nfs-common.default
debian/nfs-common.dirs
debian/nfs-common.init
debian/nfs-common.install
debian/nfs-common.postinst
debian/nfs-common.postrm
debian/nfs-common.prerm
debian/nfs-kernel-server.default
debian/nfs-kernel-server.dirs
debian/nfs-kernel-server.init
debian/nfs-kernel-server.postinst
debian/nfs-kernel-server.postrm
debian/nfs-kernel-server.prerm
debian/rules
support/nfs/exports.c
utils/mountd/mountd.c
utils/mountd/mountd.man

13 years agoImported Upstream version 1.0.8+1.0.9pre1 upstream/1.0.8+1.0.9pre1
Ben Hutchings [Wed, 14 Jul 2010 01:30:42 +0000 (02:30 +0100)]
Imported Upstream version 1.0.8+1.0.9pre1

13 years agoImported Debian patch 1.0.8-10 debian/1%1.0.8-10
Anibal Monsalve Salazar [Sat, 1 Jul 2006 23:53:16 +0000 (09:53 +1000)]
Imported Debian patch 1.0.8-10

13 years agoImported Debian patch 1.0.8-9 debian/1%1.0.8-9
Anibal Monsalve Salazar [Sat, 1 Jul 2006 12:30:11 +0000 (22:30 +1000)]
Imported Debian patch 1.0.8-9

13 years agoImported Debian patch 1.0.8-8 debian/1%1.0.8-8
Steinar H. Gunderson [Wed, 14 Jun 2006 08:47:23 +0000 (10:47 +0200)]
Imported Debian patch 1.0.8-8

13 years agoImported Debian patch 1.0.8-7 debian/1%1.0.8-7
Steinar H. Gunderson [Thu, 8 Jun 2006 15:31:28 +0000 (17:31 +0200)]
Imported Debian patch 1.0.8-7

13 years agoImported Debian patch 1.0.8-6 debian/1%1.0.8-6
Steinar H. Gunderson [Wed, 7 Jun 2006 21:30:15 +0000 (23:30 +0200)]
Imported Debian patch 1.0.8-6

13 years agoImported Debian patch 1.0.8-5 debian/1%1.0.8-5
Steinar H. Gunderson [Tue, 6 Jun 2006 23:13:28 +0000 (01:13 +0200)]
Imported Debian patch 1.0.8-5

13 years agoImported Debian patch 1.0.8-4 debian/1%1.0.8-4
Steinar H. Gunderson [Tue, 6 Jun 2006 09:59:28 +0000 (11:59 +0200)]
Imported Debian patch 1.0.8-4

13 years agoImported Debian patch 1.0.8-3 debian/1%1.0.8-3
Steinar H. Gunderson [Sat, 3 Jun 2006 09:00:14 +0000 (11:00 +0200)]
Imported Debian patch 1.0.8-3

13 years agoImported Debian patch 1.0.8-2 debian/1%1.0.8-2
Anibal Monsalve Salazar [Fri, 2 Jun 2006 09:08:11 +0000 (19:08 +1000)]
Imported Debian patch 1.0.8-2

13 years agoImported Debian patch 1.0.8-1 debian/1%1.0.8-1
Steinar H. Gunderson [Wed, 31 May 2006 23:59:39 +0000 (01:59 +0200)]
Imported Debian patch 1.0.8-1

13 years agoMerge branch 'upstream'
Ben Hutchings [Wed, 14 Jul 2010 01:29:37 +0000 (02:29 +0100)]
Merge branch 'upstream'

Conflicts:
config.guess
config.sub
configure
debian/changelog
debian/control
debian/etc.exports
debian/nfs-common.default
debian/nfs-common.dirs
debian/nfs-common.init
debian/nfs-common.install
debian/nfs-common.postinst
debian/nfs-common.postrm
debian/nfs-common.prerm
debian/nfs-kernel-server.default
debian/nfs-kernel-server.dirs
debian/nfs-kernel-server.init
debian/nfs-kernel-server.postinst
debian/nfs-kernel-server.postrm
debian/nfs-kernel-server.prerm
debian/rules
utils/gssd/Makefile
utils/svcgssd/Makefile

13 years agoImported Upstream version 1.0.8 upstream/1.0.8
Ben Hutchings [Wed, 14 Jul 2010 01:28:28 +0000 (02:28 +0100)]
Imported Upstream version 1.0.8

13 years agoImported Debian patch 1.0.7-19 debian/1%1.0.7-19
Steinar H. Gunderson [Sat, 27 May 2006 10:54:50 +0000 (12:54 +0200)]
Imported Debian patch 1.0.7-19

13 years agoImported Debian patch 1.0.7-18 debian/1%1.0.7-18
Steinar H. Gunderson [Sun, 21 May 2006 23:44:33 +0000 (01:44 +0200)]
Imported Debian patch 1.0.7-18

13 years agoImported Debian patch 1.0.7-17 debian/1%1.0.7-17
Steinar H. Gunderson [Sun, 14 May 2006 16:22:19 +0000 (18:22 +0200)]
Imported Debian patch 1.0.7-17

13 years agoImported Debian patch 1.0.7-16 debian/1%1.0.7-16
Steinar H. Gunderson [Sat, 13 May 2006 14:06:08 +0000 (16:06 +0200)]
Imported Debian patch 1.0.7-16

13 years agoImported Debian patch 1.0.7-15 debian/1%1.0.7-15
Steinar H. Gunderson [Thu, 11 May 2006 10:42:13 +0000 (12:42 +0200)]
Imported Debian patch 1.0.7-15

13 years agoImported Debian patch 1.0.7-14 debian/1%1.0.7-14
Steinar H. Gunderson [Wed, 10 May 2006 20:00:59 +0000 (22:00 +0200)]
Imported Debian patch 1.0.7-14

13 years agoImported Debian patch 1.0.7-13 debian/1%1.0.7-13
Steinar H. Gunderson [Fri, 5 May 2006 23:50:10 +0000 (01:50 +0200)]
Imported Debian patch 1.0.7-13

13 years agoImported Debian patch 1.0.7-12 debian/1%1.0.7-12
Steinar H. Gunderson [Wed, 3 May 2006 19:27:18 +0000 (21:27 +0200)]
Imported Debian patch 1.0.7-12

13 years agoImported Debian patch 1.0.7-11 debian/1%1.0.7-11
Steinar H. Gunderson [Wed, 3 May 2006 17:51:17 +0000 (19:51 +0200)]
Imported Debian patch 1.0.7-11

13 years agoImported Debian patch 1.0.7-10 debian/1%1.0.7-10
Steinar H. Gunderson [Wed, 26 Apr 2006 22:32:27 +0000 (00:32 +0200)]
Imported Debian patch 1.0.7-10

13 years agoImported Debian patch 1.0.7-9 debian/1%1.0.7-9
Steinar H. Gunderson [Thu, 6 Apr 2006 11:31:48 +0000 (13:31 +0200)]
Imported Debian patch 1.0.7-9

13 years agoImported Debian patch 1.0.7-8 debian/1%1.0.7-8
Steinar H. Gunderson [Wed, 5 Apr 2006 20:54:09 +0000 (22:54 +0200)]
Imported Debian patch 1.0.7-8

13 years agoImported Debian patch 1.0.7-7 debian/1%1.0.7-7
Steinar H. Gunderson [Wed, 5 Apr 2006 16:15:20 +0000 (18:15 +0200)]
Imported Debian patch 1.0.7-7

13 years agoImported Debian patch 1.0.7-6 debian/1%1.0.7-6
Steinar H. Gunderson [Sat, 1 Apr 2006 00:46:53 +0000 (02:46 +0200)]
Imported Debian patch 1.0.7-6

13 years agoImported Debian patch 1.0.7-5 debian/1%1.0.7-5
Steinar H. Gunderson [Tue, 28 Mar 2006 00:57:23 +0000 (02:57 +0200)]
Imported Debian patch 1.0.7-5

13 years agoImported Debian patch 1.0.7-4 debian/1%1.0.7-4
Anibal Monsalve Salazar [Mon, 27 Mar 2006 02:22:51 +0000 (13:22 +1100)]
Imported Debian patch 1.0.7-4

13 years agoImported Debian patch 1.0.7-3 debian/1%1.0.7-3
Anibal Monsalve Salazar [Fri, 8 Apr 2005 01:25:17 +0000 (11:25 +1000)]
Imported Debian patch 1.0.7-3

13 years agoMerge commit 'debian/1.0.7-2'
Ben Hutchings [Tue, 13 Jul 2010 03:03:30 +0000 (04:03 +0100)]
Merge commit 'debian/1.0.7-2'

Conflicts:
debian/changelog

13 years agoImported Debian patch 1.0.6-3.1 debian/1%1.0.6-3.1
Joey Hess [Wed, 5 Jan 2005 12:39:41 +0000 (07:39 -0500)]
Imported Debian patch 1.0.6-3.1

13 years agoMerge commit 'debian/1.0.6-3'
Ben Hutchings [Tue, 13 Jul 2010 02:51:44 +0000 (03:51 +0100)]
Merge commit 'debian/1.0.6-3'

13 years agoImported Upstream version 1.0.6
Ben Hutchings [Tue, 13 Jul 2010 02:51:20 +0000 (03:51 +0100)]
Imported Upstream version 1.0.6

15 years agoRelease 1.1.6 nfs-utils-1-1-6
Steve Dickson [Mon, 20 Apr 2009 17:32:50 +0000 (13:32 -0400)]
Release 1.1.6

Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agoumount.nfs: Fix return value of nfs_mount_protocol() nfs-utils-1-1-6-rc7
Chuck Lever [Sat, 18 Apr 2009 13:45:46 +0000 (09:45 -0400)]
umount.nfs: Fix return value of nfs_mount_protocol()

Fix a copy-paste error introduced in nfs_mount_protocol().  It should
return an IPPROTO_ number, not an NFS version number.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agoumount.nfs: Use a privileged port when sending UMNT requests
Chuck Lever [Sat, 18 Apr 2009 13:44:56 +0000 (09:44 -0400)]
umount.nfs: Use a privileged port when sending UMNT requests

Turns out we do actually need to use a privileged port for UMNT.  The
Linux rpc.mountd complains if an ephemeral source port is used:

  Apr 17 15:52:19 ingres mountd[2061]: refused unmount request from
    192.168.0.59 for /export (/export): illegal port 60932

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agosupport: Provide an API for creating a privileged RPC client
Chuck Lever [Sat, 18 Apr 2009 13:43:58 +0000 (09:43 -0400)]
support: Provide an API for creating a privileged RPC client

We needed to guarantee that some RPC programs, such as PMAP, got an
unprivileged port, to prevent exhausting the local privileged port
space sending RPC requests that don't need such privileges.
nfs_get_rpcclient() provides that feature.

However, some RPC programs, such as MNT and UMNT, require a privileged
port.  So, let's provide an additional API for this that also supports
IPv6 and setting a destination port.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agoutils/nfsd: fix -N optarg error printout
Benny Halevy [Wed, 15 Apr 2009 18:16:08 +0000 (14:16 -0400)]
utils/nfsd: fix -N optarg error printout

as currently printed c is the version number, not a string char,
therefore is should be printed as %d not %c.  That said, just print
optarg as %s since it might be non-numeric.

Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agogetport.c: fix non-standard C
Chuck Lever [Wed, 15 Apr 2009 16:52:48 +0000 (12:52 -0400)]
getport.c: fix non-standard C

Squelch a compiler warning in getport.c:

  getport.c:65: warning: ¿static¿ is not at beginning of declaration

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agonfs-utils: reverse order of librpcsecgss and libgssglue checks
Chuck Lever [Wed, 15 Apr 2009 16:38:40 +0000 (12:38 -0400)]
nfs-utils: reverse order of librpcsecgss and libgssglue checks

The check that validates the version of librpcsecgss also needs to
have libgssglue installed.  Without libgssglue, ./configure complains
that it can't find rpcsecgss, even though it's installed.

It also turns out that the error message generated by pkg-config is
more complete than the one we have in aclocal/rpcsec_vers.m4, so just
let those PKG_CHECK_MODULES m4 macros use the default error message.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agonfs-utils: add IPv6 code to gssd nfs-utils-1-1-6-rc6
Jeff Layton [Wed, 15 Apr 2009 16:04:06 +0000 (12:04 -0400)]
nfs-utils: add IPv6 code to gssd

All of the pieces to handle IPv6 are now in place. Add IPv6-specific
code wrapped in the proper #ifdef's so that IPv6 support works when
it's enabled at build-time.

Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agonfs-utils: switch gssd to use standard function for getting an RPC client
Jeff Layton [Wed, 15 Apr 2009 16:01:46 +0000 (12:01 -0400)]
nfs-utils: switch gssd to use standard function for getting an RPC client

We already have a common function for setting up an RPC client. That
function uses the tirpc API when tirpc is enabled and is also already
IPv6 enabled. Switch gssd to use it.

Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agonfs-utils: query for remote port using rpcbind instead of getaddrinfo
Jeff Layton [Wed, 15 Apr 2009 15:36:07 +0000 (11:36 -0400)]
nfs-utils: query for remote port using rpcbind instead of getaddrinfo

We already have the server's address from the upcall, so we don't really
need to look it up again, and querying the local services DB for the
port that the remote server is listening on is just plain wrong.

Use rpcbind to set the port for the program and version that we were
given in the upcall. The exception here is NFSv4. Since NFSv4 mounts
are supposed to use a well-defined port then skip the rpcbind query
for that and just set the port to the standard one (2049).

Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agonfs-utils: store the address given in the upcall for later use
Jeff Layton [Wed, 15 Apr 2009 15:34:51 +0000 (11:34 -0400)]
nfs-utils: store the address given in the upcall for later use

The current upcall could be more efficient. We first convert the address
to a hostname, and then later when we set up the RPC client, we do a
hostname lookup to convert it back to an address.

Begin to change this by keeping the address in the clnt_info that we get
out of the upcall. Since a sockaddr has a port field, we can also
eliminate the port from the clnt_info.

Finally, switch to getnameinfo() instead of gethostbyaddr(). We'll need
to use that call anyway when we add support for IPv6.

Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agonfs-utils: make getnameinfo() required for --enable-gss
Jeff Layton [Wed, 15 Apr 2009 14:29:04 +0000 (10:29 -0400)]
nfs-utils: make getnameinfo() required for --enable-gss

Systems that are so old that they don't have getnameinfo() in glibc are
probably also running kernels that are so old that they don't support
gssapi upcalls anyway.

Make --enable-gss dependent on the presence of the getnameinfo()
function.  This allows us to reduce some conditional compilation.

Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agoThe --list option does not work on server stats. nfs-utils-1-1-6-rc5
Steve Dickson [Wed, 8 Apr 2009 14:26:26 +0000 (10:26 -0400)]
The --list option does not work on server stats.

The print_stats_list() routine was using the client's
stats to decide whether to display any stats. This did
not work when there was only server stats.

This patch breaks up print_stats_list into two different
routines allowing both server and clients stats to be
listed.

Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agoThe server stats were not being updated with the
Steve Dickson [Wed, 8 Apr 2009 13:48:58 +0000 (09:48 -0400)]
The server stats were not being updated with the
-Z options causing the stats to be incorrect.

Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agoEliminate the displaying zero stats when the explicit protocol
Steve Dickson [Wed, 8 Apr 2009 13:28:22 +0000 (09:28 -0400)]
Eliminate the displaying zero stats when the explicit protocol
is specified (-2, -3, -4) the -Z and or --list options.

When a particular protocol is specified and either
the -Z or --list options are used, zeros or blank lines
are echoed to the screen when there is not any NFS traffic.
This cause any useful data to be scroll off the screen.

With this patch only non-zero stats will be shown, which
makes the output of these options more condensed and
in turn more useful.

Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agonfsstat: Add --list flag
Kevin Constantine [Sat, 4 Apr 2009 11:18:26 +0000 (07:18 -0400)]
nfsstat: Add --list flag

nfsstat.c: Adds the --list flag to print information in a list format
   instead of the standard multi-column format
nfsstat.man: Updates the manpage to include the --list flag.

Signed-off-by: Kevin Constantine <kevin.constantine@disneyanimation.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agoKeep the interval output quite when there is no NFS traffic.
Steve Dickson [Sat, 4 Apr 2009 10:46:09 +0000 (06:46 -0400)]
Keep the interval output quite when there is no NFS traffic.

The  'nfsstat -Z5' command continually outputs the following
when there is no NFS traffic.

Client rpc stats:
calls      retrans    authrefrsh
0          0          0

This patch adds code that will keep the interval output
quite so real results will not be scrolled of the screen

Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agonfsstat: Print diff stats every N seconds
Kevin Constantine [Sat, 4 Apr 2009 10:29:01 +0000 (06:29 -0400)]
nfsstat: Print diff stats every N seconds

nfsstat.c: Implements an optional "interval" argument to --sleep
nfsstat.man: Explains the use of --sleep[interval]

Reviewed-By: Greg Banks <gnb@fmeh.org>
Signed-off-by: Kevin Constantine <kevin.constantine@disneyanimation.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agocacheio: return any original error from qword_eol nfs-utils-1-1-6-rc4
Kevin Coffman [Fri, 3 Apr 2009 19:20:09 +0000 (15:20 -0400)]
cacheio: return any original error from qword_eol

If the initial fflush() fails in qword_eol, log the failure
and return the indication of the original failure, not the
successful cover-up.

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agosvcgssd: check the return code from qword_eol() and log failures
Kevin Coffman [Fri, 3 Apr 2009 19:18:16 +0000 (15:18 -0400)]
svcgssd: check the return code from qword_eol() and log failures

If qword_eol() fails while writing the context information, log
an indication of the failure.

This addresses at least one cause of the intermittent, and
previously undiagnosed, problem of the server returning
GSS_S_NO_CONTEXT when a context was seemingly successfully
created and sent down to the kernel.  In my case there was a
mis-match between kernel and user-land configuration resulting in
the proper kernel module not being loaded. Therefore the write
of the context failed, but was not logged by svcgssd.  When the
kernel goes to find the resulting context, it was really not
there and correctly returned GSS_S_NO_CONTEXT to the client.

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agoMountd should use separate lockfiles
Ben Myers [Fri, 3 Apr 2009 19:13:10 +0000 (15:13 -0400)]
Mountd should use separate lockfiles

Mountd keeps file descriptors used for locks separate from
those used for io and seems to assume that the lock will
only be released on close of the file descriptor that was used
with fcntl.  Actually the lock is released when any file
descriptor for that file is closed.  When setexportent() is called
after xflock() he closes and reopens the io file descriptor and defeats the
lock.

This patch fixes that by using a separate file for locking, cleaning
them up when finished.

Signed-off-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agonfs-utils: fix AC_CHECK_FUNC calls in configure.ac
Chuck Lever [Fri, 3 Apr 2009 19:03:15 +0000 (15:03 -0400)]
nfs-utils: fix AC_CHECK_FUNC calls in configure.ac

AC_CHECK_FUNC and AC_CHECK_FUNCS take 3 args. Any ones beyond that are
ignored. In several places, we're passing the "action-if-not-found" in
as the 4th arg so it's being ignored.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agoIn recent Fedora builds, the '-D _FORTIFY_SOURCE=2' compile nfs-utils-1-1-6-rc3
Steve Dickson [Mon, 23 Mar 2009 21:13:01 +0000 (17:13 -0400)]
In recent Fedora builds, the '-D _FORTIFY_SOURCE=2' compile
flag has been set. This cause warnings to be generated when
return values from reads/writes (and other calls) are not
checked. The patch address those warnings.

Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agoRegardless though, it's dangerous to keep invalid pointers around like
Jeff Layton [Mon, 23 Mar 2009 12:13:01 +0000 (08:13 -0400)]
Regardless though, it's dangerous to keep invalid pointers around like
this. Later code changes may make it more likely for this problem to
occur.

Also eliminate some unneeded NULL pointer checks before freeing memory.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agogssd: free buffer allocated by gssd_k5_err_msg
Jeff Layton [Mon, 23 Mar 2009 12:12:37 +0000 (08:12 -0400)]
gssd: free buffer allocated by gssd_k5_err_msg

There's no way for the caller of gssd_k5_err_msg to know whether to free
the string it returns. It can call krb5_get_error_message which returns
a string that must be freed via krb5_free_error_string. The other ways
that it can return a string require that the memory not be freed.

Deal with this by copying the string to a new buffer in all cases. Then
we can properly free the string allocated by krb5_get_error_message.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agogssd: NULL-terminate buffer after read in read_service_info (try #2)
Jeff Layton [Mon, 23 Mar 2009 12:12:14 +0000 (08:12 -0400)]
gssd: NULL-terminate buffer after read in read_service_info (try #2)

Valgrind complains that we're passing an unintialized buffer to sscanf
here. The main problem seems to be that we're not ensuring that the
buffer is NULL terminated before we pass it off.

This is the second version of this patch, the first one did not increase
the buffer allocation by 1 which could have led to clobbering the next
byte on the stack if nbytes == INFOBUFLEN.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agogssd: initialize fakeseed in prepare_krb5_rfc1964_buffer
Jeff Layton [Mon, 23 Mar 2009 12:11:41 +0000 (08:11 -0400)]
gssd: initialize fakeseed in prepare_krb5_rfc1964_buffer

This causes a compiler warning and also means that we're stuffing
the buffer with uninitialized junk from the stack. Other places in
this code initialize "fakeseed" to 0. Do the same here.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agonfs-utils: clean up handling of libgssglue in gssd Makefile nfs-utils-1-1-6-rc2
Chuck Lever [Mon, 16 Mar 2009 17:42:44 +0000 (13:42 -0400)]
nfs-utils: clean up handling of libgssglue in gssd Makefile

From: Jeff Layton <jlayton@redhat.com>

Make the pkgconfig check for libgssglue conditional on tirpc being
enabled. When it's disabled, the pkgconfig check for librpcsecgss will
pull in the gssglue lib and include dir automatically.

Also, make sure we include GSSGLUE_CFLAGS and the GSSGLUE_LIBS to the
appropriate places in utils/gssd/Makefile.am so that we pick up
the gssglue libs when tirpc is enabled.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agonfs-utils: Include legacy or TI-RPC headers, not both
Chuck Lever [Mon, 16 Mar 2009 17:40:47 +0000 (13:40 -0400)]
nfs-utils: Include legacy or TI-RPC headers, not both

Data type incompatibilities between the legacy RPC headers and the
TI-RPC headers mean we can't use libtirpc with code that was compiled
against the legacy RPC headers.  The definition of rpcprog_t for
example is "unsigned long" in the legacy library, but it's "uint32_t"
for TI-RPC.  On 32-bit systems, these types happen to have the same
width, but on 64-bit systems they don't, making more complex data
structures that use these types in fields ABI incompatible.

Adopt a new strategy to deal with this issue.  When --enable-tirpc is
set, append "-I/usr/include/tirpc" to the compilation steps.  This
should cause the compiler to grab the tirpc/ headers instead of the
legacy headers.  Now, for TI-RPC builds, the TI-RPC legacy functions
and the TI-RPC headers will be used.  On legacy systems, the legacy
headers and legacy glibc RPC implementation will be used.

A new ./configure option is introduced to allow system integrators to
use TI-RPC headers in some other location than /usr/include/tirpc.
/usr/include/tirpc remains the default setting for this new option.

The gssd implementation presents a few challenges, but it turns out
the gssglue library is similar to the auth_gss pieces of TI-RPC.  To
avoid similar header incompatibility issues, gssd now uses libtirpc
instead of libgssglue if --enable-tirpc is specified.  There may be
other issues to tackle with gssd, but for now, we just make sure it
builds with --enable-tirpc.

Note also: svc_getcaller() is a macro in both cases that points to
a sockaddr field in the svc_req structure.  The legacy version points
to a sockaddr_in type field, but the TI-RPC version points to a
sockaddr_in6 type field.

rpc.mountd unconditionally casts the result of svc_getcaller() to a
sockaddr_in *.  This should be OK for TI-RPC as well, since rpc.mountd
still uses legacy RPC calls (provided by glibc, or emulated by TI-RPC)
to set up its listeners, and therefore rpc.mountd callers will always
be from AF_INET addresses for now.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agoconfigure: move IPv6 feature checks into aclocal
Chuck Lever [Mon, 16 Mar 2009 17:37:09 +0000 (13:37 -0400)]
configure: move IPv6 feature checks into aclocal

Clean up: for consistency with other local feature checks, move IPv6
feature checks into aclocal/

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agonfs-utils: don't need extra libs to do AC_CHECK_LIBS for librpcsecgss
Chuck Lever [Mon, 16 Mar 2009 17:32:49 +0000 (13:32 -0400)]
nfs-utils: don't need extra libs to do AC_CHECK_LIBS for librpcsecgss

From: Jeff Layton <jlayton@redhat.com>

The conftest should work without these extra libs being included.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agoconfigure: Move rpcsecgss checking into aclocal
Chuck Lever [Mon, 16 Mar 2009 17:31:27 +0000 (13:31 -0400)]
configure: Move rpcsecgss checking into aclocal

Clean up: Introduce two more aclocal scripts for handling rpcsecgss
dependency checking.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agoconfigure: pull common nfsidmap and event checks into aclocal/
Chuck Lever [Mon, 16 Mar 2009 17:30:26 +0000 (13:30 -0400)]
configure: pull common nfsidmap and event checks into aclocal/

Clean up: Create an aclocal script for the nfsidmap library and
headers checks used for both --enable-gss and --enable-nfsv4.
Move libevent checks out too.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agonfs-utils: replace function-specific switches with HAVE_LIBTIRPC
Chuck Lever [Mon, 16 Mar 2009 17:29:18 +0000 (13:29 -0400)]
nfs-utils: replace function-specific switches with HAVE_LIBTIRPC

Instead of switching in TI-RPC-specific logic with a function-specific
switch like HAVE_CLNT_VG_CREATE, let's use the more generic
HAVE_LIBTIRPC macro everywhere.

This simplifies ./configure (always a good thing), and makes it more
clear in the source code exactly what the extra conditionally compiled
code is for.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agoconfigure: move TI-RPC checks into aclocal
Chuck Lever [Mon, 16 Mar 2009 17:28:42 +0000 (13:28 -0400)]
configure: move TI-RPC checks into aclocal

Define an aclocal test for TI-RPC headers and library, and move the
TI-RPC checks earlier in our configure script so other feature checks
can use the availability of TI-RPC to decide what to do.

Since bindresvport_sa is required just for IPv6 support, move that
check to the IPv6 feature tests.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agoconfigure: add defensive quoting in some function checks
Chuck Lever [Mon, 16 Mar 2009 17:26:34 +0000 (13:26 -0400)]
configure: add defensive quoting in some function checks

Clean up: Add proper m4 quoting in macros that check for the presence
of some functions in configure.ac.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
15 years agoAdded back the some logging variables which are no nfs-utils-1-1-5-rc1 nfs-utils-1-1-6-rc1
Steve Dickson [Sun, 8 Mar 2009 14:10:25 +0000 (10:10 -0400)]
Added back the some logging variables which are no
longer used but, unfortunately, they are extern-ed by
public headers files which are not under the control
of this package.

Spotted-by: Juergen Daubert <jue@jue.li>
Signed-off-by: Steve Dickson <steved@redhat.com>