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