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