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