1 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
3 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
4 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
5 callbacks to local lockd.
7 2000-10-18 Scott McDermott <mcdermot@questra.com>
9 * utils/exportfs/exports.man: Updated for CIDR netmask.
11 2000-10-17 Scott McDermott <mcdermot@questra.com>
13 * support/export/client.c (client_init): Support CIDR netmask
16 2000-10-11 H.J. Lu <hjl@lucon.org>
18 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
21 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
23 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
26 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
28 * utils/statd/statd.h (run_mode): New global bitmask of runtime
29 behaviors: fg/bg, logging, etc.
30 * utils/statd/statd.c: New command line options: -V -h -? -d .
31 * utils/statd/statd.man: Update for changes to statd.
33 * utils/statd/log.h (log_init): Remove parameter of function; use
34 global variable "name_p" instead.
35 * utils/statd/log.c: Add support for logging to stderr.
37 * utils/statd/notlist.c: Partially rewrite notify list handling
38 functions. Eliminate run-off-end-of-list bug when calling
39 nlist_insert_timer. Add lots of comments.
41 2000-09-27 H.J. Lu <hjl@lucon.org>
43 * README: Updated for RedHat 7.0.
45 2000-09-27 H.J. Lu <hjl@lucon.org>
47 * nfs-utils.spec: Rebuild.
49 2000-09-27 H.J. Lu <hjl@lucon.org>
51 * README: Updated for 0.2.1.
53 2000-09-27 H.J. Lu <hjl@lucon.org>
55 * nfs-utils.spec.in: Updated to use rpm macros and support
58 2000-09-25 H.J. Lu <hjl@lucon.org>
60 * configure.in (VERSION): Set to "0.2.1".
61 * configure: Regenerated.
62 * nfs-utils.spec: Updated.
64 2000-09-25 H.J. Lu <hjl@lucon.org>
66 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
67 non-NULL hostent is always returned.
69 2000-09-11 Ion Badulescu <ionut@moisil.dev.hydraweb.com>
71 * etc/redhat/nfslock.init: don't kill lockd processes that do not
72 have an executable (i.e. kernel threads)
74 2000-09-01 H.J. Lu <hjl@lucon.org>
76 * README: Updated for 0.2.
78 2000-09-01 Jay Weber <jweber@valinux.com>
80 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
81 supporting version 3 of nfs if available, else it will fall back to
82 version 2 support only.
84 2000-08-30 H.J. Lu <hjl@lucon.org>
86 * configure.in (VERSION): Set to "0.2".
87 * configure: Regenerated.
88 * nfs-utils.spec: Updated.
90 2000-08-25 H.J. Lu <hjl@lucon.org>
92 * support/misc/tcpwrapper.c (logit): Modify the log output.
94 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
96 * utils/rquotad/rquotad.man, utils/statd/statd.man,
97 utils/mountd/mountd.man: updated
99 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
100 * utils/rquotad/Makefile: fix comment
102 * support/misc/tcpwrapper.c (logit): added comment about waiting
103 for the children after fork()
105 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
106 zombies behind (from logit()'s fork)
107 * utils/rquotad/rquota_svc.c (main): ditto
108 * utils/statd/statd.c (main): ditto
110 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
111 to check_default instead of 0, for prognum
113 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
114 to check_default instead of 0, for prognum
116 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
117 HAVE_TCP_WRAPPER is defined.
118 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
119 defined. Reject an RPC call if check_default () fails.
121 2000-08-25 H.J. Lu <hjl@lucon.org>
123 * support/include/tcpwrapper.h: New for the tcp wrapper
125 * support/misc/Makefile: Likewise.
126 * support/misc/from_local.c: Likewise.
127 * support/misc/tcpwrapper.c: Likewise.
129 * aclocal.m4 (AC_TCP_WRAPPER): New.
130 * configure.in: Use it. Substitute LIBWRAP.
131 * configure: Rebuilt.
133 * config.mk.in (LIBNSL): New.
136 * support/Makefile (SUBDIRS): Add misc.
138 * support/lib/Makefile (LIBS): Add libmisc.a.
140 * utils/rquotad/Makefile (LIBS): Add
142 -lmisc $(LIBWRAP) $(LIBNSL)
144 * utils/statd/Makefile (LIBS): Likewise.
146 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
147 HAVE_TCP_WRAPPER is defined.
148 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
149 defined. Reject an RPC call if check_default () fails.
151 * utils/statd/statd.c: Include "tcpwrapper.h" if
152 HAVE_TCP_WRAPPER is defined.
153 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
154 check_default () before calling sm_prog_1 (). Define it as
155 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
157 2000-08-25 Chip Salzenberg <chip@valinux.com>
159 * debian/*: Complete Debian build support.
160 * etc/debian/*: Remove.
162 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
164 * support/export/client.c(client_check): removed the "dot+1" as a
165 ypdomain argument to innetgr as this is entirely bogus.
166 It should always be NULL.
168 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
170 * support/export/xtab.c(xtab_read): introduce new mode for
171 reading xtab. i.e. a list of exports that might be known to the
172 kernel, or might not. These are flagged as m_exported == -1
173 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
174 value "2" for xtab, meaning don't trust this too much.
175 * support/include/exportfs.h(struct mexport): changed m_exported
176 from one bit to an int so that it can hold new value
177 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
178 kernel if it is uncertain whether the kernel knows (m_exported == -1)
179 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
182 * support/nfs/xio.c(xflock): added O_CREAT when getting
183 a write lock so that missing files aren't fatal.
185 * etc/debian/nfs-common: new file from "potato"
186 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
188 2000-08-09 H.J. Lu <hjl@lucon.org>
190 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
191 startup to ensure all existing clients work fine.
193 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
194 to xtab_read () for reading _PATH_XTAB.
196 2000-08-02 H.J. Lu <hjl@lucon.org>
198 * utils/mountd/auth.c (auth_authenticate_internal): Try to
199 avoid the reverse name lookup.
201 2000-07-04 H.J. Lu <hjl@lucon.org>
203 * utils/statd/log.c: Include <stdlib.h> for exit ().
205 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
208 2000-07-04 H.J. Lu <hjl@lucon.org>
210 * configure.in (VERSION): Set to "0.1.9.1".
211 * configure: Regenerated.
212 * nfs-utils.spec: Updated.
216 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
218 * support/export/hostname.c (hostent_dup): Handle the NULL
221 2000-07-03 H.J. Lu <hjl@lucon.org>
223 * README: Update the util-linux requirement.
225 2000-07-03 H.J. Lu <hjl@lucon.org>
227 * configure.in (VERSION): Set to "0.1.9".
228 * configure: Regenerated.
229 * nfs-utils.spec: Updated.
233 2000-07-03 H.J. Lu <hjl@lucon.org>
235 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
236 stop to ensure all clients can still access the server
237 before it is shutdown.
239 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
241 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
242 calls with format string.
244 2000-06-28 Chip Salzenberg <chip@valinux.com>
246 * utils/statd/log.c (log): Call syslog with format string.
248 2000-06-27 H.J. Lu <hjl@lucon.org>
250 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
253 2000-06-27 H.J. Lu <hjl@lucon.org>
257 2000-06-27 H.J. Lu <hjl@lucon.org>
259 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
260 startup to ensure all existing clients are exported.
262 * configure.in (VERSION): Set to "0.1.8.2".
263 * configure: Regenerated.
264 * nfs-utils.spec: Updated.
266 2000-06-06 H.J. Lu <hjl@lucon.org>
268 * configure.in (VERSION): Set to "0.1.8.1".
269 * configure: Regenerated.
270 * nfs-utils.spec: Updated.
272 2000-06-06 H.J. Lu <hjl@lucon.org>
274 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
275 to "struct sockaddr_in *" for glibc 2.2.
276 (mount_umnt_1_svc): Likewise.
277 (mount_umntall_1_svc): Likewise.
278 (mount_export_1_svc): Likewise.
279 (mount_exportall_1_svc): Likewise.
280 (mount_pathconf_2_svc): Likewise.
281 (get_rootfh): Likewise.
283 2000-06-04 H.J. Lu <hjl@lucon.org>
285 * etc/redhat/nfs.init: Fix a typo in comment.
287 2000-05-31 H.J. Lu <hjl@lucon.org>
289 * configure.in (VERSION): Set to "0.1.8".
290 * configure: Regenerated.
291 * nfs-utils.spec: Updated.
295 2000-05-31 H.J. Lu <hjl@lucon.org>
297 * configure.in (VERSION): Set to "0.1.7.5".
298 * configure: Regenerated.
299 * nfs-utils.spec: Updated.
301 * support/include/nfslib.h (exportent): Add a new field,
302 r_count, to count the number of mounts from a client.
303 (getrmtabent): Take a new argument for position in file.
304 (putrmtabent): Likewise.
305 (fgetrmtabent): Likewise.
306 (fputrmtabent): Likewise.
307 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
308 for position in file.
309 (fgetrmtabent): Likewise.
310 (putrmtabent): Likewise.
311 (fputrmtabent): Likewise.
313 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
316 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
317 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
319 * utils/mountd/rmtab.c (mountlist_add): Likewise.
320 (mountlist_del): Likewise.
321 (mountlist_del_all): Likewise.
322 (mountlist_list): Likewise.
324 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
325 for the existing entry and initialize "r_count" to 1.
326 (mountlist_del): Decrement "r_count".
328 2000-05-18 H.J. Lu <hjl@lucon.org>
330 * configure.in (VERSION): Set to "0.1.7.4".
331 * configure: Regenerated.
332 * nfs-utils.spec: Updated.
334 2000-05-18 H.J. Lu <hjl@lucon.org>
336 * etc/redhat/nfs.init (restart): Just do stop and start.
338 2000-05-09 Jay Weber <jweber@valinux.com>
340 * utils/rquotad/hasquota.c: added support for ext3 recognition
342 * utils/rquotad/mntent.h: Likewise.
344 2000-05-01 H.J. Lu <hjl@lucon.org>
346 * configure.in (VERSION): Set to "0.1.7.3".
347 * configure: Regenerated.
348 * nfs-utils.spec: Updated.
350 2000-05-01 H.J. Lu <hjl@lucon.org>
352 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
353 mounting poins in /etc/fstab.
355 2000-05-01 H.J. Lu <hjl@lucon.org>
357 * configure.in (VERSION): Set to "0.1.7.2".
358 * configure: Regenerated.
359 * nfs-utils.spec: Updated.
361 2000-05-01 H.J. Lu <hjl@lucon.org>
363 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
364 to check for the mounting point.
366 2000-04-29 Chip Salzenberg <chip@valinux.com>
367 Neil Brown <neilb@cse.unsw.edu.au>
369 * Really re-use RPC ports.
370 (Fixes earlier patch. Sorry, Neil.)
372 2000-04-26 H.J. Lu <hjl@lucon.org>
374 * configure.in (VERSION): Set to "0.1.7.1".
375 * configure: Regenerated.
376 * nfs-utils.spec: Updated.
378 2000-04-26 H.J. Lu <hjl@lucon.org>
380 * etc/redhat/nfslock.init: Check if lockd exits before killing
383 2000-04-25 H.J. Lu <hjl@lucon.org>
385 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
387 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
389 * support/nfs/exports.c (parsesquash): Correctly set the
392 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
394 * support/include/nfs/nfs.h: Removed knowledge of internals of
395 kernel filehandles (which can change) and defined nfs_fh_size
396 which has variable size
398 * support/nfs/getfh.c: defined getfh_size to use new syscall to
399 get variable sized file handles, and change getfh{,old} to
402 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
405 * tools/Makefile, tools/nlmtest/nlmtest.c
406 nlmtest.c depended on internel format of file handles, so now
410 2000-03-12 Chip Salzenberg <chip@valinux.com>
411 Neil Brown <neilb@cse.unsw.edu.au>
413 * support/nfs/rpcmisc.c (rpc_init): Share transports.
415 2000-03-13 H.J. Lu <hjl@lucon.org>
417 * etc/redhat/nfsd.init: Updated.
419 * etc/redhat/nfslock.init: Updated.
421 * nfs-utils.spec.in: Updated.
423 * configure.in (VERSION): Set to "0.1.7".
424 * configure: Regenerated.
425 * nfs-utils.spec: Updated.
429 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
431 * utils/exportfs/exportfs.c (dump): Included printing of
432 nohide, no_subtree_check, and insecure_locks
434 2000-02-26 Chip Salzenberg <chip@valinux.com>
436 * config.mk.in (INSTALLSUID): Strip ("-s").
437 (INSTALLSCRIPT): Define.
438 * utils/nhfsstone/Makefile: Use it.
440 2000-02-26 Chip Salzenberg <chip@valinux.com>
442 * utils/lockd/lockd.man: Create.
443 * utils/lockd/Makefile: Install it.
444 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
445 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
446 * utils/nhfsstone/Makefile: Install the helper scripts and
448 * utils/exportfs/exports.man: Fix typo.
450 2000-02-26 Chip Salzenberg <chip@valinux.com>
452 * support/nfs/xio.c (xungetc): Decrement line number when
453 character to unget is newline. Make first parameter int, so
454 it can distinguish EOF from \377.
455 * support/include/xio.h (xungetc): Adjust prototype.
457 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
459 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
460 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
461 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
463 This is for supporting a new option introduced in 2.3.42
465 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
467 * COPYING: Added. GPL.
469 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
471 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
472 to get the block size.
474 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
476 * nfs-utils.spec.in: Update ftp site.
478 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
480 * README: Update hostnames.
482 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
484 * configure.in (VERSION): Set to "0.1.6".
485 * configure: Regenerated.
486 * nfs-utils.spec: Updated.
490 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
492 * utils/mountd/auth.c (auth_authenticate_internal): Call
493 xstrdup for hostname before passing it to gethostbyname.
495 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
498 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
500 * README: Update the mailing list address.
502 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
504 * configure.in (VERSION): Set to "0.1.5".
505 * configure: Regenerated.
506 * nfs-utils.spec: Updated.
510 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
512 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
515 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
517 * configure.in (VERSION): Set to "0.1.4".
518 * configure: Regenerated.
519 * nfs-utils.spec: Updated.
523 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
525 * nfs-utils.spec.in: New file.
527 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
529 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
531 1999-12-04 Chip Salzenberg <chip@valinux.com>
533 * config.mk.in: Use $(CC) as set by configure.
535 1999-12-04 Chip Salzenberg <chip@valinux.com>
537 * rules.mk: Call $(MAKE) with $(MFLAGS).
539 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
541 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
542 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
544 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
546 * nfs-utils.spec (Version): Set to 0.1.3.
548 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
549 * configure: Regenerated.
553 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
555 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
556 (_PATH_DEV_DSK): Likewise.
557 (getquotainfo): Match the mounting point from /etc/mtab
558 instead of calling nfsmount_to_devname ().
560 1999-11-24 Chip Salzenberg <chip@valinux.com>
562 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
563 to the new port 24 as well as the historical port 100021.
565 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
567 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
568 stopping nfsd to stop spurious ESTALE on server shutdown.
570 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
572 * support/nfs/exports.c (parseopts): make copy of opt string
573 before 'nul'ing out commas so that
575 # exportfs -o option1,option2 hosta:/fs hostb:/fs
577 applies both options to both exports.
579 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
581 * README: Fix a few typos.
583 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
585 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
586 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
587 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
588 (unsigned_dec): Likewise.
589 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
590 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
592 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
594 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
595 (unsigned_dec): Likewise.
596 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
597 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
598 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
600 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
602 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
603 * support/nfs/exports.c: added {no_,}subtree_check and changed
605 * utils/exportfs/exports.man: added no_subtree_check and nohide
606 and removed irrelevant stuff from unfsd.
607 * support/export/rmtab.c: rmtab_read didn't quite do the right
608 thing if a pathname from rmtab was a subdirectory of an export-point
610 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
612 * README: Updated ftp site.
614 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
616 * nfs-utils.spec (Version): Set to 0.1.2.
618 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
619 * configure: Regenerated.
623 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
625 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
626 (auth_authenticate_internal): Check for NULL return on forward
628 (auth_authenticate): Handle "no_forward_dns".
630 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
632 * Version 0.1.1 released.
634 * nfs-utils.spec (Version): Set to 0.1.1.
636 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
637 * configure: Regenerated.
641 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
643 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
645 (Provides): Likewise.
647 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
649 * Initial version 0.1 released.
651 * configure.in (VERSION): Set to "nfs-utils 0.1".
652 * configure: Regenerated.
654 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
656 * utils/mountd/mountd.c (get_exportlist): Cleanup.
658 * utils/exportfs/exportfs.c (unexport_all): Unexport from
659 kernel only if the entry is exported to kernel.
660 (unexportfs): Likewise.
662 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
664 1/ utils/mountd/rmtab.c::mountlist_list
666 This routine stats the rmtab file to see if it has changed. It
667 if has, it cleans up it's old copy of the data. But it still
668 always re-read the file, thus returning multiple copies of the
669 data on consecutive calls without intervening changes.
670 "Showmount -a" didn't show this as it appears to sort/unique the
671 data, but 'strace showmount -a' showed that the size of the
672 datagram that it received grew.
674 I moved the getrmtabent loop inside the mtime test.
676 2/ utils/exportfs/exportfs.c
678 Many routines used the m_path field of m_export instead of
680 According to the comment in nfslib.h, m_path should only
681 be used when processing a mount request (i.e. in mountd)
682 where the mountpoint may be a subdirectory of the export point.
684 I changed all occurances of m_path to e_path
687 3/ utils/exportfs/exportfs.c:main
689 extra arguments are not meaningful with -a or -r, but
690 exportfs accepted them and then ignored the -a/-r, expect that
691 -r would still unexport everything first.
693 I generate an error if there are extra args and f_all
695 4/ utils/exportfs/exportfs.c:main
696 extract dump out as a special case.
698 5/ utils/exportfs/exportfs.c
699 made f_reexport a local variable.
702 6/ utils/exportfs/exportfs.c:main,exportall
704 support/export/rmtab.c
705 only mayexport on newly created entries, don't set xtabent at all
707 7/ support/include/nfslib.h
709 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
711 8/ support/export/xtab.c
713 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
717 9/ support/export/xtab.c
719 xtab_mount_read now sets m_exported, and NOT
720 xtabent and mayexport
722 removed the append arguement from xtab_write as it was
725 added is_export flag to xtab_write similar to xtab_read
726 if is_export, only write entries with m_xtabent or m_addxtab
727 if !is_export, only write entries with m_exported
729 10/ support/export/export.c::export_allowed_internal
731 added test for exp->m_mayexport, as the export tree
732 may have entries that are no longer allowed to be exported,
733 and so shouldn't caused deduced exported by rmtab_read
735 11/ utils/exportfs/exportfs.c::main
736 error checking of flags.
738 12/ utils/exportfs/exportfs.c
740 total rewrite of export and unexport logic.
742 - build an exportslist of valid exports, based on
743 current etab file and arguments,
744 - read rmtab to instantiate relevant wild card entries
745 - read etab to find out what is currently exported
746 - synchronise intention with reality
747 - write out etab and xtab
750 discard the m_addxtab flag
751 add m_changed flag so we know what to report in exportfs
753 14/ utils/mountd/auth.c:auth_authenticate
755 the value returned by gethostbyaddr was trusted.
757 It now follows this with a call to gethostbyname
758 and checks that the address is in the list.
760 15/ support/export/nfsctl.c::cltsetup,expsetup
762 force client names to lowercase as kernel is
765 16/ quietened a few compiler warnings
767 17/ support/export/client:client_lookup
769 look for pre-existing client with same name before creating
772 18/ support/include/exportfs.h
774 The ordering of the MCL_* enum was:
775 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
777 I moved ANONYMOUS to the end.
779 The ordering is significant when an export entry is being searched for to
780 match a given address. There are two problems with ANONYMOUS being first.
782 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
783 then the ro case will always be found first and the privileged hosts won't get
785 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
786 export entry for the specific host, and writes it to xtab.
787 When another request comes from the same host, the ANONYMOUS entry is found again,
788 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
789 again. If causes bloat in xtab.
791 Putting ANONYMOUS at the end reflects it's nature as a catch-all
793 19/ utils/exportfs/exportfs.man
794 many updates to the man page to reflect changes to the code
796 -----------------------
802 - allow exportfs to modify rmtab file
803 - make sure kernel never gets two clients with same IP address
804 - possible kernel should reject
805 - needs to be some way to lookup client in kernel by IP address
806 - maybe get kernel to do case-insensitive comparisons on client names
807 - remove unused clients from kernel
809 - change etab to xtab and xtab to xtab.active
811 - timestamp and/or statd-stamp in rmtab for removing old entries.
813 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
815 * linux-nfs: New directory.
816 * linux-nfs/ChangeLog: Moved from ..
817 * linux-nfs/INSTALL: Likewise.
818 * linux-nfs/KNOWNBUGS: Likewise.
819 * linux-nfs/NEW: Likewise.
820 * linux-nfs/README: Likewise.
821 * linux-nfs/THANKS: Likewise.
822 * linux-nfs/TODO: Likewise.
824 * Starting from knfsd 1.4.7.