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