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