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