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