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