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