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