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