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