]> git.decadent.org.uk Git - nfs-utils.git/blob - ChangeLog
2002-04-07 H.J. Lu <hjl@lucon.org>
[nfs-utils.git] / ChangeLog
1 2002-04-07  H.J. Lu <hjl@lucon.org>
2
3         * configure.in (VERSION): Set to "1.0.1".
4         * configure: Regenerated.
5         * nfs-utils.spec: Likewise.
6
7         * README: Updated for 1.0.1.
8
9 2002-04-07  H.J. Lu <hjl@lucon.org>
10
11         * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
12
13 2002-02-28   Steven Whitehouse <steve@gw.chygwyn.com>
14               NeilBrown <neilb@cse.unsw.edu.au>
15
16         Add support for fsid=nn export option so that device
17         numbers don't go in filehandles.
18         * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
19         is set, pass the fsid in-place of the device number
20         * support/nfs/exports.c: parse and print fsid= option.
21         Also check if efname has been set, and use "command line"
22         instead in error messages.
23         Also, use strtol instead of atoi for anon[ug]id= so that
24         bad numbers cause errors.
25         
26 2002-01-17   Adrian Drzewiecki <drze@MissionCriticalLinux.com>
27              NeilBrown <neilb@cse.unsw.edu.au>
28
29         * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
30         flag so that "sync" becomes the default.
31         Check that either "sync" or "async" is given as an option
32         and warn if neither are present
33         * utils/exportfs/exports.man: change documentation for "sync"
34         to be documentation for "async".
35         * utils/exportfs/exportfs.man: note that "sync" is the default
36         rather than "async"
37         
38         
39 2002-01-02  Chip Salzenberg  <chip@pobox.com>
40
41         * support/export/nfsctl.c (expsetup): Don't export entries that
42         specify id mappings not supported by the kernel.  No extant kernel
43         supports any significant mapping, only 'identity' (i.e. none).
44         When other mappings are supported, this code will need changing.
45         * debian/changelog: Version 1.0-2.
46
47 2001-12-26  Chip Salzenberg  <chip@pobox.com>
48
49         * nfs-utils.spec (Version): Set to "1.0".
50         * configure.in (VERSION): Likewise.
51         * configure: Regenerated.
52         * README: Rewritten.
53         * debian/changelog: Version 1.0-1.
54
55         * utils/exportfs/exports.man: Emphasize the need for options to
56         immediately follow client names.  Explain that wildcards don't
57         usually work on addresses, but may work when reverse DNS fails.
58         Comment out a leftover TP that was TPing our indentation.
59         * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
60         utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
61         * debian/changelog: Version 0.3.3-6.
62
63 2001-12-20  NeilBrown <neilb@cse.unsw.edu.au>
64
65         * support/export/client.c(client_lookup): If a host has multiple
66         IP addresses, then we must always use the result of a
67         gethostbyname, not that of gethostbyaddr for exporting
68         
69 2001-12-20  NeilBrown <neilb@cse.unsw.edu.au>
70
71         * support/export/client.c (client_lookup): use strcasecmp when
72         comparing host names
73         * support/nfs/export.c (getexportent): add fromkernel arg and use
74         different defaults as kernels prior to 2.4.11 assume different
75         defaults in /proc/fs/nfs/exports
76         * support/include/nfslib.h, support/export/export.c,
77         support/export/xtab.c:  support extra "fromkernel" arg for
78         getexportent. 
79         
80 2001-12-13  Chip Salzenberg  <chip@pobox.com>
81
82         * debian/changelog: Version 0.3.3-5.
83
84 2001-11-26  TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
85
86         * support/nfs/xio.c (xskip): Call `xungetc' instead of
87         `ungetc' to keep x_line more properly.
88
89 2001-11-26  Chip Salzenberg  <chip@pobox.com>
90
91         * utils/showmount/showmount.c (main): Don't assume that strings
92         starting with digits are IP addresses.
93         * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
94         /dev/null before nfssvc().  Use syslog to report nfssvc errors.
95         * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
96         utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
97         man pages: We check host names *and* addresses with tcpwrappers.
98         * debian/changelog: Version 0.3.3-4.
99
100 2001-11-21  Chip Salzenberg  <chip@pobox.com>
101
102         * support/nfs/clients.c (cfname): Added: current clients file name.
103         (setnfsclntent): Set it.
104         ({get,end}nfsclntent, syntaxerr): Use it.
105         * support/nfs/exports.c (efname): Added: current exports file name.
106         (setnfsexportent): Set it.
107         (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
108         (parseopts): Accept old-style "crossmnt" option, for old xtabs.
109         * debian/changelog: Version 0.3.3-3.
110
111 2001-10-11  Chip Salzenberg  <chip@pobox.com>
112
113         * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
114         * debian/changelog: Version 0.3.3-2.
115
116 2001-10-08  Chip Salzenberg  <chip@pobox.com>
117
118         * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
119         * utils/Makefile.in: Remove old Makefile in target 'distclean'.
120         * utils/mountd/mountd.man: Update paths to /var/lib.
121         * debian/*: Version 0.3.3-1, with Debian-specific fixes.
122
123 2001-10-06  Preston Brown <pbrown@redhat.com>
124
125         * utils/nfsstat/nfsstat.man: Updated.
126
127 2001-09-24  H.J. Lu <hjl@lucon.org>
128
129         * configure.in (VERSION): Set to "0.3.3".
130         * configure: Regenerated.
131         * nfs-utils.spec: Likewise.
132
133         * README: Updated for 0.3.3.
134
135 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
136
137         Arrange that "exportfs -au" never does DNS lookup:
138         
139         * support/export/client.c (client_lookup) : add "canonical"
140         flag which says that the hostname is known to be canonical, so
141         don't do a lookup
142
143         * support/export/export.c (export_create) : add "canonical"
144         flag to be passed down to client_lookup
145         * support/export/export.c (export_lookup) : Likewise
146
147         * support/export/xtab.c (xtab_read) : pass appropriate
148         "canonical" flag to export_lookup and export_create:
149         set if reading list of filesystems currently exports
150         (is_export != 1). 
151
152         * support/export/export.c (export_read) : pass 0 as 
153         "canonical" flag to export_lookup and export_create
154         * support/export/rmtab.s (rmtab_read) : Likewise
155
156         * support/include/exportfs.h : redeclare various routines
157         to have "canonical" flag
158
159         * utils/exportfs/exportfs.c (main) : redo logic for 
160         "-au" to read in what is currently exported, but never even 
161         look at what "should" be exported.
162
163         * utils/exportfs/exportfs.c (unexportall) : remove this
164         routine. Functionality is completely included in
165         exports_update
166
167         * utils/exportfs/exportfs.c (exportfs) : set "canonical"
168         flag to zero in calls to export_lookup and export_create.
169
170         
171 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
172             Anne Milicia <milicia@missioncriticallinux.com>
173
174         * support/export/client.c (client_lookup) call gethostbyadd
175         to make sure that we have a canonical hostname, even for
176         dotted-quads
177         * utils/exportfs/exportfs.c (exportfs) Likewise
178         
179 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
180
181         * support/nfs/exports.c (putexportent): \octal quote any spaces
182         etc in a path name
183         * support/nfs/xio.c (xgettok): recognise double-quote and
184         \octal quoting in path names
185         * utils/exportfs/exports.man: document quoting conventions
186         for path names
187         
188 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
189
190         * utils/mountd/auth.c (auth_authenticate_internal): Reverse
191           change from 2000-08-02:  It causes problems if someone exports
192           to both a hostname and IP addresses.  nfs-utils must be
193           consistant about the canonical name that it chooses.
194
195 2001-08-17  Ragnar Kjørstad <nfs@ragnark.vestdata.no>
196             H.J. Lu <hjl@lucon.org>
197
198         * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
199
200         * utils/statd/statd.c (longopts): Add "name".
201         (usage): Add "-n/--name".
202         (main): Set MY_NAME with "-n/--name".
203
204         * utils/statd/state.c (change_state): Set MY_NAME only if it
205         is NULL.
206         
207         * utils/statd/statd.man: Updated for "-n/--name".
208
209 2001-07-26  H.J. Lu <hjl@lucon.org>
210
211         * nfs-utils.spec (Release): Set to 8.
212
213 2001-07-25  H.J. Lu <hjl@lucon.org>
214
215         * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
216         anything about it.
217
218 2001-06-27  H.J. Lu <hjl@lucon.org>
219
220         * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
221
222 2001-06-27  H.J. Lu <hjl@lucon.org>
223
224         * utils/rquotad/rquota_server.c: Don't call statfs () for
225         the block size. Use BLOCK_SIZE instead.
226
227 2001-06-27  H.J. Lu <hjl@lucon.org>
228
229         * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
230         (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
231
232         * configure.in (enable_nfsv3): Set to yes by default.
233         (--enable-rquotad): Added
234         (AC_PROG_CXX): Removed.
235         (AC_OUTPUT): Add utils/Makefile.
236         (CC_FOR_BUILD): Renamed from BUILD_CC.
237         * configure: Regenerated.
238
239         * utils/Makefile: Removed.
240
241         * utils/Makefile.in: New.
242
243         * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
244         rquotad.
245         (CC_FOR_BUILD): Renamed from BUILD_CC.
246         * nfs-utils.spec: Regenerated.
247
248 2001-06-15  Chip Salzenberg  <chip@debian.org>
249
250         * debian/changelog: Version 0.3.2-2.
251         * debian/*.init: Minor fixes.
252
253 2001-06-07  Lon H. Hohberger <hohberger@missioncriticallinux.com>
254
255         * etc/nodist/nfs-server: Fixed a bug where the script would
256         disable mounts from NFSv3 clients if NFSv3 is present.
257
258 2001-06-05  H.J. Lu <hjl@lucon.org>
259
260         * utils/mountd/mountd.c (longopts): Add "descriptors/o".
261         (main): Support --descriptors/-o to set the limit of the number
262         of open file descriptors.
263         (usage): Updated.
264
265         * utils/mountd/mountd.man: Updated for --descriptors/-o.
266
267 2001-06-04  H.J. Lu <hjl@lucon.org>
268
269         * nfs-utils.spec (Release): Set to 6.
270
271 2001-05-28  H.J. Lu <hjl@lucon.org>
272
273         * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
274         * utils/mountd/mountd.c (main): Likewise.
275         * utils/nfsd/nfsd.c (main): Likewise.
276         * utils/rquotad/rquota_svc.c (main): Likewise.
277
278 2001-05-06  Anne Milicia <milicia@missioncriticallinux.com>
279
280         * support/export/client.c (client_check): Check IP address
281         againet netgroup.
282
283 2001-05-06  Neil Brown <neilb@cse.unsw.edu.au>
284
285         * support/export/client.c (client_gettype): Treat `*' as
286         MCL_ANONYMOUS.
287
288 2001-04-22  H.J. Lu <hjl@lucon.org>
289
290         * nfs-utils.spec.in: Fix a typo.
291         * nfs-utils.spec: Regenerated.
292
293 2001-04-21  H.J. Lu <hjl@lucon.org>
294
295         * nfs-utils.spec.in: Fix cross build.
296         * nfs-utils.spec: Regenerated.
297         (Release): Set to 5.
298
299 2001-04-18  H.J. Lu <hjl@lucon.org>
300
301         * nfs-utils.spec.in: Support cross build.
302         * nfs-utils.spec: Regenerated.
303         (Release): Set to 4.
304
305         * config.sub: New.
306         * config.guess: New.
307
308         * config.mk.in (BUILD_CC): New.
309         (CC): Set to $(BUILD_CC) if BUILD is defined.
310         (AR): Set to @AR@.
311         (LD): Set to @LD@.
312         (RANLIB): Set to @RANLIB@.
313
314         * configure.in: Check BUILD_CC, RANLIB, AR and LD.
315         * configure: Regenerated.
316
317         * tools/rpcgen/Makefile (BUILD): Set to true.
318
319 2001-04-01  Chip Salzenberg  <chip@valinux.com>
320
321         * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
322         redundant, and sometimes broken, declaration of svc_fdset;
323         it may be a macro.
324         * support/nfs/rpcmisc.c (closedown): Likewise.
325         
326 2001-03-21  H.J. Lu <hjl@lucon.org>
327
328         * nfs-utils.spec: Regenerated.
329         (Release): Set to 3.
330
331 2001-03-21  Ion Badulescu  <ionut@cs.columbia.edu>
332
333         * utils/statd/statd.c (main): make sure file descriptors 0-2
334         are open to /dev/null.
335
336 2001-03-21  H.J. Lu <hjl@lucon.org>
337
338         * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
339         * support/nfs/rpcmisc.c: Likewise.
340         * utils/rquotad/rquota_svc.c: Likewise.
341         * utils/rquotad/rquotad.man: Likewise.
342         * utils/statd/Makefile: Likewise.
343         * utils/statd/rmtcall.c: Likewise.
344         * utils/statd/simulate.c: Likewise.
345         * utils/statd/statd.c: Likewise.
346         * utils/statd/statd.man: Likewise.
347
348 2001-03-11  H.J. Lu <hjl@lucon.org>
349
350         * configure.in (RELEASE): New. Default to 1, set by
351         --with-release=XXX. Substitute nfs-utils.spec.
352         * nfs-utils.spec.in (Release): Set to @RELEASE@.
353         * configure: Regenerated.
354         * nfs-utils.spec: Likewise.
355
356 2001-03-11  H.J. Lu <hjl@lucon.org>
357
358         * utils/rquotad/rquotad.man: Fix a typo.
359
360 2001-03-11  H.J. Lu <hjl@lucon.org>
361
362         * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
363         * support/nfs/rpcmisc.c: Likewise.
364         * utils/rquotad/rquota_svc.c: Likewise.
365         * utils/rquotad/rquotad.man: Likewise.
366         * utils/statd/Makefile: Likewise.
367         * utils/statd/rmtcall.c: Likewise.
368         * utils/statd/simulate.c: Likewise.
369         * utils/statd/statd.c: Likewise.
370         * utils/statd/statd.man: Likewise.
371
372 2001-03-10  H.J. Lu <hjl@lucon.org>
373
374         * configure.in (VERSION): Set to "0.3.2".
375         * configure: Regenerated.
376         * nfs-utils.spec: Likewise.
377
378         * README: Updated for 0.3.2.
379
380 2001-03-10  Tavis Barr <tavis@boole.isetr.columbia.edu>
381
382         * utils/rquotad/rquotad.man: Updated for -p.
383         * utils/statd/statd.man: Likewise.
384
385 2001-03-10  Ion Badulescu  <ionut@cs.columbia.edu>
386
387         * support/nfs/rpcmisc.c: export makesock()
388
389         * support/include/rpcmisc.h (makesock): Declared.
390
391         * utils/rquotad/rquota_svc.c: added longopts, added support for
392         specifying the port to bind to on the command line.
393
394         * utils/statd/statd.c: ditto, also specify port used for
395         outgoing connections.
396         (do_regist): Removed.
397
398         * utils/statd/rmtcall.c (statd_get_socket): Renamed from
399         get_socket. Make it extern.
400
401         * utils/statd/simulate.c (daemon_simulator): Call rpc_init
402         instead of do_regist.
403
404         * utils/statd/Makefile (LIBS): link with our own libnfs
405
406 2001-03-09  H.J. Lu <hjl@lucon.org>
407
408         * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
409         * etc/nodist/nfs-client: Likewise.
410
411 2001-02-26  Chip Salzenberg  <chip@valinux.com>
412
413         * debian/changelog: Version 0.3.1-1.
414         * Mention upstream source and license in copyright file.
415         * Add build-Depends for debhelper and libwrap0-dev.
416
417 2001-02-20  Lon Hohberger <hohberger@missioncriticallinux.com>
418
419         * etc/nodist/nfs-server: Changed chkconfig line to 60 20
420         * etc/nodist/nfs-client: Likewise.
421
422 2001-02-18  Lon Hohberger <hohberger@missioncriticallinux.com>
423
424         * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
425         /sbin/rpc.statd.
426
427 2001-02-17  Patrick J. LoPresti <patl@curl.com>
428
429         * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
430         LOG_LOCAL5.
431
432 2001-02-14  H.J. Lu <hjl@lucon.org>
433
434         * utils/statd/rmtcall.c: Include <time.h>.
435         * utils/statd/svc_run.c: Likewise.
436
437 2001-02-14  H.J. Lu <hjl@lucon.org>
438
439         * configure.in (VERSION): Set to "0.3.1".
440         * configure: Regenerated.
441         * nfs-utils.spec: Likewise.
442
443         * README: Updated for 0.3.1.
444
445 2001-02-14  H.J. Lu <hjl@lucon.org>
446
447         * support/nfs/rpcmisc.c: Include <time.h>.
448
449 2001-02-14  Chip Salzenberg  <chip@valinux.com>
450
451         * debian/control: Change priority of nhfsstone package to 'extra'.
452
453 2001-02-12  Chip Salzenberg  <chip@valinux.com>
454
455         * debian/changelog: Version 0.3-2.
456
457 2001-02-02  H.J. Lu <hjl@lucon.org>
458
459         * support/include/rpcmisc.h (rpc_init): Remove bufsize.
460         
461         * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
462         out SO_SNDBUF/SO_RCVBUF.
463         (rpc_init): Remove bufsize and remove socksz in calls to
464         makesock ().
465
466         * utils/mountd/mountd.c (main): Remove bufsize in calls to
467         rpc_init ().
468
469 2001-01-28  Chip Salzenberg  <chip@valinux.com>
470
471         * debian/changelog: Version 0.3-1.
472
473 2001-01-25  H.J. Lu <hjl@lucon.org>
474
475         * configure.in (VERSION): Set to "0.3".
476         * configure: Regenerated.
477         * nfs-utils.spec: Likewise.
478
479         * README: Updated for 0.3.
480
481 2001-01-25  H.J. Lu <hjl@lucon.org>
482
483         * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
484
485 2001-01-20  Chip Salzenberg  <chip@valinux.com>
486
487         * support/include/xio.h (xgetc): Declare to return int.
488         * support/nfs/xio.c (xgetc): Return int.
489         (xgettok, xskip, xskipcomment): Use int for value of xgetc.
490         * utils/statd/statd.c (main): Use int for value of getopt.
491         * debian/changelog: Version 0.2.1-5.
492         
493 2000-12-10  Chip Salzenberg  <chip@valinux.com>
494
495         * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
496         program and procedure numbers of kernel lockd's callback.  Also,
497         besides the old (and broken) procedure #24, allow #16 per Trond.
498
499 2000-12-03  Chip Salzenberg  <chip@valinux.com>
500
501         * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
502         * debian/control: Let nhfsstone replace files in nfs-kernel-server.
503         * debian/changelog: Version 0.2.1-4.
504
505 2000-11-27  Tobias Ringstrom <tori@tellus.mine.nu>
506
507         * utils/mountd/auth.c (auth_authenticate): Log the bad path
508         warning.
509
510 2000-11-24  Neil Brown <neilb@cse.unsw.edu.au>
511
512         * support/nfs/exports.c (getexportent): Check for host name
513         without option, or options without hostname, and print a warning,
514         as this is most likely a typo.
515
516 2000-11-19  Chip Salzenberg  <chip@valinux.com>
517
518         * debian/control: Add dependency on portmap.
519         * debian/changelog: Version 0.2.1-3.
520
521 2000-11-10  H.J. Lu <hjl@lucon.org>
522
523         * nfs-utils.spec.in: Don't use libtool.
524         Add ChangeLog and COPYING to doc.
525         * nfs-utils.spec: Rebuild.
526
527 2000-11-09  H.J. Lu <hjl@lucon.org>
528
529         * etc/redhat/nfs.init (start): Back out the last change.
530
531 2000-11-09  H.J. Lu <hjl@lucon.org>
532
533         * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
534         TCP is not supported by kernel.
535
536         * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
537
538         * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
539         (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
540
541         * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
542
543 2000-10-24  Lon Hohberger <hohberger@missioncriticallinux.com>
544
545         * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
546         * utils/statd/rmtcall.c: Add some IP address paranoia when doing
547         callbacks to local lockd.
548
549 2000-10-18  Scott McDermott <mcdermot@questra.com>
550
551         * utils/exportfs/exports.man: Updated for CIDR netmask.
552
553 2000-10-17  Scott McDermott <mcdermot@questra.com>
554
555         * support/export/client.c (client_init): Support CIDR netmask
556         in /etc/exports.
557
558 2000-10-11  H.J. Lu <hjl@lucon.org>
559
560         * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
561         * configure: Rebuilt.
562
563 2000-10-06  Lon Hohberger <hohberger@missioncriticallinux.com>
564
565         * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
566         "/var/lib/nfs/state".
567
568 2000-10-05  Lon Hohberger <hohberger@missioncriticallinux.com>
569
570         * utils/statd/statd.h (run_mode): New global bitmask of runtime
571         behaviors: fg/bg, logging, etc.
572         * utils/statd/statd.c: New command line options: -V -h -? -d .
573         * utils/statd/statd.man: Update for changes to statd.
574
575         * utils/statd/log.h (log_init): Remove parameter of function; use
576         global variable "name_p" instead.
577         * utils/statd/log.c: Add support for logging to stderr.
578
579         * utils/statd/notlist.c: Partially rewrite notify list handling
580         functions.  Eliminate run-off-end-of-list bug when calling
581         nlist_insert_timer.  Add lots of comments.
582         
583 2000-09-27  H.J. Lu <hjl@lucon.org>
584
585         * README: Updated for RedHat 7.0.
586
587 2000-09-27  H.J. Lu <hjl@lucon.org>
588
589         * nfs-utils.spec: Rebuild.
590
591 2000-09-27  H.J. Lu <hjl@lucon.org>
592
593         * README: Updated for 0.2.1.
594
595 2000-09-27  H.J. Lu <hjl@lucon.org>
596
597         * nfs-utils.spec.in: Updated to use rpm macros and support
598         RedHat 7.0.
599
600 2000-09-25  H.J. Lu <hjl@lucon.org>
601
602         * configure.in (VERSION): Set to "0.2.1".
603         * configure: Regenerated.
604         * nfs-utils.spec: Updated.
605
606 2000-09-25  H.J. Lu <hjl@lucon.org>
607
608         * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
609         non-NULL hostent is always returned.
610
611 2000-09-11  Ion Badulescu  <ionut@cs.columbia.edu>
612
613         * etc/redhat/nfslock.init: don't kill lockd processes that do not
614         have an executable (i.e. kernel threads)
615
616 2000-09-01  H.J. Lu <hjl@lucon.org>
617
618         * README: Updated for 0.2.
619
620 2000-09-01  Jay Weber <jweber@valinux.com>
621
622         * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
623         supporting version 3 of nfs if available, else it will fall back to
624         version 2 support only.
625
626 2000-08-30  H.J. Lu <hjl@lucon.org>
627
628         * configure.in (VERSION): Set to "0.2".
629         * configure: Regenerated.
630         * nfs-utils.spec: Updated.
631
632 2000-08-25  H.J. Lu <hjl@lucon.org>
633
634         * support/misc/tcpwrapper.c (logit): Modify the log output.
635
636 2000-08-25  Ion Badulescu  <ionut@cs.columbia.edu>
637
638         * utils/rquotad/rquotad.man, utils/statd/statd.man,
639         utils/mountd/mountd.man: updated
640         
641         * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
642         * utils/rquotad/Makefile: fix comment
643
644         * support/misc/tcpwrapper.c (logit): added comment about waiting
645         for the children after fork()
646         
647         * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
648         zombies behind (from logit()'s fork)
649         * utils/rquotad/rquota_svc.c (main): ditto
650         * utils/statd/statd.c (main): ditto
651
652         * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
653         to check_default instead of 0, for prognum
654
655         * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
656         to check_default instead of 0, for prognum
657
658         * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
659         HAVE_TCP_WRAPPER is defined.
660         (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
661         defined. Reject an RPC call if check_default () fails.
662
663 2000-08-25  H.J. Lu <hjl@lucon.org>
664
665         * support/include/tcpwrapper.h: New for the tcp wrapper
666         support.
667         * support/misc/Makefile: Likewise.
668         * support/misc/from_local.c: Likewise.
669         * support/misc/tcpwrapper.c: Likewise.
670
671         * aclocal.m4 (AC_TCP_WRAPPER): New.
672         * configure.in: Use it. Substitute LIBWRAP.
673         * configure: Rebuilt.
674
675         * config.mk.in (LIBNSL): New.
676         (LIBWRAP): Likewise.
677
678         * support/Makefile (SUBDIRS): Add misc.
679
680         * support/lib/Makefile (LIBS): Add libmisc.a.
681
682         * utils/rquotad/Makefile (LIBS): Add
683         
684                 -lmisc $(LIBWRAP) $(LIBNSL)
685
686         * utils/statd/Makefile (LIBS): Likewise.
687
688         * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
689         HAVE_TCP_WRAPPER is defined.
690         (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
691         defined. Reject an RPC call if check_default () fails.
692
693         * utils/statd/statd.c: Include "tcpwrapper.h" if
694         HAVE_TCP_WRAPPER is defined.
695         (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
696         check_default () before calling sm_prog_1 (). Define it as
697         sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
698
699 2000-08-25  Chip Salzenberg  <chip@valinux.com>
700
701         * debian/*: Complete Debian build support.
702         * etc/debian/*: Remove.
703
704 2000-08-24  Neil Brown <neilb@cse.unsw.edu.au>
705
706         * support/export/client.c(client_check): removed the "dot+1" as a
707           ypdomain argument to innetgr as this is entirely bogus.
708           It should always be NULL.
709         
710 2000-08-23  Neil Brown <neilb@cse.unsw.edu.au>
711
712         * support/export/xtab.c(xtab_read): introduce new mode for
713            reading xtab. i.e. a list of exports that might be known to the
714            kernel, or might not.  These are flagged as m_exported == -1
715         * support/export/xtab.c(xtab_mount_read):  call xtab_read with new
716            value "2" for xtab, meaning don't trust this too much.
717         * support/include/exportfs.h(struct mexport): changed m_exported
718            from one bit to an int so that it can hold new value
719         * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
720            kernel if it is uncertain whether the kernel knows (m_exported == -1)
721         * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
722            status is uncertain
723
724         * support/nfs/xio.c(xflock): added O_CREAT when getting
725            a write lock so that missing files aren't fatal.
726
727         * etc/debian/nfs-common: new file from "potato"
728         * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
729          
730 2000-08-09  H.J. Lu <hjl@lucon.org>
731
732         * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
733         startup to ensure all existing clients work fine.
734
735         * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
736         to xtab_read () for reading _PATH_XTAB.
737
738 2000-08-02  H.J. Lu <hjl@lucon.org>
739
740         * utils/mountd/auth.c (auth_authenticate_internal): Try to
741         avoid the reverse name lookup.
742
743 2000-07-04  H.J. Lu <hjl@lucon.org>
744
745         * utils/statd/log.c: Include <stdlib.h> for exit ().
746
747         * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
748         gcc warning.
749
750 2000-07-04  H.J. Lu <hjl@lucon.org>
751
752         * configure.in (VERSION): Set to "0.1.9.1".
753         * configure: Regenerated.
754         * nfs-utils.spec: Updated.
755
756         * README: Updated.
757
758 2000-07-04  Neil Brown  <neilb@cse.unsw.edu.au>
759
760         * support/export/hostname.c (hostent_dup): Handle the NULL
761         h_aliases field.
762
763 2000-07-03  H.J. Lu <hjl@lucon.org>
764
765         * README: Update the util-linux requirement.
766
767 2000-07-03  H.J. Lu <hjl@lucon.org>
768
769         * configure.in (VERSION): Set to "0.1.9".
770         * configure: Regenerated.
771         * nfs-utils.spec: Updated.
772
773         * README: Updated.
774
775 2000-07-03  H.J. Lu <hjl@lucon.org>
776
777         * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
778         stop to ensure all clients can still access the server
779         before it is shutdown.
780
781 2000-06-30  Jeff Uphoff <juphoff@transmeta.com>
782
783         * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
784         calls with format string.
785         
786 2000-06-28  Chip Salzenberg  <chip@valinux.com>
787
788         * utils/statd/log.c (log): Call syslog with format string.
789
790 2000-06-27  H.J. Lu <hjl@lucon.org>
791
792         * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
793         instead of OPEN_MAX.
794
795 2000-06-27  H.J. Lu <hjl@lucon.org>
796
797         * README: Updated.
798
799 2000-06-27  H.J. Lu <hjl@lucon.org>
800
801         * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
802         startup to ensure all existing clients are exported.
803
804         * configure.in (VERSION): Set to "0.1.8.2".
805         * configure: Regenerated.
806         * nfs-utils.spec: Updated.
807
808 2000-06-06  H.J. Lu <hjl@lucon.org>
809
810         * configure.in (VERSION): Set to "0.1.8.1".
811         * configure: Regenerated.
812         * nfs-utils.spec: Updated.
813
814 2000-06-06  H.J. Lu <hjl@lucon.org>
815
816         * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
817         to "struct sockaddr_in *" for glibc 2.2.
818         (mount_umnt_1_svc): Likewise.
819         (mount_umntall_1_svc): Likewise.
820         (mount_export_1_svc): Likewise.
821         (mount_exportall_1_svc): Likewise.
822         (mount_pathconf_2_svc): Likewise.
823         (get_rootfh): Likewise.
824
825 2000-06-04  H.J. Lu <hjl@lucon.org>
826
827         * etc/redhat/nfs.init: Fix a typo in comment.
828
829 2000-05-31  H.J. Lu <hjl@lucon.org>
830
831         * configure.in (VERSION): Set to "0.1.8".
832         * configure: Regenerated.
833         * nfs-utils.spec: Updated.
834
835         * README: Updated.
836
837 2000-05-31  H.J. Lu <hjl@lucon.org>
838
839         * configure.in (VERSION): Set to "0.1.7.5".
840         * configure: Regenerated.
841         * nfs-utils.spec: Updated.
842
843         * support/include/nfslib.h (exportent): Add a new field,
844         r_count, to count the number of mounts from a client.
845         (getrmtabent): Take a new argument for position in file.
846         (putrmtabent): Likewise.
847         (fgetrmtabent): Likewise.
848         (fputrmtabent): Likewise.
849         * support/nfs/rmtab.c (getrmtabent): Handle the new argument
850         for position in file.
851         (fgetrmtabent): Likewise.
852         (putrmtabent): Likewise.
853         (fputrmtabent): Likewise.
854
855         * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
856         field, r_count.
857
858         * support/export/rmtab.c (rmtab_read): Pass NULL as the new
859         argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
860         and fputrmtabent ().
861         * utils/mountd/rmtab.c (mountlist_add): Likewise.
862         (mountlist_del): Likewise.
863         (mountlist_del_all): Likewise.
864         (mountlist_list): Likewise.
865
866         * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
867         for the existing entry and initialize "r_count" to 1.
868         (mountlist_del): Decrement "r_count".
869
870 2000-05-18  H.J. Lu <hjl@lucon.org>
871
872         * configure.in (VERSION): Set to "0.1.7.4".
873         * configure: Regenerated.
874         * nfs-utils.spec: Updated.
875
876 2000-05-18  H.J. Lu <hjl@lucon.org>
877
878         * etc/redhat/nfs.init (restart): Just do stop and start.
879
880 2000-05-09  Jay Weber <jweber@valinux.com>
881
882         * utils/rquotad/hasquota.c: added support for ext3 recognition
883         in rquotad.
884         * utils/rquotad/mntent.h: Likewise.
885
886 2000-05-01  H.J. Lu <hjl@lucon.org>
887
888         * configure.in (VERSION): Set to "0.1.7.3".
889         * configure: Regenerated.
890         * nfs-utils.spec: Updated.
891
892 2000-05-01  H.J. Lu <hjl@lucon.org>
893
894         * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
895         mounting poins in /etc/fstab.
896
897 2000-05-01  H.J. Lu <hjl@lucon.org>
898
899         * configure.in (VERSION): Set to "0.1.7.2".
900         * configure: Regenerated.
901         * nfs-utils.spec: Updated.
902
903 2000-05-01  H.J. Lu <hjl@lucon.org>
904
905         * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
906         to check for the mounting point.
907
908 2000-04-29  Chip Salzenberg  <chip@valinux.com>
909             Neil Brown  <neilb@cse.unsw.edu.au>
910
911         * Really re-use RPC ports.
912           (Fixes earlier patch.  Sorry, Neil.)
913
914 2000-04-26  H.J. Lu <hjl@lucon.org>
915
916         * configure.in (VERSION): Set to "0.1.7.1".
917         * configure: Regenerated.
918         * nfs-utils.spec: Updated.
919
920 2000-04-26  H.J. Lu <hjl@lucon.org>
921
922         * etc/redhat/nfslock.init: Check if lockd exits before killing
923         it.
924
925 2000-04-25  H.J. Lu <hjl@lucon.org>
926
927         * README: Require util-linux-2.10f-mount-rpc.patch for mount.
928
929 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
930
931         * support/nfs/exports.c (parsesquash): Correctly set the
932         return pointer.
933
934 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
935
936         * support/include/nfs/nfs.h: Removed knowledge of internals of
937              kernel filehandles (which can change) and defined nfs_fh_size
938              which has variable size
939         
940         * support/nfs/getfh.c: defined getfh_size to use new syscall to
941              get variable sized file handles, and change getfh{,old} to
942              use nfs_fh_size        
943         
944         * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
945              NFSv3 file handles
946
947         * tools/Makefile, tools/nlmtest/nlmtest.c
948              nlmtest.c depended on internel format of file handles, so now
949              doesn't work.
950
951         
952 2000-03-12  Chip Salzenberg  <chip@valinux.com>
953             Neil Brown  <neilb@cse.unsw.edu.au>
954
955         * support/nfs/rpcmisc.c (rpc_init): Share transports.
956
957 2000-03-13 H.J. Lu <hjl@lucon.org>
958
959         * etc/redhat/nfsd.init: Updated.
960
961         * etc/redhat/nfslock.init: Updated.
962
963         * nfs-utils.spec.in: Updated.
964
965         * configure.in (VERSION): Set to "0.1.7".
966         * configure: Regenerated.
967         * nfs-utils.spec: Updated.
968
969         * README: Updated.
970
971 Wed Mar  8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
972
973         * utils/exportfs/exportfs.c (dump): Included printing of
974            nohide, no_subtree_check, and insecure_locks
975
976 2000-02-26  Chip Salzenberg  <chip@valinux.com>
977
978         * config.mk.in (INSTALLSUID): Strip ("-s").
979         (INSTALLSCRIPT): Define.
980         * utils/nhfsstone/Makefile: Use it.
981
982 2000-02-26  Chip Salzenberg  <chip@valinux.com>
983
984         * utils/lockd/lockd.man: Create.
985         * utils/lockd/Makefile: Install it.
986         * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
987         * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
988         * utils/nhfsstone/Makefile: Install the helper scripts and
989           all four man pages.
990         * utils/exportfs/exports.man: Fix typo.
991
992 2000-02-26  Chip Salzenberg  <chip@valinux.com>
993
994         * support/nfs/xio.c (xungetc): Decrement line number when
995         character to unget is newline.  Make first parameter int, so
996         it can distinguish EOF from \377.
997         * support/include/xio.h (xungetc): Adjust prototype.
998
999 Fri Feb  4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1000
1001         * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1002         * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1003         * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1004
1005         This is for supporting a new option introduced in 2.3.42
1006
1007 Thu Feb  3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1008
1009         * COPYING: Added. GPL.
1010
1011 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1012
1013         * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1014         to get the block size.
1015
1016 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1017
1018         * nfs-utils.spec.in: Update ftp site.
1019
1020 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1021
1022         * README: Update hostnames.
1023
1024 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1025
1026         * configure.in (VERSION): Set to "0.1.6".
1027         * configure: Regenerated.
1028         * nfs-utils.spec: Updated.
1029
1030         * README: Updated.
1031
1032 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1033
1034         * utils/mountd/auth.c (auth_authenticate_internal): Call
1035         xstrdup for hostname before passing it to gethostbyname.
1036
1037         * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1038         of strdup.
1039
1040 Sun Dec 19 09:35:01 1999  H.J. Lu <hjl@lucon.org>
1041
1042         * README: Update the mailing list address.
1043
1044 Sun Dec 19 09:22:28 1999  H.J. Lu <hjl@lucon.org>
1045
1046         * configure.in (VERSION): Set to "0.1.5".
1047         * configure: Regenerated.
1048         * nfs-utils.spec: Updated.
1049
1050         * README: Updated.
1051
1052 Mon Dec 13 13:40:20 1999  H.J. Lu <hjl@lucon.org>
1053
1054         * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1055         for '/'.
1056
1057 Mon Dec  6 09:42:45 1999  H.J. Lu <hjl@lucon.org>
1058
1059         * configure.in (VERSION): Set to "0.1.4".
1060         * configure: Regenerated.
1061         * nfs-utils.spec: Updated.
1062
1063         * README: Updated.
1064
1065 Mon Dec  6 09:28:07 1999  H.J. Lu <hjl@lucon.org>
1066
1067         * nfs-utils.spec.in: New file.
1068
1069         * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1070
1071         * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1072
1073 1999-12-04  Chip Salzenberg  <chip@valinux.com>
1074
1075         * config.mk.in: Use $(CC) as set by configure.
1076
1077 1999-12-04  Chip Salzenberg  <chip@valinux.com>
1078
1079         * rules.mk: Call $(MAKE) with $(MFLAGS).
1080
1081 Mon Nov 29 11:17:35 1999  H.J. Lu <hjl@lucon.org>
1082
1083         * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1084         IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1085
1086 Mon Nov 29 11:17:35 1999  H.J. Lu <hjl@lucon.org>
1087
1088         * nfs-utils.spec (Version): Set to 0.1.3.
1089
1090         * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1091         * configure: Regenerated.
1092
1093         * README: Updated.
1094
1095 Mon Nov 29 11:15:47 1999  H.J. Lu <hjl@lucon.org>
1096
1097         * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1098         (_PATH_DEV_DSK): Likewise.
1099         (getquotainfo): Match the mounting point from /etc/mtab
1100         instead of calling nfsmount_to_devname ().
1101
1102 1999-11-24  Chip Salzenberg  <chip@valinux.com>
1103
1104         * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1105         to the new port 24 as well as the historical port 100021.
1106
1107 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1108
1109         * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1110         stopping nfsd to stop spurious ESTALE on server shutdown.
1111         
1112 Tue Nov 23 10:13:39 1999  Neil Brown <neilb@cse.unsw.edu.au>
1113
1114         * support/nfs/exports.c (parseopts): make copy of opt string
1115         before 'nul'ing out commas so that
1116
1117         # exportfs -o option1,option2 hosta:/fs hostb:/fs
1118
1119         applies both options to both exports.
1120
1121 Thu Oct 28 12:55:42 1999  H.J. Lu <hjl@lucon.org>
1122
1123         * README: Fix a few typos.
1124
1125         * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1126         of long.
1127         * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1128         * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1129         * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1130         (unsigned_dec): Likewise.
1131         * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1132         * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1133
1134         * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1135         instead of LONG.
1136         * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1137         (unsigned_dec): Likewise.
1138         * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1139         * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1140         * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1141
1142 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1143
1144         * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1145         * support/nfs/exports.c: added {no_,}subtree_check and changed
1146           crossmnt to nohide
1147         * utils/exportfs/exports.man: added no_subtree_check and nohide
1148           and removed irrelevant stuff from unfsd.
1149         * support/export/rmtab.c: rmtab_read didn't quite do the right
1150           thing if a pathname from rmtab was a subdirectory of an export-point
1151
1152 Tue Oct 26 17:22:40 1999  H.J. Lu <hjl@lucon.org>
1153
1154         * README: Updated ftp site.
1155
1156 Mon Oct 25 18:12:45 1999  H.J. Lu <hjl@lucon.org>
1157
1158         * nfs-utils.spec (Version): Set to 0.1.2.
1159
1160         * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1161         * configure: Regenerated.
1162
1163         * README: Updated.
1164
1165 Mon Oct 25 18:11:21 1999  H.J. Lu <hjl@lucon.org>
1166
1167         * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1168         (auth_authenticate_internal): Check for NULL return on forward
1169         DNS lookup.
1170         (auth_authenticate): Handle "no_forward_dns".
1171
1172 Thu Oct 21 16:22:06 1999  H.J. Lu <hjl@lucon.org>
1173
1174         * Version 0.1.1 released.
1175
1176         * nfs-utils.spec (Version): Set to 0.1.1.
1177
1178         * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1179         * configure: Regenerated.
1180
1181         * README: Updated.
1182
1183 Mon Oct 18 17:43:29 1999  H.J. Lu <hjl@lucon.org>
1184
1185         * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1186         to knfsd-clients.
1187         (Provides): Likewise.
1188
1189 Mon Oct 18 14:56:22 1999  H.J. Lu <hjl@lucon.org>
1190
1191         * Initial version 0.1 released.
1192
1193         * configure.in (VERSION): Set to "nfs-utils 0.1".
1194         * configure: Regenerated.
1195
1196 Mon Oct 18 14:54:57 1999  H.J. Lu <hjl@lucon.org>
1197
1198         * utils/mountd/mountd.c (get_exportlist): Cleanup.
1199
1200         * utils/exportfs/exportfs.c (unexport_all): Unexport from
1201         kernel only if the entry is exported to kernel.
1202         (unexportfs): Likewise.
1203
1204 Wed Sep 08 16:49:32 1999  Neil Brown <neilb@cse.unsw.edu.au>
1205
1206 1/ utils/mountd/rmtab.c::mountlist_list
1207
1208      This routine stats the rmtab file to see if it has changed.  It
1209      if has, it cleans up it's old copy of the data. But it still
1210      always re-read the file, thus returning multiple copies of the
1211      data on consecutive calls without intervening changes.
1212      "Showmount -a" didn't show this as it appears to sort/unique the
1213      data, but 'strace showmount -a' showed that the size of the
1214      datagram that it received grew.
1215
1216      I moved the getrmtabent loop inside the mtime test.
1217
1218 2/ utils/exportfs/exportfs.c
1219    
1220      Many routines used the m_path field of m_export instead of
1221      e_path.
1222      According to the comment in nfslib.h, m_path should only
1223      be used when processing a mount request (i.e. in mountd)
1224      where the mountpoint may be a subdirectory of the export point.
1225
1226      I changed all occurances of m_path to e_path
1227
1228
1229 3/ utils/exportfs/exportfs.c:main
1230
1231       extra arguments are not meaningful with -a or -r, but
1232       exportfs accepted them and then ignored the -a/-r, expect that
1233       -r would still unexport everything first.
1234
1235       I generate an error if there are extra args and f_all
1236
1237 4/ utils/exportfs/exportfs.c:main
1238      extract dump out as a special case.
1239
1240 5/ utils/exportfs/exportfs.c
1241      made f_reexport a local variable.
1242
1243
1244 6/ utils/exportfs/exportfs.c:main,exportall
1245
1246     support/export/rmtab.c
1247        only  mayexport on newly created entries, don't set xtabent at all
1248
1249 7/ support/include/nfslib.h
1250
1251       add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1252
1253 8/ support/export/xtab.c
1254
1255       xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1256       else from xtab
1257
1258
1259 9/ support/export/xtab.c
1260
1261       xtab_mount_read now sets m_exported, and NOT
1262         xtabent and mayexport
1263
1264       removed the append arguement from xtab_write as it was
1265         never used.
1266
1267       added is_export flag to xtab_write similar to xtab_read
1268         if is_export, only write entries with m_xtabent or m_addxtab
1269         if !is_export, only write entries with m_exported
1270      
1271 10/ support/export/export.c::export_allowed_internal
1272
1273       added test for exp->m_mayexport, as the export tree
1274         may have entries that are no longer allowed to be exported,
1275         and so shouldn't caused deduced exported by rmtab_read
1276
1277 11/ utils/exportfs/exportfs.c::main
1278         error checking of flags.
1279
1280 12/ utils/exportfs/exportfs.c
1281
1282         total rewrite of export and unexport logic.
1283         We now:
1284         -  build an exportslist of valid exports, based on
1285            current etab file  and arguments,
1286         -  read rmtab to instantiate relevant wild card entries
1287         -  read etab to find out what is currently exported
1288         -  synchronise intention with reality
1289         -  write out etab and xtab
1290
1291 13/  various
1292         discard the m_addxtab flag
1293         add m_changed flag so we know what to report in exportfs
1294
1295 14/ utils/mountd/auth.c:auth_authenticate
1296
1297         the value returned by gethostbyaddr was trusted.
1298
1299         It now follows this with a call to gethostbyname
1300         and checks that the address is in the list.
1301
1302 15/ support/export/nfsctl.c::cltsetup,expsetup
1303
1304         force client names to lowercase as kernel is
1305         sensitive to case
1306
1307 16/ quietened a few compiler warnings
1308
1309 17/ support/export/client:client_lookup
1310
1311      look for pre-existing client with same name before creating
1312         a new one.
1313
1314 18/ support/include/exportfs.h
1315
1316      The ordering of the MCL_* enum was:
1317         ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1318
1319      I moved ANONYMOUS to the end.
1320
1321      The ordering is significant when an export entry is being searched for to 
1322         match a given address.  There are two problems with ANONYMOUS being first.
1323
1324         1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1325            then the ro case will always be found first and the privileged hosts won't get
1326            their privilege
1327         2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1328            export entry for the specific host, and writes it to xtab.
1329            When another request comes from the same host, the ANONYMOUS entry is found again, 
1330            before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1331            again.  If causes bloat in xtab.
1332
1333       Putting ANONYMOUS at the end reflects it's nature as a catch-all
1334
1335 19/ utils/exportfs/exportfs.man
1336         many updates to the man page to reflect changes to the code
1337
1338 -----------------------
1339
1340
1341
1342 TODO:
1343
1344 - allow exportfs to modify rmtab file
1345 - make sure kernel never gets two clients with same IP address
1346     - possible kernel should reject
1347     - needs to be some way to lookup client in kernel by IP address
1348 - maybe get kernel to do case-insensitive comparisons on client names
1349 - remove unused clients from kernel
1350
1351 - change etab to xtab and xtab to xtab.active
1352
1353 - timestamp and/or statd-stamp in rmtab for removing old entries.
1354
1355 Mon Oct 18 11:48:07 1999  H.J. Lu <hjl@lucon.org>
1356
1357         * linux-nfs: New directory.
1358         * linux-nfs/ChangeLog: Moved from ..
1359         * linux-nfs/INSTALL: Likewise.
1360         * linux-nfs/KNOWNBUGS: Likewise.
1361         * linux-nfs/NEW: Likewise.
1362         * linux-nfs/README: Likewise.
1363         * linux-nfs/THANKS: Likewise.
1364         * linux-nfs/TODO: Likewise.
1365
1366         * Starting from knfsd 1.4.7.