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