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