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