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