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