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