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