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