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