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