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