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