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