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