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