]> git.decadent.org.uk Git - nfs-utils.git/log
nfs-utils.git
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

16 years agoRelease 1.1.2 nfs-utils-1-1-2
Steve Dickson [Fri, 14 Mar 2008 15:46:29 +0000 (11:46 -0400)]
Release 1.1.2

Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoTurn down gssd's syslog verbosity
Timo Aaltonen [Thu, 13 Mar 2008 17:02:32 +0000 (13:02 -0400)]
Turn down gssd's syslog verbosity

Modified-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoStop rpc.mountd from probing all known devices which causes
Steinar H. Gunderson [Thu, 13 Mar 2008 15:30:18 +0000 (11:30 -0400)]
Stop rpc.mountd from probing all known devices which causes
idle disks to spin up for basically no reason.

Signed-off-by: Steinar H. Gunderson <sgunderson@bigfoot.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoRecently #include directives for autoconf's config.h file were added in
Chuck Lever [Tue, 11 Mar 2008 17:11:50 +0000 (13:11 -0400)]
Recently #include directives for autoconf's config.h file were added in
utils/mount/error.c and utils/mount/mount.c, but appropriate HAVE_CONFIG_H
checks were not added at the same time.

In addition, several other .c files under utils/mount reference
autoconf-generated HAVE_ macros, but don't appear to include config.h

Also, Heinz-Ado Arnolds <arnolds@MPA-Garching.MPG.DE> reports that this
patch is needed to ensure START_STATD is properly defined in
utils/mount/network.c.  Otherwise start_statd() is always a no-op, even if
the configure script defines an appropriate statd start-up script.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Cc: Heinz-Ado Arnolds <arnolds@MPA-Garching.MPG.DE>
Signed-off-by: Steve Dickson <steved@dickson.boston.devel.redhat.com>
16 years agoFixed typo in nfsd man page
Filipus Klutiero [Tue, 11 Mar 2008 16:52:26 +0000 (12:52 -0400)]
Fixed typo in nfsd man page

bz: http://bugzilla.linux-nfs.org/show_bug.cgi?id=160
Signed-off-by: Filipus Klutiero <chealer@gmail.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoFixed a segfault in the mount.nfs command
Steinar H. Gunderson [Mon, 10 Mar 2008 19:20:36 +0000 (15:20 -0400)]
Fixed a segfault in the mount.nfs command

Signed-off-by: Steinar H. Gunderson <sgunderson@bigfoot.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoFixed a couple typos that effected the '--mounts' nfsstat option
Steinar H. Gunderson [Mon, 10 Mar 2008 18:55:47 +0000 (14:55 -0400)]
Fixed a couple typos that effected the '--mounts' nfsstat option

Signed-off-by: Steinar H. Gunderson <sgunderson@bigfoot.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoFixed typo in gssd manpage
Steinar H. Gunderson [Mon, 10 Mar 2008 18:51:31 +0000 (14:51 -0400)]
Fixed typo in gssd manpage

Signed-off-by: Steinar H. Gunderson <sgunderson@bigfoot.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoThe mount(5) man page states that the noquota, quota, usrquota and
Steinar H. Gunderson [Mon, 10 Mar 2008 18:49:31 +0000 (14:49 -0400)]
The mount(5) man page states that the noquota, quota, usrquota and
grpquota options are ignored. (They are, however, used by the quota
tools, so having them in fstab can be useful.) Make mount.nfs ignore
them properly, matching the man page. There are a few aliases (like
usrjquota) that are parsed by quota, but as these are not documented
nor seem to be widely used, they are not included.

Signed-off-by: Steinar H. Gunderson <sgunderson@bigfoot.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoBe explicit on how to update exports in the man page.
Steve Dickson [Mon, 10 Mar 2008 18:42:21 +0000 (14:42 -0400)]
Be explicit on how to update exports in the man page.

Signed-off-by: Steinar H. Gunderson <sgunderson@bigfoot.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoAs part of migrating from nfs@lists.sf.net to linux-nfs@vger.kernel.org,
Chuck Lever [Wed, 5 Mar 2008 15:07:11 +0000 (10:07 -0500)]
As part of migrating from nfs@lists.sf.net to linux-nfs@vger.kernel.org,
update the mailing list address used to report bugs in nfs-utils.

Removed the BUGS section in the mount.nfs and umount.nfs man pages since
they weren't consistent with the contents of the BUGS sections in others
in nfs-utils.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoStop the kernel export table from being flushed
Neil Brown [Tue, 4 Mar 2008 14:39:31 +0000 (09:39 -0500)]
Stop the kernel export table from being flushed
on MIPS machines.

Reported-by: Anirban Sinha <ASinha@zeugmasystems.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoIncrease the number of concurrent krb5 mounts by increasing
Drew Middlesworth [Tue, 4 Mar 2008 14:27:57 +0000 (09:27 -0500)]
Increase the number of concurrent krb5 mounts by increasing
the size of the poll array

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoIf validateascii is passed a string containing only non-zero 7bit
NeilBrown [Tue, 26 Feb 2008 18:57:39 +0000 (13:57 -0500)]
If validateascii is passed a string containing only non-zero 7bit
values, then the loop with exit with i == len, and the following
test will access beyond the end of the array.

So add an extra test to fix this.

Found by Marcus Meissner <meissner@novell.com>.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoFixed typo in the nfsstat command line arugments.
Peng Haitao [Tue, 26 Feb 2008 18:52:18 +0000 (13:52 -0500)]
Fixed typo in the nfsstat command line arugments.

Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoStop gssd from ignoring the machine credential cache
Vince Busam [Tue, 26 Feb 2008 18:04:52 +0000 (13:04 -0500)]
Stop gssd from ignoring the machine credential cache
defined by the -d flag

Signed-off-by: Steve Dickson <steved@redhat.com>
Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
16 years agoIn mountd, if get_exportlist() (utils/mountd/mountd.c) returns NULL it
Harshula Jayasuriya [Tue, 12 Feb 2008 21:13:25 +0000 (16:13 -0500)]
In mountd, if get_exportlist() (utils/mountd/mountd.c) returns NULL it
should not be considered a failure. It just means that there are no
exports on the system.

The practical problem with the current code is that a showmount -e
results in a syslog message from mountd that looks like:

rpc.mountd: export request from 10.250.100.2 failed.

Reviewed-by: Greg Banks <gnb@sgi.com>
Signed-off-by: Harshula Jayasuriya <harshula@sgi.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoCleaned up some typos that were found in the various
Frank Filz [Sat, 9 Feb 2008 12:48:48 +0000 (07:48 -0500)]
Cleaned up some typos that were found in the various
places in the mountd code.

Signed-off-by: Steve Dickson <steved@redhat.com>
Signed-off-by: Frank Filz <ffilzlnx@us.ibm.com>
16 years agoAdded in relatime mount option so mount.nfs stays
Steve Dickson [Thu, 24 Jan 2008 22:02:08 +0000 (17:02 -0500)]
Added in relatime mount option so mount.nfs stays
compatible with the mount command in util-linux-ng

Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoFix bug when both crossmnt and fsid are set.
Steve Dickson [Sat, 19 Jan 2008 12:59:26 +0000 (07:59 -0500)]
Fix bug when both crossmnt and fsid are set.

When exported a filesystems with option inherited (by the crossmnt
option) from a higherlevel filesystem, ignore filesystem specific
options like FSID and explicit UUID.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoStop segfaults on amd64 during warnings messages by creating
Steve Dickson [Thu, 17 Jan 2008 16:25:37 +0000 (11:25 -0500)]
Stop segfaults on amd64 during warnings messages by creating
a second va_list in xlog_backend() and then use that va_list
to print messages on stderr.

Signed-off-by: Steinar H. Gunderson <sesse@debian.org>
Signed-off-by: Steve Langasek <vorlon@debian.org>
Signed-off-by: Steve Dickson <steved@dickson.boston.devel.redhat.com>
16 years agoThe kernel doesn't support the underlying parts needed for changing the
Steve Dickson [Wed, 16 Jan 2008 17:01:13 +0000 (12:01 -0500)]
The kernel doesn't support the underlying parts needed for changing the
MNT program number.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoThe kernel hasn't supported the underlying parts needed for changing the
Steve Dickson [Wed, 16 Jan 2008 17:00:32 +0000 (12:00 -0500)]
The kernel hasn't supported the underlying parts needed for changing the
NFS program number for a very long time.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoAddress an inconsistency: the mount.nfs command uses the glibc routines
Steve Dickson [Wed, 16 Jan 2008 16:53:41 +0000 (11:53 -0500)]
Address an inconsistency:  the mount.nfs command uses the glibc routines
to manipulate /etc/mtab (setmntent) but, everything else in nfs-utils
uses a local private version (nfs_setmntent).  The local version does
some extra mangling of the mtab entries.

We should check what util-linux does these days to be sure, but for now,
let's make the mount.nfs command use the nfs_ variants of setmntent().

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoadd_mtab() calls unlock_mtab() twice in one of its error exit paths.
Steve Dickson [Wed, 16 Jan 2008 16:50:41 +0000 (11:50 -0500)]
add_mtab() calls unlock_mtab() twice in one of its error exit paths.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoWhen mount.nfs reports that statd isn't running, it suggests using the "-o
Steve Dickson [Wed, 16 Jan 2008 16:48:23 +0000 (11:48 -0500)]
When mount.nfs reports that statd isn't running, it suggests using the "-o
nolocks" option, which doesn't exist.  It should say "-o nolock".

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoAutomatically set 'nohide' on referral exports.
Steve Dickson [Wed, 9 Jan 2008 18:13:31 +0000 (13:13 -0500)]
Automatically set 'nohide' on referral exports.

Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoRedress some nits in the description of the timeo option
Steve Dickson [Wed, 9 Jan 2008 16:51:41 +0000 (11:51 -0500)]
Redress some nits in the description of the timeo option
in the nfs(5) man page.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoFixed typo in rpc.mountd's man page
Steve Dickson [Mon, 7 Jan 2008 15:39:37 +0000 (10:39 -0500)]
Fixed typo in rpc.mountd's man page

Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoGet rid of the "-i" option for mount.nfs[4] and always use the text-
Steve Dickson [Fri, 4 Jan 2008 15:26:21 +0000 (10:26 -0500)]
Get rid of the "-i" option for mount.nfs[4] and always use the text-
based mount(2) system call for kernel version 2.6.23 and later.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoIncorporated Chuck Lever's and Don Domingo's changes to the
Steve Dickson [Fri, 4 Jan 2008 14:27:35 +0000 (09:27 -0500)]
Incorporated Chuck Lever's and Don Domingo's changes to the
nfs(5) manual page.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Don Domingo <ddomingo@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoWhen mountd gets a request to export a mountpoint which is not
Steve Dickson [Sat, 3 Nov 2007 14:40:36 +0000 (10:40 -0400)]
When mountd gets a request to export a mountpoint which is not
explicitly exported, but is below an export point that is flagged as
"crossmnt", it passes the wrong path name to the kernel for the
  "filehandle -> directory"
mapping.

This can badly confuse the NFS client, and is certainly wrong.
So use the correct path names.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoWhen following a list of mount versions to probe -
Steve Dickson [Sat, 3 Nov 2007 14:36:36 +0000 (10:36 -0400)]
When following a list of mount versions to probe -
e.g. probe_mnt1_first or probe_mnt3_first - probe_both will first
probe the appropriate NFS version and then, if that succeeds, probe
the actual mount version.  However instead of probing the target mount
version, it probes the "most appropriate" mount version for the given NFS version.
This results in it probing:
  NFSv2, MOUNTv1
twice rather than
  NFSv2, MOUNTv1
  NFSv2, MOUNTv2

as would be more correct.

This patch removes the "choose most correct" step and just use the
current mouint version for the probe_vers array.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoThis means that if mountd is run with "--no-nfs-version 3",
Steve Dickson [Sat, 3 Nov 2007 13:35:05 +0000 (09:35 -0400)]
This means that if mountd is run with "--no-nfs-version 3",
It will first probe for NFS version 3, which will succeed (assuming the
kernel supported NFSv3), then it will check the matching mountd version (3)
and probe_port on discovering that isn't supported will try other versions,
find "1" is supported will succeed.

This leaves up using mount version 1 for an NFSv3 mount, which doesn't work
and leads to a SIGSEGV

There is no case where trying other versions is needed the request one is
not supported, so simply remove that code.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoThe wording in the exportfs man page can be a bit confusing, implying
Steve Dickson [Sat, 3 Nov 2007 13:14:57 +0000 (09:14 -0400)]
The wording in the exportfs man page can be a bit confusing, implying
that "exportfs -u :/foo" will unexport /foo from all hosts, which it won't.

This patch cleans that wording up and adds a couple examples on how to
unexport directories

Signed-off-by: Steinar H. Gunderson <sesse@debian.org>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoAdded -S/--since to the nfsstat(1) manpage
Steve Dickson [Fri, 26 Oct 2007 11:57:10 +0000 (07:57 -0400)]
Added -S/--since to the nfsstat(1) manpage

Author: David Richter <richterd@citi.umich.edu>
Signed-off-by: Steve Dickson <steved@redhat.com>
16 years agoRelease 1.1.1 nfs-utils-1-1-1
Neil Brown [Fri, 19 Oct 2007 03:07:28 +0000 (13:07 +1000)]
Release 1.1.1

16 years agoRemove unnecessary code from idmapd.
Kevin Coffman [Fri, 12 Oct 2007 20:35:25 +0000 (16:35 -0400)]
Remove unnecessary code from idmapd.

This patch removes unnecessary code from idmapd. setproctitle is not used
anywhere and it can be removed. In addition the kernel section of the
nfs_idmap.h header is not used and is out of date and thus is removed.

Signed-off-by: David P. Quigley <dpquigl@tycho.nsa.gov>
Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
16 years agoRemove old logging implementation for idmapd and rework gssd and idmapd to use the...
Kevin Coffman [Fri, 12 Oct 2007 20:35:20 +0000 (16:35 -0400)]
Remove old logging implementation for idmapd and rework gssd and idmapd to use the new xlog logging infrastructure.

This patch removes all of the old idmap_* logging functions and replaced them
with the corresponding xlog functions. In addition that that it also reworks
the gssd logging wrappers to use the new xlog_backend. Finally it makes
necessary changes to the build files to get the project compiling again.

Signed-off-by: David P. Quigley <dpquigl@tycho.nsa.gov>
Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
16 years agoCleanup xlog logging code to be safe and usable for all
Kevin Coffman [Fri, 12 Oct 2007 20:35:15 +0000 (16:35 -0400)]
Cleanup xlog logging code to be safe and usable for all

This patch reworks the xlog logging code to avoid rebuilding the message into a
fixed size buffer. It also adds two new logging functions xlog_warn and
xlog_err which are replacements for idmap_warn and idmap_err. There use to be
two different variates of these functions with the only difference being that
one flavor tacked on the error string to the end of the message. This
responsibility has been pushed to the called of the function since it
needlessly complicated the function and required us to rebuild the message
strings.

Signed-off-by: David P. Quigley <dpquigl@tycho.nsa.gov>
Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
16 years agoRemove svcgssd's private version of cacheio.c
Kevin Coffman [Fri, 12 Oct 2007 20:35:10 +0000 (16:35 -0400)]
Remove svcgssd's private version of cacheio.c

Now that svcgssd is using the qword_* functions in the
support library, remove the private version.

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
16 years agoUse nfslib versions of cacheio functions
Kevin Coffman [Fri, 12 Oct 2007 20:35:05 +0000 (16:35 -0400)]
Use nfslib versions of cacheio functions

Now that the nfslib library has all the necessary functions and they
all operate as needed, use them instead of the private versions in
utils/gssd/cacheio.c.
The obsolete private versions are removed in the next patch.

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
16 years agoCopy new cacheio functions used by svcgssd to nfslib
Kevin Coffman [Fri, 12 Oct 2007 20:35:00 +0000 (16:35 -0400)]
Copy new cacheio functions used by svcgssd to nfslib

Copy private qword_ functions from the svcgssd version into
the general nfslib library.   Add prototypes as needed.
Also, update readline to use a bigger buffer allocation as is
needed in the svcgssd version.

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
16 years agoUse printerr to print svcgssd downcall debugging info
Kevin Coffman [Fri, 12 Oct 2007 20:34:54 +0000 (16:34 -0400)]
Use printerr to print svcgssd downcall debugging info

Rather than depending on modified qword_* functions to print
svcgssd debugging information, use printerr in the downcall
function.

And while we're at it, label things so we know what we're looking at!

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
16 years agoMake print_hexl function write to stdout rather than using printerr
Kevin Coffman [Fri, 12 Oct 2007 20:34:49 +0000 (16:34 -0400)]
Make print_hexl function write to stdout rather than using printerr

print_hexl() currently uses printerr, but is really only necessary
for local debugging and should simply write to stdout.
Also change it to print the description internally.
Wrap it and its use in #ifdef DEBUG.

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
16 years agoFix new warning after strict prototype checking enabled
Kevin Coffman [Fri, 12 Oct 2007 20:34:44 +0000 (16:34 -0400)]
Fix new warning after strict prototype checking enabled

Fix function declaration to eliminate compiler warning about it
not being a prototype after -Wstrict-prototypes was added.

Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
16 years agotext-based mount.nfs: Fix po_rightmost() enum return values
Chuck Lever [Thu, 11 Oct 2007 17:55:02 +0000 (13:55 -0400)]
text-based mount.nfs: Fix po_rightmost() enum return values

Neil observed that po_rightmost() now returns enum values from both

enum {
PO_NOT_FOUND = 0,
PO_FOUND = 1,
}

and

enum {
PO_KEY2_RIGHTMOST = 1,
PO_KEY1_RIGHTMOST = -1,
}

It would be cleaner to use a single enum for po_rightmost()'s return value.

We take the next logical step and create specific types for the return
values in order to ensure we don't mix the enum values, and to document
explicitly what return values callers can expect.

This could have been a simpler patch, but I think the end result is a
cleaner overall parser API.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
16 years agomountd: address a minor compiler warning
Chuck Lever [Thu, 11 Oct 2007 20:52:03 +0000 (16:52 -0400)]
mountd: address a minor compiler warning

auth.c: In function ‘auth_authenticate’:
auth.c:190: warning: ‘error’ may be used uninitialized in this function

"error" is used as an output parameter, but the compiler has no way of
knowing that.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
16 years agomountd: eliminate a spurious compiler warning
Chuck Lever [Thu, 11 Oct 2007 20:52:01 +0000 (16:52 -0400)]
mountd: eliminate a spurious compiler warning

auth.c:61: warning: function declaration isn’t a prototype

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
16 years agoFix version fallback for unmount.
Neil Brown [Thu, 11 Oct 2007 23:03:06 +0000 (09:03 +1000)]
Fix version fallback for unmount.

Previously, if the mtab record didn't mention a version, unmount
would assume a v3 umount and send an UNMOUNT request accordingly.
This is wrong.

So remove the 'v3' assumption, and allow probe_port to continue when
it gets a version number mis-match.

Also there was some overloading of the meaning of pm_vers==0 relating
to v4 mounts.  As do_nfs_umount is never called for v4, rename it to
do_nfs_umount23, and remove v4 handling from there and from
nfs_call_umount.

Signed-off-by: Neil Brown <neilb@suse.de>
16 years agoDon't fail an unmount just because we couldn't contact the NFS server.
Neil Brown [Thu, 11 Oct 2007 01:29:07 +0000 (11:29 +1000)]
Don't fail an unmount just because we couldn't contact the NFS server.

If we fail to talk to the NFS server when unmounted a v2 or v3 mount,
still do the unmount, but allow the error to propagate up.

Signed-off-by: Neil Brown <neilb@suse.de>