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