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