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