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