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