summaryrefslogtreecommitdiffstats
path: root/support/export
Commit message (Collapse)AuthorAgeFilesLines
* Stop the kernel export table from being flushedNeil Brown2008-03-041-1/+1
| | | | | | | on MIPS machines. Reported-by: Anirban Sinha <ASinha@zeugmasystems.com> Signed-off-by: Steve Dickson <steved@redhat.com>
* rpc.mountd: create client_resolve and change client_compose to take a ↵Jeff Layton2007-09-281-8/+14
| | | | | | | | | | | | | | hostent arg This moves the resolution of IP address to hostent into a helper function and has other functions call it. Having client_compose take a hostent arg allows us to avoid an extra hostname lookup in the auth_authenticate codepath as well. Instead of redoing this lookup in client_compose, we can simply reuse the hostent that was already generated in auth_authenticate. Signed-off-by: Jeff Layton <jlayton@redhat.com> Acked-by: Steve Dickson <steved@redhat.com> Signed-off-by: Neil Brown <neilb@suse.de>
* rpc.mountd: make exportent->e_hostname a dynamically-allocated stringJeff Layton2007-09-283-10/+8
| | | | | | | | | | | | This makes the e_hostname field of the exportent into a pointer to a dynamically allocated string. This is necessary since this is field is often filled out from the m_hostname. This too adds a few micro-optimizations as we can avoid copying the string in some places and simply pass a pointer to the original string instead. Signed-off-by: Jeff Layton <jlayton@redhat.com> Acked-by: Steve Dickson <steved@redhat.com> Signed-off-by: Neil Brown <neilb@suse.de>
* rpc.mountd: Change nfs_client->m_hostname to be a dynamically-allocated stringJeff Layton2007-09-281-8/+7
| | | | | | | | | | | Change nfs_client->m_hostname to be dynamically allocated rather than a fixed length array of size NFSCLNT_IDMAX. This also adds a bit of micro-optimization in a few places since it reduces the amount of string copying that needs to be done. Signed-off-by: Jeff Layton <jlayton@redhat.com> Acked-by: Steve Dickson <steved@redhat.com> Signed-off-by: Neil Brown <neilb@suse.de>
* Memory leak in mountdSteinar H. Gunderson2007-05-111-0/+1
| | | | | | | | | | In client_compose(), free() the hostent structure returned before exiting. Normally, gethostbyaddr() returns a pointer to a static struct, but this hostent comes from either get_reliable_hostbyaddr() or get_hostent(), both which return a pointer they privately xmalloc()ed, which thus can and should be free()d. Signed-Off-By: Steinar H. Gunderson <sesse@debian.org>
* nfs-utils: have mountd hold open etab file to force inode number to changeJeff Layton2007-05-111-0/+6
| | | | | | | | | | | | | This patch changes mountd to hold the etab file open so that when it's changed by exportfs, the inode number should change. We then change auth_reload to reload the file based on whether st_ino is different from the last time it was checked. It also changes auth_reload to maintain a static counter value and return it instead of a timestamp and fixes up get_exportlist accordingly. Finally, it adds some comments to xtab_write to warn people about editing the etab in place. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
* Add --with-rpcgen= for configure so that the system rpcgen can be used.Neil Brown2007-03-201-1/+5
| | | | | | | Ultimately it makes sense to remove remove rpcgen from the nfs-utils release as it is already in the glibc release. With this patch you can use the system rpcgen to make sure it works. It is not default yet, but it might be in a future release.
* Make warning about host matching multiple exports more helpful.Neil Brown2007-03-191-0/+2
| | | | | 1/ only warn once per export, as it could get too noisy. 2/ make it a little clearer why this might be a problem.
* Fix memory leak in mountd.Steinar H. Gunderson2007-03-161-0/+1
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Remove "maptype" supportJ. Bruce Fields2007-03-151-6/+0
| | | | | | | | It appears that this is used only by unfsd, and is obscure enough that we should be able to just rip it out with no special precautions. Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu> Signed-off-by: Neil Brown <neilb@suse.de>
* Extend the exportfs/mountd interface to pass fslocations info into the kernelFred Isaman2007-02-271-0/+2
| | | | | | | | Fix up a few issues with the fsloc code. Signed-off-by: Fred Isaman <iisaman@citi.umich.edu> Signed-off-by: Kevin Coffman <kwc@citi.umich.edu> Signed-off-by: Neil Brown <neilb@suse.de>
* Remove some files that old, unused, unneeded.Neil Brown2006-07-052-76/+1
| | | | | | | | | | | | | | | deleted: support/export/keys.c deleted: support/include/rpcdispatch.h deleted: support/include/rpcsec.h deleted: support/include/version.h deleted: support/include/ypupdate.h deleted: support/nfs/clients.c deleted: support/nfs/keytab.c deleted: support/nfs/ypupdate_xdr.c deleted: support/rpc/include/Makefile.am deleted: tools/rpcdebug/neat_idea.c deleted: utils/mountd/mount_xdr.c deleted: utils/rquotad/pathnames.h
* Avoid error creating an existing symlinkNeil Brown2006-07-051-0/+1
| | | | Just remove the link first.
* Fix a number of the easier compile warnings: unused variables,Greg Banks2006-06-221-0/+1
| | | | unused labels, constness, signedness.
* fix exportfs with multiple matchesNeil Brown2006-06-051-1/+1
| | | | | | | Fixes a problem with exportfs -o and multiple entries of the same type for the same patch that matches a given client. The entire rationale and problem description can be found at http://bugs.debian.org/245449 (fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>)
* Remove **/Makefile.in, aclocal.m4, configure, andNeil Brown2006-04-171-523/+0
| | | | | | support/include/config.h.in from source control These are auto autogenerated by aclocal -I aclocal ; autoheader ; automake ; autoconf
* 2006-04-10 "Kevin Coffman" <kwc@citi.umich.edu>neilbrown2006-04-101-0/+2
| | | | | Check for sufficient version of librpcsecgss and libgssapi in configure.in
* 2006-04-10 "Kevin Coffman" <kwc@citi.umich.edu>neilbrown2006-04-101-0/+2
| | | | | Update aclocal/tcp-wrappers.m4 to define HAVE_LIBWRAP and HAVE_TCP_WRAPPERS as appropriate.
* aclocal/autoconf/automake, properly this time.neilbrown2006-03-281-0/+4
|
* Remove all the Makefilesneilbrown2005-12-201-31/+0
|
* More automake stuffneilbrown2005-12-201-0/+515
|
* Autogen updateneilbrown2005-12-207-13/+71
|
* Added TOP, as needed, for easier compile in subdirectoriesgmorris2005-04-121-0/+1
|
* treat N.N.N.N as a special case of MCL_SUBNETWORK instead ofneilbrown2005-03-141-1/+10
| | | | MCL_FQDN
* Prepare to support gss authentication and idmap looks for nfsv4neilbrown2004-09-152-1/+5
|
* Makefile changes.neilbrown2003-09-141-0/+3
|
* * support/export/hostname.c (get_reliable_hostbyaddr): Fix crashchip2003-09-091-23/+22
| | | | on invalid reverse DNS.
* /proc/fs/nfsd as an alternate to /proc/fs/nfsdneilbrown2003-08-041-0/+3
|
* Fixes to make unexporting and exporting with wildcardsneilbrown2003-07-032-18/+15
| | | | work more sensibly.
* new "mountpoint" export option.neilbrown2003-05-301-0/+2
|
* enhance exportfs to use new cache/upcall stuffneilbrown2003-05-211-1/+46
|
* Support new kernel upcalls for export cache management.neilbrown2003-05-211-0/+98
|
* Define and use get_reliable_hostbynameneilbrown2003-05-211-0/+52
|
* See Changelogneilbrown2002-05-292-2/+2
|
* *** empty log message ***neilbrown2002-02-281-5/+6
|
* (more of the previous change)chip2002-01-031-0/+2
|
* 2002-01-02 Chip Salzenberg <chip@pobox.com>chip2002-01-031-0/+5
| | | | | | | | * support/export/nfsctl.c (expsetup): Don't export entries that specify id mappings not supported by the kernel. No extant kernel supports any significant mapping, only 'identity' (i.e. none). When other mappings are supported, this code will need changing. * debian/changelog: Version 1.0-2.
* see changelogneilbrown2001-12-201-1/+10
|
* See Changelogneilbrown2001-12-203-3/+3
|
* make "exportfs -au" do no DNS lookupneilbrown2001-09-204-12/+16
|
* call gethostbyaddr to make sure that we have canonical hostnameneilbrown2001-09-201-1/+11
| | | | for all exports
* 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>hjl2001-05-071-1/+12
| | | | | | | | | | * support/export/client.c (client_check): Check IP address againet netgroup. 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au> * support/export/client.c (client_gettype): Treat `*' as MCL_ANONYMOUS.
* 2000-10-17 Scott McDermott <mcdermot@questra.com>hjl2000-10-181-1/+14
| | | | | * support/export/client.c (client_init): Support CIDR netmask in /etc/exports.
* "dot+1" is bogus - it is a DNS domain, not a yp domainneilbrown2000-08-241-1/+1
|
* 1/ be less trusting of information in /var/lib/nfs/xtab. Add things toneilbrown2000-08-231-4/+15
| | | | | | kernel even if they are in here. 2/ O_CREAT [ex]log when locking for write incase they don't exist 3/ added etc/debian diretory with some files
* 2000-08-09 H.J. Lu <hjl@lucon.org>hjl2000-08-101-1/+1
| | | | | | | | * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during startup to ensure all existing clients work fine. * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0 to xtab_read () for reading _PATH_XTAB.
* 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>hjl2000-07-051-3/+3
| | | | | * support/export/hostname.c (hostent_dup): Handle the NULL h_aliases field.
* 2000-05-31 H.J. Lu <hjl@lucon.org>hjl2000-06-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in (VERSION): Set to "0.1.7.5". * configure: Regenerated. * nfs-utils.spec: Updated. * support/include/nfslib.h (exportent): Add a new field, r_count, to count the number of mounts from a client. (getrmtabent): Take a new argument for position in file. (putrmtabent): Likewise. (fgetrmtabent): Likewise. (fputrmtabent): Likewise. * support/nfs/rmtab.c (getrmtabent): Handle the new argument for position in file. (fgetrmtabent): Likewise. (putrmtabent): Likewise. (fputrmtabent): Likewise. * support/nfs/rmtab.c (fgetrmtabent): Get value for the new field, r_count. * support/export/rmtab.c (rmtab_read): Pass NULL as the new argument to getrmtabent (), fgetrmtabent (), putrmtabent () and fputrmtabent (). * utils/mountd/rmtab.c (mountlist_add): Likewise. (mountlist_del): Likewise. (mountlist_del_all): Likewise. (mountlist_list): Likewise. * utils/mountd/rmtab.c (mountlist_add): Increment "r_count" for the existing entry and initialize "r_count" to 1. (mountlist_del): Decrement "r_count".
* Thu Oct 28 11:27:51 EST 1999 Neil Brown <neilb@cse.unsw.edu.au>neilbrown1999-10-282-15/+19
| | | | | | | | | | * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK * support/nfs/exports.c: added {no_,}subtree_check and changed crossmnt to nohide * utils/exportfs/exports.man: added no_subtree_check and nohide and removed irrelevant stuff from unfsd. * support/export/rmtab.c: rmtab_read didn't quite do the right thing if a pathname from rmtab was a subdirectory of an export-point
* Initial revisionhjl1999-10-189-0/+1580