]> git.decadent.org.uk Git - nfs-utils.git/blob - ChangeLog
Remove unused variable causing compile warning
[nfs-utils.git] / ChangeLog
1 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
2         Remove unused variable causing compile warning
3         
4         Remove unused groups variable from get_ids() which was causing a compiler warning.
5         
6 2006-03-27 kwc@citi.umich.edu
7         Update krb5 code to use glue routine lucid context functions
8         
9         The gssd code should not know about the glue layer's context structure.
10         A previous patch added gss_export_lucid_sec_context() and
11         gss_free_lucid_sec_context() functions to the gssapi glue layer.
12         Use these functions rather than calling directly to the Kerberos
13         gssapi code (which requires the Kerberos context handle rather
14         than the glue's context handle).
15         
16 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
17         Separate out context handling code for MIT Kerberos and SPKM3
18         into their own file.
19         
20 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
21         Consolidate gssd and svcgssd since they share much code
22         
23         Remove directory svcgssd which was only created because the old
24         build system could not handle building two daemons in the same
25         directory.  This eliminates build complications since gssd and
26         svcgssd also share many source files.
27         
28         This patch effectively removes the utils/svcgssd directory, moving
29         all its files to the utils/gssd directory.  File utils/gssd/Makefile.am
30         is modified with directions to build both gssd and svcgssd.
31         
32 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
33         Use PKGCONFIG to locate gssapi and rpcsecgss header files
34         
35         Instead of having separate copies of the gssapi and rpcsecgss
36         header files, or depending on the Kerberos gssapi header,
37         locate the headers now installed with the libgssapi and librpcsecgss
38         libraries.
39         
40         Remove local copies of the gssapi and rpcsecgss header files.
41         
42         This depends on the configure_use_autotools patch.
43         
44 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
45         User-selectable idmapping cache lifetime
46         
47         Read and process new configuration option, Cache-Expiration, and use
48         the value to determine how long idmapping entries are cached.
49         
50 2006-03-27 Steve Dickson <steved@redhat.com>
51         Set libnfsidmap library debugging level and logging function.
52
53         This patch adds a call to the new libnfsidmap library function 
54         nfs4_set_debug(), which defines the verbosity level libnfsidmap
55         should use as well as the logging function.
56
57 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
58         Don't close file descriptor until after calling event_del().
59
60         Delete event processing for a file descriptor before closing it.
61         This was causing hangs when used in combination with libevent-1.0b.
62
63 2006-03-27 kwc@citi.umich.edu
64         Find krb5-config on SuSE 10
65
66         SuSE 10.0 puts krb5-config in yet another obscure location.
67         Look for it there and use it if found.
68
69 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
70         Update debian package information.
71
72 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
73         Install /var/lib/nfs files using DESTDIR and add rpcsec headers to distribution
74
75         Add "$(DESTDIR)" to the paths for the "$(statedir)" files so they are
76         put in the right place when DESTDIR is defined.
77
78         Add the rpcsec header files to EXTRA_DIST list.
79
80 2005-12-21 NeilBrown <neilb@suse.de>
81         *utils/rquotad/rquota_server.c: Detect and handle both old-style
82         (2.4) and new-style(2.6) quotactl.
83         *utils/gssd/gss_destroy_cred: remove dependence on "head -1" which
84         might need to be "head -n 1"
85         *utils/nhfsstone/nhfsrun: convert "tail -1" to "tail -n 1"
86         
87 2005-12-20 Kevin Coffman <kwc@citi.umich.edu> NeilBrown <neilb@suse.de>
88         Substantial Makefile/configure rewrite.  
89         Run 'autogen.sh' to create "Makefile.in" etc.
90
91         Also add -D_FILE_OFFSET_BITS=64 to CPP_FLAGS so that mountd can
92         stat and export files larger than 2Gig.
93
94         1.0.8-rc2 released
95
96 2005-12-20 NeilBrown <neilb@suse.de>
97         support/nfs/exports.c(getexportent): is a null host name is given,
98         replace it with '*' so we have a non-empty host name for messages
99         etc.
100         utils/exportfs/exportfs.man: Correct documentation about default
101         export options.
102
103 2005-12-20 Kevin Coffman <kwc@citi.umich.edu>
104         utils/gssd/gssd_proc.c(create_auth_rpc_client): Use service
105           portion of clp->servicename rather than hard-coding "nfs". 
106
107 2005-12-16 NeilBrown <neilb@suse.de>
108         1.0.8-rc1 released
109
110 2005-12-16 Kevin Coffman <kwc@citi.umich.edu>
111         svcgssd needs -lnfs when using new function closeall().
112         
113         ---
114         Remove unused argument from nfsdopen()
115         
116         After previous changes, the arguement to nfsdopen() has become unused.
117         Remove it.
118         
119         ---
120         Fix idmapd error reporting after call to mydaemon()
121         
122         After call to mydaemon(), calls to err[x] and warn[x] result
123         in the message going nowhere.  Change to using idmapd_*
124         versions of these routines which write to syslog.
125         Original problem reported by Vincent Roqueta <vincent.roqueta@ext.bull.net>
126         with a different patch.
127         
128         ---
129         Don't add @domain to names that cannot be mapped.
130         
131         Per rfc3530 section 5.8: when unable to map a uid to a name, don't
132         add the @domain to the "nobody" name.
133         
134         ---
135         Fix idmapd for systems where sizeof(uid_t)!=4 and sizeof(gid_t)!=4
136         
137         Fix conversion cases where uid_t and gid_t are not 32 bits.
138         
139         ---
140         Don't segfault because mech wasn't filled in because of an error
141         
142         From Kevin Coffman <kwc@citi.umich.edu>
143         
144         Initialize mech to null to avoid segfault if an error occurs
145         and mech is never returned from gss_accept_sec_context.
146         
147         ---
148         Remove use of static buffer in do_downcall
149         
150         Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
151         
152         Dynamically allocate buffer of the correct length rather
153         than using fixed-length buffer.
154         
155         ---
156         Print better error message if rpc routine clnt_create() fails.
157         
158         ---
159         Print appropriate error messages after gss calls.
160         
161         Print gss error messages after calls to gss functions, even if they
162         are for Kerberos only.
163         
164         ---
165         Update gssd and svcgssd to use the new gss mech glue lucid context calls.
166         
167         Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
168         
169         Update gssd and svcgssd to use a lucid context from SPKM3 to send down
170         to the kernel.
171         Update gssd and svcgssd to use the new gss mech glue lucid context calls.
172         Add configure check to see if spkm3 support is available.
173         
174         ---
175         Add support for CONTINUE_NEEDED return from gss_accept_sec_context.
176         
177         Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
178         
179         Add CONTINUE_INIT handling to svcgssd. Store the partially complete spkm
180         context handle in the out_handle of CONTINUE_INIT messages so that it is
181         returned in the in_handle of subsequent messages.
182         
183         ---
184         Replace GSS_C_ANON_FLAG with GSS_C_MUTUAL_FLAG.
185         
186         Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
187         
188         Specify GSS_C_MUTUAL_FLAG rather than GSS_C_ANON_FLAG for
189         spkm3.
190         
191         NOTE: we need a way to pass the appropriate value rather than
192         hard-coding this flag.
193         
194         ---
195         Increase size of rpc send/receive buffers
196         
197         Change the clnt_create() to use routines which allow us to set the
198         send and receive buffer size.  This is needed for larger spkm3
199         exchanges including certificate chains.
200         
201         This has the side-effect of skipping the portmap call since
202         we specify the port (by specifying the service) when getting
203         the server's address information.
204         
205         ---
206         Define _LINUX_QUOTA_VERSION to 1
207         
208         The rquotad code is written against the "old" kernel quota interface.
209         Fedora Core 4 is the only platform known to check for different
210         versions, so this should not have any affect on other platforms
211         and fixes the build for FC4.
212         
213         ---
214
215 2005-12-12 Usha Ketineni <ketineni@us.ibm.com>, NeilBrown <neilb@suse.de>
216         *support/nfs/rpcmisc.c(rpc_init): is stdin is a socket, but
217         is already connected (as e.g. from ssh), don't assume we
218         were started by inetd.
219
220 2005-11-03 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
221         *utils/idmapd/idmaps.c:
222         
223         I've recently updated the nfs-utils in rawhide with the
224         latest patches from the SourceForge CVS tree and the
225         latest CITI patches (1.0.7-4).
226         
227         In testing these patches, I notice that when the server was started
228         and a SIGHUP was sent to rpc.idmapd to open the nfs4.nametoid/channel
229         and nfs4.idtoname/channel files, the second open (the nfs4.idtoname one)
230         failed because the path (i.e. ic->ic_path) was NULL.
231         
232         Now the reason the ic_path was NULL was because it was never set
233         during the call to nfsdopen(). nfsdopen() looks like:
234         nfsdopen(char *path)
235         {
236              return ((nfsdopenone(&nfsd_ic[IC_NAMEID], IC_NAMEID, path) == 0 &&
237              nfsdopenone(&nfsd_ic[IC_IDNAME], IC_IDNAME, path) == 0) ? 0 
238                : -1);
239         }
240
241         Note: the call to nfsdopenone() is how the path is set in each nfsd_ic[]
242         entry and nfsdopen() is only called once.
243         
244         So when rpc.idmap comes up and the first call to nfsdopenone() fails
245         (because the server is not running) the path in nfsd_ic[IC_IDNAME] is
246         never filled in because the second nfsdopenone() never happen...
247         
248         Now there was a CITI patche (idmapd_revert_fix_reopen_on_sighup.dif)
249         that tried to address this problem but did seem to fix it.. The
250         attached patch fix the problem by initializing both nfsd_ic[IC_IDNAME]
251         and nfsd_ic[IC_NAMEID] structures with the needed info...
252         I figured since there is no way of changing these paths or filenames
253         by command line args, why not just set them during compile time...
254         so that's what this patch does.
255         
256         This patch also changes how nfsdreopen_one() handles the
257         case where the event has already been set. Unlike the CITI
258         patch (idmapd_revert_fix_reopen_on_sighup.dif) which just
259         just does not register the second event, my patch deletes
260         the old event and the registers the new one. It just seems like
261         the right thing to do since a SIGHUP means a new server just
262         started so we probably should create a new event as well...
263         
264         steved.
265         
266 2005-10-14 NeilBrown <neilb@suse.de>
267         *utils/mountd/cache.c(nfsd_fh): Understand type 2 and type 3
268         filesystem identifiers, which are used with device numbers
269         That don't fit into 16 bits.
270
271 2005-10-07 Olaf Kirch <okir@suse.de>
272         * utils/mountd/mountd.c(get_exportlist): Without this patch,
273         showmount -e would sometimes display host names that should really
274         have been subsumed under a wildcard entry.
275
276         The problem was that the code in get_exportlist would always
277         skip the next group entry after removing one FQDN.
278
279 2005-10-06 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
280         * support/nfs/export.c: don't warn about sync/async for readonly
281         exports
282         * support/nfs/closeall.c: new file with function to close all 
283         file descriptors from a give minimum upwards.
284         * nfsd/mountd/statd/idmapd/gsssvcd: use closeall.
285         * utils/mountd/mountd.c: Eliminate 3 syslog message that are
286         logged for successful events. 
287         * utils/mountd/mountd.c: make sure the correct hostname is used in
288         the SM_NOTIFY message that is sent from a rebooted server which
289         has multiple network interfaces. (bz 139101)
290
291         Details can be found in:
292         https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=139101
293
294         *utils/idmapd/idmapd.c:Fixed subscripting problem in idmapd (bz
295         158188) This fixes the following problem: 
296          rpc.idmapd: nfsdreopen: Opening '' failed: errno 2 (No such file or directory)
297
298          Details can be found in:
299          https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=158188
300
301         *utils/statd/statd.c(drop_privs): clear st_gid as well as st_uid
302         of stat fails.
303         *utils/statd/svc_run.c(my_svc_run): remove usage of undocumented
304         %m format specifier.
305         *utils/statd/montor.c(sm_mon_1_svc): as above
306         *support/nfs/xlog.c(xlog): Changed xlog to use LOG_INFO instead of
307         LOG_DEBUG so debug messages will appear w/out any config changes
308         to syslog.conf. 
309
310         
311 2005-09-02 Mike Frysinger <vapier@gentoo.org>
312         * utils/rquotad/rquota_server.c(getquotainfo): use explicit
313         struture-member copying rather than memcpy, as the element
314         sizes are the same on all architectures.
315
316 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
317         Add option to set rpcsec_gss debugging level (if available)
318
319         Changes to allow gssd/svcgssd to build when using Hiemdal Kerberos
320         libraries.  Note that there are still run-time issues preventing
321         this from working when shared libraries for libgssapi and librpcsecgss
322         are used.
323         
324 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
325         Remove the rpcsec_gss code and rely on an external library instead.
326
327 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
328         *utils/mountd/mountd.c:
329         mountd currently always returns AUTH_NULL and AUTH_SYS as the
330         allowable flavors in mount replies.  We want it to also return gss
331         flavors when appropriate. For now as a hack we just have it always
332         return the KRB5 flavors as well. 
333
334         *utils/mountd/cache.c:
335         
336         When attempting to mount an NFSv4 pseudofilesystem (fsid=0) and the
337         actual exported directory does not exist on the server, rpc.mountd
338         doesn't check the directory exists (when fsidtype=1, i.e. using fsid,
339         but does check for fsidtype=0, i.e. using dev/ino).  The non-existent
340         exported directory path with fsid=0 is written to the kernel via
341         /proc/net/rpc/nfsd.export/channel, which leads to path_lookup() to
342         return ENOENT (seems appropriate).  Unfortunately, the new_cache
343         approach ignores errors returned when writing via the channel file so
344         that particular error is lost and the mount request is silently ignored.
345         
346         Assuming it doesn't make sense to revamp the new_cache/up-call method to
347         not ignore returned errors, it seems appropriate to fix the case where
348         rpc.mountd doesn't check for the existence of an exported directory with
349         fsid= semantics.  The following patch does this by moving the stat() up
350         so it is done for both fsidtype's.  I'm not certain whether the other
351         tests need to be executed for fsidtype=1, but it doesn't appear to hurt
352         [Not exactly true: the comparison of inode numbers caused problems so
353         now it's kept for fsidtype=0 only].
354         
355         Would it be also desirable to log a warning for every error, if any,
356         returned by a write to any of the /proc/net/rpc/*/channel files which
357         would otherwise be ignored (maybe under a debug flag)?
358
359         * gssd/mountd/svcgssd: Changes gssd, svcgssd, and mountd to ignore a
360         SIGHUP rather than dying.
361
362         * many: Remove the gssapi code and rely on an external library instead.
363
364 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
365         * utils/exportfs/exports.man: Document the "crossmnt" export export option
366         * utils/gssd/krb5_util.c: 
367         Add better debugging and partially revert the function
368         check for gss_krb5_ccache_name.
369         
370         For MIT Kerberos releases up to and including 1.3.1, we *must*
371         use the routine gss_krb5_ccache_name to get the K5 gssapi code
372         to use a different credentials cache.
373         
374         For releases 1.3.2 and on, we want to use the KRB5CCNAME
375         environment variable to tell it what to use.
376         (A problem was reported where 1.3.5 was being used, our
377         code was using gss_krb5_ccache_name, but the underlying
378         code continued to use the first (or default?) credentials
379         cache.  Switching to using the env variable fixed the problem.
380         I cannot recreate this problem.
381
382         *utils/gssd/krb5_util.c:
383         Andrew Mahone <andrew.mahone@gmail.com> reported that reiser4
384         always has DT_UNKNOWN.  He supplied patch to move the check
385         for regular files after the stat() call to correctly find
386         ccache files in reiser4 filesystem.
387         
388         Also change the name comparison so that the wrong file is
389         not selected when the substring comparison is done.
390
391         *utils/gssd/krb5_util.c:
392         Limit the set of encryption types that can be negotiated by
393         the Kerberos library to those that the kernel code currently
394         supports.
395         
396         This should eventually query the kernel for the list of
397         supported enctypes.
398
399         *utils/gssd/gss_util.c, utils/svcgssd/svcgssd_main_loop.c:
400         Print more information in error messages to help debugging failures.
401
402         *utils/svcgssd/svcgssd_proc.c: Increase token buffer size and
403         update error handling so that a response is always sent.
404
405         *utils/svcgssd/svcgssd_proc.c: Add support to retrieve
406         supplementary groups. 
407         
408         
409 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
410         * configure.in etc
411         Consolidate some of the Kerberos checking instead of repeating
412         the same things for MIT and Heimdal.
413         Also adds more checks to distinguish 32-bit from 64-bit
414         (mainly for gssapi.h)
415         Fix svcgssd Makefile so make TOP=../../ works correctly there.
416         Enable running a modern autoheader.
417         * utils/gssd/gss_oids.c: Use correct OID value for SPKM-3
418         * utils/gssd/gss_util.c: Fix build with older MIT releases that do not define GSS_C_NT_HOSTBASED_SERVICE
419         * utils/gssd/write_bytes.h, support/include/gssapi/gssapi.h:
420         Length of gss_buffer_desc is a size_t which is 64-bits on a
421         64-bit machine.  Kernel code expects 32-bit integer for length.
422         Coerce length value into a 32-bit value when reading from or
423         writing to the kernel.
424         Change gssapi.h to use datatype size values obtained from
425         configure rather than hard-coded values.
426         * utils/idmapd/idmapd.c: The EV_INIT check here was wrong, and was
427         causing idmapd to become unresponsive to server requests after
428         receiving a sighup. 
429         * utils/idmapd/idmapd.c: Idmapd should flush the server id<->name
430         caches when its started. 
431
432 2005-04-12  G. Allen Morris III <gam3@gam3.net>
433
434         * All Makefile: added TOP as needed for easier compile.
435
436         * utils/nfsstat/nfsstat.c: added NFS V4 support; added the -m
437           option; Added -2, -3, and -4 options; changed -a option to -v
438           option; added long options; changed default output to not
439           show V2 NFS statistics unless used.
440
441         * utils/nfsstat/nfsstat.man: Documented above changes; changed
442           authors email address; added BUGS section.
443
444 2005-04-07  Chip Salzenberg  <chip@pobox.com>
445
446         * debian/changelog: Version 1.0.7-2.
447
448 2005-04-06  Chip Salzenberg  <chip@pobox.com>
449
450         * config.guess, config.sub: Update.
451
452         * support/rpc/svc_auth_gss.c (_svcauth_gss): Avoid using a cast as
453         an lvalue, as it is non-portable.
454
455         * support/nfs/exports.c (parseopts): Accept "acl" option to mean
456         ~NFSEXP_NOACL, and "no_acl" to mean NFSEXP_NOACL.
457         (putexportent): Report NFSEXP_NOACL as "no_acl", and ~NFSEXP_NOACL
458         as "acl".
459         * utils/exportfs/exportfs.c (dump): Report NFSEXP_NOACL as
460         "no_acl".
461         * utils/exportfs/exports.man: Document "no_acl".
462
463 2005-03-14  NeilBrown <neilb@cse.unsw.edu.au>
464         Denis Vlasenko <vda@ilport.com.ua>
465         * support/export/client.c(client_init and client_gettype):
466         treat N.N.N.N as a special case of MCL_SUBNETWORK instead of 
467         MCL_FQDN
468
469 2005-03-06  G. Allen Morris III <gam3@gam3.net>
470         * support/nfs/cacheio.c(readline): Could not read lines greater
471         than 128 bytes. [1157791] 
472         * utils/exportfs/exports.man: Added a SEE ALSO section and
473         fixed 2 typos. [1018450]
474
475 2005-02-28  Trond Myklebust <trond.myklebust@fys.uio.no>
476         * utils/statd/rmtcall.c(statd_get_socket): If a port number is
477         explicitly given, make sure to try to bind to that.
478         
479 2005-01-11  Chip Salzenberg  <chip@pobox.com>
480
481         * debian/changelog: Version 1.0.7-1.
482         * debian/nfs-common.default (NEED_IDMAPD, NEED_GSSD):
483         Disable by default, on advice of upstream.
484         * debian/nfs-kernel-server.default (NEED_SVCGSSD):
485         Likewise.
486
487         * utils/svcgssd/Makefile (predep): Symbolically link duplicated
488         source files.
489         (distclean): Remove symlinks to duplicated files.
490
491 2004-12-17 NeilBrown <neilb@cse.unsw.edu.au>
492         Release 1.0.7
493
494         * config.mk, configure.in: update version number, run autoconf
495         * configure.in: require nfsidmap.h if gss is enabled.
496         
497 2004-12-10 NeilBrown <neilb@cse.unsw.edu.au>
498         Release 1.0.7-pre2
499         
500         * config.mk, configure.in: update version number, run autoconf
501         
502 2004-12-10 Neil Brown <neilb@cse.unsw.edu.au>
503         * README : note dependancy on kerberos, libevent, and nfsidmap
504         * configure.in : fail if --enable-nfsv4 and libevent or
505         libnfsidmap are missing.
506         * configuyre.in: improve message if krb5 support is missing
507         
508 2004-12-06 Paul Clements <paul.clements@steeleye.com>   
509         * support/include/ha-callout.h: get return status from waitpid
510         correctly. 
511         * support/include/ha-callout.h: don't ignore SIGCHLD while waiting
512         for a callout to complete.
513         * utils/statd/statd.c(sigusr): print current start when re-reading
514         notify list due to SIGUSR1
515         * utils/statd/svc_run.c(my_svc_run): call change_state when
516         re-notifying clients.
517         
518 2004-12-06 Marc Eshel <eshel@almaden.ibm.com>
519         * utils/statd/svc_run.c(my_svc_run): allow loop to exit when in
520         MODE_NOTIFY_ONLY
521         *utils/statd/rmtcall.c(statd_get_socket): if a hostname is given
522         to statd with -n, prefer it's IP address to the default for
523         listening on.
524         
525 2004-12-06 Bruce Allan <bwa@us.ibm.com>
526         * utils/mountd/auth.c(auth_reload)  Clear the "my_client" cache on
527         an auth_reload to avoid old data getting used.
528         
529 2004-12-03 NeilBrown <neilb@cse.unsw.edu.au>
530         Release 1.0.7-pre1 for testing
531         
532         * config.mk, configure.in: update version number, run autoconf
533         
534 2004-12-03 Trond Myklebust <trond.myklebust@fys.uio.no>
535
536         * utils/statd/statd.c(main): ignore SIGPIPE
537         
538 2004-11-22 "J. Bruce Fields" <bfields@fieldses.org>
539
540         * tools/rpcdebug/rpcdebug.c: support aliases "nfsdebug" and
541         "nfsddebug" and update flag names.
542         * configure.in, nodist/* redhat/* nfs-utils.spec*: remove redhat
543         specific files (as no-one actually uses them, especially not
544         redhat), and the nodist /etc files (as they drift out-of-date, and
545         the debian directory provides a suitable example.
546         * utils/svcgssd_proc.c(get_ids): fix memory leak
547         * utils/svcgssd/svcgssd_proc.c: Rely on count of the number of
548         groups instead of using a special guard value to identify the end
549         of the list. 
550         * utils/idmapd/idmapd.c: don't allow Default domain and anon-uid
551         or -gid to be specified on command line.
552         * utils/idmapd/idmapd.c: improve error messages
553         * utils/idmapd/idmapd.c: Reopen nfsd files on sighup.  Allows us
554         to start up client side only (even when nfsd module not loaded),
555         and then sighup later after insmodding nfsd module. 
556         * utils/idmapd/idmapd.c: Make sure we catch all errors on
557         daemonizing by waiting for child to report succesfull startup
558         using a pipe. 
559         * utils/idmapd/idmapd.c: Let libnfsidmapd parse the idmapd.conf
560         file for the default domain, instead of doing that ourselves.
561         * utils/gssd/gssd_proc.c: Make sure we get an error when a gssd
562         downcall fails. 
563         * utils/gssd/gssd_proc.c: We were forgetting to restore the euid
564         on certain failures, which meant gssd could get stuck in a state
565         where it didn't have permissions to read the files in rpc_pipefs
566         that it needed to. 
567         * utils/gssd/gssd_proc.c: Use libnfsidmapd to map gss principals
568         to uids. 
569         * debian/nfs-kernel-server.default: Document the NEED_SVCGSSD
570         variable in /etc/default/nfs-kernel-server. 
571
572         
573 2004-11-22 NeilBrown <neilb@cse.unsw.edu.au>
574
575         * utils/exportfs/nfsd.man: corrected typo in .BR macro usage -
576         reported by Eric Raymond
577         
578 2004-10-19 "J. Bruce Fields" <bfields@fieldses.org>
579
580         * support/gssapi/* support/rpc/* utils/gssd/* utils/svcgssd/* etc
581         initial support for GSSAPI authentication
582         
583 2004-09-15 Neil Brown <neilb@cse.unsw.edu.au>
584
585         * utils/statd/monitor.c(sm_unmon_1_svc): is RESTRICTED_STATD, then
586         check IP address and force my_name to 127.0.0.1 to match 
587         what happens in sm_mon_1_svc.  This avoid spurious "erroneous
588         SM_UNMON" messages.
589         * utils/statd.monitor.c(sm_unmon_all_1_svc): likewise
590         
591 2004-09-15 "J. Bruce Fields" <bfields@fieldses.org>     
592
593         * Assorted changes to support "gss/*" style authentication
594         * utils/idmapd: new idmapd daemon for nfsv4 username lookup
595         
596 2004-09-06 Trond Myklebust <trond.myklebust@fys.uio.no>
597         Neil Brown <neilb@cse.unsw.edu.au>
598
599         * utils/mountd/auth.c(auth_authenticate_internal): fix
600         uninitialsed variable problem (causes bad error messages).
601
602 2004-09-06 Paul Clements <paul.clements@steeleye.com>
603         Neil Brown <neilb@cse.unsw.edu.au>
604
605         * utils/mountd/mountd.c(main): support --ha-callout (-H) for
606         specifying a callout program
607         * utils/mountd/rmtab.c: Call ha_callout on mount/unmount
608         * utils/statd/monitor.c: Call ha_callout on add/del client
609         * utils/statd/rmtcall.c: as above
610         * utils/statd/statd.c: handle --ha-callout (-H)
611         * utils/statd/svc_run.c: call notify_hosts is we have received a
612         sighup
613         * support/include/ha-callout.h: define ha_callout function
614          
615         
616 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
617         * utils/mountd/cache.c(cache_process_req): clear fd after
618         processing so as not to confused libc/sunrpc into thinking
619         it need to do something with that fd.
620         
621 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
622
623         * debian/nfs-kernel-server.init(start,stop) mount the nfsd
624         filesystem, if available, before starting nfs services, and 
625         unmount it afterwards.
626         * etc/nodist/nfs-server: ditto
627         * etc/redhat/nfs.init: likewise
628         * etc/redhat/nfs: add "MOUNT_NFSD" flag to control above.
629         
630 2004-06-08 NeilBrown <neilb@cse.unsw.edu.au>
631
632         * utils/exportfs/exportfs.c: Don't rmtab_read if new_cache, it
633           isn't necessary.
634         * support/nfs/cacheio.c(cache_flush): Change order in which caches
635           are flushed so that dependancies don't keep things in the cache
636           too long.
637         
638 2004-03-18  Chip Salzenberg  <chip@pobox.com>
639
640         * debian/changelog: Version 1.0.6-2.
641
642 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
643         from "J. Bruce Fields" <bfields@fieldses.org>
644
645         * utils/mountd/cache.c: call auth_reload to make sure auth data is
646         current before responding to kernel upcall.
647         
648 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
649         Based on patch from  Greg Banks <gnb@melbourne.sgi.com>
650
651         * utils/exportfs/exports.man: Document fsid= option.
652         
653 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
654
655         Release 1.0.6
656
657         * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
658         support/include, and depend in "predep"
659         * support/export/Makefile, tools/rpcgen/Makefile,
660         utils/statd/Makefile: add "predep" rule so that "make dep" works.
661         * Makefile: allow a simple "make" to run ./configure and "make dep"
662         if needed.
663         * configure.in, nfs-utils.spec: Update version to 1.0.6
664         * run autoconf
665         
666 2003-09-12  Chip Salzenberg  <chip@pobox.com>
667
668         * debian/changelog: Version 1.0.6-1.
669
670 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
671
672         * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
673         for RLIMIT_NOFILE
674         * utils/statd/statd.c(main): Ditto.
675
676            michael <michael@newdream.net> discovered that svc_setreqsize
677            in glibc can segfault if RLIMIT_NOFILE is bigger than
678            FD_SETSIZE, so a simple solution is to impose a hard limit.
679
680 2003-09-09  Chip Salzenberg  <chip@pobox.com>
681
682         * debian/changelog: Version 1.0.5-3.
683         * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
684         on invalid reverse DNS.
685         * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
686         * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
687         * tools/rpcgen/rpc_parse.c (def_union): Likewise.
688
689 2003-08-22  Chip Salzenberg  <chip@pobox.com>
690
691         * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
692         N_*, to avoid conflict with ISO C built-in log() function.
693         * utils/statd/*.c: Use note().
694
695 2003-08-20  Chip Salzenberg  <chip@pobox.com>
696
697         * debian/changelog: Version 1.0.5-2.
698
699 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
700
701         * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
702         before returning.
703         
704 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
705
706         * support/include/nfs/export.h, support/nfs/exports.c,
707         utils/exportfs/exports.c, utils/mountd/mountd.c:  change
708         NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
709         meaning. Also remove meaningless
710         NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
711         
712 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
713
714         * support/export/xtab.c, support/include/nfslib.h,
715         support/nfs/cacheio.c, support/nfs/nfssvc.c,
716         utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
717         utils/exportfs/nfsd.man, utils/mountd/cache.c: support
718         /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
719         (nfs-utils-1.0.5-post2)
720         
721 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
722
723         * support/nfs/nfsexport.c: open channel file O_WRONLY when
724         only writing.
725         * utils/mountd/cache.c: maintain mountlist when new_cache is
726         active. Also use O_WRONLY for channel files.
727         * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
728         rather than an nfs_export.
729         * utils/mountd/rmtab.c: ditto.
730         (nfs-utils-1.5.0-post1)
731         
732 2003-07-24  Chip Salzenberg  <chip@pobox.com>
733
734         * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
735         use Debian security team's cleaner approach.
736         * debian/changelog: Version 1.0.5-1.
737         * debian/nfs-kernel-server.init: Cosmetic changes.
738
739 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
740
741         Release 1.0.5:
742          1.0.4 was a bit of a brown-paper-bag-release because of the extra
743          'free' in auth.c.  So I'm releasing this just a few days later.
744
745         * support/nfs/cacheio.c(cache_flush): Correct test for 'open
746         failed'
747         * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
748         check if new_cache is enabled, error if not, flush and exit if it
749         is. 
750         * utils/exportfs/exportfs.man: Explain -f option and explain the
751         two different modes that exportfs can work in.
752         * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
753         option wasn't given.
754         * utils/mountd/mountd.man: Record the change if default behaviour
755         for RLIMIT_NOFILE.
756         * configure.in, nfs-utils.spec: update version to 1.0.5 and
757         run autoconf
758         
759 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
760
761         * utils/mountd/mountd.c(main): getopt string fix for 'o'
762         * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
763         * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
764         the caches.
765         * support/include/nfs/export.h: Reserve a bit for possible ACL
766         related use.
767         
768 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
769
770         * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
771         assorted changed to cope with section 7 of the manual.
772         * configure.in, nfs-utils.spec: Update version to 1.0.4
773         * run autoconf
774
775         This is a 'pre-release' for 1.1.0  Hopefully 1.1.0 will be the
776         baseline for 2.6 and 2.8.  I.e. it should continue to work right
777         through the 2.8 (or 3.0) kernel series.  Previous releases wont.
778
779 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>    
780         Steve Dickson <SteveD@redhat.com>
781
782         statd cleanup:
783         * utils/statd/statd.c: create a pidfile with pid of statd, and
784         truncate it when statd exists.
785         * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
786         and warn if this is root.
787         * utils/statd/statd.c: when statd forks, connect child to parent
788         with a pipe, and send a byte down the pipe once the child is
789         working properly.
790         * Makefile: create and chown sm, sm.bak, state when "make install"
791         * configure.in: add --with-statduser= option which defaults to
792         "rpcuser" or "nobody"
793         * config.mk.in: pass "statduser" through to Makefile
794         
795 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
796
797         * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
798         used as the size was changed somewhere in 2.5.60-2.5.70.  Without
799         this nfs-utils compiles against 2.6 headers will not work on a
800         2.4 kernel.     
801         
802 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
803
804         * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
805         set number of threads by writing to there.  This means it will
806         still work when the syscall interface goes away in 2.7.
807
808 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
809         fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
810
811         * utils/exportfs/exportfs.c(unexportfs): improve host comparison
812         so as to only export the wildcard exports that were asked for.
813         * support/export/export.c(export_allowed): changed to return the
814         nfs_export rather than a "struct exportent", as m_changed is
815         needed by called
816         * support/export/rmtab.c(rmtab_read): modified to deal with
817         interface change for export_allowed(), and enhanced to preserve
818         m_changed flag when a wild-card export causes the creation of
819         a non-wildcard export.
820         
821 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
822         Steve Dickson <SteveD@redhat.com>
823
824         * utils/mountd/mountd.man: Add valid kinds of debugging.
825         * utils/mountd/mountd.c(main): ignore SIGPIPE
826         * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
827         we don't get warnings about unavailable stats that weren't asked
828         for.
829         
830 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
831
832         * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
833         via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
834         'forever', so things disappear out of the cache rather than just
835         be ignored. 
836         
837 2003-06-16  "J. Bruce Fields" <bfields@fieldses.org>
838
839         * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
840         if it wasn't found.
841
842 2003-06-16  NeilBrown   <neilb@cse.unsw.edu.au>
843
844         * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
845         etc/redhat/nfs.init: when checking if V3 is supported, make sure
846         nfs server 'knows' about 127.0.0.1 first.
847         
848 2003-06-10  Chip Salzenberg  <chip@pobox.com>
849
850         * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
851         * debian/changelog: Version 1.0.3-2.
852
853 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
854         NeilBrown <neilb@cse.unsw.edu.au>
855
856         utils/nfsstat/nfsstat.c(print_callstats): use unsigned
857         long long to avoid overflow when printing stats.
858         
859 2003-05-30  NeilBrown <neilb@cse.unsw.edu.au>
860
861         * support/export/export.c, support/include/nfslib.h,
862         support/nfs/export.c, utils/exportfs/exportfs.c,
863         utils/mountd/mountd.c: new export option "mountpoint"
864         If no path is given, then the export point must be a
865         mount point, or it won't be exported.  If a path is 
866         given (e.g. mountpoint=/path) then that path must be
867         a mountpoint or the exportpoint won't be exported.
868         * utils/exportfs/exportfs.man: document mountpoint option.
869         * support/misc/mountpoint.c: New file with is_mountpoint()
870         to determine if something is a mountpoint.
871         
872 2003-05-23  NeilBrown <neilb@cse.unsw.edu.au>
873
874         * utils/mountd/cache.c(cache_get_filehandle): take a separate path
875         argument as we might not be getting the filehandle for the
876         mountpoint.
877         * utils/mountd/mountd.c(get_rootfh): pass real path when calling
878         cache_get_filehandle.
879         * utils/mountd/mountd.c(get_rootfh): check export point and
880         requested directory are on the same filesystem, and complain if
881         not.
882         
883 2003-05-22  NeilBrown <neilb@cse.unsw.edu.au>
884
885         * utils/mountd/auth.c(auth_authenticate_internal): make sure
886         portnumber is still checked when using new cache lookup.
887         
888 2003-05-21  NeilBrown <neilb@cse.unsw.edu.au>
889
890         * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
891          Don't actually talk to kernel when new cache is in effect, except
892          to flush
893         * utils/exportfs/exportfs.c: add -f option to fully flush cache.
894         * support/export/xtab.c: Only rename new xtab into place if it has
895          changed, thus preserving modify date for exportfs to use when
896          flushing.
897         * support/nfs/cacheio.c: Add cache_flush
898         * support/export/xtab.c: Only rename new xtab into place if it has
899          changed, thus preserving modify date for exportfs to use when
900          flushing.
901         
902 2003-05-21  NeilBrown <neilb@cse.unsw.edu.au>
903
904         * support/export/client.c: Add client_compose, client_member to
905         handle new composite client names
906         * support/include/exportfs.h: Declare above functions.
907         * utils/mountd/auth.c: use client_compose to determine calling
908         client if new cache is being used.
909         * utils/mountd/auth.c: call cache_export to export a filesystem if
910         new_cache, check if new cache is used, and call my_svc_run instead
911         of svc_run
912         * utils/mountd/svc_run.c: new file defining my_svc_run
913         * utils/mountd/cache.c: new file for handling cache upcalls.
914         * support/nfs/cacheio.c(check_new_cache): new function to check if
915         new cache should be used.
916         
917         
918 2003-05-21  NeilBrown <neilb@cse.unsw.edu.au>
919
920         * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
921         * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
922         * utils/exportfs/exportfs.c(dump): ditto
923         
924 2003-05-21  NeilBrown <neilb@cse.unsw.edu.au>
925
926         * support/export/hostname.c(get_reliable_hostbyaddr): new function
927         to get host name from address with full checking of authenticity.
928         * support/include/misc.h: declare above function
929         * utils/mountd/auth.c(auth_authenticate_internal): remove all
930         logic for authenticating address.
931         * utils/mountd/auth.c(auth_authenticate): call new
932         get_reliable_hostbyaddr to to hostname lookup before calling _internal.
933         
934         
935 2003-03-30  NeilBrown <neilb@cse.unsw.edu.au>
936
937         * tools/rpcgen/rpc_main.c(find_cpp): removed
938         * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp", 
939         then try hard-coded paths.
940         
941 2003-03-26  Chip Salzenberg  <chip@pobox.com>
942
943         * debian/changelog: Version 1.0.3-1.
944
945 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
946
947         * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
948         "const char*", not "char*".
949
950 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
951
952         * configure.in (VERSION): Set to "1.0.3".
953         * nfs-utils.spec: Likewise.
954         * configure: Regenerated.
955
956 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
957
958         * support/nfs/cacheio.c: New File - support for read/writing
959         to export cache in /proc/rpc/*/channel
960         * support/nfs/Makefile: compile cacheio.c
961         * support/include/nfslib.h: declare cacheio.c functions
962         * support/nfs/nfsexport.c: export and unexport through
963         /proc/rpc/*/channel if possible, as old syscall interface
964         may not survive into 2.6 on all architectures.
965         
966 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>    
967         Ben Leslie <benno@sesgroup.net>
968
969         * support/nfs/rpcmisc.c(rpc_init):  change test for ignoring
970         "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0).  The
971         former would incorectly ignore defport if the application 
972         explicitly set __rpcfdtype.  The later is sufficient to avoid the
973         special handling in the case where stdin is an internet socket.
974
975         * utils/mountd/mountd.c(main): Add 'n' to option list in
976         getopt_long as this is a short form of --no-tcp which want being
977         checked.
978         
979 2003-02-12  Chip Salzenberg  <chip@pobox.com>
980
981         * debian/changelog: Version 1.0.2-2.
982
983 2002-11-27  Chip Salzenberg  <chip@pobox.com>
984
985         * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
986         overflow bug.  Reformat per rest of source file.
987
988 2002-11-19  NeilBrown <neilb@cse.unsw.edu.au>
989
990         * utils/exportfs/exports.man: Correct notes about whether the wild
991         card characters match a period.  They do.
992         
993 2002-10-15  Juan Gomez <juang@us.ibm.com>
994
995         * utils/mountd/rmtab.c (slink_safe_rename): New. Support
996         symlink.
997         (mountlist_add): Call slink_safe_rename instead of rename.
998
999 2002-10-11  H.J. Lu <hjl@lucon.org>
1000
1001         * support/include/exportfs.h (export_errno): New.
1002
1003         * support/nfs/exports.c: Include <errno.h>.
1004         (export_errno): New.
1005         (getexportent): Set export_errno to EINVAL for bad option.
1006         (parseopts): Likewise.
1007         Report the location of the default sync/async option.
1008
1009         * utils/exportfs/exportfs.c (main): Initialize export_errno to
1010         0. Return export_errno.
1011
1012 2002-10-11  Juan Gomez  <gomez@cs.sjsu.edu>
1013         NeilBrown <neilb@cse.unsw.edu.au>
1014
1015         utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
1016         utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
1017         
1018 2002-09-16  Chip Salzenberg  <chip@pobox.com>
1019
1020         * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
1021
1022 2002-09-15  Chip Salzenberg  <chip@pobox.com>
1023
1024         * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
1025         socket, as occurs when run from sshd.
1026         * debian/changelog: Version 1.0.2-1.
1027
1028 2002-09-12  H.J. Lu <hjl@lucon.org>
1029
1030         * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
1031         HAVE_SVCUDP_SOCKET.
1032
1033 2002-09-12  H.J. Lu <hjl@lucon.org>
1034
1035         * configure.in: Remove checking svctcp_socket and svcudp_socket.
1036         * configure: Regenerated.
1037
1038         * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
1039         (HAVE_SVCUDP_SOCKET): Removed.
1040
1041         * support/include/nfslib.h: Undo the last change.
1042
1043 2002-09-12  H.J. Lu <hjl@lucon.org>
1044
1045         * support/include/nfslib.h (svctcp_socket): Protect it with
1046         HAVE_SVCTCP_SOCKET.
1047         (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
1048
1049 2002-09-12  H.J. Lu <hjl@lucon.org>
1050
1051         * configure.in (VERSION): Set to "1.0.2".
1052         * configure: Regenerated.
1053         * nfs-utils.spec: Likewise.
1054
1055 2002-09-12  H.J. Lu <hjl@lucon.org>
1056
1057         * configure.in: Check svctcp_socket and svcudp_socket.
1058         * configure: Regenerated.
1059
1060         * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
1061         (HAVE_SVCUDP_SOCKET): New.
1062
1063         * support/include/nfslib.h (svctcp_socket): New.
1064         (svcudp_socket): New.
1065
1066         * support/nfs/Makefile (OBJS): Add svc_socket.o.
1067
1068         * support/nfs/svc_socket.c: New.
1069
1070         * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
1071         svcudp_socket if port is unspecified.
1072
1073         * utils/nfsd/nfsd.c (main): Call getservbyname for port.
1074
1075         * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
1076         (killer): New. Signal handler to unregister.
1077         (main): Use killer. Call svcudp_socket to get the default
1078         socket.
1079
1080 2002-09-02 Juan Gomez <juang@us.ibm.com>
1081         NeilBrown <neilb@cse.unsw.edu.au>
1082
1083         Add -N option to statd to run in notify-only mode.
1084
1085         * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
1086         * utils/statd/statd.man: document -N
1087         * utils/statd/statd.c: enabled -N, largely exists but needed to be
1088         uncommented and completed
1089         
1090 2002-09-02 Juan Gomez <juang@us.ibm.com>
1091         NeilBrown <neilb@cse.unsw.edu.au>
1092
1093         statd to have " -P directory" arg to use that directory instead
1094         of /var/lib/nfs.  This is useful for fail-over clusters.
1095         
1096         * utils/statd/statd.h: define SM_DIR etc as var, not const.
1097         * utils/statd/statd.c: define "-P" option to set SM_*
1098         appropriately.
1099         * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
1100         a constant any more.
1101         * utils/statd/notify.c: ditto.
1102         * utils/statd/statd.man: document -P option.
1103         
1104 2002-08-26  Chip Salzenberg  <chip@pobox.com>
1105
1106         * utils/nfsd/nfsd.man: Fix typo.
1107         * debian/changelog: Version 1.0.1-1.
1108
1109 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
1110
1111         * let parseopts know if /etc/exports was being read or not, 
1112         and have it only print "no sync or async" warning in that case.
1113         
1114 2002-05-06 Tom McNeal <trmcneal@attbi.com>
1115         NeilBrown <neilb@cse.unsw.edu.au>
1116
1117         * utils/nfsstat/nfsstat.c: Handle differing format for
1118            /proc/net/rpc/nfsd between pre and post 2.4.0
1119         
1120 2002-04-09  NeilBrown <neilb@cse.unsw.edu.au>
1121         James Pearson <james-p@moving-picture.com>
1122
1123         * support/nfs/rmtab.c(fendrmtabent): sync changes to 
1124         storage before returning, as this is critical state
1125
1126 2002-04-08  Sean O'Connell <sean@ee.duke.edu>
1127             H.J. Lu <hjl@lucon.org>
1128
1129         * etc/redhat/nfs: New.
1130
1131 2002-04-08  H.J. Lu <hjl@lucon.org>
1132
1133         * etc/redhat/nfs.init: Updated.
1134
1135         * nfs-utils.spec.in: Updated.
1136         * nfs-utils.spec: Regenerated.
1137
1138         * utils/mountd/mountd.c (longopts): Fix a typo.
1139
1140         * utils/mountd/mountd.man: Updated.
1141
1142 2002-04-07  H.J. Lu <hjl@lucon.org>
1143
1144         * etc/redhat/nfslock.init (restart): Just do stop and start.
1145
1146         * etc/redhat/nfs.init: Fix a typo.
1147
1148 2002-04-07  H.J. Lu <hjl@lucon.org>
1149
1150         * configure.in (VERSION): Set to "1.0.1".
1151         * configure: Regenerated.
1152         * nfs-utils.spec: Likewise.
1153
1154         * README: Updated for 1.0.1.
1155
1156 2002-04-07  Sean O'Connell <sean@ee.duke.edu>
1157             H.J. Lu <hjl@lucon.org>
1158
1159         * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
1160
1161 2002-02-28   Steven Whitehouse <steve@gw.chygwyn.com>
1162               NeilBrown <neilb@cse.unsw.edu.au>
1163
1164         Add support for fsid=nn export option so that device
1165         numbers don't go in filehandles.
1166         * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
1167         is set, pass the fsid in-place of the device number
1168         * support/nfs/exports.c: parse and print fsid= option.
1169         Also check if efname has been set, and use "command line"
1170         instead in error messages.
1171         Also, use strtol instead of atoi for anon[ug]id= so that
1172         bad numbers cause errors.
1173         
1174 2002-01-17   Adrian Drzewiecki <drze@MissionCriticalLinux.com>
1175              NeilBrown <neilb@cse.unsw.edu.au>
1176
1177         * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
1178         flag so that "sync" becomes the default.
1179         Check that either "sync" or "async" is given as an option
1180         and warn if neither are present
1181         * utils/exportfs/exports.man: change documentation for "sync"
1182         to be documentation for "async".
1183         * utils/exportfs/exportfs.man: note that "sync" is the default
1184         rather than "async"
1185         
1186         
1187 2002-01-02  Chip Salzenberg  <chip@pobox.com>
1188
1189         * support/export/nfsctl.c (expsetup): Don't export entries that
1190         specify id mappings not supported by the kernel.  No extant kernel
1191         supports any significant mapping, only 'identity' (i.e. none).
1192         When other mappings are supported, this code will need changing.
1193         * debian/changelog: Version 1.0-2.
1194
1195 2001-12-26  Chip Salzenberg  <chip@pobox.com>
1196
1197         * nfs-utils.spec (Version): Set to "1.0".
1198         * configure.in (VERSION): Likewise.
1199         * configure: Regenerated.
1200         * README: Rewritten.
1201         * debian/changelog: Version 1.0-1.
1202
1203         * utils/exportfs/exports.man: Emphasize the need for options to
1204         immediately follow client names.  Explain that wildcards don't
1205         usually work on addresses, but may work when reverse DNS fails.
1206         Comment out a leftover TP that was TPing our indentation.
1207         * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
1208         utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
1209         * debian/changelog: Version 0.3.3-6.
1210
1211 2001-12-20  NeilBrown <neilb@cse.unsw.edu.au>
1212
1213         * support/export/client.c(client_lookup): If a host has multiple
1214         IP addresses, then we must always use the result of a
1215         gethostbyname, not that of gethostbyaddr for exporting
1216         
1217 2001-12-20  NeilBrown <neilb@cse.unsw.edu.au>
1218
1219         * support/export/client.c (client_lookup): use strcasecmp when
1220         comparing host names
1221         * support/nfs/export.c (getexportent): add fromkernel arg and use
1222         different defaults as kernels prior to 2.4.11 assume different
1223         defaults in /proc/fs/nfs/exports
1224         * support/include/nfslib.h, support/export/export.c,
1225         support/export/xtab.c:  support extra "fromkernel" arg for
1226         getexportent. 
1227         
1228 2001-12-13  Chip Salzenberg  <chip@pobox.com>
1229
1230         * debian/changelog: Version 0.3.3-5.
1231
1232 2001-11-26  TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
1233
1234         * support/nfs/xio.c (xskip): Call `xungetc' instead of
1235         `ungetc' to keep x_line more properly.
1236
1237 2001-11-26  Chip Salzenberg  <chip@pobox.com>
1238
1239         * utils/showmount/showmount.c (main): Don't assume that strings
1240         starting with digits are IP addresses.
1241         * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
1242         /dev/null before nfssvc().  Use syslog to report nfssvc errors.
1243         * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
1244         utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
1245         man pages: We check host names *and* addresses with tcpwrappers.
1246         * debian/changelog: Version 0.3.3-4.
1247
1248 2001-11-21  Chip Salzenberg  <chip@pobox.com>
1249
1250         * support/nfs/clients.c (cfname): Added: current clients file name.
1251         (setnfsclntent): Set it.
1252         ({get,end}nfsclntent, syntaxerr): Use it.
1253         * support/nfs/exports.c (efname): Added: current exports file name.
1254         (setnfsexportent): Set it.
1255         (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
1256         (parseopts): Accept old-style "crossmnt" option, for old xtabs.
1257         * debian/changelog: Version 0.3.3-3.
1258
1259 2001-10-11  Chip Salzenberg  <chip@pobox.com>
1260
1261         * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
1262         * debian/changelog: Version 0.3.3-2.
1263
1264 2001-10-08  Chip Salzenberg  <chip@pobox.com>
1265
1266         * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
1267         * utils/Makefile.in: Remove old Makefile in target 'distclean'.
1268         * utils/mountd/mountd.man: Update paths to /var/lib.
1269         * debian/*: Version 0.3.3-1, with Debian-specific fixes.
1270
1271 2001-10-06  Preston Brown <pbrown@redhat.com>
1272
1273         * utils/nfsstat/nfsstat.man: Updated.
1274
1275 2001-09-24  H.J. Lu <hjl@lucon.org>
1276
1277         * configure.in (VERSION): Set to "0.3.3".
1278         * configure: Regenerated.
1279         * nfs-utils.spec: Likewise.
1280
1281         * README: Updated for 0.3.3.
1282
1283 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
1284
1285         Arrange that "exportfs -au" never does DNS lookup:
1286         
1287         * support/export/client.c (client_lookup) : add "canonical"
1288         flag which says that the hostname is known to be canonical, so
1289         don't do a lookup
1290
1291         * support/export/export.c (export_create) : add "canonical"
1292         flag to be passed down to client_lookup
1293         * support/export/export.c (export_lookup) : Likewise
1294
1295         * support/export/xtab.c (xtab_read) : pass appropriate
1296         "canonical" flag to export_lookup and export_create:
1297         set if reading list of filesystems currently exports
1298         (is_export != 1). 
1299
1300         * support/export/export.c (export_read) : pass 0 as 
1301         "canonical" flag to export_lookup and export_create
1302         * support/export/rmtab.s (rmtab_read) : Likewise
1303
1304         * support/include/exportfs.h : redeclare various routines
1305         to have "canonical" flag
1306
1307         * utils/exportfs/exportfs.c (main) : redo logic for 
1308         "-au" to read in what is currently exported, but never even 
1309         look at what "should" be exported.
1310
1311         * utils/exportfs/exportfs.c (unexportall) : remove this
1312         routine. Functionality is completely included in
1313         exports_update
1314
1315         * utils/exportfs/exportfs.c (exportfs) : set "canonical"
1316         flag to zero in calls to export_lookup and export_create.
1317
1318         
1319 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
1320             Anne Milicia <milicia@missioncriticallinux.com>
1321
1322         * support/export/client.c (client_lookup) call gethostbyadd
1323         to make sure that we have a canonical hostname, even for
1324         dotted-quads
1325         * utils/exportfs/exportfs.c (exportfs) Likewise
1326         
1327 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1328
1329         * support/nfs/exports.c (putexportent): \octal quote any spaces
1330         etc in a path name
1331         * support/nfs/xio.c (xgettok): recognise double-quote and
1332         \octal quoting in path names
1333         * utils/exportfs/exports.man: document quoting conventions
1334         for path names
1335         
1336 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1337
1338         * utils/mountd/auth.c (auth_authenticate_internal): Reverse
1339           change from 2000-08-02:  It causes problems if someone exports
1340           to both a hostname and IP addresses.  nfs-utils must be
1341           consistant about the canonical name that it chooses.
1342
1343 2001-08-17  Ragnar Kjørstad <nfs@ragnark.vestdata.no>
1344             H.J. Lu <hjl@lucon.org>
1345
1346         * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
1347
1348         * utils/statd/statd.c (longopts): Add "name".
1349         (usage): Add "-n/--name".
1350         (main): Set MY_NAME with "-n/--name".
1351
1352         * utils/statd/state.c (change_state): Set MY_NAME only if it
1353         is NULL.
1354         
1355         * utils/statd/statd.man: Updated for "-n/--name".
1356
1357 2001-07-26  H.J. Lu <hjl@lucon.org>
1358
1359         * nfs-utils.spec (Release): Set to 8.
1360
1361 2001-07-25  H.J. Lu <hjl@lucon.org>
1362
1363         * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
1364         anything about it.
1365
1366 2001-06-27  H.J. Lu <hjl@lucon.org>
1367
1368         * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
1369
1370 2001-06-27  H.J. Lu <hjl@lucon.org>
1371
1372         * utils/rquotad/rquota_server.c: Don't call statfs () for
1373         the block size. Use BLOCK_SIZE instead.
1374
1375 2001-06-27  H.J. Lu <hjl@lucon.org>
1376
1377         * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
1378         (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
1379
1380         * configure.in (enable_nfsv3): Set to yes by default.
1381         (--enable-rquotad): Added
1382         (AC_PROG_CXX): Removed.
1383         (AC_OUTPUT): Add utils/Makefile.
1384         (CC_FOR_BUILD): Renamed from BUILD_CC.
1385         * configure: Regenerated.
1386
1387         * utils/Makefile: Removed.
1388
1389         * utils/Makefile.in: New.
1390
1391         * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
1392         rquotad.
1393         (CC_FOR_BUILD): Renamed from BUILD_CC.
1394         * nfs-utils.spec: Regenerated.
1395
1396 2001-06-15  Chip Salzenberg  <chip@debian.org>
1397
1398         * debian/changelog: Version 0.3.2-2.
1399         * debian/*.init: Minor fixes.
1400
1401 2001-06-07  Lon H. Hohberger <hohberger@missioncriticallinux.com>
1402
1403         * etc/nodist/nfs-server: Fixed a bug where the script would
1404         disable mounts from NFSv3 clients if NFSv3 is present.
1405
1406 2001-06-05  H.J. Lu <hjl@lucon.org>
1407
1408         * utils/mountd/mountd.c (longopts): Add "descriptors/o".
1409         (main): Support --descriptors/-o to set the limit of the number
1410         of open file descriptors.
1411         (usage): Updated.
1412
1413         * utils/mountd/mountd.man: Updated for --descriptors/-o.
1414
1415 2001-06-04  H.J. Lu <hjl@lucon.org>
1416
1417         * nfs-utils.spec (Release): Set to 6.
1418
1419 2001-05-28  H.J. Lu <hjl@lucon.org>
1420
1421         * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
1422         * utils/mountd/mountd.c (main): Likewise.
1423         * utils/nfsd/nfsd.c (main): Likewise.
1424         * utils/rquotad/rquota_svc.c (main): Likewise.
1425
1426 2001-05-06  Anne Milicia <milicia@missioncriticallinux.com>
1427
1428         * support/export/client.c (client_check): Check IP address
1429         againet netgroup.
1430
1431 2001-05-06  Neil Brown <neilb@cse.unsw.edu.au>
1432
1433         * support/export/client.c (client_gettype): Treat `*' as
1434         MCL_ANONYMOUS.
1435
1436 2001-04-22  H.J. Lu <hjl@lucon.org>
1437
1438         * nfs-utils.spec.in: Fix a typo.
1439         * nfs-utils.spec: Regenerated.
1440
1441 2001-04-21  H.J. Lu <hjl@lucon.org>
1442
1443         * nfs-utils.spec.in: Fix cross build.
1444         * nfs-utils.spec: Regenerated.
1445         (Release): Set to 5.
1446
1447 2001-04-18  H.J. Lu <hjl@lucon.org>
1448
1449         * nfs-utils.spec.in: Support cross build.
1450         * nfs-utils.spec: Regenerated.
1451         (Release): Set to 4.
1452
1453         * config.sub: New.
1454         * config.guess: New.
1455
1456         * config.mk.in (BUILD_CC): New.
1457         (CC): Set to $(BUILD_CC) if BUILD is defined.
1458         (AR): Set to @AR@.
1459         (LD): Set to @LD@.
1460         (RANLIB): Set to @RANLIB@.
1461
1462         * configure.in: Check BUILD_CC, RANLIB, AR and LD.
1463         * configure: Regenerated.
1464
1465         * tools/rpcgen/Makefile (BUILD): Set to true.
1466
1467 2001-04-01  Chip Salzenberg  <chip@valinux.com>
1468
1469         * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
1470         redundant, and sometimes broken, declaration of svc_fdset;
1471         it may be a macro.
1472         * support/nfs/rpcmisc.c (closedown): Likewise.
1473         
1474 2001-03-21  H.J. Lu <hjl@lucon.org>
1475
1476         * nfs-utils.spec: Regenerated.
1477         (Release): Set to 3.
1478
1479 2001-03-21  Ion Badulescu  <ionut@cs.columbia.edu>
1480
1481         * utils/statd/statd.c (main): make sure file descriptors 0-2
1482         are open to /dev/null.
1483
1484 2001-03-21  H.J. Lu <hjl@lucon.org>
1485
1486         * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
1487         * support/nfs/rpcmisc.c: Likewise.
1488         * utils/rquotad/rquota_svc.c: Likewise.
1489         * utils/rquotad/rquotad.man: Likewise.
1490         * utils/statd/Makefile: Likewise.
1491         * utils/statd/rmtcall.c: Likewise.
1492         * utils/statd/simulate.c: Likewise.
1493         * utils/statd/statd.c: Likewise.
1494         * utils/statd/statd.man: Likewise.
1495
1496 2001-03-11  H.J. Lu <hjl@lucon.org>
1497
1498         * configure.in (RELEASE): New. Default to 1, set by
1499         --with-release=XXX. Substitute nfs-utils.spec.
1500         * nfs-utils.spec.in (Release): Set to @RELEASE@.
1501         * configure: Regenerated.
1502         * nfs-utils.spec: Likewise.
1503
1504 2001-03-11  H.J. Lu <hjl@lucon.org>
1505
1506         * utils/rquotad/rquotad.man: Fix a typo.
1507
1508 2001-03-11  H.J. Lu <hjl@lucon.org>
1509
1510         * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
1511         * support/nfs/rpcmisc.c: Likewise.
1512         * utils/rquotad/rquota_svc.c: Likewise.
1513         * utils/rquotad/rquotad.man: Likewise.
1514         * utils/statd/Makefile: Likewise.
1515         * utils/statd/rmtcall.c: Likewise.
1516         * utils/statd/simulate.c: Likewise.
1517         * utils/statd/statd.c: Likewise.
1518         * utils/statd/statd.man: Likewise.
1519
1520 2001-03-10  H.J. Lu <hjl@lucon.org>
1521
1522         * configure.in (VERSION): Set to "0.3.2".
1523         * configure: Regenerated.
1524         * nfs-utils.spec: Likewise.
1525
1526         * README: Updated for 0.3.2.
1527
1528 2001-03-10  Tavis Barr <tavis@boole.isetr.columbia.edu>
1529
1530         * utils/rquotad/rquotad.man: Updated for -p.
1531         * utils/statd/statd.man: Likewise.
1532
1533 2001-03-10  Ion Badulescu  <ionut@cs.columbia.edu>
1534
1535         * support/nfs/rpcmisc.c: export makesock()
1536
1537         * support/include/rpcmisc.h (makesock): Declared.
1538
1539         * utils/rquotad/rquota_svc.c: added longopts, added support for
1540         specifying the port to bind to on the command line.
1541
1542         * utils/statd/statd.c: ditto, also specify port used for
1543         outgoing connections.
1544         (do_regist): Removed.
1545
1546         * utils/statd/rmtcall.c (statd_get_socket): Renamed from
1547         get_socket. Make it extern.
1548
1549         * utils/statd/simulate.c (daemon_simulator): Call rpc_init
1550         instead of do_regist.
1551
1552         * utils/statd/Makefile (LIBS): link with our own libnfs
1553
1554 2001-03-09  H.J. Lu <hjl@lucon.org>
1555
1556         * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
1557         * etc/nodist/nfs-client: Likewise.
1558
1559 2001-02-26  Chip Salzenberg  <chip@valinux.com>
1560
1561         * debian/changelog: Version 0.3.1-1.
1562         * Mention upstream source and license in copyright file.
1563         * Add build-Depends for debhelper and libwrap0-dev.
1564
1565 2001-02-20  Lon Hohberger <hohberger@missioncriticallinux.com>
1566
1567         * etc/nodist/nfs-server: Changed chkconfig line to 60 20
1568         * etc/nodist/nfs-client: Likewise.
1569
1570 2001-02-18  Lon Hohberger <hohberger@missioncriticallinux.com>
1571
1572         * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
1573         /sbin/rpc.statd.
1574
1575 2001-02-17  Patrick J. LoPresti <patl@curl.com>
1576
1577         * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
1578         LOG_LOCAL5.
1579
1580 2001-02-14  H.J. Lu <hjl@lucon.org>
1581
1582         * utils/statd/rmtcall.c: Include <time.h>.
1583         * utils/statd/svc_run.c: Likewise.
1584
1585 2001-02-14  H.J. Lu <hjl@lucon.org>
1586
1587         * configure.in (VERSION): Set to "0.3.1".
1588         * configure: Regenerated.
1589         * nfs-utils.spec: Likewise.
1590
1591         * README: Updated for 0.3.1.
1592
1593 2001-02-14  H.J. Lu <hjl@lucon.org>
1594
1595         * support/nfs/rpcmisc.c: Include <time.h>.
1596
1597 2001-02-14  Chip Salzenberg  <chip@valinux.com>
1598
1599         * debian/control: Change priority of nhfsstone package to 'extra'.
1600
1601 2001-02-12  Chip Salzenberg  <chip@valinux.com>
1602
1603         * debian/changelog: Version 0.3-2.
1604
1605 2001-02-02  H.J. Lu <hjl@lucon.org>
1606
1607         * support/include/rpcmisc.h (rpc_init): Remove bufsize.
1608         
1609         * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
1610         out SO_SNDBUF/SO_RCVBUF.
1611         (rpc_init): Remove bufsize and remove socksz in calls to
1612         makesock ().
1613
1614         * utils/mountd/mountd.c (main): Remove bufsize in calls to
1615         rpc_init ().
1616
1617 2001-01-28  Chip Salzenberg  <chip@valinux.com>
1618
1619         * debian/changelog: Version 0.3-1.
1620
1621 2001-01-25  H.J. Lu <hjl@lucon.org>
1622
1623         * configure.in (VERSION): Set to "0.3".
1624         * configure: Regenerated.
1625         * nfs-utils.spec: Likewise.
1626
1627         * README: Updated for 0.3.
1628
1629 2001-01-25  H.J. Lu <hjl@lucon.org>
1630
1631         * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
1632
1633 2001-01-20  Chip Salzenberg  <chip@valinux.com>
1634
1635         * support/include/xio.h (xgetc): Declare to return int.
1636         * support/nfs/xio.c (xgetc): Return int.
1637         (xgettok, xskip, xskipcomment): Use int for value of xgetc.
1638         * utils/statd/statd.c (main): Use int for value of getopt.
1639         * debian/changelog: Version 0.2.1-5.
1640         
1641 2000-12-10  Chip Salzenberg  <chip@valinux.com>
1642
1643         * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
1644         program and procedure numbers of kernel lockd's callback.  Also,
1645         besides the old (and broken) procedure #24, allow #16 per Trond.
1646
1647 2000-12-03  Chip Salzenberg  <chip@valinux.com>
1648
1649         * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
1650         * debian/control: Let nhfsstone replace files in nfs-kernel-server.
1651         * debian/changelog: Version 0.2.1-4.
1652
1653 2000-11-27  Tobias Ringstrom <tori@tellus.mine.nu>
1654
1655         * utils/mountd/auth.c (auth_authenticate): Log the bad path
1656         warning.
1657
1658 2000-11-24  Neil Brown <neilb@cse.unsw.edu.au>
1659
1660         * support/nfs/exports.c (getexportent): Check for host name
1661         without option, or options without hostname, and print a warning,
1662         as this is most likely a typo.
1663
1664 2000-11-19  Chip Salzenberg  <chip@valinux.com>
1665
1666         * debian/control: Add dependency on portmap.
1667         * debian/changelog: Version 0.2.1-3.
1668
1669 2000-11-10  H.J. Lu <hjl@lucon.org>
1670
1671         * nfs-utils.spec.in: Don't use libtool.
1672         Add ChangeLog and COPYING to doc.
1673         * nfs-utils.spec: Rebuild.
1674
1675 2000-11-09  H.J. Lu <hjl@lucon.org>
1676
1677         * etc/redhat/nfs.init (start): Back out the last change.
1678
1679 2000-11-09  H.J. Lu <hjl@lucon.org>
1680
1681         * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
1682         TCP is not supported by kernel.
1683
1684         * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
1685
1686         * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
1687         (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
1688
1689         * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
1690
1691 2000-10-24  Lon Hohberger <hohberger@missioncriticallinux.com>
1692
1693         * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
1694         * utils/statd/rmtcall.c: Add some IP address paranoia when doing
1695         callbacks to local lockd.
1696
1697 2000-10-18  Scott McDermott <mcdermot@questra.com>
1698
1699         * utils/exportfs/exports.man: Updated for CIDR netmask.
1700
1701 2000-10-17  Scott McDermott <mcdermot@questra.com>
1702
1703         * support/export/client.c (client_init): Support CIDR netmask
1704         in /etc/exports.
1705
1706 2000-10-11  H.J. Lu <hjl@lucon.org>
1707
1708         * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1709         * configure: Rebuilt.
1710
1711 2000-10-06  Lon Hohberger <hohberger@missioncriticallinux.com>
1712
1713         * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1714         "/var/lib/nfs/state".
1715
1716 2000-10-05  Lon Hohberger <hohberger@missioncriticallinux.com>
1717
1718         * utils/statd/statd.h (run_mode): New global bitmask of runtime
1719         behaviors: fg/bg, logging, etc.
1720         * utils/statd/statd.c: New command line options: -V -h -? -d .
1721         * utils/statd/statd.man: Update for changes to statd.
1722
1723         * utils/statd/log.h (log_init): Remove parameter of function; use
1724         global variable "name_p" instead.
1725         * utils/statd/log.c: Add support for logging to stderr.
1726
1727         * utils/statd/notlist.c: Partially rewrite notify list handling
1728         functions.  Eliminate run-off-end-of-list bug when calling
1729         nlist_insert_timer.  Add lots of comments.
1730         
1731 2000-09-27  H.J. Lu <hjl@lucon.org>
1732
1733         * README: Updated for RedHat 7.0.
1734
1735 2000-09-27  H.J. Lu <hjl@lucon.org>
1736
1737         * nfs-utils.spec: Rebuild.
1738
1739 2000-09-27  H.J. Lu <hjl@lucon.org>
1740
1741         * README: Updated for 0.2.1.
1742
1743 2000-09-27  H.J. Lu <hjl@lucon.org>
1744
1745         * nfs-utils.spec.in: Updated to use rpm macros and support
1746         RedHat 7.0.
1747
1748 2000-09-25  H.J. Lu <hjl@lucon.org>
1749
1750         * configure.in (VERSION): Set to "0.2.1".
1751         * configure: Regenerated.
1752         * nfs-utils.spec: Updated.
1753
1754 2000-09-25  H.J. Lu <hjl@lucon.org>
1755
1756         * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1757         non-NULL hostent is always returned.
1758
1759 2000-09-11  Ion Badulescu  <ionut@cs.columbia.edu>
1760
1761         * etc/redhat/nfslock.init: don't kill lockd processes that do not
1762         have an executable (i.e. kernel threads)
1763
1764 2000-09-01  H.J. Lu <hjl@lucon.org>
1765
1766         * README: Updated for 0.2.
1767
1768 2000-09-01  Jay Weber <jweber@valinux.com>
1769
1770         * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1771         supporting version 3 of nfs if available, else it will fall back to
1772         version 2 support only.
1773
1774 2000-08-30  H.J. Lu <hjl@lucon.org>
1775
1776         * configure.in (VERSION): Set to "0.2".
1777         * configure: Regenerated.
1778         * nfs-utils.spec: Updated.
1779
1780 2000-08-25  H.J. Lu <hjl@lucon.org>
1781
1782         * support/misc/tcpwrapper.c (logit): Modify the log output.
1783
1784 2000-08-25  Ion Badulescu  <ionut@cs.columbia.edu>
1785
1786         * utils/rquotad/rquotad.man, utils/statd/statd.man,
1787         utils/mountd/mountd.man: updated
1788         
1789         * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1790         * utils/rquotad/Makefile: fix comment
1791
1792         * support/misc/tcpwrapper.c (logit): added comment about waiting
1793         for the children after fork()
1794         
1795         * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1796         zombies behind (from logit()'s fork)
1797         * utils/rquotad/rquota_svc.c (main): ditto
1798         * utils/statd/statd.c (main): ditto
1799
1800         * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1801         to check_default instead of 0, for prognum
1802
1803         * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1804         to check_default instead of 0, for prognum
1805
1806         * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1807         HAVE_TCP_WRAPPER is defined.
1808         (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1809         defined. Reject an RPC call if check_default () fails.
1810
1811 2000-08-25  H.J. Lu <hjl@lucon.org>
1812
1813         * support/include/tcpwrapper.h: New for the tcp wrapper
1814         support.
1815         * support/misc/Makefile: Likewise.
1816         * support/misc/from_local.c: Likewise.
1817         * support/misc/tcpwrapper.c: Likewise.
1818
1819         * aclocal.m4 (AC_TCP_WRAPPER): New.
1820         * configure.in: Use it. Substitute LIBWRAP.
1821         * configure: Rebuilt.
1822
1823         * config.mk.in (LIBNSL): New.
1824         (LIBWRAP): Likewise.
1825
1826         * support/Makefile (SUBDIRS): Add misc.
1827
1828         * support/lib/Makefile (LIBS): Add libmisc.a.
1829
1830         * utils/rquotad/Makefile (LIBS): Add
1831         
1832                 -lmisc $(LIBWRAP) $(LIBNSL)
1833
1834         * utils/statd/Makefile (LIBS): Likewise.
1835
1836         * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1837         HAVE_TCP_WRAPPER is defined.
1838         (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1839         defined. Reject an RPC call if check_default () fails.
1840
1841         * utils/statd/statd.c: Include "tcpwrapper.h" if
1842         HAVE_TCP_WRAPPER is defined.
1843         (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1844         check_default () before calling sm_prog_1 (). Define it as
1845         sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1846
1847 2000-08-25  Chip Salzenberg  <chip@valinux.com>
1848
1849         * debian/*: Complete Debian build support.
1850         * etc/debian/*: Remove.
1851
1852 2000-08-24  Neil Brown <neilb@cse.unsw.edu.au>
1853
1854         * support/export/client.c(client_check): removed the "dot+1" as a
1855           ypdomain argument to innetgr as this is entirely bogus.
1856           It should always be NULL.
1857         
1858 2000-08-23  Neil Brown <neilb@cse.unsw.edu.au>
1859
1860         * support/export/xtab.c(xtab_read): introduce new mode for
1861            reading xtab. i.e. a list of exports that might be known to the
1862            kernel, or might not.  These are flagged as m_exported == -1
1863         * support/export/xtab.c(xtab_mount_read):  call xtab_read with new
1864            value "2" for xtab, meaning don't trust this too much.
1865         * support/include/exportfs.h(struct mexport): changed m_exported
1866            from one bit to an int so that it can hold new value
1867         * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1868            kernel if it is uncertain whether the kernel knows (m_exported == -1)
1869         * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1870            status is uncertain
1871
1872         * support/nfs/xio.c(xflock): added O_CREAT when getting
1873            a write lock so that missing files aren't fatal.
1874
1875         * etc/debian/nfs-common: new file from "potato"
1876         * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1877          
1878 2000-08-09  H.J. Lu <hjl@lucon.org>
1879
1880         * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1881         startup to ensure all existing clients work fine.
1882
1883         * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1884         to xtab_read () for reading _PATH_XTAB.
1885
1886 2000-08-02  H.J. Lu <hjl@lucon.org>
1887
1888         * utils/mountd/auth.c (auth_authenticate_internal): Try to
1889         avoid the reverse name lookup.
1890
1891 2000-07-04  H.J. Lu <hjl@lucon.org>
1892
1893         * utils/statd/log.c: Include <stdlib.h> for exit ().
1894
1895         * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1896         gcc warning.
1897
1898 2000-07-04  H.J. Lu <hjl@lucon.org>
1899
1900         * configure.in (VERSION): Set to "0.1.9.1".
1901         * configure: Regenerated.
1902         * nfs-utils.spec: Updated.
1903
1904         * README: Updated.
1905
1906 2000-07-04  Neil Brown  <neilb@cse.unsw.edu.au>
1907
1908         * support/export/hostname.c (hostent_dup): Handle the NULL
1909         h_aliases field.
1910
1911 2000-07-03  H.J. Lu <hjl@lucon.org>
1912
1913         * README: Update the util-linux requirement.
1914
1915 2000-07-03  H.J. Lu <hjl@lucon.org>
1916
1917         * configure.in (VERSION): Set to "0.1.9".
1918         * configure: Regenerated.
1919         * nfs-utils.spec: Updated.
1920
1921         * README: Updated.
1922
1923 2000-07-03  H.J. Lu <hjl@lucon.org>
1924
1925         * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1926         stop to ensure all clients can still access the server
1927         before it is shutdown.
1928
1929 2000-06-30  Jeff Uphoff <juphoff@transmeta.com>
1930
1931         * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1932         calls with format string.
1933         
1934 2000-06-28  Chip Salzenberg  <chip@valinux.com>
1935
1936         * utils/statd/log.c (log): Call syslog with format string.
1937
1938 2000-06-27  H.J. Lu <hjl@lucon.org>
1939
1940         * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1941         instead of OPEN_MAX.
1942
1943 2000-06-27  H.J. Lu <hjl@lucon.org>
1944
1945         * README: Updated.
1946
1947 2000-06-27  H.J. Lu <hjl@lucon.org>
1948
1949         * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1950         startup to ensure all existing clients are exported.
1951
1952         * configure.in (VERSION): Set to "0.1.8.2".
1953         * configure: Regenerated.
1954         * nfs-utils.spec: Updated.
1955
1956 2000-06-06  H.J. Lu <hjl@lucon.org>
1957
1958         * configure.in (VERSION): Set to "0.1.8.1".
1959         * configure: Regenerated.
1960         * nfs-utils.spec: Updated.
1961
1962 2000-06-06  H.J. Lu <hjl@lucon.org>
1963
1964         * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1965         to "struct sockaddr_in *" for glibc 2.2.
1966         (mount_umnt_1_svc): Likewise.
1967         (mount_umntall_1_svc): Likewise.
1968         (mount_export_1_svc): Likewise.
1969         (mount_exportall_1_svc): Likewise.
1970         (mount_pathconf_2_svc): Likewise.
1971         (get_rootfh): Likewise.
1972
1973 2000-06-04  H.J. Lu <hjl@lucon.org>
1974
1975         * etc/redhat/nfs.init: Fix a typo in comment.
1976
1977 2000-05-31  H.J. Lu <hjl@lucon.org>
1978
1979         * configure.in (VERSION): Set to "0.1.8".
1980         * configure: Regenerated.
1981         * nfs-utils.spec: Updated.
1982
1983         * README: Updated.
1984
1985 2000-05-31  H.J. Lu <hjl@lucon.org>
1986
1987         * configure.in (VERSION): Set to "0.1.7.5".
1988         * configure: Regenerated.
1989         * nfs-utils.spec: Updated.
1990
1991         * support/include/nfslib.h (exportent): Add a new field,
1992         r_count, to count the number of mounts from a client.
1993         (getrmtabent): Take a new argument for position in file.
1994         (putrmtabent): Likewise.
1995         (fgetrmtabent): Likewise.
1996         (fputrmtabent): Likewise.
1997         * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1998         for position in file.
1999         (fgetrmtabent): Likewise.
2000         (putrmtabent): Likewise.
2001         (fputrmtabent): Likewise.
2002
2003         * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
2004         field, r_count.
2005
2006         * support/export/rmtab.c (rmtab_read): Pass NULL as the new
2007         argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
2008         and fputrmtabent ().
2009         * utils/mountd/rmtab.c (mountlist_add): Likewise.
2010         (mountlist_del): Likewise.
2011         (mountlist_del_all): Likewise.
2012         (mountlist_list): Likewise.
2013
2014         * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
2015         for the existing entry and initialize "r_count" to 1.
2016         (mountlist_del): Decrement "r_count".
2017
2018 2000-05-18  H.J. Lu <hjl@lucon.org>
2019
2020         * configure.in (VERSION): Set to "0.1.7.4".
2021         * configure: Regenerated.
2022         * nfs-utils.spec: Updated.
2023
2024 2000-05-18  H.J. Lu <hjl@lucon.org>
2025
2026         * etc/redhat/nfs.init (restart): Just do stop and start.
2027
2028 2000-05-09  Jay Weber <jweber@valinux.com>
2029
2030         * utils/rquotad/hasquota.c: added support for ext3 recognition
2031         in rquotad.
2032         * utils/rquotad/mntent.h: Likewise.
2033
2034 2000-05-01  H.J. Lu <hjl@lucon.org>
2035
2036         * configure.in (VERSION): Set to "0.1.7.3".
2037         * configure: Regenerated.
2038         * nfs-utils.spec: Updated.
2039
2040 2000-05-01  H.J. Lu <hjl@lucon.org>
2041
2042         * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
2043         mounting poins in /etc/fstab.
2044
2045 2000-05-01  H.J. Lu <hjl@lucon.org>
2046
2047         * configure.in (VERSION): Set to "0.1.7.2".
2048         * configure: Regenerated.
2049         * nfs-utils.spec: Updated.
2050
2051 2000-05-01  H.J. Lu <hjl@lucon.org>
2052
2053         * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
2054         to check for the mounting point.
2055
2056 2000-04-29  Chip Salzenberg  <chip@valinux.com>
2057             Neil Brown  <neilb@cse.unsw.edu.au>
2058
2059         * Really re-use RPC ports.
2060           (Fixes earlier patch.  Sorry, Neil.)
2061
2062 2000-04-26  H.J. Lu <hjl@lucon.org>
2063
2064         * configure.in (VERSION): Set to "0.1.7.1".
2065         * configure: Regenerated.
2066         * nfs-utils.spec: Updated.
2067
2068 2000-04-26  H.J. Lu <hjl@lucon.org>
2069
2070         * etc/redhat/nfslock.init: Check if lockd exits before killing
2071         it.
2072
2073 2000-04-25  H.J. Lu <hjl@lucon.org>
2074
2075         * README: Require util-linux-2.10f-mount-rpc.patch for mount.
2076
2077 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
2078
2079         * support/nfs/exports.c (parsesquash): Correctly set the
2080         return pointer.
2081
2082 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
2083
2084         * support/include/nfs/nfs.h: Removed knowledge of internals of
2085              kernel filehandles (which can change) and defined nfs_fh_size
2086              which has variable size
2087         
2088         * support/nfs/getfh.c: defined getfh_size to use new syscall to
2089              get variable sized file handles, and change getfh{,old} to
2090              use nfs_fh_size        
2091         
2092         * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
2093              NFSv3 file handles
2094
2095         * tools/Makefile, tools/nlmtest/nlmtest.c
2096              nlmtest.c depended on internel format of file handles, so now
2097              doesn't work.
2098
2099         
2100 2000-03-12  Chip Salzenberg  <chip@valinux.com>
2101             Neil Brown  <neilb@cse.unsw.edu.au>
2102
2103         * support/nfs/rpcmisc.c (rpc_init): Share transports.
2104
2105 2000-03-13 H.J. Lu <hjl@lucon.org>
2106
2107         * etc/redhat/nfsd.init: Updated.
2108
2109         * etc/redhat/nfslock.init: Updated.
2110
2111         * nfs-utils.spec.in: Updated.
2112
2113         * configure.in (VERSION): Set to "0.1.7".
2114         * configure: Regenerated.
2115         * nfs-utils.spec: Updated.
2116
2117         * README: Updated.
2118
2119 Wed Mar  8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
2120
2121         * utils/exportfs/exportfs.c (dump): Included printing of
2122            nohide, no_subtree_check, and insecure_locks
2123
2124 2000-02-26  Chip Salzenberg  <chip@valinux.com>
2125
2126         * config.mk.in (INSTALLSUID): Strip ("-s").
2127         (INSTALLSCRIPT): Define.
2128         * utils/nhfsstone/Makefile: Use it.
2129
2130 2000-02-26  Chip Salzenberg  <chip@valinux.com>
2131
2132         * utils/lockd/lockd.man: Create.
2133         * utils/lockd/Makefile: Install it.
2134         * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
2135         * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
2136         * utils/nhfsstone/Makefile: Install the helper scripts and
2137           all four man pages.
2138         * utils/exportfs/exports.man: Fix typo.
2139
2140 2000-02-26  Chip Salzenberg  <chip@valinux.com>
2141
2142         * support/nfs/xio.c (xungetc): Decrement line number when
2143         character to unget is newline.  Make first parameter int, so
2144         it can distinguish EOF from \377.
2145         * support/include/xio.h (xungetc): Adjust prototype.
2146
2147 Fri Feb  4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
2148
2149         * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
2150         * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
2151         * utils/exportfs/exports.man: added documentation for no_auth_nlm.
2152
2153         This is for supporting a new option introduced in 2.3.42
2154
2155 Thu Feb  3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
2156
2157         * COPYING: Added. GPL.
2158
2159 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
2160
2161         * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
2162         to get the block size.
2163
2164 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
2165
2166         * nfs-utils.spec.in: Update ftp site.
2167
2168 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
2169
2170         * README: Update hostnames.
2171
2172 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
2173
2174         * configure.in (VERSION): Set to "0.1.6".
2175         * configure: Regenerated.
2176         * nfs-utils.spec: Updated.
2177
2178         * README: Updated.
2179
2180 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
2181
2182         * utils/mountd/auth.c (auth_authenticate_internal): Call
2183         xstrdup for hostname before passing it to gethostbyname.
2184
2185         * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
2186         of strdup.
2187
2188 Sun Dec 19 09:35:01 1999  H.J. Lu <hjl@lucon.org>
2189
2190         * README: Update the mailing list address.
2191
2192 Sun Dec 19 09:22:28 1999  H.J. Lu <hjl@lucon.org>
2193
2194         * configure.in (VERSION): Set to "0.1.5".
2195         * configure: Regenerated.
2196         * nfs-utils.spec: Updated.
2197
2198         * README: Updated.
2199
2200 Mon Dec 13 13:40:20 1999  H.J. Lu <hjl@lucon.org>
2201
2202         * utils/rquotad/hasquota.c (hasquota): Malloc one more char
2203         for '/'.
2204
2205 Mon Dec  6 09:42:45 1999  H.J. Lu <hjl@lucon.org>
2206
2207         * configure.in (VERSION): Set to "0.1.4".
2208         * configure: Regenerated.
2209         * nfs-utils.spec: Updated.
2210
2211         * README: Updated.
2212
2213 Mon Dec  6 09:28:07 1999  H.J. Lu <hjl@lucon.org>
2214
2215         * nfs-utils.spec.in: New file.
2216
2217         * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
2218
2219         * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
2220
2221 1999-12-04  Chip Salzenberg  <chip@valinux.com>
2222
2223         * config.mk.in: Use $(CC) as set by configure.
2224
2225 1999-12-04  Chip Salzenberg  <chip@valinux.com>
2226
2227         * rules.mk: Call $(MAKE) with $(MFLAGS).
2228
2229 Mon Nov 29 11:17:35 1999  H.J. Lu <hjl@lucon.org>
2230
2231         * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
2232         IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
2233
2234 Mon Nov 29 11:17:35 1999  H.J. Lu <hjl@lucon.org>
2235
2236         * nfs-utils.spec (Version): Set to 0.1.3.
2237
2238         * configure.in (VERSION): Set to "nfs-utils 0.1.3".
2239         * configure: Regenerated.
2240
2241         * README: Updated.
2242
2243 Mon Nov 29 11:15:47 1999  H.J. Lu <hjl@lucon.org>
2244
2245         * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
2246         (_PATH_DEV_DSK): Likewise.
2247         (getquotainfo): Match the mounting point from /etc/mtab
2248         instead of calling nfsmount_to_devname ().
2249
2250 1999-11-24  Chip Salzenberg  <chip@valinux.com>
2251
2252         * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
2253         to the new port 24 as well as the historical port 100021.
2254
2255 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
2256
2257         * etc/redhat/nfsd.init (stop): moved exportfs -ua after
2258         stopping nfsd to stop spurious ESTALE on server shutdown.
2259         
2260 Tue Nov 23 10:13:39 1999  Neil Brown <neilb@cse.unsw.edu.au>
2261
2262         * support/nfs/exports.c (parseopts): make copy of opt string
2263         before 'nul'ing out commas so that
2264
2265         # exportfs -o option1,option2 hosta:/fs hostb:/fs
2266
2267         applies both options to both exports.
2268
2269 Thu Oct 28 12:55:42 1999  H.J. Lu <hjl@lucon.org>
2270
2271         * README: Fix a few typos.
2272
2273         * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
2274         of long.
2275         * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
2276         * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
2277         * tools/rpcgen/rpc_parse.c (get_type): Likewise.
2278         (unsigned_dec): Likewise.
2279         * tools/rpcgen/rpc_scan.c (symbols): Likewise.
2280         * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
2281
2282         * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
2283         instead of LONG.
2284         * tools/rpcgen/rpc_parse.c (get_type): Likewise.
2285         (unsigned_dec): Likewise.
2286         * tools/rpcgen/rpc_scan.c (symbols): Likewise.
2287         * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
2288         * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
2289
2290 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
2291
2292         * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
2293         * support/nfs/exports.c: added {no_,}subtree_check and changed
2294           crossmnt to nohide
2295         * utils/exportfs/exports.man: added no_subtree_check and nohide
2296           and removed irrelevant stuff from unfsd.
2297         * support/export/rmtab.c: rmtab_read didn't quite do the right
2298           thing if a pathname from rmtab was a subdirectory of an export-point
2299
2300 Tue Oct 26 17:22:40 1999  H.J. Lu <hjl@lucon.org>
2301
2302         * README: Updated ftp site.
2303
2304 Mon Oct 25 18:12:45 1999  H.J. Lu <hjl@lucon.org>
2305
2306         * nfs-utils.spec (Version): Set to 0.1.2.
2307
2308         * configure.in (VERSION): Set to "nfs-utils 0.1.2".
2309         * configure: Regenerated.
2310
2311         * README: Updated.
2312
2313 Mon Oct 25 18:11:21 1999  H.J. Lu <hjl@lucon.org>
2314
2315         * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
2316         (auth_authenticate_internal): Check for NULL return on forward
2317         DNS lookup.
2318         (auth_authenticate): Handle "no_forward_dns".
2319
2320 Thu Oct 21 16:22:06 1999  H.J. Lu <hjl@lucon.org>
2321
2322         * Version 0.1.1 released.
2323
2324         * nfs-utils.spec (Version): Set to 0.1.1.
2325
2326         * configure.in (VERSION): Set to "nfs-utils 0.1.1".
2327         * configure: Regenerated.
2328
2329         * README: Updated.
2330
2331 Mon Oct 18 17:43:29 1999  H.J. Lu <hjl@lucon.org>
2332
2333         * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
2334         to knfsd-clients.
2335         (Provides): Likewise.
2336
2337 Mon Oct 18 14:56:22 1999  H.J. Lu <hjl@lucon.org>
2338
2339         * Initial version 0.1 released.
2340
2341         * configure.in (VERSION): Set to "nfs-utils 0.1".
2342         * configure: Regenerated.
2343
2344 Mon Oct 18 14:54:57 1999  H.J. Lu <hjl@lucon.org>
2345
2346         * utils/mountd/mountd.c (get_exportlist): Cleanup.
2347
2348         * utils/exportfs/exportfs.c (unexport_all): Unexport from
2349         kernel only if the entry is exported to kernel.
2350         (unexportfs): Likewise.
2351
2352 Wed Sep 08 16:49:32 1999  Neil Brown <neilb@cse.unsw.edu.au>
2353
2354 1/ utils/mountd/rmtab.c::mountlist_list
2355
2356      This routine stats the rmtab file to see if it has changed.  It
2357      if has, it cleans up it's old copy of the data. But it still
2358      always re-read the file, thus returning multiple copies of the
2359      data on consecutive calls without intervening changes.
2360      "Showmount -a" didn't show this as it appears to sort/unique the
2361      data, but 'strace showmount -a' showed that the size of the
2362      datagram that it received grew.
2363
2364      I moved the getrmtabent loop inside the mtime test.
2365
2366 2/ utils/exportfs/exportfs.c
2367    
2368      Many routines used the m_path field of m_export instead of
2369      e_path.
2370      According to the comment in nfslib.h, m_path should only
2371      be used when processing a mount request (i.e. in mountd)
2372      where the mountpoint may be a subdirectory of the export point.
2373
2374      I changed all occurances of m_path to e_path
2375
2376
2377 3/ utils/exportfs/exportfs.c:main
2378
2379       extra arguments are not meaningful with -a or -r, but
2380       exportfs accepted them and then ignored the -a/-r, expect that
2381       -r would still unexport everything first.
2382
2383       I generate an error if there are extra args and f_all
2384
2385 4/ utils/exportfs/exportfs.c:main
2386      extract dump out as a special case.
2387
2388 5/ utils/exportfs/exportfs.c
2389      made f_reexport a local variable.
2390
2391
2392 6/ utils/exportfs/exportfs.c:main,exportall
2393
2394     support/export/rmtab.c
2395        only  mayexport on newly created entries, don't set xtabent at all
2396
2397 7/ support/include/nfslib.h
2398
2399       add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
2400
2401 8/ support/export/xtab.c
2402
2403       xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
2404       else from xtab
2405
2406
2407 9/ support/export/xtab.c
2408
2409       xtab_mount_read now sets m_exported, and NOT
2410         xtabent and mayexport
2411
2412       removed the append arguement from xtab_write as it was
2413         never used.
2414
2415       added is_export flag to xtab_write similar to xtab_read
2416         if is_export, only write entries with m_xtabent or m_addxtab
2417         if !is_export, only write entries with m_exported
2418      
2419 10/ support/export/export.c::export_allowed_internal
2420
2421       added test for exp->m_mayexport, as the export tree
2422         may have entries that are no longer allowed to be exported,
2423         and so shouldn't caused deduced exported by rmtab_read
2424
2425 11/ utils/exportfs/exportfs.c::main
2426         error checking of flags.
2427
2428 12/ utils/exportfs/exportfs.c
2429
2430         total rewrite of export and unexport logic.
2431         We now:
2432         -  build an exportslist of valid exports, based on
2433            current etab file  and arguments,
2434         -  read rmtab to instantiate relevant wild card entries
2435         -  read etab to find out what is currently exported
2436         -  synchronise intention with reality
2437         -  write out etab and xtab
2438
2439 13/  various
2440         discard the m_addxtab flag
2441         add m_changed flag so we know what to report in exportfs
2442
2443 14/ utils/mountd/auth.c:auth_authenticate
2444
2445         the value returned by gethostbyaddr was trusted.
2446
2447         It now follows this with a call to gethostbyname
2448         and checks that the address is in the list.
2449
2450 15/ support/export/nfsctl.c::cltsetup,expsetup
2451
2452         force client names to lowercase as kernel is
2453         sensitive to case
2454
2455 16/ quietened a few compiler warnings
2456
2457 17/ support/export/client:client_lookup
2458
2459      look for pre-existing client with same name before creating
2460         a new one.
2461
2462 18/ support/include/exportfs.h
2463
2464      The ordering of the MCL_* enum was:
2465         ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
2466
2467      I moved ANONYMOUS to the end.
2468
2469      The ordering is significant when an export entry is being searched for to 
2470         match a given address.  There are two problems with ANONYMOUS being first.
2471
2472         1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
2473            then the ro case will always be found first and the privileged hosts won't get
2474            their privilege
2475         2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
2476            export entry for the specific host, and writes it to xtab.
2477            When another request comes from the same host, the ANONYMOUS entry is found again, 
2478            before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
2479            again.  If causes bloat in xtab.
2480
2481       Putting ANONYMOUS at the end reflects it's nature as a catch-all
2482
2483 19/ utils/exportfs/exportfs.man
2484         many updates to the man page to reflect changes to the code
2485
2486 -----------------------
2487
2488
2489
2490 TODO:
2491
2492 - allow exportfs to modify rmtab file
2493 - make sure kernel never gets two clients with same IP address
2494     - possible kernel should reject
2495     - needs to be some way to lookup client in kernel by IP address
2496 - maybe get kernel to do case-insensitive comparisons on client names
2497 - remove unused clients from kernel
2498
2499 - change etab to xtab and xtab to xtab.active
2500
2501 - timestamp and/or statd-stamp in rmtab for removing old entries.
2502
2503 Mon Oct 18 11:48:07 1999  H.J. Lu <hjl@lucon.org>
2504
2505         * linux-nfs: New directory.
2506         * linux-nfs/ChangeLog: Moved from ..
2507         * linux-nfs/INSTALL: Likewise.
2508         * linux-nfs/KNOWNBUGS: Likewise.
2509         * linux-nfs/NEW: Likewise.
2510         * linux-nfs/README: Likewise.
2511         * linux-nfs/THANKS: Likewise.
2512         * linux-nfs/TODO: Likewise.
2513
2514         * Starting from knfsd 1.4.7.