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