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