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