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