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