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