]> git.decadent.org.uk Git - nfs-utils.git/blob - ChangeLog
make "exportfs -au" do no DNS lookup
[nfs-utils.git] / ChangeLog
1 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
2
3         Arrange that "exportfs -au" never does DNS lookup:
4         
5         * support/export/client.c (client_lookup) : add "canonical"
6         flag which says that the hostname is known to be canonical, so
7         don't do a lookup
8
9         * support/export/export.c (export_create) : add "canonical"
10         flag to be passed down to client_lookup
11         * support/export/export.c (export_lookup) : Likewise
12
13         * support/export/xtab.c (xtab_read) : pass appropriate
14         "canonical" flag to export_lookup and export_create:
15         set if reading list of filesystems currently exports
16         (is_export != 1). 
17
18         * support/export/export.c (export_read) : pass 0 as 
19         "canonical" flag to export_lookup and export_create
20         * support/export/rmtab.s (rmtab_read) : Likewise
21
22         * support/include/exportfs.h : redeclare various routines
23         to have "canonical" flag
24
25         * utils/exportfs/exportfs.c (main) : redo logic for 
26         "-au" to read in what is currently exported, but never even 
27         look at what "should" be exported.
28
29         * utils/exportfs/exportfs.c (unexportall) : remove this
30         routine. Functionality is completely included in
31         exports_update
32
33         * utils/exportfs/exportfs.c (exportfs) : set "canonical"
34         flag to zero in calls to export_lookup and export_create.
35
36         
37 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
38             Anne Milicia <milicia@missioncriticallinux.com>
39
40         * support/export/client.c (client_lookup) call gethostbyadd
41         to make sure that we have a canonical hostname, even for
42         dotted-quads
43         * utils/exportfs/exportfs.c (exportfs) Likewise
44         
45 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
46
47         * support/nfs/exports.c (putexportent): \octal quote any spaces
48         etc in a path name
49         * support/nfs/xio.c (xgettok): recognise double-quote and
50         \octal quoting in path names
51         * utils/exportfs/exports.man: document quoting conventions
52         for path names
53         
54 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
55
56         * utils/mountd/auth.c (auth_authenticate_internal): Reverse
57           change from 2000-08-02:  It causes problems if someone exports
58           to both a hostname and IP addresses.  nfs-utils must be
59           consistant about the canonical name that it chooses.
60
61 2001-08-17  Ragnar Kjørstad <nfs@ragnark.vestdata.no>
62             H.J. Lu <hjl@lucon.org>
63
64         * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
65
66         * utils/statd/statd.c (longopts): Add "name".
67         (usage): Add "-n/--name".
68         (main): Set MY_NAME with "-n/--name".
69
70         * utils/statd/state.c (change_state): Set MY_NAME only if it
71         is NULL.
72         
73         * utils/statd/statd.man: Updated for "-n/--name".
74
75 2001-07-26  H.J. Lu <hjl@lucon.org>
76
77         * nfs-utils.spec (Release): Set to 8.
78
79 2001-07-25  H.J. Lu <hjl@lucon.org>
80
81         * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
82         anything about it.
83
84 2001-06-27  H.J. Lu <hjl@lucon.org>
85
86         * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
87
88 2001-06-27  H.J. Lu <hjl@lucon.org>
89
90         * utils/rquotad/rquota_server.c: Don't call statfs () for
91         the block size. Use BLOCK_SIZE instead.
92
93 2001-06-27  H.J. Lu <hjl@lucon.org>
94
95         * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
96         (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
97
98         * configure.in (enable_nfsv3): Set to yes by default.
99         (--enable-rquotad): Added
100         (AC_PROG_CXX): Removed.
101         (AC_OUTPUT): Add utils/Makefile.
102         (CC_FOR_BUILD): Renamed from BUILD_CC.
103         * configure: Regenerated.
104
105         * utils/Makefile: Removed.
106
107         * utils/Makefile.in: New.
108
109         * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
110         rquotad.
111         (CC_FOR_BUILD): Renamed from BUILD_CC.
112         * nfs-utils.spec: Regenerated.
113
114 2001-06-15  Chip Salzenberg  <chip@debian.org>
115
116         * debian/changelog: Version 0.3.2-2.
117         * debian/*.init: Minor fixes.
118
119 2001-06-07  Lon H. Hohberger <hohberger@missioncriticallinux.com>
120
121         * etc/nodist/nfs-server: Fixed a bug where the script would
122         disable mounts from NFSv3 clients if NFSv3 is present.
123
124 2001-06-05  H.J. Lu <hjl@lucon.org>
125
126         * utils/mountd/mountd.c (longopts): Add "descriptors/o".
127         (main): Support --descriptors/-o to set the limit of the number
128         of open file descriptors.
129         (usage): Updated.
130
131         * utils/mountd/mountd.man: Updated for --descriptors/-o.
132
133 2001-06-04  H.J. Lu <hjl@lucon.org>
134
135         * nfs-utils.spec (Release): Set to 6.
136
137 2001-05-28  H.J. Lu <hjl@lucon.org>
138
139         * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
140         * utils/mountd/mountd.c (main): Likewise.
141         * utils/nfsd/nfsd.c (main): Likewise.
142         * utils/rquotad/rquota_svc.c (main): Likewise.
143
144 2001-05-06  Anne Milicia <milicia@missioncriticallinux.com>
145
146         * support/export/client.c (client_check): Check IP address
147         againet netgroup.
148
149 2001-05-06  Neil Brown <neilb@cse.unsw.edu.au>
150
151         * support/export/client.c (client_gettype): Treat `*' as
152         MCL_ANONYMOUS.
153
154 2001-04-22  H.J. Lu <hjl@lucon.org>
155
156         * nfs-utils.spec.in: Fix a typo.
157         * nfs-utils.spec: Regenerated.
158
159 2001-04-21  H.J. Lu <hjl@lucon.org>
160
161         * nfs-utils.spec.in: Fix cross build.
162         * nfs-utils.spec: Regenerated.
163         (Release): Set to 5.
164
165 2001-04-18  H.J. Lu <hjl@lucon.org>
166
167         * nfs-utils.spec.in: Support cross build.
168         * nfs-utils.spec: Regenerated.
169         (Release): Set to 4.
170
171         * config.sub: New.
172         * config.guess: New.
173
174         * config.mk.in (BUILD_CC): New.
175         (CC): Set to $(BUILD_CC) if BUILD is defined.
176         (AR): Set to @AR@.
177         (LD): Set to @LD@.
178         (RANLIB): Set to @RANLIB@.
179
180         * configure.in: Check BUILD_CC, RANLIB, AR and LD.
181         * configure: Regenerated.
182
183         * tools/rpcgen/Makefile (BUILD): Set to true.
184
185 2001-04-01  Chip Salzenberg  <chip@valinux.com>
186
187         * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
188         redundant, and sometimes broken, declaration of svc_fdset;
189         it may be a macro.
190         * support/nfs/rpcmisc.c (closedown): Likewise.
191         
192 2001-03-21  H.J. Lu <hjl@lucon.org>
193
194         * nfs-utils.spec: Regenerated.
195         (Release): Set to 3.
196
197 2001-03-21  Ion Badulescu  <ionut@cs.columbia.edu>
198
199         * utils/statd/statd.c (main): make sure file descriptors 0-2
200         are open to /dev/null.
201
202 2001-03-21  H.J. Lu <hjl@lucon.org>
203
204         * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
205         * support/nfs/rpcmisc.c: Likewise.
206         * utils/rquotad/rquota_svc.c: Likewise.
207         * utils/rquotad/rquotad.man: Likewise.
208         * utils/statd/Makefile: Likewise.
209         * utils/statd/rmtcall.c: Likewise.
210         * utils/statd/simulate.c: Likewise.
211         * utils/statd/statd.c: Likewise.
212         * utils/statd/statd.man: Likewise.
213
214 2001-03-11  H.J. Lu <hjl@lucon.org>
215
216         * configure.in (RELEASE): New. Default to 1, set by
217         --with-release=XXX. Substitute nfs-utils.spec.
218         * nfs-utils.spec.in (Release): Set to @RELEASE@.
219         * configure: Regenerated.
220         * nfs-utils.spec: Likewise.
221
222 2001-03-11  H.J. Lu <hjl@lucon.org>
223
224         * utils/rquotad/rquotad.man: Fix a typo.
225
226 2001-03-11  H.J. Lu <hjl@lucon.org>
227
228         * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
229         * support/nfs/rpcmisc.c: Likewise.
230         * utils/rquotad/rquota_svc.c: Likewise.
231         * utils/rquotad/rquotad.man: Likewise.
232         * utils/statd/Makefile: Likewise.
233         * utils/statd/rmtcall.c: Likewise.
234         * utils/statd/simulate.c: Likewise.
235         * utils/statd/statd.c: Likewise.
236         * utils/statd/statd.man: Likewise.
237
238 2001-03-10  H.J. Lu <hjl@lucon.org>
239
240         * configure.in (VERSION): Set to "0.3.2".
241         * configure: Regenerated.
242         * nfs-utils.spec: Likewise.
243
244         * README: Updated for 0.3.2.
245
246 2001-03-10  Tavis Barr <tavis@boole.isetr.columbia.edu>
247
248         * utils/rquotad/rquotad.man: Updated for -p.
249         * utils/statd/statd.man: Likewise.
250
251 2001-03-10  Ion Badulescu  <ionut@cs.columbia.edu>
252
253         * support/nfs/rpcmisc.c: export makesock()
254
255         * support/include/rpcmisc.h (makesock): Declared.
256
257         * utils/rquotad/rquota_svc.c: added longopts, added support for
258         specifying the port to bind to on the command line.
259
260         * utils/statd/statd.c: ditto, also specify port used for
261         outgoing connections.
262         (do_regist): Removed.
263
264         * utils/statd/rmtcall.c (statd_get_socket): Renamed from
265         get_socket. Make it extern.
266
267         * utils/statd/simulate.c (daemon_simulator): Call rpc_init
268         instead of do_regist.
269
270         * utils/statd/Makefile (LIBS): link with our own libnfs
271
272 2001-03-09  H.J. Lu <hjl@lucon.org>
273
274         * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
275         * etc/nodist/nfs-client: Likewise.
276
277 2001-02-26  Chip Salzenberg  <chip@valinux.com>
278
279         * debian/changelog: Version 0.3.1-1.
280         * Mention upstream source and license in copyright file.
281         * Add build-Depends for debhelper and libwrap0-dev.
282
283 2001-02-20  Lon Hohberger <hohberger@missioncriticallinux.com>
284
285         * etc/nodist/nfs-server: Changed chkconfig line to 60 20
286         * etc/nodist/nfs-client: Likewise.
287
288 2001-02-18  Lon Hohberger <hohberger@missioncriticallinux.com>
289
290         * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
291         /sbin/rpc.statd.
292
293 2001-02-17  Patrick J. LoPresti <patl@curl.com>
294
295         * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
296         LOG_LOCAL5.
297
298 2001-02-14  H.J. Lu <hjl@lucon.org>
299
300         * utils/statd/rmtcall.c: Include <time.h>.
301         * utils/statd/svc_run.c: Likewise.
302
303 2001-02-14  H.J. Lu <hjl@lucon.org>
304
305         * configure.in (VERSION): Set to "0.3.1".
306         * configure: Regenerated.
307         * nfs-utils.spec: Likewise.
308
309         * README: Updated for 0.3.1.
310
311 2001-02-14  H.J. Lu <hjl@lucon.org>
312
313         * support/nfs/rpcmisc.c: Include <time.h>.
314
315 2001-02-14  Chip Salzenberg  <chip@valinux.com>
316
317         * debian/control: Change priority of nhfsstone package to 'extra'.
318
319 2001-02-12  Chip Salzenberg  <chip@valinux.com>
320
321         * debian/changelog: Version 0.3-2.
322
323 2001-02-02  H.J. Lu <hjl@lucon.org>
324
325         * support/include/rpcmisc.h (rpc_init): Remove bufsize.
326         
327         * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
328         out SO_SNDBUF/SO_RCVBUF.
329         (rpc_init): Remove bufsize and remove socksz in calls to
330         makesock ().
331
332         * utils/mountd/mountd.c (main): Remove bufsize in calls to
333         rpc_init ().
334
335 2001-01-28  Chip Salzenberg  <chip@valinux.com>
336
337         * debian/changelog: Version 0.3-1.
338
339 2001-01-25  H.J. Lu <hjl@lucon.org>
340
341         * configure.in (VERSION): Set to "0.3".
342         * configure: Regenerated.
343         * nfs-utils.spec: Likewise.
344
345         * README: Updated for 0.3.
346
347 2001-01-25  H.J. Lu <hjl@lucon.org>
348
349         * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
350
351 2001-01-20  Chip Salzenberg  <chip@valinux.com>
352
353         * support/include/xio.h (xgetc): Declare to return int.
354         * support/nfs/xio.c (xgetc): Return int.
355         (xgettok, xskip, xskipcomment): Use int for value of xgetc.
356         * utils/statd/statd.c (main): Use int for value of getopt.
357         * debian/changelog: Version 0.2.1-5.
358         
359 2000-12-10  Chip Salzenberg  <chip@valinux.com>
360
361         * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
362         program and procedure numbers of kernel lockd's callback.  Also,
363         besides the old (and broken) procedure #24, allow #16 per Trond.
364
365 2000-12-03  Chip Salzenberg  <chip@valinux.com>
366
367         * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
368         * debian/control: Let nhfsstone replace files in nfs-kernel-server.
369         * debian/changelog: Version 0.2.1-4.
370
371 2000-11-27  Tobias Ringstrom <tori@tellus.mine.nu>
372
373         * utils/mountd/auth.c (auth_authenticate): Log the bad path
374         warning.
375
376 2000-11-24  Neil Brown <neilb@cse.unsw.edu.au>
377
378         * support/nfs/exports.c (getexportent): Check for host name
379         without option, or options without hostname, and print a warning,
380         as this is most likely a typo.
381
382 2000-11-19  Chip Salzenberg  <chip@valinux.com>
383
384         * debian/control: Add dependency on portmap.
385         * debian/changelog: Version 0.2.1-3.
386
387 2000-11-10  H.J. Lu <hjl@lucon.org>
388
389         * nfs-utils.spec.in: Don't use libtool.
390         Add ChangeLog and COPYING to doc.
391         * nfs-utils.spec: Rebuild.
392
393 2000-11-09  H.J. Lu <hjl@lucon.org>
394
395         * etc/redhat/nfs.init (start): Back out the last change.
396
397 2000-11-09  H.J. Lu <hjl@lucon.org>
398
399         * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
400         TCP is not supported by kernel.
401
402         * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
403
404         * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
405         (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
406
407         * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
408
409 2000-10-24  Lon Hohberger <hohberger@missioncriticallinux.com>
410
411         * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
412         * utils/statd/rmtcall.c: Add some IP address paranoia when doing
413         callbacks to local lockd.
414
415 2000-10-18  Scott McDermott <mcdermot@questra.com>
416
417         * utils/exportfs/exports.man: Updated for CIDR netmask.
418
419 2000-10-17  Scott McDermott <mcdermot@questra.com>
420
421         * support/export/client.c (client_init): Support CIDR netmask
422         in /etc/exports.
423
424 2000-10-11  H.J. Lu <hjl@lucon.org>
425
426         * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
427         * configure: Rebuilt.
428
429 2000-10-06  Lon Hohberger <hohberger@missioncriticallinux.com>
430
431         * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
432         "/var/lib/nfs/state".
433
434 2000-10-05  Lon Hohberger <hohberger@missioncriticallinux.com>
435
436         * utils/statd/statd.h (run_mode): New global bitmask of runtime
437         behaviors: fg/bg, logging, etc.
438         * utils/statd/statd.c: New command line options: -V -h -? -d .
439         * utils/statd/statd.man: Update for changes to statd.
440
441         * utils/statd/log.h (log_init): Remove parameter of function; use
442         global variable "name_p" instead.
443         * utils/statd/log.c: Add support for logging to stderr.
444
445         * utils/statd/notlist.c: Partially rewrite notify list handling
446         functions.  Eliminate run-off-end-of-list bug when calling
447         nlist_insert_timer.  Add lots of comments.
448         
449 2000-09-27  H.J. Lu <hjl@lucon.org>
450
451         * README: Updated for RedHat 7.0.
452
453 2000-09-27  H.J. Lu <hjl@lucon.org>
454
455         * nfs-utils.spec: Rebuild.
456
457 2000-09-27  H.J. Lu <hjl@lucon.org>
458
459         * README: Updated for 0.2.1.
460
461 2000-09-27  H.J. Lu <hjl@lucon.org>
462
463         * nfs-utils.spec.in: Updated to use rpm macros and support
464         RedHat 7.0.
465
466 2000-09-25  H.J. Lu <hjl@lucon.org>
467
468         * configure.in (VERSION): Set to "0.2.1".
469         * configure: Regenerated.
470         * nfs-utils.spec: Updated.
471
472 2000-09-25  H.J. Lu <hjl@lucon.org>
473
474         * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
475         non-NULL hostent is always returned.
476
477 2000-09-11  Ion Badulescu  <ionut@cs.columbia.edu>
478
479         * etc/redhat/nfslock.init: don't kill lockd processes that do not
480         have an executable (i.e. kernel threads)
481
482 2000-09-01  H.J. Lu <hjl@lucon.org>
483
484         * README: Updated for 0.2.
485
486 2000-09-01  Jay Weber <jweber@valinux.com>
487
488         * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
489         supporting version 3 of nfs if available, else it will fall back to
490         version 2 support only.
491
492 2000-08-30  H.J. Lu <hjl@lucon.org>
493
494         * configure.in (VERSION): Set to "0.2".
495         * configure: Regenerated.
496         * nfs-utils.spec: Updated.
497
498 2000-08-25  H.J. Lu <hjl@lucon.org>
499
500         * support/misc/tcpwrapper.c (logit): Modify the log output.
501
502 2000-08-25  Ion Badulescu  <ionut@cs.columbia.edu>
503
504         * utils/rquotad/rquotad.man, utils/statd/statd.man,
505         utils/mountd/mountd.man: updated
506         
507         * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
508         * utils/rquotad/Makefile: fix comment
509
510         * support/misc/tcpwrapper.c (logit): added comment about waiting
511         for the children after fork()
512         
513         * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
514         zombies behind (from logit()'s fork)
515         * utils/rquotad/rquota_svc.c (main): ditto
516         * utils/statd/statd.c (main): ditto
517
518         * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
519         to check_default instead of 0, for prognum
520
521         * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
522         to check_default instead of 0, for prognum
523
524         * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
525         HAVE_TCP_WRAPPER is defined.
526         (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
527         defined. Reject an RPC call if check_default () fails.
528
529 2000-08-25  H.J. Lu <hjl@lucon.org>
530
531         * support/include/tcpwrapper.h: New for the tcp wrapper
532         support.
533         * support/misc/Makefile: Likewise.
534         * support/misc/from_local.c: Likewise.
535         * support/misc/tcpwrapper.c: Likewise.
536
537         * aclocal.m4 (AC_TCP_WRAPPER): New.
538         * configure.in: Use it. Substitute LIBWRAP.
539         * configure: Rebuilt.
540
541         * config.mk.in (LIBNSL): New.
542         (LIBWRAP): Likewise.
543
544         * support/Makefile (SUBDIRS): Add misc.
545
546         * support/lib/Makefile (LIBS): Add libmisc.a.
547
548         * utils/rquotad/Makefile (LIBS): Add
549         
550                 -lmisc $(LIBWRAP) $(LIBNSL)
551
552         * utils/statd/Makefile (LIBS): Likewise.
553
554         * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
555         HAVE_TCP_WRAPPER is defined.
556         (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
557         defined. Reject an RPC call if check_default () fails.
558
559         * utils/statd/statd.c: Include "tcpwrapper.h" if
560         HAVE_TCP_WRAPPER is defined.
561         (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
562         check_default () before calling sm_prog_1 (). Define it as
563         sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
564
565 2000-08-25  Chip Salzenberg  <chip@valinux.com>
566
567         * debian/*: Complete Debian build support.
568         * etc/debian/*: Remove.
569
570 2000-08-24  Neil Brown <neilb@cse.unsw.edu.au>
571
572         * support/export/client.c(client_check): removed the "dot+1" as a
573           ypdomain argument to innetgr as this is entirely bogus.
574           It should always be NULL.
575         
576 2000-08-23  Neil Brown <neilb@cse.unsw.edu.au>
577
578         * support/export/xtab.c(xtab_read): introduce new mode for
579            reading xtab. i.e. a list of exports that might be known to the
580            kernel, or might not.  These are flagged as m_exported == -1
581         * support/export/xtab.c(xtab_mount_read):  call xtab_read with new
582            value "2" for xtab, meaning don't trust this too much.
583         * support/include/exportfs.h(struct mexport): changed m_exported
584            from one bit to an int so that it can hold new value
585         * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
586            kernel if it is uncertain whether the kernel knows (m_exported == -1)
587         * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
588            status is uncertain
589
590         * support/nfs/xio.c(xflock): added O_CREAT when getting
591            a write lock so that missing files aren't fatal.
592
593         * etc/debian/nfs-common: new file from "potato"
594         * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
595          
596 2000-08-09  H.J. Lu <hjl@lucon.org>
597
598         * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
599         startup to ensure all existing clients work fine.
600
601         * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
602         to xtab_read () for reading _PATH_XTAB.
603
604 2000-08-02  H.J. Lu <hjl@lucon.org>
605
606         * utils/mountd/auth.c (auth_authenticate_internal): Try to
607         avoid the reverse name lookup.
608
609 2000-07-04  H.J. Lu <hjl@lucon.org>
610
611         * utils/statd/log.c: Include <stdlib.h> for exit ().
612
613         * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
614         gcc warning.
615
616 2000-07-04  H.J. Lu <hjl@lucon.org>
617
618         * configure.in (VERSION): Set to "0.1.9.1".
619         * configure: Regenerated.
620         * nfs-utils.spec: Updated.
621
622         * README: Updated.
623
624 2000-07-04  Neil Brown  <neilb@cse.unsw.edu.au>
625
626         * support/export/hostname.c (hostent_dup): Handle the NULL
627         h_aliases field.
628
629 2000-07-03  H.J. Lu <hjl@lucon.org>
630
631         * README: Update the util-linux requirement.
632
633 2000-07-03  H.J. Lu <hjl@lucon.org>
634
635         * configure.in (VERSION): Set to "0.1.9".
636         * configure: Regenerated.
637         * nfs-utils.spec: Updated.
638
639         * README: Updated.
640
641 2000-07-03  H.J. Lu <hjl@lucon.org>
642
643         * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
644         stop to ensure all clients can still access the server
645         before it is shutdown.
646
647 2000-06-30  Jeff Uphoff <juphoff@transmeta.com>
648
649         * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
650         calls with format string.
651         
652 2000-06-28  Chip Salzenberg  <chip@valinux.com>
653
654         * utils/statd/log.c (log): Call syslog with format string.
655
656 2000-06-27  H.J. Lu <hjl@lucon.org>
657
658         * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
659         instead of OPEN_MAX.
660
661 2000-06-27  H.J. Lu <hjl@lucon.org>
662
663         * README: Updated.
664
665 2000-06-27  H.J. Lu <hjl@lucon.org>
666
667         * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
668         startup to ensure all existing clients are exported.
669
670         * configure.in (VERSION): Set to "0.1.8.2".
671         * configure: Regenerated.
672         * nfs-utils.spec: Updated.
673
674 2000-06-06  H.J. Lu <hjl@lucon.org>
675
676         * configure.in (VERSION): Set to "0.1.8.1".
677         * configure: Regenerated.
678         * nfs-utils.spec: Updated.
679
680 2000-06-06  H.J. Lu <hjl@lucon.org>
681
682         * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
683         to "struct sockaddr_in *" for glibc 2.2.
684         (mount_umnt_1_svc): Likewise.
685         (mount_umntall_1_svc): Likewise.
686         (mount_export_1_svc): Likewise.
687         (mount_exportall_1_svc): Likewise.
688         (mount_pathconf_2_svc): Likewise.
689         (get_rootfh): Likewise.
690
691 2000-06-04  H.J. Lu <hjl@lucon.org>
692
693         * etc/redhat/nfs.init: Fix a typo in comment.
694
695 2000-05-31  H.J. Lu <hjl@lucon.org>
696
697         * configure.in (VERSION): Set to "0.1.8".
698         * configure: Regenerated.
699         * nfs-utils.spec: Updated.
700
701         * README: Updated.
702
703 2000-05-31  H.J. Lu <hjl@lucon.org>
704
705         * configure.in (VERSION): Set to "0.1.7.5".
706         * configure: Regenerated.
707         * nfs-utils.spec: Updated.
708
709         * support/include/nfslib.h (exportent): Add a new field,
710         r_count, to count the number of mounts from a client.
711         (getrmtabent): Take a new argument for position in file.
712         (putrmtabent): Likewise.
713         (fgetrmtabent): Likewise.
714         (fputrmtabent): Likewise.
715         * support/nfs/rmtab.c (getrmtabent): Handle the new argument
716         for position in file.
717         (fgetrmtabent): Likewise.
718         (putrmtabent): Likewise.
719         (fputrmtabent): Likewise.
720
721         * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
722         field, r_count.
723
724         * support/export/rmtab.c (rmtab_read): Pass NULL as the new
725         argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
726         and fputrmtabent ().
727         * utils/mountd/rmtab.c (mountlist_add): Likewise.
728         (mountlist_del): Likewise.
729         (mountlist_del_all): Likewise.
730         (mountlist_list): Likewise.
731
732         * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
733         for the existing entry and initialize "r_count" to 1.
734         (mountlist_del): Decrement "r_count".
735
736 2000-05-18  H.J. Lu <hjl@lucon.org>
737
738         * configure.in (VERSION): Set to "0.1.7.4".
739         * configure: Regenerated.
740         * nfs-utils.spec: Updated.
741
742 2000-05-18  H.J. Lu <hjl@lucon.org>
743
744         * etc/redhat/nfs.init (restart): Just do stop and start.
745
746 2000-05-09  Jay Weber <jweber@valinux.com>
747
748         * utils/rquotad/hasquota.c: added support for ext3 recognition
749         in rquotad.
750         * utils/rquotad/mntent.h: Likewise.
751
752 2000-05-01  H.J. Lu <hjl@lucon.org>
753
754         * configure.in (VERSION): Set to "0.1.7.3".
755         * configure: Regenerated.
756         * nfs-utils.spec: Updated.
757
758 2000-05-01  H.J. Lu <hjl@lucon.org>
759
760         * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
761         mounting poins in /etc/fstab.
762
763 2000-05-01  H.J. Lu <hjl@lucon.org>
764
765         * configure.in (VERSION): Set to "0.1.7.2".
766         * configure: Regenerated.
767         * nfs-utils.spec: Updated.
768
769 2000-05-01  H.J. Lu <hjl@lucon.org>
770
771         * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
772         to check for the mounting point.
773
774 2000-04-29  Chip Salzenberg  <chip@valinux.com>
775             Neil Brown  <neilb@cse.unsw.edu.au>
776
777         * Really re-use RPC ports.
778           (Fixes earlier patch.  Sorry, Neil.)
779
780 2000-04-26  H.J. Lu <hjl@lucon.org>
781
782         * configure.in (VERSION): Set to "0.1.7.1".
783         * configure: Regenerated.
784         * nfs-utils.spec: Updated.
785
786 2000-04-26  H.J. Lu <hjl@lucon.org>
787
788         * etc/redhat/nfslock.init: Check if lockd exits before killing
789         it.
790
791 2000-04-25  H.J. Lu <hjl@lucon.org>
792
793         * README: Require util-linux-2.10f-mount-rpc.patch for mount.
794
795 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
796
797         * support/nfs/exports.c (parsesquash): Correctly set the
798         return pointer.
799
800 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
801
802         * support/include/nfs/nfs.h: Removed knowledge of internals of
803              kernel filehandles (which can change) and defined nfs_fh_size
804              which has variable size
805         
806         * support/nfs/getfh.c: defined getfh_size to use new syscall to
807              get variable sized file handles, and change getfh{,old} to
808              use nfs_fh_size        
809         
810         * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
811              NFSv3 file handles
812
813         * tools/Makefile, tools/nlmtest/nlmtest.c
814              nlmtest.c depended on internel format of file handles, so now
815              doesn't work.
816
817         
818 2000-03-12  Chip Salzenberg  <chip@valinux.com>
819             Neil Brown  <neilb@cse.unsw.edu.au>
820
821         * support/nfs/rpcmisc.c (rpc_init): Share transports.
822
823 2000-03-13 H.J. Lu <hjl@lucon.org>
824
825         * etc/redhat/nfsd.init: Updated.
826
827         * etc/redhat/nfslock.init: Updated.
828
829         * nfs-utils.spec.in: Updated.
830
831         * configure.in (VERSION): Set to "0.1.7".
832         * configure: Regenerated.
833         * nfs-utils.spec: Updated.
834
835         * README: Updated.
836
837 Wed Mar  8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
838
839         * utils/exportfs/exportfs.c (dump): Included printing of
840            nohide, no_subtree_check, and insecure_locks
841
842 2000-02-26  Chip Salzenberg  <chip@valinux.com>
843
844         * config.mk.in (INSTALLSUID): Strip ("-s").
845         (INSTALLSCRIPT): Define.
846         * utils/nhfsstone/Makefile: Use it.
847
848 2000-02-26  Chip Salzenberg  <chip@valinux.com>
849
850         * utils/lockd/lockd.man: Create.
851         * utils/lockd/Makefile: Install it.
852         * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
853         * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
854         * utils/nhfsstone/Makefile: Install the helper scripts and
855           all four man pages.
856         * utils/exportfs/exports.man: Fix typo.
857
858 2000-02-26  Chip Salzenberg  <chip@valinux.com>
859
860         * support/nfs/xio.c (xungetc): Decrement line number when
861         character to unget is newline.  Make first parameter int, so
862         it can distinguish EOF from \377.
863         * support/include/xio.h (xungetc): Adjust prototype.
864
865 Fri Feb  4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
866
867         * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
868         * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
869         * utils/exportfs/exports.man: added documentation for no_auth_nlm.
870
871         This is for supporting a new option introduced in 2.3.42
872
873 Thu Feb  3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
874
875         * COPYING: Added. GPL.
876
877 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
878
879         * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
880         to get the block size.
881
882 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
883
884         * nfs-utils.spec.in: Update ftp site.
885
886 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
887
888         * README: Update hostnames.
889
890 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
891
892         * configure.in (VERSION): Set to "0.1.6".
893         * configure: Regenerated.
894         * nfs-utils.spec: Updated.
895
896         * README: Updated.
897
898 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
899
900         * utils/mountd/auth.c (auth_authenticate_internal): Call
901         xstrdup for hostname before passing it to gethostbyname.
902
903         * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
904         of strdup.
905
906 Sun Dec 19 09:35:01 1999  H.J. Lu <hjl@lucon.org>
907
908         * README: Update the mailing list address.
909
910 Sun Dec 19 09:22:28 1999  H.J. Lu <hjl@lucon.org>
911
912         * configure.in (VERSION): Set to "0.1.5".
913         * configure: Regenerated.
914         * nfs-utils.spec: Updated.
915
916         * README: Updated.
917
918 Mon Dec 13 13:40:20 1999  H.J. Lu <hjl@lucon.org>
919
920         * utils/rquotad/hasquota.c (hasquota): Malloc one more char
921         for '/'.
922
923 Mon Dec  6 09:42:45 1999  H.J. Lu <hjl@lucon.org>
924
925         * configure.in (VERSION): Set to "0.1.4".
926         * configure: Regenerated.
927         * nfs-utils.spec: Updated.
928
929         * README: Updated.
930
931 Mon Dec  6 09:28:07 1999  H.J. Lu <hjl@lucon.org>
932
933         * nfs-utils.spec.in: New file.
934
935         * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
936
937         * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
938
939 1999-12-04  Chip Salzenberg  <chip@valinux.com>
940
941         * config.mk.in: Use $(CC) as set by configure.
942
943 1999-12-04  Chip Salzenberg  <chip@valinux.com>
944
945         * rules.mk: Call $(MAKE) with $(MFLAGS).
946
947 Mon Nov 29 11:17:35 1999  H.J. Lu <hjl@lucon.org>
948
949         * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
950         IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
951
952 Mon Nov 29 11:17:35 1999  H.J. Lu <hjl@lucon.org>
953
954         * nfs-utils.spec (Version): Set to 0.1.3.
955
956         * configure.in (VERSION): Set to "nfs-utils 0.1.3".
957         * configure: Regenerated.
958
959         * README: Updated.
960
961 Mon Nov 29 11:15:47 1999  H.J. Lu <hjl@lucon.org>
962
963         * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
964         (_PATH_DEV_DSK): Likewise.
965         (getquotainfo): Match the mounting point from /etc/mtab
966         instead of calling nfsmount_to_devname ().
967
968 1999-11-24  Chip Salzenberg  <chip@valinux.com>
969
970         * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
971         to the new port 24 as well as the historical port 100021.
972
973 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
974
975         * etc/redhat/nfsd.init (stop): moved exportfs -ua after
976         stopping nfsd to stop spurious ESTALE on server shutdown.
977         
978 Tue Nov 23 10:13:39 1999  Neil Brown <neilb@cse.unsw.edu.au>
979
980         * support/nfs/exports.c (parseopts): make copy of opt string
981         before 'nul'ing out commas so that
982
983         # exportfs -o option1,option2 hosta:/fs hostb:/fs
984
985         applies both options to both exports.
986
987 Thu Oct 28 12:55:42 1999  H.J. Lu <hjl@lucon.org>
988
989         * README: Fix a few typos.
990
991         * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
992         of long.
993         * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
994         * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
995         * tools/rpcgen/rpc_parse.c (get_type): Likewise.
996         (unsigned_dec): Likewise.
997         * tools/rpcgen/rpc_scan.c (symbols): Likewise.
998         * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
999
1000         * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1001         instead of LONG.
1002         * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1003         (unsigned_dec): Likewise.
1004         * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1005         * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1006         * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1007
1008 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1009
1010         * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1011         * support/nfs/exports.c: added {no_,}subtree_check and changed
1012           crossmnt to nohide
1013         * utils/exportfs/exports.man: added no_subtree_check and nohide
1014           and removed irrelevant stuff from unfsd.
1015         * support/export/rmtab.c: rmtab_read didn't quite do the right
1016           thing if a pathname from rmtab was a subdirectory of an export-point
1017
1018 Tue Oct 26 17:22:40 1999  H.J. Lu <hjl@lucon.org>
1019
1020         * README: Updated ftp site.
1021
1022 Mon Oct 25 18:12:45 1999  H.J. Lu <hjl@lucon.org>
1023
1024         * nfs-utils.spec (Version): Set to 0.1.2.
1025
1026         * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1027         * configure: Regenerated.
1028
1029         * README: Updated.
1030
1031 Mon Oct 25 18:11:21 1999  H.J. Lu <hjl@lucon.org>
1032
1033         * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1034         (auth_authenticate_internal): Check for NULL return on forward
1035         DNS lookup.
1036         (auth_authenticate): Handle "no_forward_dns".
1037
1038 Thu Oct 21 16:22:06 1999  H.J. Lu <hjl@lucon.org>
1039
1040         * Version 0.1.1 released.
1041
1042         * nfs-utils.spec (Version): Set to 0.1.1.
1043
1044         * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1045         * configure: Regenerated.
1046
1047         * README: Updated.
1048
1049 Mon Oct 18 17:43:29 1999  H.J. Lu <hjl@lucon.org>
1050
1051         * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1052         to knfsd-clients.
1053         (Provides): Likewise.
1054
1055 Mon Oct 18 14:56:22 1999  H.J. Lu <hjl@lucon.org>
1056
1057         * Initial version 0.1 released.
1058
1059         * configure.in (VERSION): Set to "nfs-utils 0.1".
1060         * configure: Regenerated.
1061
1062 Mon Oct 18 14:54:57 1999  H.J. Lu <hjl@lucon.org>
1063
1064         * utils/mountd/mountd.c (get_exportlist): Cleanup.
1065
1066         * utils/exportfs/exportfs.c (unexport_all): Unexport from
1067         kernel only if the entry is exported to kernel.
1068         (unexportfs): Likewise.
1069
1070 Wed Sep 08 16:49:32 1999  Neil Brown <neilb@cse.unsw.edu.au>
1071
1072 1/ utils/mountd/rmtab.c::mountlist_list
1073
1074      This routine stats the rmtab file to see if it has changed.  It
1075      if has, it cleans up it's old copy of the data. But it still
1076      always re-read the file, thus returning multiple copies of the
1077      data on consecutive calls without intervening changes.
1078      "Showmount -a" didn't show this as it appears to sort/unique the
1079      data, but 'strace showmount -a' showed that the size of the
1080      datagram that it received grew.
1081
1082      I moved the getrmtabent loop inside the mtime test.
1083
1084 2/ utils/exportfs/exportfs.c
1085    
1086      Many routines used the m_path field of m_export instead of
1087      e_path.
1088      According to the comment in nfslib.h, m_path should only
1089      be used when processing a mount request (i.e. in mountd)
1090      where the mountpoint may be a subdirectory of the export point.
1091
1092      I changed all occurances of m_path to e_path
1093
1094
1095 3/ utils/exportfs/exportfs.c:main
1096
1097       extra arguments are not meaningful with -a or -r, but
1098       exportfs accepted them and then ignored the -a/-r, expect that
1099       -r would still unexport everything first.
1100
1101       I generate an error if there are extra args and f_all
1102
1103 4/ utils/exportfs/exportfs.c:main
1104      extract dump out as a special case.
1105
1106 5/ utils/exportfs/exportfs.c
1107      made f_reexport a local variable.
1108
1109
1110 6/ utils/exportfs/exportfs.c:main,exportall
1111
1112     support/export/rmtab.c
1113        only  mayexport on newly created entries, don't set xtabent at all
1114
1115 7/ support/include/nfslib.h
1116
1117       add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1118
1119 8/ support/export/xtab.c
1120
1121       xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1122       else from xtab
1123
1124
1125 9/ support/export/xtab.c
1126
1127       xtab_mount_read now sets m_exported, and NOT
1128         xtabent and mayexport
1129
1130       removed the append arguement from xtab_write as it was
1131         never used.
1132
1133       added is_export flag to xtab_write similar to xtab_read
1134         if is_export, only write entries with m_xtabent or m_addxtab
1135         if !is_export, only write entries with m_exported
1136      
1137 10/ support/export/export.c::export_allowed_internal
1138
1139       added test for exp->m_mayexport, as the export tree
1140         may have entries that are no longer allowed to be exported,
1141         and so shouldn't caused deduced exported by rmtab_read
1142
1143 11/ utils/exportfs/exportfs.c::main
1144         error checking of flags.
1145
1146 12/ utils/exportfs/exportfs.c
1147
1148         total rewrite of export and unexport logic.
1149         We now:
1150         -  build an exportslist of valid exports, based on
1151            current etab file  and arguments,
1152         -  read rmtab to instantiate relevant wild card entries
1153         -  read etab to find out what is currently exported
1154         -  synchronise intention with reality
1155         -  write out etab and xtab
1156
1157 13/  various
1158         discard the m_addxtab flag
1159         add m_changed flag so we know what to report in exportfs
1160
1161 14/ utils/mountd/auth.c:auth_authenticate
1162
1163         the value returned by gethostbyaddr was trusted.
1164
1165         It now follows this with a call to gethostbyname
1166         and checks that the address is in the list.
1167
1168 15/ support/export/nfsctl.c::cltsetup,expsetup
1169
1170         force client names to lowercase as kernel is
1171         sensitive to case
1172
1173 16/ quietened a few compiler warnings
1174
1175 17/ support/export/client:client_lookup
1176
1177      look for pre-existing client with same name before creating
1178         a new one.
1179
1180 18/ support/include/exportfs.h
1181
1182      The ordering of the MCL_* enum was:
1183         ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1184
1185      I moved ANONYMOUS to the end.
1186
1187      The ordering is significant when an export entry is being searched for to 
1188         match a given address.  There are two problems with ANONYMOUS being first.
1189
1190         1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1191            then the ro case will always be found first and the privileged hosts won't get
1192            their privilege
1193         2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1194            export entry for the specific host, and writes it to xtab.
1195            When another request comes from the same host, the ANONYMOUS entry is found again, 
1196            before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1197            again.  If causes bloat in xtab.
1198
1199       Putting ANONYMOUS at the end reflects it's nature as a catch-all
1200
1201 19/ utils/exportfs/exportfs.man
1202         many updates to the man page to reflect changes to the code
1203
1204 -----------------------
1205
1206
1207
1208 TODO:
1209
1210 - allow exportfs to modify rmtab file
1211 - make sure kernel never gets two clients with same IP address
1212     - possible kernel should reject
1213     - needs to be some way to lookup client in kernel by IP address
1214 - maybe get kernel to do case-insensitive comparisons on client names
1215 - remove unused clients from kernel
1216
1217 - change etab to xtab and xtab to xtab.active
1218
1219 - timestamp and/or statd-stamp in rmtab for removing old entries.
1220
1221 Mon Oct 18 11:48:07 1999  H.J. Lu <hjl@lucon.org>
1222
1223         * linux-nfs: New directory.
1224         * linux-nfs/ChangeLog: Moved from ..
1225         * linux-nfs/INSTALL: Likewise.
1226         * linux-nfs/KNOWNBUGS: Likewise.
1227         * linux-nfs/NEW: Likewise.
1228         * linux-nfs/README: Likewise.
1229         * linux-nfs/THANKS: Likewise.
1230         * linux-nfs/TODO: Likewise.
1231
1232         * Starting from knfsd 1.4.7.