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