]> git.decadent.org.uk Git - nfs-utils.git/blob - ChangeLog
Remove redhat and nodist stuff
[nfs-utils.git] / ChangeLog
1 2004-11-22 "J. Bruce Fields" <bfields@fieldses.org>
2
3         * tools/rpcdebug/rpcdebug.c: support aliases "nfsdebug" and
4         "nfsddebug" and update flag names.
5         * configure.in, nodist/* redhat/* nfs-utils.spec*: remove redhat
6         specific files (as no-one actually uses them, especially not
7         redhat), and the nodist /etc files (as they drift out-of-date, and
8         the debian directory provides a suitable example.
9         
10 2004-11-22 NeilBrown <neilb@cse.unsw.edu.au>
11
12         * utils/exportfs/nfsd.man: corrected typo in .BR macro usage -
13         reported by Eric Raymond
14         
15 2004-10-19 "J. Bruce Fields" <bfields@fieldses.org>
16
17         * support/gssapi/* support/rpc/* utils/gssd/* utils/svcgssd/* etc
18         initial support for GSSAPI authentication
19         
20 2004-09-15 Neil Brown <neilb@cse.unsw.edu.au>
21
22         * utils/statd/monitor.c(sm_unmon_1_svc): is RESTRICTED_STATD, then
23         check IP address and force my_name to 127.0.0.1 to match 
24         what happens in sm_mon_1_svc.  This avoid spurious "erroneous
25         SM_UNMON" messages.
26         * utils/statd.monitor.c(sm_unmon_all_1_svc): likewise
27         
28 2004-09-15 "J. Bruce Fields" <bfields@fieldses.org>     
29
30         * Assorted changes to support "gss/*" style authentication
31         * utils/idmapd: new idmapd daemon for nfsv4 username lookup
32         
33 2004-09-06 Trond Myklebust <trond.myklebust@fys.uio.no>
34         Neil Brown <neilb@cse.unsw.edu.au>
35
36         * utils/mountd/auth.c(auth_authenticate_internal): fix
37         uninitialsed variable problem (causes bad error messages).
38
39 2004-09-06 Paul Clements <paul.clements@steeleye.com>
40         Neil Brown <neilb@cse.unsw.edu.au>
41
42         * utils/mountd/mountd.c(main): support --ha-callout (-H) for
43         specifying a callout program
44         * utils/mountd/rmtab.c: Call ha_callout on mount/unmount
45         * utils/statd/monitor.c: Call ha_callout on add/del client
46         * utils/statd/rmtcall.c: as above
47         * utils/statd/statd.c: handle --ha-callout (-H)
48         * utils/statd/svc_run.c: call notify_hosts is we have received a
49         sighup
50         * support/include/ha-callout.h: define ha_callout function
51          
52         
53 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
54         * utils/mountd/cache.c(cache_process_req): clear fd after
55         processing so as not to confused libc/sunrpc into thinking
56         it need to do something with that fd.
57         
58 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
59
60         * debian/nfs-kernel-server.init(start,stop) mount the nfsd
61         filesystem, if available, before starting nfs services, and 
62         unmount it afterwards.
63         * etc/nodist/nfs-server: ditto
64         * etc/redhat/nfs.init: likewise
65         * etc/redhat/nfs: add "MOUNT_NFSD" flag to control above.
66         
67 2004-06-08 NeilBrown <neilb@cse.unsw.edu.au>
68
69         * utils/exportfs/exportfs.c: Don't rmtab_read if new_cache, it
70           isn't necessary.
71         * support/nfs/cacheio.c(cache_flush): Change order in which caches
72           are flushed so that dependancies don't keep things in the cache
73           too long.
74         
75 2004-03-18  Chip Salzenberg  <chip@pobox.com>
76
77         * debian/changelog: Version 1.0.6-2.
78
79 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
80         from "J. Bruce Fields" <bfields@fieldses.org>
81
82         * utils/mountd/cache.c: call auth_reload to make sure auth data is
83         current before responding to kernel upcall.
84         
85 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
86         Based on patch from  Greg Banks <gnb@melbourne.sgi.com>
87
88         * utils/exportfs/exports.man: Document fsid= option.
89         
90 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
91
92         Release 1.0.6
93
94         * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
95         support/include, and depend in "predep"
96         * support/export/Makefile, tools/rpcgen/Makefile,
97         utils/statd/Makefile: add "predep" rule so that "make dep" works.
98         * Makefile: allow a simple "make" to run ./configure and "make dep"
99         if needed.
100         * configure.in, nfs-utils.spec: Update version to 1.0.6
101         * run autoconf
102         
103 2003-09-12  Chip Salzenberg  <chip@pobox.com>
104
105         * debian/changelog: Version 1.0.6-1.
106
107 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
108
109         * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
110         for RLIMIT_NOFILE
111         * utils/statd/statd.c(main): Ditto.
112
113            michael <michael@newdream.net> discovered that svc_setreqsize
114            in glibc can segfault if RLIMIT_NOFILE is bigger than
115            FD_SETSIZE, so a simple solution is to impose a hard limit.
116
117 2003-09-09  Chip Salzenberg  <chip@pobox.com>
118
119         * debian/changelog: Version 1.0.5-3.
120         * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
121         on invalid reverse DNS.
122         * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
123         * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
124         * tools/rpcgen/rpc_parse.c (def_union): Likewise.
125
126 2003-08-22  Chip Salzenberg  <chip@pobox.com>
127
128         * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
129         N_*, to avoid conflict with ISO C built-in log() function.
130         * utils/statd/*.c: Use note().
131
132 2003-08-20  Chip Salzenberg  <chip@pobox.com>
133
134         * debian/changelog: Version 1.0.5-2.
135
136 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
137
138         * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
139         before returning.
140         
141 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
142
143         * support/include/nfs/export.h, support/nfs/exports.c,
144         utils/exportfs/exports.c, utils/mountd/mountd.c:  change
145         NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
146         meaning. Also remove meaningless
147         NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
148         
149 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
150
151         * support/export/xtab.c, support/include/nfslib.h,
152         support/nfs/cacheio.c, support/nfs/nfssvc.c,
153         utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
154         utils/exportfs/nfsd.man, utils/mountd/cache.c: support
155         /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
156         (nfs-utils-1.0.5-post2)
157         
158 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
159
160         * support/nfs/nfsexport.c: open channel file O_WRONLY when
161         only writing.
162         * utils/mountd/cache.c: maintain mountlist when new_cache is
163         active. Also use O_WRONLY for channel files.
164         * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
165         rather than an nfs_export.
166         * utils/mountd/rmtab.c: ditto.
167         (nfs-utils-1.5.0-post1)
168         
169 2003-07-24  Chip Salzenberg  <chip@pobox.com>
170
171         * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
172         use Debian security team's cleaner approach.
173         * debian/changelog: Version 1.0.5-1.
174         * debian/nfs-kernel-server.init: Cosmetic changes.
175
176 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
177
178         Release 1.0.5:
179          1.0.4 was a bit of a brown-paper-bag-release because of the extra
180          'free' in auth.c.  So I'm releasing this just a few days later.
181
182         * support/nfs/cacheio.c(cache_flush): Correct test for 'open
183         failed'
184         * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
185         check if new_cache is enabled, error if not, flush and exit if it
186         is. 
187         * utils/exportfs/exportfs.man: Explain -f option and explain the
188         two different modes that exportfs can work in.
189         * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
190         option wasn't given.
191         * utils/mountd/mountd.man: Record the change if default behaviour
192         for RLIMIT_NOFILE.
193         * configure.in, nfs-utils.spec: update version to 1.0.5 and
194         run autoconf
195         
196 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
197
198         * utils/mountd/mountd.c(main): getopt string fix for 'o'
199         * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
200         * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
201         the caches.
202         * support/include/nfs/export.h: Reserve a bit for possible ACL
203         related use.
204         
205 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
206
207         * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
208         assorted changed to cope with section 7 of the manual.
209         * configure.in, nfs-utils.spec: Update version to 1.0.4
210         * run autoconf
211
212         This is a 'pre-release' for 1.1.0  Hopefully 1.1.0 will be the
213         baseline for 2.6 and 2.8.  I.e. it should continue to work right
214         through the 2.8 (or 3.0) kernel series.  Previous releases wont.
215
216 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>    
217         Steve Dickson <SteveD@redhat.com>
218
219         statd cleanup:
220         * utils/statd/statd.c: create a pidfile with pid of statd, and
221         truncate it when statd exists.
222         * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
223         and warn if this is root.
224         * utils/statd/statd.c: when statd forks, connect child to parent
225         with a pipe, and send a byte down the pipe once the child is
226         working properly.
227         * Makefile: create and chown sm, sm.bak, state when "make install"
228         * configure.in: add --with-statduser= option which defaults to
229         "rpcuser" or "nobody"
230         * config.mk.in: pass "statduser" through to Makefile
231         
232 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
233
234         * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
235         used as the size was changed somewhere in 2.5.60-2.5.70.  Without
236         this nfs-utils compiles against 2.6 headers will not work on a
237         2.4 kernel.     
238         
239 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
240
241         * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
242         set number of threads by writing to there.  This means it will
243         still work when the syscall interface goes away in 2.7.
244
245 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
246         fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
247
248         * utils/exportfs/exportfs.c(unexportfs): improve host comparison
249         so as to only export the wildcard exports that were asked for.
250         * support/export/export.c(export_allowed): changed to return the
251         nfs_export rather than a "struct exportent", as m_changed is
252         needed by called
253         * support/export/rmtab.c(rmtab_read): modified to deal with
254         interface change for export_allowed(), and enhanced to preserve
255         m_changed flag when a wild-card export causes the creation of
256         a non-wildcard export.
257         
258 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
259         Steve Dickson <SteveD@redhat.com>
260
261         * utils/mountd/mountd.man: Add valid kinds of debugging.
262         * utils/mountd/mountd.c(main): ignore SIGPIPE
263         * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
264         we don't get warnings about unavailable stats that weren't asked
265         for.
266         
267 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
268
269         * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
270         via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
271         'forever', so things disappear out of the cache rather than just
272         be ignored. 
273         
274 2003-06-16  "J. Bruce Fields" <bfields@fieldses.org>
275
276         * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
277         if it wasn't found.
278
279 2003-06-16  NeilBrown   <neilb@cse.unsw.edu.au>
280
281         * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
282         etc/redhat/nfs.init: when checking if V3 is supported, make sure
283         nfs server 'knows' about 127.0.0.1 first.
284         
285 2003-06-10  Chip Salzenberg  <chip@pobox.com>
286
287         * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
288         * debian/changelog: Version 1.0.3-2.
289
290 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
291         NeilBrown <neilb@cse.unsw.edu.au>
292
293         utils/nfsstat/nfsstat.c(print_callstats): use unsigned
294         long long to avoid overflow when printing stats.
295         
296 2003-05-30  NeilBrown <neilb@cse.unsw.edu.au>
297
298         * support/export/export.c, support/include/nfslib.h,
299         support/nfs/export.c, utils/exportfs/exportfs.c,
300         utils/mountd/mountd.c: new export option "mountpoint"
301         If no path is given, then the export point must be a
302         mount point, or it won't be exported.  If a path is 
303         given (e.g. mountpoint=/path) then that path must be
304         a mountpoint or the exportpoint won't be exported.
305         * utils/exportfs/exportfs.man: document mountpoint option.
306         * support/misc/mountpoint.c: New file with is_mountpoint()
307         to determine if something is a mountpoint.
308         
309 2003-05-23  NeilBrown <neilb@cse.unsw.edu.au>
310
311         * utils/mountd/cache.c(cache_get_filehandle): take a separate path
312         argument as we might not be getting the filehandle for the
313         mountpoint.
314         * utils/mountd/mountd.c(get_rootfh): pass real path when calling
315         cache_get_filehandle.
316         * utils/mountd/mountd.c(get_rootfh): check export point and
317         requested directory are on the same filesystem, and complain if
318         not.
319         
320 2003-05-22  NeilBrown <neilb@cse.unsw.edu.au>
321
322         * utils/mountd/auth.c(auth_authenticate_internal): make sure
323         portnumber is still checked when using new cache lookup.
324         
325 2003-05-21  NeilBrown <neilb@cse.unsw.edu.au>
326
327         * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
328          Don't actually talk to kernel when new cache is in effect, except
329          to flush
330         * utils/exportfs/exportfs.c: add -f option to fully flush cache.
331         * support/export/xtab.c: Only rename new xtab into place if it has
332          changed, thus preserving modify date for exportfs to use when
333          flushing.
334         * support/nfs/cacheio.c: Add cache_flush
335         * support/export/xtab.c: Only rename new xtab into place if it has
336          changed, thus preserving modify date for exportfs to use when
337          flushing.
338         
339 2003-05-21  NeilBrown <neilb@cse.unsw.edu.au>
340
341         * support/export/client.c: Add client_compose, client_member to
342         handle new composite client names
343         * support/include/exportfs.h: Declare above functions.
344         * utils/mountd/auth.c: use client_compose to determine calling
345         client if new cache is being used.
346         * utils/mountd/auth.c: call cache_export to export a filesystem if
347         new_cache, check if new cache is used, and call my_svc_run instead
348         of svc_run
349         * utils/mountd/svc_run.c: new file defining my_svc_run
350         * utils/mountd/cache.c: new file for handling cache upcalls.
351         * support/nfs/cacheio.c(check_new_cache): new function to check if
352         new cache should be used.
353         
354         
355 2003-05-21  NeilBrown <neilb@cse.unsw.edu.au>
356
357         * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
358         * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
359         * utils/exportfs/exportfs.c(dump): ditto
360         
361 2003-05-21  NeilBrown <neilb@cse.unsw.edu.au>
362
363         * support/export/hostname.c(get_reliable_hostbyaddr): new function
364         to get host name from address with full checking of authenticity.
365         * support/include/misc.h: declare above function
366         * utils/mountd/auth.c(auth_authenticate_internal): remove all
367         logic for authenticating address.
368         * utils/mountd/auth.c(auth_authenticate): call new
369         get_reliable_hostbyaddr to to hostname lookup before calling _internal.
370         
371         
372 2003-03-30  NeilBrown <neilb@cse.unsw.edu.au>
373
374         * tools/rpcgen/rpc_main.c(find_cpp): removed
375         * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp", 
376         then try hard-coded paths.
377         
378 2003-03-26  Chip Salzenberg  <chip@pobox.com>
379
380         * debian/changelog: Version 1.0.3-1.
381
382 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
383
384         * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
385         "const char*", not "char*".
386
387 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
388
389         * configure.in (VERSION): Set to "1.0.3".
390         * nfs-utils.spec: Likewise.
391         * configure: Regenerated.
392
393 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
394
395         * support/nfs/cacheio.c: New File - support for read/writing
396         to export cache in /proc/rpc/*/channel
397         * support/nfs/Makefile: compile cacheio.c
398         * support/include/nfslib.h: declare cacheio.c functions
399         * support/nfs/nfsexport.c: export and unexport through
400         /proc/rpc/*/channel if possible, as old syscall interface
401         may not survive into 2.6 on all architectures.
402         
403 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>    
404         Ben Leslie <benno@sesgroup.net>
405
406         * support/nfs/rpcmisc.c(rpc_init):  change test for ignoring
407         "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0).  The
408         former would incorectly ignore defport if the application 
409         explicitly set __rpcfdtype.  The later is sufficient to avoid the
410         special handling in the case where stdin is an internet socket.
411
412         * utils/mountd/mountd.c(main): Add 'n' to option list in
413         getopt_long as this is a short form of --no-tcp which want being
414         checked.
415         
416 2003-02-12  Chip Salzenberg  <chip@pobox.com>
417
418         * debian/changelog: Version 1.0.2-2.
419
420 2002-11-27  Chip Salzenberg  <chip@pobox.com>
421
422         * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
423         overflow bug.  Reformat per rest of source file.
424
425 2002-11-19  NeilBrown <neilb@cse.unsw.edu.au>
426
427         * utils/exportfs/exports.man: Correct notes about whether the wild
428         card characters match a period.  They do.
429         
430 2002-10-15  Juan Gomez <juang@us.ibm.com>
431
432         * utils/mountd/rmtab.c (slink_safe_rename): New. Support
433         symlink.
434         (mountlist_add): Call slink_safe_rename instead of rename.
435
436 2002-10-11  H.J. Lu <hjl@lucon.org>
437
438         * support/include/exportfs.h (export_errno): New.
439
440         * support/nfs/exports.c: Include <errno.h>.
441         (export_errno): New.
442         (getexportent): Set export_errno to EINVAL for bad option.
443         (parseopts): Likewise.
444         Report the location of the default sync/async option.
445
446         * utils/exportfs/exportfs.c (main): Initialize export_errno to
447         0. Return export_errno.
448
449 2002-10-11  Juan Gomez  <gomez@cs.sjsu.edu>
450         NeilBrown <neilb@cse.unsw.edu.au>
451
452         utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
453         utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
454         
455 2002-09-16  Chip Salzenberg  <chip@pobox.com>
456
457         * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
458
459 2002-09-15  Chip Salzenberg  <chip@pobox.com>
460
461         * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
462         socket, as occurs when run from sshd.
463         * debian/changelog: Version 1.0.2-1.
464
465 2002-09-12  H.J. Lu <hjl@lucon.org>
466
467         * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
468         HAVE_SVCUDP_SOCKET.
469
470 2002-09-12  H.J. Lu <hjl@lucon.org>
471
472         * configure.in: Remove checking svctcp_socket and svcudp_socket.
473         * configure: Regenerated.
474
475         * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
476         (HAVE_SVCUDP_SOCKET): Removed.
477
478         * support/include/nfslib.h: Undo the last change.
479
480 2002-09-12  H.J. Lu <hjl@lucon.org>
481
482         * support/include/nfslib.h (svctcp_socket): Protect it with
483         HAVE_SVCTCP_SOCKET.
484         (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
485
486 2002-09-12  H.J. Lu <hjl@lucon.org>
487
488         * configure.in (VERSION): Set to "1.0.2".
489         * configure: Regenerated.
490         * nfs-utils.spec: Likewise.
491
492 2002-09-12  H.J. Lu <hjl@lucon.org>
493
494         * configure.in: Check svctcp_socket and svcudp_socket.
495         * configure: Regenerated.
496
497         * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
498         (HAVE_SVCUDP_SOCKET): New.
499
500         * support/include/nfslib.h (svctcp_socket): New.
501         (svcudp_socket): New.
502
503         * support/nfs/Makefile (OBJS): Add svc_socket.o.
504
505         * support/nfs/svc_socket.c: New.
506
507         * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
508         svcudp_socket if port is unspecified.
509
510         * utils/nfsd/nfsd.c (main): Call getservbyname for port.
511
512         * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
513         (killer): New. Signal handler to unregister.
514         (main): Use killer. Call svcudp_socket to get the default
515         socket.
516
517 2002-09-02 Juan Gomez <juang@us.ibm.com>
518         NeilBrown <neilb@cse.unsw.edu.au>
519
520         Add -N option to statd to run in notify-only mode.
521
522         * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
523         * utils/statd/statd.man: document -N
524         * utils/statd/statd.c: enabled -N, largely exists but needed to be
525         uncommented and completed
526         
527 2002-09-02 Juan Gomez <juang@us.ibm.com>
528         NeilBrown <neilb@cse.unsw.edu.au>
529
530         statd to have " -P directory" arg to use that directory instead
531         of /var/lib/nfs.  This is useful for fail-over clusters.
532         
533         * utils/statd/statd.h: define SM_DIR etc as var, not const.
534         * utils/statd/statd.c: define "-P" option to set SM_*
535         appropriately.
536         * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
537         a constant any more.
538         * utils/statd/notify.c: ditto.
539         * utils/statd/statd.man: document -P option.
540         
541 2002-08-26  Chip Salzenberg  <chip@pobox.com>
542
543         * utils/nfsd/nfsd.man: Fix typo.
544         * debian/changelog: Version 1.0.1-1.
545
546 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
547
548         * let parseopts know if /etc/exports was being read or not, 
549         and have it only print "no sync or async" warning in that case.
550         
551 2002-05-06 Tom McNeal <trmcneal@attbi.com>
552         NeilBrown <neilb@cse.unsw.edu.au>
553
554         * utils/nfsstat/nfsstat.c: Handle differing format for
555            /proc/net/rpc/nfsd between pre and post 2.4.0
556         
557 2002-04-09  NeilBrown <neilb@cse.unsw.edu.au>
558         James Pearson <james-p@moving-picture.com>
559
560         * support/nfs/rmtab.c(fendrmtabent): sync changes to 
561         storage before returning, as this is critical state
562
563 2002-04-08  Sean O'Connell <sean@ee.duke.edu>
564             H.J. Lu <hjl@lucon.org>
565
566         * etc/redhat/nfs: New.
567
568 2002-04-08  H.J. Lu <hjl@lucon.org>
569
570         * etc/redhat/nfs.init: Updated.
571
572         * nfs-utils.spec.in: Updated.
573         * nfs-utils.spec: Regenerated.
574
575         * utils/mountd/mountd.c (longopts): Fix a typo.
576
577         * utils/mountd/mountd.man: Updated.
578
579 2002-04-07  H.J. Lu <hjl@lucon.org>
580
581         * etc/redhat/nfslock.init (restart): Just do stop and start.
582
583         * etc/redhat/nfs.init: Fix a typo.
584
585 2002-04-07  H.J. Lu <hjl@lucon.org>
586
587         * configure.in (VERSION): Set to "1.0.1".
588         * configure: Regenerated.
589         * nfs-utils.spec: Likewise.
590
591         * README: Updated for 1.0.1.
592
593 2002-04-07  Sean O'Connell <sean@ee.duke.edu>
594             H.J. Lu <hjl@lucon.org>
595
596         * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
597
598 2002-02-28   Steven Whitehouse <steve@gw.chygwyn.com>
599               NeilBrown <neilb@cse.unsw.edu.au>
600
601         Add support for fsid=nn export option so that device
602         numbers don't go in filehandles.
603         * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
604         is set, pass the fsid in-place of the device number
605         * support/nfs/exports.c: parse and print fsid= option.
606         Also check if efname has been set, and use "command line"
607         instead in error messages.
608         Also, use strtol instead of atoi for anon[ug]id= so that
609         bad numbers cause errors.
610         
611 2002-01-17   Adrian Drzewiecki <drze@MissionCriticalLinux.com>
612              NeilBrown <neilb@cse.unsw.edu.au>
613
614         * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
615         flag so that "sync" becomes the default.
616         Check that either "sync" or "async" is given as an option
617         and warn if neither are present
618         * utils/exportfs/exports.man: change documentation for "sync"
619         to be documentation for "async".
620         * utils/exportfs/exportfs.man: note that "sync" is the default
621         rather than "async"
622         
623         
624 2002-01-02  Chip Salzenberg  <chip@pobox.com>
625
626         * support/export/nfsctl.c (expsetup): Don't export entries that
627         specify id mappings not supported by the kernel.  No extant kernel
628         supports any significant mapping, only 'identity' (i.e. none).
629         When other mappings are supported, this code will need changing.
630         * debian/changelog: Version 1.0-2.
631
632 2001-12-26  Chip Salzenberg  <chip@pobox.com>
633
634         * nfs-utils.spec (Version): Set to "1.0".
635         * configure.in (VERSION): Likewise.
636         * configure: Regenerated.
637         * README: Rewritten.
638         * debian/changelog: Version 1.0-1.
639
640         * utils/exportfs/exports.man: Emphasize the need for options to
641         immediately follow client names.  Explain that wildcards don't
642         usually work on addresses, but may work when reverse DNS fails.
643         Comment out a leftover TP that was TPing our indentation.
644         * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
645         utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
646         * debian/changelog: Version 0.3.3-6.
647
648 2001-12-20  NeilBrown <neilb@cse.unsw.edu.au>
649
650         * support/export/client.c(client_lookup): If a host has multiple
651         IP addresses, then we must always use the result of a
652         gethostbyname, not that of gethostbyaddr for exporting
653         
654 2001-12-20  NeilBrown <neilb@cse.unsw.edu.au>
655
656         * support/export/client.c (client_lookup): use strcasecmp when
657         comparing host names
658         * support/nfs/export.c (getexportent): add fromkernel arg and use
659         different defaults as kernels prior to 2.4.11 assume different
660         defaults in /proc/fs/nfs/exports
661         * support/include/nfslib.h, support/export/export.c,
662         support/export/xtab.c:  support extra "fromkernel" arg for
663         getexportent. 
664         
665 2001-12-13  Chip Salzenberg  <chip@pobox.com>
666
667         * debian/changelog: Version 0.3.3-5.
668
669 2001-11-26  TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
670
671         * support/nfs/xio.c (xskip): Call `xungetc' instead of
672         `ungetc' to keep x_line more properly.
673
674 2001-11-26  Chip Salzenberg  <chip@pobox.com>
675
676         * utils/showmount/showmount.c (main): Don't assume that strings
677         starting with digits are IP addresses.
678         * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
679         /dev/null before nfssvc().  Use syslog to report nfssvc errors.
680         * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
681         utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
682         man pages: We check host names *and* addresses with tcpwrappers.
683         * debian/changelog: Version 0.3.3-4.
684
685 2001-11-21  Chip Salzenberg  <chip@pobox.com>
686
687         * support/nfs/clients.c (cfname): Added: current clients file name.
688         (setnfsclntent): Set it.
689         ({get,end}nfsclntent, syntaxerr): Use it.
690         * support/nfs/exports.c (efname): Added: current exports file name.
691         (setnfsexportent): Set it.
692         (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
693         (parseopts): Accept old-style "crossmnt" option, for old xtabs.
694         * debian/changelog: Version 0.3.3-3.
695
696 2001-10-11  Chip Salzenberg  <chip@pobox.com>
697
698         * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
699         * debian/changelog: Version 0.3.3-2.
700
701 2001-10-08  Chip Salzenberg  <chip@pobox.com>
702
703         * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
704         * utils/Makefile.in: Remove old Makefile in target 'distclean'.
705         * utils/mountd/mountd.man: Update paths to /var/lib.
706         * debian/*: Version 0.3.3-1, with Debian-specific fixes.
707
708 2001-10-06  Preston Brown <pbrown@redhat.com>
709
710         * utils/nfsstat/nfsstat.man: Updated.
711
712 2001-09-24  H.J. Lu <hjl@lucon.org>
713
714         * configure.in (VERSION): Set to "0.3.3".
715         * configure: Regenerated.
716         * nfs-utils.spec: Likewise.
717
718         * README: Updated for 0.3.3.
719
720 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
721
722         Arrange that "exportfs -au" never does DNS lookup:
723         
724         * support/export/client.c (client_lookup) : add "canonical"
725         flag which says that the hostname is known to be canonical, so
726         don't do a lookup
727
728         * support/export/export.c (export_create) : add "canonical"
729         flag to be passed down to client_lookup
730         * support/export/export.c (export_lookup) : Likewise
731
732         * support/export/xtab.c (xtab_read) : pass appropriate
733         "canonical" flag to export_lookup and export_create:
734         set if reading list of filesystems currently exports
735         (is_export != 1). 
736
737         * support/export/export.c (export_read) : pass 0 as 
738         "canonical" flag to export_lookup and export_create
739         * support/export/rmtab.s (rmtab_read) : Likewise
740
741         * support/include/exportfs.h : redeclare various routines
742         to have "canonical" flag
743
744         * utils/exportfs/exportfs.c (main) : redo logic for 
745         "-au" to read in what is currently exported, but never even 
746         look at what "should" be exported.
747
748         * utils/exportfs/exportfs.c (unexportall) : remove this
749         routine. Functionality is completely included in
750         exports_update
751
752         * utils/exportfs/exportfs.c (exportfs) : set "canonical"
753         flag to zero in calls to export_lookup and export_create.
754
755         
756 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
757             Anne Milicia <milicia@missioncriticallinux.com>
758
759         * support/export/client.c (client_lookup) call gethostbyadd
760         to make sure that we have a canonical hostname, even for
761         dotted-quads
762         * utils/exportfs/exportfs.c (exportfs) Likewise
763         
764 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
765
766         * support/nfs/exports.c (putexportent): \octal quote any spaces
767         etc in a path name
768         * support/nfs/xio.c (xgettok): recognise double-quote and
769         \octal quoting in path names
770         * utils/exportfs/exports.man: document quoting conventions
771         for path names
772         
773 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
774
775         * utils/mountd/auth.c (auth_authenticate_internal): Reverse
776           change from 2000-08-02:  It causes problems if someone exports
777           to both a hostname and IP addresses.  nfs-utils must be
778           consistant about the canonical name that it chooses.
779
780 2001-08-17  Ragnar Kjørstad <nfs@ragnark.vestdata.no>
781             H.J. Lu <hjl@lucon.org>
782
783         * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
784
785         * utils/statd/statd.c (longopts): Add "name".
786         (usage): Add "-n/--name".
787         (main): Set MY_NAME with "-n/--name".
788
789         * utils/statd/state.c (change_state): Set MY_NAME only if it
790         is NULL.
791         
792         * utils/statd/statd.man: Updated for "-n/--name".
793
794 2001-07-26  H.J. Lu <hjl@lucon.org>
795
796         * nfs-utils.spec (Release): Set to 8.
797
798 2001-07-25  H.J. Lu <hjl@lucon.org>
799
800         * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
801         anything about it.
802
803 2001-06-27  H.J. Lu <hjl@lucon.org>
804
805         * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
806
807 2001-06-27  H.J. Lu <hjl@lucon.org>
808
809         * utils/rquotad/rquota_server.c: Don't call statfs () for
810         the block size. Use BLOCK_SIZE instead.
811
812 2001-06-27  H.J. Lu <hjl@lucon.org>
813
814         * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
815         (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
816
817         * configure.in (enable_nfsv3): Set to yes by default.
818         (--enable-rquotad): Added
819         (AC_PROG_CXX): Removed.
820         (AC_OUTPUT): Add utils/Makefile.
821         (CC_FOR_BUILD): Renamed from BUILD_CC.
822         * configure: Regenerated.
823
824         * utils/Makefile: Removed.
825
826         * utils/Makefile.in: New.
827
828         * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
829         rquotad.
830         (CC_FOR_BUILD): Renamed from BUILD_CC.
831         * nfs-utils.spec: Regenerated.
832
833 2001-06-15  Chip Salzenberg  <chip@debian.org>
834
835         * debian/changelog: Version 0.3.2-2.
836         * debian/*.init: Minor fixes.
837
838 2001-06-07  Lon H. Hohberger <hohberger@missioncriticallinux.com>
839
840         * etc/nodist/nfs-server: Fixed a bug where the script would
841         disable mounts from NFSv3 clients if NFSv3 is present.
842
843 2001-06-05  H.J. Lu <hjl@lucon.org>
844
845         * utils/mountd/mountd.c (longopts): Add "descriptors/o".
846         (main): Support --descriptors/-o to set the limit of the number
847         of open file descriptors.
848         (usage): Updated.
849
850         * utils/mountd/mountd.man: Updated for --descriptors/-o.
851
852 2001-06-04  H.J. Lu <hjl@lucon.org>
853
854         * nfs-utils.spec (Release): Set to 6.
855
856 2001-05-28  H.J. Lu <hjl@lucon.org>
857
858         * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
859         * utils/mountd/mountd.c (main): Likewise.
860         * utils/nfsd/nfsd.c (main): Likewise.
861         * utils/rquotad/rquota_svc.c (main): Likewise.
862
863 2001-05-06  Anne Milicia <milicia@missioncriticallinux.com>
864
865         * support/export/client.c (client_check): Check IP address
866         againet netgroup.
867
868 2001-05-06  Neil Brown <neilb@cse.unsw.edu.au>
869
870         * support/export/client.c (client_gettype): Treat `*' as
871         MCL_ANONYMOUS.
872
873 2001-04-22  H.J. Lu <hjl@lucon.org>
874
875         * nfs-utils.spec.in: Fix a typo.
876         * nfs-utils.spec: Regenerated.
877
878 2001-04-21  H.J. Lu <hjl@lucon.org>
879
880         * nfs-utils.spec.in: Fix cross build.
881         * nfs-utils.spec: Regenerated.
882         (Release): Set to 5.
883
884 2001-04-18  H.J. Lu <hjl@lucon.org>
885
886         * nfs-utils.spec.in: Support cross build.
887         * nfs-utils.spec: Regenerated.
888         (Release): Set to 4.
889
890         * config.sub: New.
891         * config.guess: New.
892
893         * config.mk.in (BUILD_CC): New.
894         (CC): Set to $(BUILD_CC) if BUILD is defined.
895         (AR): Set to @AR@.
896         (LD): Set to @LD@.
897         (RANLIB): Set to @RANLIB@.
898
899         * configure.in: Check BUILD_CC, RANLIB, AR and LD.
900         * configure: Regenerated.
901
902         * tools/rpcgen/Makefile (BUILD): Set to true.
903
904 2001-04-01  Chip Salzenberg  <chip@valinux.com>
905
906         * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
907         redundant, and sometimes broken, declaration of svc_fdset;
908         it may be a macro.
909         * support/nfs/rpcmisc.c (closedown): Likewise.
910         
911 2001-03-21  H.J. Lu <hjl@lucon.org>
912
913         * nfs-utils.spec: Regenerated.
914         (Release): Set to 3.
915
916 2001-03-21  Ion Badulescu  <ionut@cs.columbia.edu>
917
918         * utils/statd/statd.c (main): make sure file descriptors 0-2
919         are open to /dev/null.
920
921 2001-03-21  H.J. Lu <hjl@lucon.org>
922
923         * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
924         * support/nfs/rpcmisc.c: Likewise.
925         * utils/rquotad/rquota_svc.c: Likewise.
926         * utils/rquotad/rquotad.man: Likewise.
927         * utils/statd/Makefile: Likewise.
928         * utils/statd/rmtcall.c: Likewise.
929         * utils/statd/simulate.c: Likewise.
930         * utils/statd/statd.c: Likewise.
931         * utils/statd/statd.man: Likewise.
932
933 2001-03-11  H.J. Lu <hjl@lucon.org>
934
935         * configure.in (RELEASE): New. Default to 1, set by
936         --with-release=XXX. Substitute nfs-utils.spec.
937         * nfs-utils.spec.in (Release): Set to @RELEASE@.
938         * configure: Regenerated.
939         * nfs-utils.spec: Likewise.
940
941 2001-03-11  H.J. Lu <hjl@lucon.org>
942
943         * utils/rquotad/rquotad.man: Fix a typo.
944
945 2001-03-11  H.J. Lu <hjl@lucon.org>
946
947         * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
948         * support/nfs/rpcmisc.c: Likewise.
949         * utils/rquotad/rquota_svc.c: Likewise.
950         * utils/rquotad/rquotad.man: Likewise.
951         * utils/statd/Makefile: Likewise.
952         * utils/statd/rmtcall.c: Likewise.
953         * utils/statd/simulate.c: Likewise.
954         * utils/statd/statd.c: Likewise.
955         * utils/statd/statd.man: Likewise.
956
957 2001-03-10  H.J. Lu <hjl@lucon.org>
958
959         * configure.in (VERSION): Set to "0.3.2".
960         * configure: Regenerated.
961         * nfs-utils.spec: Likewise.
962
963         * README: Updated for 0.3.2.
964
965 2001-03-10  Tavis Barr <tavis@boole.isetr.columbia.edu>
966
967         * utils/rquotad/rquotad.man: Updated for -p.
968         * utils/statd/statd.man: Likewise.
969
970 2001-03-10  Ion Badulescu  <ionut@cs.columbia.edu>
971
972         * support/nfs/rpcmisc.c: export makesock()
973
974         * support/include/rpcmisc.h (makesock): Declared.
975
976         * utils/rquotad/rquota_svc.c: added longopts, added support for
977         specifying the port to bind to on the command line.
978
979         * utils/statd/statd.c: ditto, also specify port used for
980         outgoing connections.
981         (do_regist): Removed.
982
983         * utils/statd/rmtcall.c (statd_get_socket): Renamed from
984         get_socket. Make it extern.
985
986         * utils/statd/simulate.c (daemon_simulator): Call rpc_init
987         instead of do_regist.
988
989         * utils/statd/Makefile (LIBS): link with our own libnfs
990
991 2001-03-09  H.J. Lu <hjl@lucon.org>
992
993         * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
994         * etc/nodist/nfs-client: Likewise.
995
996 2001-02-26  Chip Salzenberg  <chip@valinux.com>
997
998         * debian/changelog: Version 0.3.1-1.
999         * Mention upstream source and license in copyright file.
1000         * Add build-Depends for debhelper and libwrap0-dev.
1001
1002 2001-02-20  Lon Hohberger <hohberger@missioncriticallinux.com>
1003
1004         * etc/nodist/nfs-server: Changed chkconfig line to 60 20
1005         * etc/nodist/nfs-client: Likewise.
1006
1007 2001-02-18  Lon Hohberger <hohberger@missioncriticallinux.com>
1008
1009         * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
1010         /sbin/rpc.statd.
1011
1012 2001-02-17  Patrick J. LoPresti <patl@curl.com>
1013
1014         * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
1015         LOG_LOCAL5.
1016
1017 2001-02-14  H.J. Lu <hjl@lucon.org>
1018
1019         * utils/statd/rmtcall.c: Include <time.h>.
1020         * utils/statd/svc_run.c: Likewise.
1021
1022 2001-02-14  H.J. Lu <hjl@lucon.org>
1023
1024         * configure.in (VERSION): Set to "0.3.1".
1025         * configure: Regenerated.
1026         * nfs-utils.spec: Likewise.
1027
1028         * README: Updated for 0.3.1.
1029
1030 2001-02-14  H.J. Lu <hjl@lucon.org>
1031
1032         * support/nfs/rpcmisc.c: Include <time.h>.
1033
1034 2001-02-14  Chip Salzenberg  <chip@valinux.com>
1035
1036         * debian/control: Change priority of nhfsstone package to 'extra'.
1037
1038 2001-02-12  Chip Salzenberg  <chip@valinux.com>
1039
1040         * debian/changelog: Version 0.3-2.
1041
1042 2001-02-02  H.J. Lu <hjl@lucon.org>
1043
1044         * support/include/rpcmisc.h (rpc_init): Remove bufsize.
1045         
1046         * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
1047         out SO_SNDBUF/SO_RCVBUF.
1048         (rpc_init): Remove bufsize and remove socksz in calls to
1049         makesock ().
1050
1051         * utils/mountd/mountd.c (main): Remove bufsize in calls to
1052         rpc_init ().
1053
1054 2001-01-28  Chip Salzenberg  <chip@valinux.com>
1055
1056         * debian/changelog: Version 0.3-1.
1057
1058 2001-01-25  H.J. Lu <hjl@lucon.org>
1059
1060         * configure.in (VERSION): Set to "0.3".
1061         * configure: Regenerated.
1062         * nfs-utils.spec: Likewise.
1063
1064         * README: Updated for 0.3.
1065
1066 2001-01-25  H.J. Lu <hjl@lucon.org>
1067
1068         * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
1069
1070 2001-01-20  Chip Salzenberg  <chip@valinux.com>
1071
1072         * support/include/xio.h (xgetc): Declare to return int.
1073         * support/nfs/xio.c (xgetc): Return int.
1074         (xgettok, xskip, xskipcomment): Use int for value of xgetc.
1075         * utils/statd/statd.c (main): Use int for value of getopt.
1076         * debian/changelog: Version 0.2.1-5.
1077         
1078 2000-12-10  Chip Salzenberg  <chip@valinux.com>
1079
1080         * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
1081         program and procedure numbers of kernel lockd's callback.  Also,
1082         besides the old (and broken) procedure #24, allow #16 per Trond.
1083
1084 2000-12-03  Chip Salzenberg  <chip@valinux.com>
1085
1086         * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
1087         * debian/control: Let nhfsstone replace files in nfs-kernel-server.
1088         * debian/changelog: Version 0.2.1-4.
1089
1090 2000-11-27  Tobias Ringstrom <tori@tellus.mine.nu>
1091
1092         * utils/mountd/auth.c (auth_authenticate): Log the bad path
1093         warning.
1094
1095 2000-11-24  Neil Brown <neilb@cse.unsw.edu.au>
1096
1097         * support/nfs/exports.c (getexportent): Check for host name
1098         without option, or options without hostname, and print a warning,
1099         as this is most likely a typo.
1100
1101 2000-11-19  Chip Salzenberg  <chip@valinux.com>
1102
1103         * debian/control: Add dependency on portmap.
1104         * debian/changelog: Version 0.2.1-3.
1105
1106 2000-11-10  H.J. Lu <hjl@lucon.org>
1107
1108         * nfs-utils.spec.in: Don't use libtool.
1109         Add ChangeLog and COPYING to doc.
1110         * nfs-utils.spec: Rebuild.
1111
1112 2000-11-09  H.J. Lu <hjl@lucon.org>
1113
1114         * etc/redhat/nfs.init (start): Back out the last change.
1115
1116 2000-11-09  H.J. Lu <hjl@lucon.org>
1117
1118         * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
1119         TCP is not supported by kernel.
1120
1121         * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
1122
1123         * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
1124         (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
1125
1126         * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
1127
1128 2000-10-24  Lon Hohberger <hohberger@missioncriticallinux.com>
1129
1130         * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
1131         * utils/statd/rmtcall.c: Add some IP address paranoia when doing
1132         callbacks to local lockd.
1133
1134 2000-10-18  Scott McDermott <mcdermot@questra.com>
1135
1136         * utils/exportfs/exports.man: Updated for CIDR netmask.
1137
1138 2000-10-17  Scott McDermott <mcdermot@questra.com>
1139
1140         * support/export/client.c (client_init): Support CIDR netmask
1141         in /etc/exports.
1142
1143 2000-10-11  H.J. Lu <hjl@lucon.org>
1144
1145         * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1146         * configure: Rebuilt.
1147
1148 2000-10-06  Lon Hohberger <hohberger@missioncriticallinux.com>
1149
1150         * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1151         "/var/lib/nfs/state".
1152
1153 2000-10-05  Lon Hohberger <hohberger@missioncriticallinux.com>
1154
1155         * utils/statd/statd.h (run_mode): New global bitmask of runtime
1156         behaviors: fg/bg, logging, etc.
1157         * utils/statd/statd.c: New command line options: -V -h -? -d .
1158         * utils/statd/statd.man: Update for changes to statd.
1159
1160         * utils/statd/log.h (log_init): Remove parameter of function; use
1161         global variable "name_p" instead.
1162         * utils/statd/log.c: Add support for logging to stderr.
1163
1164         * utils/statd/notlist.c: Partially rewrite notify list handling
1165         functions.  Eliminate run-off-end-of-list bug when calling
1166         nlist_insert_timer.  Add lots of comments.
1167         
1168 2000-09-27  H.J. Lu <hjl@lucon.org>
1169
1170         * README: Updated for RedHat 7.0.
1171
1172 2000-09-27  H.J. Lu <hjl@lucon.org>
1173
1174         * nfs-utils.spec: Rebuild.
1175
1176 2000-09-27  H.J. Lu <hjl@lucon.org>
1177
1178         * README: Updated for 0.2.1.
1179
1180 2000-09-27  H.J. Lu <hjl@lucon.org>
1181
1182         * nfs-utils.spec.in: Updated to use rpm macros and support
1183         RedHat 7.0.
1184
1185 2000-09-25  H.J. Lu <hjl@lucon.org>
1186
1187         * configure.in (VERSION): Set to "0.2.1".
1188         * configure: Regenerated.
1189         * nfs-utils.spec: Updated.
1190
1191 2000-09-25  H.J. Lu <hjl@lucon.org>
1192
1193         * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1194         non-NULL hostent is always returned.
1195
1196 2000-09-11  Ion Badulescu  <ionut@cs.columbia.edu>
1197
1198         * etc/redhat/nfslock.init: don't kill lockd processes that do not
1199         have an executable (i.e. kernel threads)
1200
1201 2000-09-01  H.J. Lu <hjl@lucon.org>
1202
1203         * README: Updated for 0.2.
1204
1205 2000-09-01  Jay Weber <jweber@valinux.com>
1206
1207         * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1208         supporting version 3 of nfs if available, else it will fall back to
1209         version 2 support only.
1210
1211 2000-08-30  H.J. Lu <hjl@lucon.org>
1212
1213         * configure.in (VERSION): Set to "0.2".
1214         * configure: Regenerated.
1215         * nfs-utils.spec: Updated.
1216
1217 2000-08-25  H.J. Lu <hjl@lucon.org>
1218
1219         * support/misc/tcpwrapper.c (logit): Modify the log output.
1220
1221 2000-08-25  Ion Badulescu  <ionut@cs.columbia.edu>
1222
1223         * utils/rquotad/rquotad.man, utils/statd/statd.man,
1224         utils/mountd/mountd.man: updated
1225         
1226         * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1227         * utils/rquotad/Makefile: fix comment
1228
1229         * support/misc/tcpwrapper.c (logit): added comment about waiting
1230         for the children after fork()
1231         
1232         * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1233         zombies behind (from logit()'s fork)
1234         * utils/rquotad/rquota_svc.c (main): ditto
1235         * utils/statd/statd.c (main): ditto
1236
1237         * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1238         to check_default instead of 0, for prognum
1239
1240         * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1241         to check_default instead of 0, for prognum
1242
1243         * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1244         HAVE_TCP_WRAPPER is defined.
1245         (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1246         defined. Reject an RPC call if check_default () fails.
1247
1248 2000-08-25  H.J. Lu <hjl@lucon.org>
1249
1250         * support/include/tcpwrapper.h: New for the tcp wrapper
1251         support.
1252         * support/misc/Makefile: Likewise.
1253         * support/misc/from_local.c: Likewise.
1254         * support/misc/tcpwrapper.c: Likewise.
1255
1256         * aclocal.m4 (AC_TCP_WRAPPER): New.
1257         * configure.in: Use it. Substitute LIBWRAP.
1258         * configure: Rebuilt.
1259
1260         * config.mk.in (LIBNSL): New.
1261         (LIBWRAP): Likewise.
1262
1263         * support/Makefile (SUBDIRS): Add misc.
1264
1265         * support/lib/Makefile (LIBS): Add libmisc.a.
1266
1267         * utils/rquotad/Makefile (LIBS): Add
1268         
1269                 -lmisc $(LIBWRAP) $(LIBNSL)
1270
1271         * utils/statd/Makefile (LIBS): Likewise.
1272
1273         * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1274         HAVE_TCP_WRAPPER is defined.
1275         (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1276         defined. Reject an RPC call if check_default () fails.
1277
1278         * utils/statd/statd.c: Include "tcpwrapper.h" if
1279         HAVE_TCP_WRAPPER is defined.
1280         (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1281         check_default () before calling sm_prog_1 (). Define it as
1282         sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1283
1284 2000-08-25  Chip Salzenberg  <chip@valinux.com>
1285
1286         * debian/*: Complete Debian build support.
1287         * etc/debian/*: Remove.
1288
1289 2000-08-24  Neil Brown <neilb@cse.unsw.edu.au>
1290
1291         * support/export/client.c(client_check): removed the "dot+1" as a
1292           ypdomain argument to innetgr as this is entirely bogus.
1293           It should always be NULL.
1294         
1295 2000-08-23  Neil Brown <neilb@cse.unsw.edu.au>
1296
1297         * support/export/xtab.c(xtab_read): introduce new mode for
1298            reading xtab. i.e. a list of exports that might be known to the
1299            kernel, or might not.  These are flagged as m_exported == -1
1300         * support/export/xtab.c(xtab_mount_read):  call xtab_read with new
1301            value "2" for xtab, meaning don't trust this too much.
1302         * support/include/exportfs.h(struct mexport): changed m_exported
1303            from one bit to an int so that it can hold new value
1304         * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1305            kernel if it is uncertain whether the kernel knows (m_exported == -1)
1306         * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1307            status is uncertain
1308
1309         * support/nfs/xio.c(xflock): added O_CREAT when getting
1310            a write lock so that missing files aren't fatal.
1311
1312         * etc/debian/nfs-common: new file from "potato"
1313         * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1314          
1315 2000-08-09  H.J. Lu <hjl@lucon.org>
1316
1317         * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1318         startup to ensure all existing clients work fine.
1319
1320         * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1321         to xtab_read () for reading _PATH_XTAB.
1322
1323 2000-08-02  H.J. Lu <hjl@lucon.org>
1324
1325         * utils/mountd/auth.c (auth_authenticate_internal): Try to
1326         avoid the reverse name lookup.
1327
1328 2000-07-04  H.J. Lu <hjl@lucon.org>
1329
1330         * utils/statd/log.c: Include <stdlib.h> for exit ().
1331
1332         * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1333         gcc warning.
1334
1335 2000-07-04  H.J. Lu <hjl@lucon.org>
1336
1337         * configure.in (VERSION): Set to "0.1.9.1".
1338         * configure: Regenerated.
1339         * nfs-utils.spec: Updated.
1340
1341         * README: Updated.
1342
1343 2000-07-04  Neil Brown  <neilb@cse.unsw.edu.au>
1344
1345         * support/export/hostname.c (hostent_dup): Handle the NULL
1346         h_aliases field.
1347
1348 2000-07-03  H.J. Lu <hjl@lucon.org>
1349
1350         * README: Update the util-linux requirement.
1351
1352 2000-07-03  H.J. Lu <hjl@lucon.org>
1353
1354         * configure.in (VERSION): Set to "0.1.9".
1355         * configure: Regenerated.
1356         * nfs-utils.spec: Updated.
1357
1358         * README: Updated.
1359
1360 2000-07-03  H.J. Lu <hjl@lucon.org>
1361
1362         * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1363         stop to ensure all clients can still access the server
1364         before it is shutdown.
1365
1366 2000-06-30  Jeff Uphoff <juphoff@transmeta.com>
1367
1368         * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1369         calls with format string.
1370         
1371 2000-06-28  Chip Salzenberg  <chip@valinux.com>
1372
1373         * utils/statd/log.c (log): Call syslog with format string.
1374
1375 2000-06-27  H.J. Lu <hjl@lucon.org>
1376
1377         * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1378         instead of OPEN_MAX.
1379
1380 2000-06-27  H.J. Lu <hjl@lucon.org>
1381
1382         * README: Updated.
1383
1384 2000-06-27  H.J. Lu <hjl@lucon.org>
1385
1386         * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1387         startup to ensure all existing clients are exported.
1388
1389         * configure.in (VERSION): Set to "0.1.8.2".
1390         * configure: Regenerated.
1391         * nfs-utils.spec: Updated.
1392
1393 2000-06-06  H.J. Lu <hjl@lucon.org>
1394
1395         * configure.in (VERSION): Set to "0.1.8.1".
1396         * configure: Regenerated.
1397         * nfs-utils.spec: Updated.
1398
1399 2000-06-06  H.J. Lu <hjl@lucon.org>
1400
1401         * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1402         to "struct sockaddr_in *" for glibc 2.2.
1403         (mount_umnt_1_svc): Likewise.
1404         (mount_umntall_1_svc): Likewise.
1405         (mount_export_1_svc): Likewise.
1406         (mount_exportall_1_svc): Likewise.
1407         (mount_pathconf_2_svc): Likewise.
1408         (get_rootfh): Likewise.
1409
1410 2000-06-04  H.J. Lu <hjl@lucon.org>
1411
1412         * etc/redhat/nfs.init: Fix a typo in comment.
1413
1414 2000-05-31  H.J. Lu <hjl@lucon.org>
1415
1416         * configure.in (VERSION): Set to "0.1.8".
1417         * configure: Regenerated.
1418         * nfs-utils.spec: Updated.
1419
1420         * README: Updated.
1421
1422 2000-05-31  H.J. Lu <hjl@lucon.org>
1423
1424         * configure.in (VERSION): Set to "0.1.7.5".
1425         * configure: Regenerated.
1426         * nfs-utils.spec: Updated.
1427
1428         * support/include/nfslib.h (exportent): Add a new field,
1429         r_count, to count the number of mounts from a client.
1430         (getrmtabent): Take a new argument for position in file.
1431         (putrmtabent): Likewise.
1432         (fgetrmtabent): Likewise.
1433         (fputrmtabent): Likewise.
1434         * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1435         for position in file.
1436         (fgetrmtabent): Likewise.
1437         (putrmtabent): Likewise.
1438         (fputrmtabent): Likewise.
1439
1440         * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1441         field, r_count.
1442
1443         * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1444         argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1445         and fputrmtabent ().
1446         * utils/mountd/rmtab.c (mountlist_add): Likewise.
1447         (mountlist_del): Likewise.
1448         (mountlist_del_all): Likewise.
1449         (mountlist_list): Likewise.
1450
1451         * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1452         for the existing entry and initialize "r_count" to 1.
1453         (mountlist_del): Decrement "r_count".
1454
1455 2000-05-18  H.J. Lu <hjl@lucon.org>
1456
1457         * configure.in (VERSION): Set to "0.1.7.4".
1458         * configure: Regenerated.
1459         * nfs-utils.spec: Updated.
1460
1461 2000-05-18  H.J. Lu <hjl@lucon.org>
1462
1463         * etc/redhat/nfs.init (restart): Just do stop and start.
1464
1465 2000-05-09  Jay Weber <jweber@valinux.com>
1466
1467         * utils/rquotad/hasquota.c: added support for ext3 recognition
1468         in rquotad.
1469         * utils/rquotad/mntent.h: Likewise.
1470
1471 2000-05-01  H.J. Lu <hjl@lucon.org>
1472
1473         * configure.in (VERSION): Set to "0.1.7.3".
1474         * configure: Regenerated.
1475         * nfs-utils.spec: Updated.
1476
1477 2000-05-01  H.J. Lu <hjl@lucon.org>
1478
1479         * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1480         mounting poins in /etc/fstab.
1481
1482 2000-05-01  H.J. Lu <hjl@lucon.org>
1483
1484         * configure.in (VERSION): Set to "0.1.7.2".
1485         * configure: Regenerated.
1486         * nfs-utils.spec: Updated.
1487
1488 2000-05-01  H.J. Lu <hjl@lucon.org>
1489
1490         * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1491         to check for the mounting point.
1492
1493 2000-04-29  Chip Salzenberg  <chip@valinux.com>
1494             Neil Brown  <neilb@cse.unsw.edu.au>
1495
1496         * Really re-use RPC ports.
1497           (Fixes earlier patch.  Sorry, Neil.)
1498
1499 2000-04-26  H.J. Lu <hjl@lucon.org>
1500
1501         * configure.in (VERSION): Set to "0.1.7.1".
1502         * configure: Regenerated.
1503         * nfs-utils.spec: Updated.
1504
1505 2000-04-26  H.J. Lu <hjl@lucon.org>
1506
1507         * etc/redhat/nfslock.init: Check if lockd exits before killing
1508         it.
1509
1510 2000-04-25  H.J. Lu <hjl@lucon.org>
1511
1512         * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1513
1514 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1515
1516         * support/nfs/exports.c (parsesquash): Correctly set the
1517         return pointer.
1518
1519 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1520
1521         * support/include/nfs/nfs.h: Removed knowledge of internals of
1522              kernel filehandles (which can change) and defined nfs_fh_size
1523              which has variable size
1524         
1525         * support/nfs/getfh.c: defined getfh_size to use new syscall to
1526              get variable sized file handles, and change getfh{,old} to
1527              use nfs_fh_size        
1528         
1529         * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1530              NFSv3 file handles
1531
1532         * tools/Makefile, tools/nlmtest/nlmtest.c
1533              nlmtest.c depended on internel format of file handles, so now
1534              doesn't work.
1535
1536         
1537 2000-03-12  Chip Salzenberg  <chip@valinux.com>
1538             Neil Brown  <neilb@cse.unsw.edu.au>
1539
1540         * support/nfs/rpcmisc.c (rpc_init): Share transports.
1541
1542 2000-03-13 H.J. Lu <hjl@lucon.org>
1543
1544         * etc/redhat/nfsd.init: Updated.
1545
1546         * etc/redhat/nfslock.init: Updated.
1547
1548         * nfs-utils.spec.in: Updated.
1549
1550         * configure.in (VERSION): Set to "0.1.7".
1551         * configure: Regenerated.
1552         * nfs-utils.spec: Updated.
1553
1554         * README: Updated.
1555
1556 Wed Mar  8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1557
1558         * utils/exportfs/exportfs.c (dump): Included printing of
1559            nohide, no_subtree_check, and insecure_locks
1560
1561 2000-02-26  Chip Salzenberg  <chip@valinux.com>
1562
1563         * config.mk.in (INSTALLSUID): Strip ("-s").
1564         (INSTALLSCRIPT): Define.
1565         * utils/nhfsstone/Makefile: Use it.
1566
1567 2000-02-26  Chip Salzenberg  <chip@valinux.com>
1568
1569         * utils/lockd/lockd.man: Create.
1570         * utils/lockd/Makefile: Install it.
1571         * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1572         * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1573         * utils/nhfsstone/Makefile: Install the helper scripts and
1574           all four man pages.
1575         * utils/exportfs/exports.man: Fix typo.
1576
1577 2000-02-26  Chip Salzenberg  <chip@valinux.com>
1578
1579         * support/nfs/xio.c (xungetc): Decrement line number when
1580         character to unget is newline.  Make first parameter int, so
1581         it can distinguish EOF from \377.
1582         * support/include/xio.h (xungetc): Adjust prototype.
1583
1584 Fri Feb  4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1585
1586         * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1587         * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1588         * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1589
1590         This is for supporting a new option introduced in 2.3.42
1591
1592 Thu Feb  3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1593
1594         * COPYING: Added. GPL.
1595
1596 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1597
1598         * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1599         to get the block size.
1600
1601 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1602
1603         * nfs-utils.spec.in: Update ftp site.
1604
1605 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1606
1607         * README: Update hostnames.
1608
1609 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1610
1611         * configure.in (VERSION): Set to "0.1.6".
1612         * configure: Regenerated.
1613         * nfs-utils.spec: Updated.
1614
1615         * README: Updated.
1616
1617 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1618
1619         * utils/mountd/auth.c (auth_authenticate_internal): Call
1620         xstrdup for hostname before passing it to gethostbyname.
1621
1622         * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1623         of strdup.
1624
1625 Sun Dec 19 09:35:01 1999  H.J. Lu <hjl@lucon.org>
1626
1627         * README: Update the mailing list address.
1628
1629 Sun Dec 19 09:22:28 1999  H.J. Lu <hjl@lucon.org>
1630
1631         * configure.in (VERSION): Set to "0.1.5".
1632         * configure: Regenerated.
1633         * nfs-utils.spec: Updated.
1634
1635         * README: Updated.
1636
1637 Mon Dec 13 13:40:20 1999  H.J. Lu <hjl@lucon.org>
1638
1639         * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1640         for '/'.
1641
1642 Mon Dec  6 09:42:45 1999  H.J. Lu <hjl@lucon.org>
1643
1644         * configure.in (VERSION): Set to "0.1.4".
1645         * configure: Regenerated.
1646         * nfs-utils.spec: Updated.
1647
1648         * README: Updated.
1649
1650 Mon Dec  6 09:28:07 1999  H.J. Lu <hjl@lucon.org>
1651
1652         * nfs-utils.spec.in: New file.
1653
1654         * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1655
1656         * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1657
1658 1999-12-04  Chip Salzenberg  <chip@valinux.com>
1659
1660         * config.mk.in: Use $(CC) as set by configure.
1661
1662 1999-12-04  Chip Salzenberg  <chip@valinux.com>
1663
1664         * rules.mk: Call $(MAKE) with $(MFLAGS).
1665
1666 Mon Nov 29 11:17:35 1999  H.J. Lu <hjl@lucon.org>
1667
1668         * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1669         IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1670
1671 Mon Nov 29 11:17:35 1999  H.J. Lu <hjl@lucon.org>
1672
1673         * nfs-utils.spec (Version): Set to 0.1.3.
1674
1675         * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1676         * configure: Regenerated.
1677
1678         * README: Updated.
1679
1680 Mon Nov 29 11:15:47 1999  H.J. Lu <hjl@lucon.org>
1681
1682         * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1683         (_PATH_DEV_DSK): Likewise.
1684         (getquotainfo): Match the mounting point from /etc/mtab
1685         instead of calling nfsmount_to_devname ().
1686
1687 1999-11-24  Chip Salzenberg  <chip@valinux.com>
1688
1689         * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1690         to the new port 24 as well as the historical port 100021.
1691
1692 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1693
1694         * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1695         stopping nfsd to stop spurious ESTALE on server shutdown.
1696         
1697 Tue Nov 23 10:13:39 1999  Neil Brown <neilb@cse.unsw.edu.au>
1698
1699         * support/nfs/exports.c (parseopts): make copy of opt string
1700         before 'nul'ing out commas so that
1701
1702         # exportfs -o option1,option2 hosta:/fs hostb:/fs
1703
1704         applies both options to both exports.
1705
1706 Thu Oct 28 12:55:42 1999  H.J. Lu <hjl@lucon.org>
1707
1708         * README: Fix a few typos.
1709
1710         * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1711         of long.
1712         * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1713         * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1714         * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1715         (unsigned_dec): Likewise.
1716         * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1717         * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1718
1719         * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1720         instead of LONG.
1721         * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1722         (unsigned_dec): Likewise.
1723         * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1724         * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1725         * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1726
1727 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1728
1729         * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1730         * support/nfs/exports.c: added {no_,}subtree_check and changed
1731           crossmnt to nohide
1732         * utils/exportfs/exports.man: added no_subtree_check and nohide
1733           and removed irrelevant stuff from unfsd.
1734         * support/export/rmtab.c: rmtab_read didn't quite do the right
1735           thing if a pathname from rmtab was a subdirectory of an export-point
1736
1737 Tue Oct 26 17:22:40 1999  H.J. Lu <hjl@lucon.org>
1738
1739         * README: Updated ftp site.
1740
1741 Mon Oct 25 18:12:45 1999  H.J. Lu <hjl@lucon.org>
1742
1743         * nfs-utils.spec (Version): Set to 0.1.2.
1744
1745         * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1746         * configure: Regenerated.
1747
1748         * README: Updated.
1749
1750 Mon Oct 25 18:11:21 1999  H.J. Lu <hjl@lucon.org>
1751
1752         * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1753         (auth_authenticate_internal): Check for NULL return on forward
1754         DNS lookup.
1755         (auth_authenticate): Handle "no_forward_dns".
1756
1757 Thu Oct 21 16:22:06 1999  H.J. Lu <hjl@lucon.org>
1758
1759         * Version 0.1.1 released.
1760
1761         * nfs-utils.spec (Version): Set to 0.1.1.
1762
1763         * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1764         * configure: Regenerated.
1765
1766         * README: Updated.
1767
1768 Mon Oct 18 17:43:29 1999  H.J. Lu <hjl@lucon.org>
1769
1770         * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1771         to knfsd-clients.
1772         (Provides): Likewise.
1773
1774 Mon Oct 18 14:56:22 1999  H.J. Lu <hjl@lucon.org>
1775
1776         * Initial version 0.1 released.
1777
1778         * configure.in (VERSION): Set to "nfs-utils 0.1".
1779         * configure: Regenerated.
1780
1781 Mon Oct 18 14:54:57 1999  H.J. Lu <hjl@lucon.org>
1782
1783         * utils/mountd/mountd.c (get_exportlist): Cleanup.
1784
1785         * utils/exportfs/exportfs.c (unexport_all): Unexport from
1786         kernel only if the entry is exported to kernel.
1787         (unexportfs): Likewise.
1788
1789 Wed Sep 08 16:49:32 1999  Neil Brown <neilb@cse.unsw.edu.au>
1790
1791 1/ utils/mountd/rmtab.c::mountlist_list
1792
1793      This routine stats the rmtab file to see if it has changed.  It
1794      if has, it cleans up it's old copy of the data. But it still
1795      always re-read the file, thus returning multiple copies of the
1796      data on consecutive calls without intervening changes.
1797      "Showmount -a" didn't show this as it appears to sort/unique the
1798      data, but 'strace showmount -a' showed that the size of the
1799      datagram that it received grew.
1800
1801      I moved the getrmtabent loop inside the mtime test.
1802
1803 2/ utils/exportfs/exportfs.c
1804    
1805      Many routines used the m_path field of m_export instead of
1806      e_path.
1807      According to the comment in nfslib.h, m_path should only
1808      be used when processing a mount request (i.e. in mountd)
1809      where the mountpoint may be a subdirectory of the export point.
1810
1811      I changed all occurances of m_path to e_path
1812
1813
1814 3/ utils/exportfs/exportfs.c:main
1815
1816       extra arguments are not meaningful with -a or -r, but
1817       exportfs accepted them and then ignored the -a/-r, expect that
1818       -r would still unexport everything first.
1819
1820       I generate an error if there are extra args and f_all
1821
1822 4/ utils/exportfs/exportfs.c:main
1823      extract dump out as a special case.
1824
1825 5/ utils/exportfs/exportfs.c
1826      made f_reexport a local variable.
1827
1828
1829 6/ utils/exportfs/exportfs.c:main,exportall
1830
1831     support/export/rmtab.c
1832        only  mayexport on newly created entries, don't set xtabent at all
1833
1834 7/ support/include/nfslib.h
1835
1836       add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1837
1838 8/ support/export/xtab.c
1839
1840       xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1841       else from xtab
1842
1843
1844 9/ support/export/xtab.c
1845
1846       xtab_mount_read now sets m_exported, and NOT
1847         xtabent and mayexport
1848
1849       removed the append arguement from xtab_write as it was
1850         never used.
1851
1852       added is_export flag to xtab_write similar to xtab_read
1853         if is_export, only write entries with m_xtabent or m_addxtab
1854         if !is_export, only write entries with m_exported
1855      
1856 10/ support/export/export.c::export_allowed_internal
1857
1858       added test for exp->m_mayexport, as the export tree
1859         may have entries that are no longer allowed to be exported,
1860         and so shouldn't caused deduced exported by rmtab_read
1861
1862 11/ utils/exportfs/exportfs.c::main
1863         error checking of flags.
1864
1865 12/ utils/exportfs/exportfs.c
1866
1867         total rewrite of export and unexport logic.
1868         We now:
1869         -  build an exportslist of valid exports, based on
1870            current etab file  and arguments,
1871         -  read rmtab to instantiate relevant wild card entries
1872         -  read etab to find out what is currently exported
1873         -  synchronise intention with reality
1874         -  write out etab and xtab
1875
1876 13/  various
1877         discard the m_addxtab flag
1878         add m_changed flag so we know what to report in exportfs
1879
1880 14/ utils/mountd/auth.c:auth_authenticate
1881
1882         the value returned by gethostbyaddr was trusted.
1883
1884         It now follows this with a call to gethostbyname
1885         and checks that the address is in the list.
1886
1887 15/ support/export/nfsctl.c::cltsetup,expsetup
1888
1889         force client names to lowercase as kernel is
1890         sensitive to case
1891
1892 16/ quietened a few compiler warnings
1893
1894 17/ support/export/client:client_lookup
1895
1896      look for pre-existing client with same name before creating
1897         a new one.
1898
1899 18/ support/include/exportfs.h
1900
1901      The ordering of the MCL_* enum was:
1902         ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1903
1904      I moved ANONYMOUS to the end.
1905
1906      The ordering is significant when an export entry is being searched for to 
1907         match a given address.  There are two problems with ANONYMOUS being first.
1908
1909         1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1910            then the ro case will always be found first and the privileged hosts won't get
1911            their privilege
1912         2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1913            export entry for the specific host, and writes it to xtab.
1914            When another request comes from the same host, the ANONYMOUS entry is found again, 
1915            before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1916            again.  If causes bloat in xtab.
1917
1918       Putting ANONYMOUS at the end reflects it's nature as a catch-all
1919
1920 19/ utils/exportfs/exportfs.man
1921         many updates to the man page to reflect changes to the code
1922
1923 -----------------------
1924
1925
1926
1927 TODO:
1928
1929 - allow exportfs to modify rmtab file
1930 - make sure kernel never gets two clients with same IP address
1931     - possible kernel should reject
1932     - needs to be some way to lookup client in kernel by IP address
1933 - maybe get kernel to do case-insensitive comparisons on client names
1934 - remove unused clients from kernel
1935
1936 - change etab to xtab and xtab to xtab.active
1937
1938 - timestamp and/or statd-stamp in rmtab for removing old entries.
1939
1940 Mon Oct 18 11:48:07 1999  H.J. Lu <hjl@lucon.org>
1941
1942         * linux-nfs: New directory.
1943         * linux-nfs/ChangeLog: Moved from ..
1944         * linux-nfs/INSTALL: Likewise.
1945         * linux-nfs/KNOWNBUGS: Likewise.
1946         * linux-nfs/NEW: Likewise.
1947         * linux-nfs/README: Likewise.
1948         * linux-nfs/THANKS: Likewise.
1949         * linux-nfs/TODO: Likewise.
1950
1951         * Starting from knfsd 1.4.7.