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