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