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