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