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