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