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