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