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