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