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