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