]> git.decadent.org.uk Git - nfs-utils.git/blob - ChangeLog
2000-12-10 Chip Salzenberg <chip@valinux.com>
[nfs-utils.git] / ChangeLog
1 2000-12-10  Chip Salzenberg  <chip@valinux.com>
2
3         * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
4         program and procedure numbers of kernel lockd's callback.  Also,
5         besides the old (and broken) procedure #24, allow #16 per Trond.
6
7 2000-12-03  Chip Salzenberg  <chip@valinux.com>
8
9         * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
10         * debian/control: Let nhfsstone replace files in nfs-kernel-server.
11         * debian/changelog: Version 0.2.1-4.
12
13 2000-11-27  Tobias Ringstrom <tori@tellus.mine.nu>
14
15         * utils/mountd/auth.c (auth_authenticate): Log the bad path
16         warning.
17
18 2000-11-24  Neil Brown <neilb@cse.unsw.edu.au>
19
20         * support/nfs/exports.c (getexportent): Check for host name
21         without option, or options without hostname, and print a warning,
22         as this is most likely a typo.
23
24 2000-11-19  Chip Salzenberg  <chip@valinux.com>
25
26         * debian/control: Add dependency on portmap.
27         * debian/changelog: Version 0.2.1-3.
28
29 2000-11-10  H.J. Lu <hjl@lucon.org>
30
31         * nfs-utils.spec.in: Don't use libtool.
32         Add ChangeLog and COPYING to doc.
33         * nfs-utils.spec: Rebuild.
34
35 2000-11-09  H.J. Lu <hjl@lucon.org>
36
37         * etc/redhat/nfs.init (start): Back out the last change.
38
39 2000-11-09  H.J. Lu <hjl@lucon.org>
40
41         * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
42         TCP is not supported by kernel.
43
44         * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
45
46         * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
47         (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
48
49         * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
50
51 2000-10-24  Lon Hohberger <hohberger@missioncriticallinux.com>
52
53         * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
54         * utils/statd/rmtcall.c: Add some IP address paranoia when doing
55         callbacks to local lockd.
56
57 2000-10-18  Scott McDermott <mcdermot@questra.com>
58
59         * utils/exportfs/exports.man: Updated for CIDR netmask.
60
61 2000-10-17  Scott McDermott <mcdermot@questra.com>
62
63         * support/export/client.c (client_init): Support CIDR netmask
64         in /etc/exports.
65
66 2000-10-11  H.J. Lu <hjl@lucon.org>
67
68         * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
69         * configure: Rebuilt.
70
71 2000-10-06  Lon Hohberger <hohberger@missioncriticallinux.com>
72
73         * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
74         "/var/lib/nfs/state".
75
76 2000-10-05  Lon Hohberger <hohberger@missioncriticallinux.com>
77
78         * utils/statd/statd.h (run_mode): New global bitmask of runtime
79         behaviors: fg/bg, logging, etc.
80         * utils/statd/statd.c: New command line options: -V -h -? -d .
81         * utils/statd/statd.man: Update for changes to statd.
82
83         * utils/statd/log.h (log_init): Remove parameter of function; use
84         global variable "name_p" instead.
85         * utils/statd/log.c: Add support for logging to stderr.
86
87         * utils/statd/notlist.c: Partially rewrite notify list handling
88         functions.  Eliminate run-off-end-of-list bug when calling
89         nlist_insert_timer.  Add lots of comments.
90         
91 2000-09-27  H.J. Lu <hjl@lucon.org>
92
93         * README: Updated for RedHat 7.0.
94
95 2000-09-27  H.J. Lu <hjl@lucon.org>
96
97         * nfs-utils.spec: Rebuild.
98
99 2000-09-27  H.J. Lu <hjl@lucon.org>
100
101         * README: Updated for 0.2.1.
102
103 2000-09-27  H.J. Lu <hjl@lucon.org>
104
105         * nfs-utils.spec.in: Updated to use rpm macros and support
106         RedHat 7.0.
107
108 2000-09-25  H.J. Lu <hjl@lucon.org>
109
110         * configure.in (VERSION): Set to "0.2.1".
111         * configure: Regenerated.
112         * nfs-utils.spec: Updated.
113
114 2000-09-25  H.J. Lu <hjl@lucon.org>
115
116         * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
117         non-NULL hostent is always returned.
118
119 2000-09-11  Ion Badulescu  <ionut@moisil.dev.hydraweb.com>
120
121         * etc/redhat/nfslock.init: don't kill lockd processes that do not
122         have an executable (i.e. kernel threads)
123
124 2000-09-01  H.J. Lu <hjl@lucon.org>
125
126         * README: Updated for 0.2.
127
128 2000-09-01  Jay Weber <jweber@valinux.com>
129
130         * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
131         supporting version 3 of nfs if available, else it will fall back to
132         version 2 support only.
133
134 2000-08-30  H.J. Lu <hjl@lucon.org>
135
136         * configure.in (VERSION): Set to "0.2".
137         * configure: Regenerated.
138         * nfs-utils.spec: Updated.
139
140 2000-08-25  H.J. Lu <hjl@lucon.org>
141
142         * support/misc/tcpwrapper.c (logit): Modify the log output.
143
144 2000-08-25  Ion Badulescu  <ionut@cs.columbia.edu>
145
146         * utils/rquotad/rquotad.man, utils/statd/statd.man,
147         utils/mountd/mountd.man: updated
148         
149         * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
150         * utils/rquotad/Makefile: fix comment
151
152         * support/misc/tcpwrapper.c (logit): added comment about waiting
153         for the children after fork()
154         
155         * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
156         zombies behind (from logit()'s fork)
157         * utils/rquotad/rquota_svc.c (main): ditto
158         * utils/statd/statd.c (main): ditto
159
160         * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
161         to check_default instead of 0, for prognum
162
163         * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
164         to check_default instead of 0, for prognum
165
166         * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
167         HAVE_TCP_WRAPPER is defined.
168         (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
169         defined. Reject an RPC call if check_default () fails.
170
171 2000-08-25  H.J. Lu <hjl@lucon.org>
172
173         * support/include/tcpwrapper.h: New for the tcp wrapper
174         support.
175         * support/misc/Makefile: Likewise.
176         * support/misc/from_local.c: Likewise.
177         * support/misc/tcpwrapper.c: Likewise.
178
179         * aclocal.m4 (AC_TCP_WRAPPER): New.
180         * configure.in: Use it. Substitute LIBWRAP.
181         * configure: Rebuilt.
182
183         * config.mk.in (LIBNSL): New.
184         (LIBWRAP): Likewise.
185
186         * support/Makefile (SUBDIRS): Add misc.
187
188         * support/lib/Makefile (LIBS): Add libmisc.a.
189
190         * utils/rquotad/Makefile (LIBS): Add
191         
192                 -lmisc $(LIBWRAP) $(LIBNSL)
193
194         * utils/statd/Makefile (LIBS): Likewise.
195
196         * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
197         HAVE_TCP_WRAPPER is defined.
198         (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
199         defined. Reject an RPC call if check_default () fails.
200
201         * utils/statd/statd.c: Include "tcpwrapper.h" if
202         HAVE_TCP_WRAPPER is defined.
203         (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
204         check_default () before calling sm_prog_1 (). Define it as
205         sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
206
207 2000-08-25  Chip Salzenberg  <chip@valinux.com>
208
209         * debian/*: Complete Debian build support.
210         * etc/debian/*: Remove.
211
212 2000-08-24  Neil Brown <neilb@cse.unsw.edu.au>
213
214         * support/export/client.c(client_check): removed the "dot+1" as a
215           ypdomain argument to innetgr as this is entirely bogus.
216           It should always be NULL.
217         
218 2000-08-23  Neil Brown <neilb@cse.unsw.edu.au>
219
220         * support/export/xtab.c(xtab_read): introduce new mode for
221            reading xtab. i.e. a list of exports that might be known to the
222            kernel, or might not.  These are flagged as m_exported == -1
223         * support/export/xtab.c(xtab_mount_read):  call xtab_read with new
224            value "2" for xtab, meaning don't trust this too much.
225         * support/include/exportfs.h(struct mexport): changed m_exported
226            from one bit to an int so that it can hold new value
227         * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
228            kernel if it is uncertain whether the kernel knows (m_exported == -1)
229         * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
230            status is uncertain
231
232         * support/nfs/xio.c(xflock): added O_CREAT when getting
233            a write lock so that missing files aren't fatal.
234
235         * etc/debian/nfs-common: new file from "potato"
236         * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
237          
238 2000-08-09  H.J. Lu <hjl@lucon.org>
239
240         * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
241         startup to ensure all existing clients work fine.
242
243         * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
244         to xtab_read () for reading _PATH_XTAB.
245
246 2000-08-02  H.J. Lu <hjl@lucon.org>
247
248         * utils/mountd/auth.c (auth_authenticate_internal): Try to
249         avoid the reverse name lookup.
250
251 2000-07-04  H.J. Lu <hjl@lucon.org>
252
253         * utils/statd/log.c: Include <stdlib.h> for exit ().
254
255         * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
256         gcc warning.
257
258 2000-07-04  H.J. Lu <hjl@lucon.org>
259
260         * configure.in (VERSION): Set to "0.1.9.1".
261         * configure: Regenerated.
262         * nfs-utils.spec: Updated.
263
264         * README: Updated.
265
266 2000-07-04  Neil Brown  <neilb@cse.unsw.edu.au>
267
268         * support/export/hostname.c (hostent_dup): Handle the NULL
269         h_aliases field.
270
271 2000-07-03  H.J. Lu <hjl@lucon.org>
272
273         * README: Update the util-linux requirement.
274
275 2000-07-03  H.J. Lu <hjl@lucon.org>
276
277         * configure.in (VERSION): Set to "0.1.9".
278         * configure: Regenerated.
279         * nfs-utils.spec: Updated.
280
281         * README: Updated.
282
283 2000-07-03  H.J. Lu <hjl@lucon.org>
284
285         * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
286         stop to ensure all clients can still access the server
287         before it is shutdown.
288
289 2000-06-30  Jeff Uphoff <juphoff@transmeta.com>
290
291         * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
292         calls with format string.
293         
294 2000-06-28  Chip Salzenberg  <chip@valinux.com>
295
296         * utils/statd/log.c (log): Call syslog with format string.
297
298 2000-06-27  H.J. Lu <hjl@lucon.org>
299
300         * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
301         instead of OPEN_MAX.
302
303 2000-06-27  H.J. Lu <hjl@lucon.org>
304
305         * README: Updated.
306
307 2000-06-27  H.J. Lu <hjl@lucon.org>
308
309         * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
310         startup to ensure all existing clients are exported.
311
312         * configure.in (VERSION): Set to "0.1.8.2".
313         * configure: Regenerated.
314         * nfs-utils.spec: Updated.
315
316 2000-06-06  H.J. Lu <hjl@lucon.org>
317
318         * configure.in (VERSION): Set to "0.1.8.1".
319         * configure: Regenerated.
320         * nfs-utils.spec: Updated.
321
322 2000-06-06  H.J. Lu <hjl@lucon.org>
323
324         * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
325         to "struct sockaddr_in *" for glibc 2.2.
326         (mount_umnt_1_svc): Likewise.
327         (mount_umntall_1_svc): Likewise.
328         (mount_export_1_svc): Likewise.
329         (mount_exportall_1_svc): Likewise.
330         (mount_pathconf_2_svc): Likewise.
331         (get_rootfh): Likewise.
332
333 2000-06-04  H.J. Lu <hjl@lucon.org>
334
335         * etc/redhat/nfs.init: Fix a typo in comment.
336
337 2000-05-31  H.J. Lu <hjl@lucon.org>
338
339         * configure.in (VERSION): Set to "0.1.8".
340         * configure: Regenerated.
341         * nfs-utils.spec: Updated.
342
343         * README: Updated.
344
345 2000-05-31  H.J. Lu <hjl@lucon.org>
346
347         * configure.in (VERSION): Set to "0.1.7.5".
348         * configure: Regenerated.
349         * nfs-utils.spec: Updated.
350
351         * support/include/nfslib.h (exportent): Add a new field,
352         r_count, to count the number of mounts from a client.
353         (getrmtabent): Take a new argument for position in file.
354         (putrmtabent): Likewise.
355         (fgetrmtabent): Likewise.
356         (fputrmtabent): Likewise.
357         * support/nfs/rmtab.c (getrmtabent): Handle the new argument
358         for position in file.
359         (fgetrmtabent): Likewise.
360         (putrmtabent): Likewise.
361         (fputrmtabent): Likewise.
362
363         * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
364         field, r_count.
365
366         * support/export/rmtab.c (rmtab_read): Pass NULL as the new
367         argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
368         and fputrmtabent ().
369         * utils/mountd/rmtab.c (mountlist_add): Likewise.
370         (mountlist_del): Likewise.
371         (mountlist_del_all): Likewise.
372         (mountlist_list): Likewise.
373
374         * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
375         for the existing entry and initialize "r_count" to 1.
376         (mountlist_del): Decrement "r_count".
377
378 2000-05-18  H.J. Lu <hjl@lucon.org>
379
380         * configure.in (VERSION): Set to "0.1.7.4".
381         * configure: Regenerated.
382         * nfs-utils.spec: Updated.
383
384 2000-05-18  H.J. Lu <hjl@lucon.org>
385
386         * etc/redhat/nfs.init (restart): Just do stop and start.
387
388 2000-05-09  Jay Weber <jweber@valinux.com>
389
390         * utils/rquotad/hasquota.c: added support for ext3 recognition
391         in rquotad.
392         * utils/rquotad/mntent.h: Likewise.
393
394 2000-05-01  H.J. Lu <hjl@lucon.org>
395
396         * configure.in (VERSION): Set to "0.1.7.3".
397         * configure: Regenerated.
398         * nfs-utils.spec: Updated.
399
400 2000-05-01  H.J. Lu <hjl@lucon.org>
401
402         * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
403         mounting poins in /etc/fstab.
404
405 2000-05-01  H.J. Lu <hjl@lucon.org>
406
407         * configure.in (VERSION): Set to "0.1.7.2".
408         * configure: Regenerated.
409         * nfs-utils.spec: Updated.
410
411 2000-05-01  H.J. Lu <hjl@lucon.org>
412
413         * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
414         to check for the mounting point.
415
416 2000-04-29  Chip Salzenberg  <chip@valinux.com>
417             Neil Brown  <neilb@cse.unsw.edu.au>
418
419         * Really re-use RPC ports.
420           (Fixes earlier patch.  Sorry, Neil.)
421
422 2000-04-26  H.J. Lu <hjl@lucon.org>
423
424         * configure.in (VERSION): Set to "0.1.7.1".
425         * configure: Regenerated.
426         * nfs-utils.spec: Updated.
427
428 2000-04-26  H.J. Lu <hjl@lucon.org>
429
430         * etc/redhat/nfslock.init: Check if lockd exits before killing
431         it.
432
433 2000-04-25  H.J. Lu <hjl@lucon.org>
434
435         * README: Require util-linux-2.10f-mount-rpc.patch for mount.
436
437 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
438
439         * support/nfs/exports.c (parsesquash): Correctly set the
440         return pointer.
441
442 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
443
444         * support/include/nfs/nfs.h: Removed knowledge of internals of
445              kernel filehandles (which can change) and defined nfs_fh_size
446              which has variable size
447         
448         * support/nfs/getfh.c: defined getfh_size to use new syscall to
449              get variable sized file handles, and change getfh{,old} to
450              use nfs_fh_size        
451         
452         * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
453              NFSv3 file handles
454
455         * tools/Makefile, tools/nlmtest/nlmtest.c
456              nlmtest.c depended on internel format of file handles, so now
457              doesn't work.
458
459         
460 2000-03-12  Chip Salzenberg  <chip@valinux.com>
461             Neil Brown  <neilb@cse.unsw.edu.au>
462
463         * support/nfs/rpcmisc.c (rpc_init): Share transports.
464
465 2000-03-13 H.J. Lu <hjl@lucon.org>
466
467         * etc/redhat/nfsd.init: Updated.
468
469         * etc/redhat/nfslock.init: Updated.
470
471         * nfs-utils.spec.in: Updated.
472
473         * configure.in (VERSION): Set to "0.1.7".
474         * configure: Regenerated.
475         * nfs-utils.spec: Updated.
476
477         * README: Updated.
478
479 Wed Mar  8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
480
481         * utils/exportfs/exportfs.c (dump): Included printing of
482            nohide, no_subtree_check, and insecure_locks
483
484 2000-02-26  Chip Salzenberg  <chip@valinux.com>
485
486         * config.mk.in (INSTALLSUID): Strip ("-s").
487         (INSTALLSCRIPT): Define.
488         * utils/nhfsstone/Makefile: Use it.
489
490 2000-02-26  Chip Salzenberg  <chip@valinux.com>
491
492         * utils/lockd/lockd.man: Create.
493         * utils/lockd/Makefile: Install it.
494         * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
495         * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
496         * utils/nhfsstone/Makefile: Install the helper scripts and
497           all four man pages.
498         * utils/exportfs/exports.man: Fix typo.
499
500 2000-02-26  Chip Salzenberg  <chip@valinux.com>
501
502         * support/nfs/xio.c (xungetc): Decrement line number when
503         character to unget is newline.  Make first parameter int, so
504         it can distinguish EOF from \377.
505         * support/include/xio.h (xungetc): Adjust prototype.
506
507 Fri Feb  4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
508
509         * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
510         * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
511         * utils/exportfs/exports.man: added documentation for no_auth_nlm.
512
513         This is for supporting a new option introduced in 2.3.42
514
515 Thu Feb  3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
516
517         * COPYING: Added. GPL.
518
519 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
520
521         * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
522         to get the block size.
523
524 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
525
526         * nfs-utils.spec.in: Update ftp site.
527
528 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
529
530         * README: Update hostnames.
531
532 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
533
534         * configure.in (VERSION): Set to "0.1.6".
535         * configure: Regenerated.
536         * nfs-utils.spec: Updated.
537
538         * README: Updated.
539
540 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
541
542         * utils/mountd/auth.c (auth_authenticate_internal): Call
543         xstrdup for hostname before passing it to gethostbyname.
544
545         * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
546         of strdup.
547
548 Sun Dec 19 09:35:01 1999  H.J. Lu <hjl@lucon.org>
549
550         * README: Update the mailing list address.
551
552 Sun Dec 19 09:22:28 1999  H.J. Lu <hjl@lucon.org>
553
554         * configure.in (VERSION): Set to "0.1.5".
555         * configure: Regenerated.
556         * nfs-utils.spec: Updated.
557
558         * README: Updated.
559
560 Mon Dec 13 13:40:20 1999  H.J. Lu <hjl@lucon.org>
561
562         * utils/rquotad/hasquota.c (hasquota): Malloc one more char
563         for '/'.
564
565 Mon Dec  6 09:42:45 1999  H.J. Lu <hjl@lucon.org>
566
567         * configure.in (VERSION): Set to "0.1.4".
568         * configure: Regenerated.
569         * nfs-utils.spec: Updated.
570
571         * README: Updated.
572
573 Mon Dec  6 09:28:07 1999  H.J. Lu <hjl@lucon.org>
574
575         * nfs-utils.spec.in: New file.
576
577         * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
578
579         * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
580
581 1999-12-04  Chip Salzenberg  <chip@valinux.com>
582
583         * config.mk.in: Use $(CC) as set by configure.
584
585 1999-12-04  Chip Salzenberg  <chip@valinux.com>
586
587         * rules.mk: Call $(MAKE) with $(MFLAGS).
588
589 Mon Nov 29 11:17:35 1999  H.J. Lu <hjl@lucon.org>
590
591         * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
592         IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
593
594 Mon Nov 29 11:17:35 1999  H.J. Lu <hjl@lucon.org>
595
596         * nfs-utils.spec (Version): Set to 0.1.3.
597
598         * configure.in (VERSION): Set to "nfs-utils 0.1.3".
599         * configure: Regenerated.
600
601         * README: Updated.
602
603 Mon Nov 29 11:15:47 1999  H.J. Lu <hjl@lucon.org>
604
605         * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
606         (_PATH_DEV_DSK): Likewise.
607         (getquotainfo): Match the mounting point from /etc/mtab
608         instead of calling nfsmount_to_devname ().
609
610 1999-11-24  Chip Salzenberg  <chip@valinux.com>
611
612         * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
613         to the new port 24 as well as the historical port 100021.
614
615 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
616
617         * etc/redhat/nfsd.init (stop): moved exportfs -ua after
618         stopping nfsd to stop spurious ESTALE on server shutdown.
619         
620 Tue Nov 23 10:13:39 1999  Neil Brown <neilb@cse.unsw.edu.au>
621
622         * support/nfs/exports.c (parseopts): make copy of opt string
623         before 'nul'ing out commas so that
624
625         # exportfs -o option1,option2 hosta:/fs hostb:/fs
626
627         applies both options to both exports.
628
629 Thu Oct 28 12:55:42 1999  H.J. Lu <hjl@lucon.org>
630
631         * README: Fix a few typos.
632
633         * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
634         of long.
635         * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
636         * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
637         * tools/rpcgen/rpc_parse.c (get_type): Likewise.
638         (unsigned_dec): Likewise.
639         * tools/rpcgen/rpc_scan.c (symbols): Likewise.
640         * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
641
642         * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
643         instead of LONG.
644         * tools/rpcgen/rpc_parse.c (get_type): Likewise.
645         (unsigned_dec): Likewise.
646         * tools/rpcgen/rpc_scan.c (symbols): Likewise.
647         * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
648         * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
649
650 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
651
652         * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
653         * support/nfs/exports.c: added {no_,}subtree_check and changed
654           crossmnt to nohide
655         * utils/exportfs/exports.man: added no_subtree_check and nohide
656           and removed irrelevant stuff from unfsd.
657         * support/export/rmtab.c: rmtab_read didn't quite do the right
658           thing if a pathname from rmtab was a subdirectory of an export-point
659
660 Tue Oct 26 17:22:40 1999  H.J. Lu <hjl@lucon.org>
661
662         * README: Updated ftp site.
663
664 Mon Oct 25 18:12:45 1999  H.J. Lu <hjl@lucon.org>
665
666         * nfs-utils.spec (Version): Set to 0.1.2.
667
668         * configure.in (VERSION): Set to "nfs-utils 0.1.2".
669         * configure: Regenerated.
670
671         * README: Updated.
672
673 Mon Oct 25 18:11:21 1999  H.J. Lu <hjl@lucon.org>
674
675         * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
676         (auth_authenticate_internal): Check for NULL return on forward
677         DNS lookup.
678         (auth_authenticate): Handle "no_forward_dns".
679
680 Thu Oct 21 16:22:06 1999  H.J. Lu <hjl@lucon.org>
681
682         * Version 0.1.1 released.
683
684         * nfs-utils.spec (Version): Set to 0.1.1.
685
686         * configure.in (VERSION): Set to "nfs-utils 0.1.1".
687         * configure: Regenerated.
688
689         * README: Updated.
690
691 Mon Oct 18 17:43:29 1999  H.J. Lu <hjl@lucon.org>
692
693         * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
694         to knfsd-clients.
695         (Provides): Likewise.
696
697 Mon Oct 18 14:56:22 1999  H.J. Lu <hjl@lucon.org>
698
699         * Initial version 0.1 released.
700
701         * configure.in (VERSION): Set to "nfs-utils 0.1".
702         * configure: Regenerated.
703
704 Mon Oct 18 14:54:57 1999  H.J. Lu <hjl@lucon.org>
705
706         * utils/mountd/mountd.c (get_exportlist): Cleanup.
707
708         * utils/exportfs/exportfs.c (unexport_all): Unexport from
709         kernel only if the entry is exported to kernel.
710         (unexportfs): Likewise.
711
712 Wed Sep 08 16:49:32 1999  Neil Brown <neilb@cse.unsw.edu.au>
713
714 1/ utils/mountd/rmtab.c::mountlist_list
715
716      This routine stats the rmtab file to see if it has changed.  It
717      if has, it cleans up it's old copy of the data. But it still
718      always re-read the file, thus returning multiple copies of the
719      data on consecutive calls without intervening changes.
720      "Showmount -a" didn't show this as it appears to sort/unique the
721      data, but 'strace showmount -a' showed that the size of the
722      datagram that it received grew.
723
724      I moved the getrmtabent loop inside the mtime test.
725
726 2/ utils/exportfs/exportfs.c
727    
728      Many routines used the m_path field of m_export instead of
729      e_path.
730      According to the comment in nfslib.h, m_path should only
731      be used when processing a mount request (i.e. in mountd)
732      where the mountpoint may be a subdirectory of the export point.
733
734      I changed all occurances of m_path to e_path
735
736
737 3/ utils/exportfs/exportfs.c:main
738
739       extra arguments are not meaningful with -a or -r, but
740       exportfs accepted them and then ignored the -a/-r, expect that
741       -r would still unexport everything first.
742
743       I generate an error if there are extra args and f_all
744
745 4/ utils/exportfs/exportfs.c:main
746      extract dump out as a special case.
747
748 5/ utils/exportfs/exportfs.c
749      made f_reexport a local variable.
750
751
752 6/ utils/exportfs/exportfs.c:main,exportall
753
754     support/export/rmtab.c
755        only  mayexport on newly created entries, don't set xtabent at all
756
757 7/ support/include/nfslib.h
758
759       add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
760
761 8/ support/export/xtab.c
762
763       xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
764       else from xtab
765
766
767 9/ support/export/xtab.c
768
769       xtab_mount_read now sets m_exported, and NOT
770         xtabent and mayexport
771
772       removed the append arguement from xtab_write as it was
773         never used.
774
775       added is_export flag to xtab_write similar to xtab_read
776         if is_export, only write entries with m_xtabent or m_addxtab
777         if !is_export, only write entries with m_exported
778      
779 10/ support/export/export.c::export_allowed_internal
780
781       added test for exp->m_mayexport, as the export tree
782         may have entries that are no longer allowed to be exported,
783         and so shouldn't caused deduced exported by rmtab_read
784
785 11/ utils/exportfs/exportfs.c::main
786         error checking of flags.
787
788 12/ utils/exportfs/exportfs.c
789
790         total rewrite of export and unexport logic.
791         We now:
792         -  build an exportslist of valid exports, based on
793            current etab file  and arguments,
794         -  read rmtab to instantiate relevant wild card entries
795         -  read etab to find out what is currently exported
796         -  synchronise intention with reality
797         -  write out etab and xtab
798
799 13/  various
800         discard the m_addxtab flag
801         add m_changed flag so we know what to report in exportfs
802
803 14/ utils/mountd/auth.c:auth_authenticate
804
805         the value returned by gethostbyaddr was trusted.
806
807         It now follows this with a call to gethostbyname
808         and checks that the address is in the list.
809
810 15/ support/export/nfsctl.c::cltsetup,expsetup
811
812         force client names to lowercase as kernel is
813         sensitive to case
814
815 16/ quietened a few compiler warnings
816
817 17/ support/export/client:client_lookup
818
819      look for pre-existing client with same name before creating
820         a new one.
821
822 18/ support/include/exportfs.h
823
824      The ordering of the MCL_* enum was:
825         ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
826
827      I moved ANONYMOUS to the end.
828
829      The ordering is significant when an export entry is being searched for to 
830         match a given address.  There are two problems with ANONYMOUS being first.
831
832         1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
833            then the ro case will always be found first and the privileged hosts won't get
834            their privilege
835         2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
836            export entry for the specific host, and writes it to xtab.
837            When another request comes from the same host, the ANONYMOUS entry is found again, 
838            before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
839            again.  If causes bloat in xtab.
840
841       Putting ANONYMOUS at the end reflects it's nature as a catch-all
842
843 19/ utils/exportfs/exportfs.man
844         many updates to the man page to reflect changes to the code
845
846 -----------------------
847
848
849
850 TODO:
851
852 - allow exportfs to modify rmtab file
853 - make sure kernel never gets two clients with same IP address
854     - possible kernel should reject
855     - needs to be some way to lookup client in kernel by IP address
856 - maybe get kernel to do case-insensitive comparisons on client names
857 - remove unused clients from kernel
858
859 - change etab to xtab and xtab to xtab.active
860
861 - timestamp and/or statd-stamp in rmtab for removing old entries.
862
863 Mon Oct 18 11:48:07 1999  H.J. Lu <hjl@lucon.org>
864
865         * linux-nfs: New directory.
866         * linux-nfs/ChangeLog: Moved from ..
867         * linux-nfs/INSTALL: Likewise.
868         * linux-nfs/KNOWNBUGS: Likewise.
869         * linux-nfs/NEW: Likewise.
870         * linux-nfs/README: Likewise.
871         * linux-nfs/THANKS: Likewise.
872         * linux-nfs/TODO: Likewise.
873
874         * Starting from knfsd 1.4.7.