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