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