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