1 2002-09-12 H.J. Lu <hjl@lucon.org>
3 * configure.in: Check svctcp_socket and svcudp_socket.
4 * configure: Regenerated.
6 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
7 (HAVE_SVCUDP_SOCKET): New.
9 * support/include/nfslib.h (svctcp_socket): New.
12 * support/nfs/Makefile (OBJS): Add svc_socket.o.
14 * support/nfs/svc_socket.c: New.
16 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
17 svcudp_socket if port is unspecified.
19 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
21 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
22 (killer): New. Signal handler to unregister.
23 (main): Use killer. Call svcudp_socket to get the default
26 2002-09-02 Juan Gomez <juang@us.ibm.com>
27 NeilBrown <neilb@cse.unsw.edu.au>
29 Add -N option to statd to run in notify-only mode.
31 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
32 * utils/statd/statd.man: document -N
33 * utils/statd/statd.c: enabled -N, largely exists but needed to be
34 uncommented and completed
36 2002-09-02 Juan Gomez <juang@us.ibm.com>
37 NeilBrown <neilb@cse.unsw.edu.au>
39 statd to have " -P directory" arg to use that directory instead
40 of /var/lib/nfs. This is useful for fail-over clusters.
42 * utils/statd/statd.h: define SM_DIR etc as var, not const.
43 * utils/statd/statd.c: define "-P" option to set SM_*
45 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
47 * utils/statd/notify.c: ditto.
48 * utils/statd/statd.man: document -P option.
50 2002-08-26 Chip Salzenberg <chip@pobox.com>
52 * utils/nfsd/nfsd.man: Fix typo.
53 * debian/changelog: Version 1.0.1-1.
55 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
57 * let parseopts know if /etc/exports was being read or not,
58 and have it only print "no sync or async" warning in that case.
60 2002-05-06 Tom McNeal <trmcneal@attbi.com>
61 NeilBrown <neilb@cse.unsw.edu.au>
63 * utils/nfsstat/nfsstat.c: Handle differing format for
64 /proc/net/rpc/nfsd between pre and post 2.4.0
66 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
67 James Pearson <james-p@moving-picture.com>
69 * support/nfs/rmtab.c(fendrmtabent): sync changes to
70 storage before returning, as this is critical state
72 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
73 H.J. Lu <hjl@lucon.org>
75 * etc/redhat/nfs: New.
77 2002-04-08 H.J. Lu <hjl@lucon.org>
79 * etc/redhat/nfs.init: Updated.
81 * nfs-utils.spec.in: Updated.
82 * nfs-utils.spec: Regenerated.
84 * utils/mountd/mountd.c (longopts): Fix a typo.
86 * utils/mountd/mountd.man: Updated.
88 2002-04-07 H.J. Lu <hjl@lucon.org>
90 * etc/redhat/nfslock.init (restart): Just do stop and start.
92 * etc/redhat/nfs.init: Fix a typo.
94 2002-04-07 H.J. Lu <hjl@lucon.org>
96 * configure.in (VERSION): Set to "1.0.1".
97 * configure: Regenerated.
98 * nfs-utils.spec: Likewise.
100 * README: Updated for 1.0.1.
102 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
103 H.J. Lu <hjl@lucon.org>
105 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
107 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
108 NeilBrown <neilb@cse.unsw.edu.au>
110 Add support for fsid=nn export option so that device
111 numbers don't go in filehandles.
112 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
113 is set, pass the fsid in-place of the device number
114 * support/nfs/exports.c: parse and print fsid= option.
115 Also check if efname has been set, and use "command line"
116 instead in error messages.
117 Also, use strtol instead of atoi for anon[ug]id= so that
118 bad numbers cause errors.
120 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
121 NeilBrown <neilb@cse.unsw.edu.au>
123 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
124 flag so that "sync" becomes the default.
125 Check that either "sync" or "async" is given as an option
126 and warn if neither are present
127 * utils/exportfs/exports.man: change documentation for "sync"
128 to be documentation for "async".
129 * utils/exportfs/exportfs.man: note that "sync" is the default
133 2002-01-02 Chip Salzenberg <chip@pobox.com>
135 * support/export/nfsctl.c (expsetup): Don't export entries that
136 specify id mappings not supported by the kernel. No extant kernel
137 supports any significant mapping, only 'identity' (i.e. none).
138 When other mappings are supported, this code will need changing.
139 * debian/changelog: Version 1.0-2.
141 2001-12-26 Chip Salzenberg <chip@pobox.com>
143 * nfs-utils.spec (Version): Set to "1.0".
144 * configure.in (VERSION): Likewise.
145 * configure: Regenerated.
147 * debian/changelog: Version 1.0-1.
149 * utils/exportfs/exports.man: Emphasize the need for options to
150 immediately follow client names. Explain that wildcards don't
151 usually work on addresses, but may work when reverse DNS fails.
152 Comment out a leftover TP that was TPing our indentation.
153 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
154 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
155 * debian/changelog: Version 0.3.3-6.
157 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
159 * support/export/client.c(client_lookup): If a host has multiple
160 IP addresses, then we must always use the result of a
161 gethostbyname, not that of gethostbyaddr for exporting
163 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
165 * support/export/client.c (client_lookup): use strcasecmp when
167 * support/nfs/export.c (getexportent): add fromkernel arg and use
168 different defaults as kernels prior to 2.4.11 assume different
169 defaults in /proc/fs/nfs/exports
170 * support/include/nfslib.h, support/export/export.c,
171 support/export/xtab.c: support extra "fromkernel" arg for
174 2001-12-13 Chip Salzenberg <chip@pobox.com>
176 * debian/changelog: Version 0.3.3-5.
178 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
180 * support/nfs/xio.c (xskip): Call `xungetc' instead of
181 `ungetc' to keep x_line more properly.
183 2001-11-26 Chip Salzenberg <chip@pobox.com>
185 * utils/showmount/showmount.c (main): Don't assume that strings
186 starting with digits are IP addresses.
187 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
188 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
189 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
190 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
191 man pages: We check host names *and* addresses with tcpwrappers.
192 * debian/changelog: Version 0.3.3-4.
194 2001-11-21 Chip Salzenberg <chip@pobox.com>
196 * support/nfs/clients.c (cfname): Added: current clients file name.
197 (setnfsclntent): Set it.
198 ({get,end}nfsclntent, syntaxerr): Use it.
199 * support/nfs/exports.c (efname): Added: current exports file name.
200 (setnfsexportent): Set it.
201 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
202 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
203 * debian/changelog: Version 0.3.3-3.
205 2001-10-11 Chip Salzenberg <chip@pobox.com>
207 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
208 * debian/changelog: Version 0.3.3-2.
210 2001-10-08 Chip Salzenberg <chip@pobox.com>
212 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
213 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
214 * utils/mountd/mountd.man: Update paths to /var/lib.
215 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
217 2001-10-06 Preston Brown <pbrown@redhat.com>
219 * utils/nfsstat/nfsstat.man: Updated.
221 2001-09-24 H.J. Lu <hjl@lucon.org>
223 * configure.in (VERSION): Set to "0.3.3".
224 * configure: Regenerated.
225 * nfs-utils.spec: Likewise.
227 * README: Updated for 0.3.3.
229 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
231 Arrange that "exportfs -au" never does DNS lookup:
233 * support/export/client.c (client_lookup) : add "canonical"
234 flag which says that the hostname is known to be canonical, so
237 * support/export/export.c (export_create) : add "canonical"
238 flag to be passed down to client_lookup
239 * support/export/export.c (export_lookup) : Likewise
241 * support/export/xtab.c (xtab_read) : pass appropriate
242 "canonical" flag to export_lookup and export_create:
243 set if reading list of filesystems currently exports
246 * support/export/export.c (export_read) : pass 0 as
247 "canonical" flag to export_lookup and export_create
248 * support/export/rmtab.s (rmtab_read) : Likewise
250 * support/include/exportfs.h : redeclare various routines
251 to have "canonical" flag
253 * utils/exportfs/exportfs.c (main) : redo logic for
254 "-au" to read in what is currently exported, but never even
255 look at what "should" be exported.
257 * utils/exportfs/exportfs.c (unexportall) : remove this
258 routine. Functionality is completely included in
261 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
262 flag to zero in calls to export_lookup and export_create.
265 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
266 Anne Milicia <milicia@missioncriticallinux.com>
268 * support/export/client.c (client_lookup) call gethostbyadd
269 to make sure that we have a canonical hostname, even for
271 * utils/exportfs/exportfs.c (exportfs) Likewise
273 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
275 * support/nfs/exports.c (putexportent): \octal quote any spaces
277 * support/nfs/xio.c (xgettok): recognise double-quote and
278 \octal quoting in path names
279 * utils/exportfs/exports.man: document quoting conventions
282 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
284 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
285 change from 2000-08-02: It causes problems if someone exports
286 to both a hostname and IP addresses. nfs-utils must be
287 consistant about the canonical name that it chooses.
289 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
290 H.J. Lu <hjl@lucon.org>
292 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
294 * utils/statd/statd.c (longopts): Add "name".
295 (usage): Add "-n/--name".
296 (main): Set MY_NAME with "-n/--name".
298 * utils/statd/state.c (change_state): Set MY_NAME only if it
301 * utils/statd/statd.man: Updated for "-n/--name".
303 2001-07-26 H.J. Lu <hjl@lucon.org>
305 * nfs-utils.spec (Release): Set to 8.
307 2001-07-25 H.J. Lu <hjl@lucon.org>
309 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
312 2001-06-27 H.J. Lu <hjl@lucon.org>
314 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
316 2001-06-27 H.J. Lu <hjl@lucon.org>
318 * utils/rquotad/rquota_server.c: Don't call statfs () for
319 the block size. Use BLOCK_SIZE instead.
321 2001-06-27 H.J. Lu <hjl@lucon.org>
323 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
324 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
326 * configure.in (enable_nfsv3): Set to yes by default.
327 (--enable-rquotad): Added
328 (AC_PROG_CXX): Removed.
329 (AC_OUTPUT): Add utils/Makefile.
330 (CC_FOR_BUILD): Renamed from BUILD_CC.
331 * configure: Regenerated.
333 * utils/Makefile: Removed.
335 * utils/Makefile.in: New.
337 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
339 (CC_FOR_BUILD): Renamed from BUILD_CC.
340 * nfs-utils.spec: Regenerated.
342 2001-06-15 Chip Salzenberg <chip@debian.org>
344 * debian/changelog: Version 0.3.2-2.
345 * debian/*.init: Minor fixes.
347 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
349 * etc/nodist/nfs-server: Fixed a bug where the script would
350 disable mounts from NFSv3 clients if NFSv3 is present.
352 2001-06-05 H.J. Lu <hjl@lucon.org>
354 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
355 (main): Support --descriptors/-o to set the limit of the number
356 of open file descriptors.
359 * utils/mountd/mountd.man: Updated for --descriptors/-o.
361 2001-06-04 H.J. Lu <hjl@lucon.org>
363 * nfs-utils.spec (Release): Set to 6.
365 2001-05-28 H.J. Lu <hjl@lucon.org>
367 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
368 * utils/mountd/mountd.c (main): Likewise.
369 * utils/nfsd/nfsd.c (main): Likewise.
370 * utils/rquotad/rquota_svc.c (main): Likewise.
372 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
374 * support/export/client.c (client_check): Check IP address
377 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
379 * support/export/client.c (client_gettype): Treat `*' as
382 2001-04-22 H.J. Lu <hjl@lucon.org>
384 * nfs-utils.spec.in: Fix a typo.
385 * nfs-utils.spec: Regenerated.
387 2001-04-21 H.J. Lu <hjl@lucon.org>
389 * nfs-utils.spec.in: Fix cross build.
390 * nfs-utils.spec: Regenerated.
393 2001-04-18 H.J. Lu <hjl@lucon.org>
395 * nfs-utils.spec.in: Support cross build.
396 * nfs-utils.spec: Regenerated.
402 * config.mk.in (BUILD_CC): New.
403 (CC): Set to $(BUILD_CC) if BUILD is defined.
406 (RANLIB): Set to @RANLIB@.
408 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
409 * configure: Regenerated.
411 * tools/rpcgen/Makefile (BUILD): Set to true.
413 2001-04-01 Chip Salzenberg <chip@valinux.com>
415 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
416 redundant, and sometimes broken, declaration of svc_fdset;
418 * support/nfs/rpcmisc.c (closedown): Likewise.
420 2001-03-21 H.J. Lu <hjl@lucon.org>
422 * nfs-utils.spec: Regenerated.
425 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
427 * utils/statd/statd.c (main): make sure file descriptors 0-2
428 are open to /dev/null.
430 2001-03-21 H.J. Lu <hjl@lucon.org>
432 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
433 * support/nfs/rpcmisc.c: Likewise.
434 * utils/rquotad/rquota_svc.c: Likewise.
435 * utils/rquotad/rquotad.man: Likewise.
436 * utils/statd/Makefile: Likewise.
437 * utils/statd/rmtcall.c: Likewise.
438 * utils/statd/simulate.c: Likewise.
439 * utils/statd/statd.c: Likewise.
440 * utils/statd/statd.man: Likewise.
442 2001-03-11 H.J. Lu <hjl@lucon.org>
444 * configure.in (RELEASE): New. Default to 1, set by
445 --with-release=XXX. Substitute nfs-utils.spec.
446 * nfs-utils.spec.in (Release): Set to @RELEASE@.
447 * configure: Regenerated.
448 * nfs-utils.spec: Likewise.
450 2001-03-11 H.J. Lu <hjl@lucon.org>
452 * utils/rquotad/rquotad.man: Fix a typo.
454 2001-03-11 H.J. Lu <hjl@lucon.org>
456 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
457 * support/nfs/rpcmisc.c: Likewise.
458 * utils/rquotad/rquota_svc.c: Likewise.
459 * utils/rquotad/rquotad.man: Likewise.
460 * utils/statd/Makefile: Likewise.
461 * utils/statd/rmtcall.c: Likewise.
462 * utils/statd/simulate.c: Likewise.
463 * utils/statd/statd.c: Likewise.
464 * utils/statd/statd.man: Likewise.
466 2001-03-10 H.J. Lu <hjl@lucon.org>
468 * configure.in (VERSION): Set to "0.3.2".
469 * configure: Regenerated.
470 * nfs-utils.spec: Likewise.
472 * README: Updated for 0.3.2.
474 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
476 * utils/rquotad/rquotad.man: Updated for -p.
477 * utils/statd/statd.man: Likewise.
479 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
481 * support/nfs/rpcmisc.c: export makesock()
483 * support/include/rpcmisc.h (makesock): Declared.
485 * utils/rquotad/rquota_svc.c: added longopts, added support for
486 specifying the port to bind to on the command line.
488 * utils/statd/statd.c: ditto, also specify port used for
489 outgoing connections.
490 (do_regist): Removed.
492 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
493 get_socket. Make it extern.
495 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
496 instead of do_regist.
498 * utils/statd/Makefile (LIBS): link with our own libnfs
500 2001-03-09 H.J. Lu <hjl@lucon.org>
502 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
503 * etc/nodist/nfs-client: Likewise.
505 2001-02-26 Chip Salzenberg <chip@valinux.com>
507 * debian/changelog: Version 0.3.1-1.
508 * Mention upstream source and license in copyright file.
509 * Add build-Depends for debhelper and libwrap0-dev.
511 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
513 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
514 * etc/nodist/nfs-client: Likewise.
516 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
518 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
521 2001-02-17 Patrick J. LoPresti <patl@curl.com>
523 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
526 2001-02-14 H.J. Lu <hjl@lucon.org>
528 * utils/statd/rmtcall.c: Include <time.h>.
529 * utils/statd/svc_run.c: Likewise.
531 2001-02-14 H.J. Lu <hjl@lucon.org>
533 * configure.in (VERSION): Set to "0.3.1".
534 * configure: Regenerated.
535 * nfs-utils.spec: Likewise.
537 * README: Updated for 0.3.1.
539 2001-02-14 H.J. Lu <hjl@lucon.org>
541 * support/nfs/rpcmisc.c: Include <time.h>.
543 2001-02-14 Chip Salzenberg <chip@valinux.com>
545 * debian/control: Change priority of nhfsstone package to 'extra'.
547 2001-02-12 Chip Salzenberg <chip@valinux.com>
549 * debian/changelog: Version 0.3-2.
551 2001-02-02 H.J. Lu <hjl@lucon.org>
553 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
555 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
556 out SO_SNDBUF/SO_RCVBUF.
557 (rpc_init): Remove bufsize and remove socksz in calls to
560 * utils/mountd/mountd.c (main): Remove bufsize in calls to
563 2001-01-28 Chip Salzenberg <chip@valinux.com>
565 * debian/changelog: Version 0.3-1.
567 2001-01-25 H.J. Lu <hjl@lucon.org>
569 * configure.in (VERSION): Set to "0.3".
570 * configure: Regenerated.
571 * nfs-utils.spec: Likewise.
573 * README: Updated for 0.3.
575 2001-01-25 H.J. Lu <hjl@lucon.org>
577 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
579 2001-01-20 Chip Salzenberg <chip@valinux.com>
581 * support/include/xio.h (xgetc): Declare to return int.
582 * support/nfs/xio.c (xgetc): Return int.
583 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
584 * utils/statd/statd.c (main): Use int for value of getopt.
585 * debian/changelog: Version 0.2.1-5.
587 2000-12-10 Chip Salzenberg <chip@valinux.com>
589 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
590 program and procedure numbers of kernel lockd's callback. Also,
591 besides the old (and broken) procedure #24, allow #16 per Trond.
593 2000-12-03 Chip Salzenberg <chip@valinux.com>
595 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
596 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
597 * debian/changelog: Version 0.2.1-4.
599 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
601 * utils/mountd/auth.c (auth_authenticate): Log the bad path
604 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
606 * support/nfs/exports.c (getexportent): Check for host name
607 without option, or options without hostname, and print a warning,
608 as this is most likely a typo.
610 2000-11-19 Chip Salzenberg <chip@valinux.com>
612 * debian/control: Add dependency on portmap.
613 * debian/changelog: Version 0.2.1-3.
615 2000-11-10 H.J. Lu <hjl@lucon.org>
617 * nfs-utils.spec.in: Don't use libtool.
618 Add ChangeLog and COPYING to doc.
619 * nfs-utils.spec: Rebuild.
621 2000-11-09 H.J. Lu <hjl@lucon.org>
623 * etc/redhat/nfs.init (start): Back out the last change.
625 2000-11-09 H.J. Lu <hjl@lucon.org>
627 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
628 TCP is not supported by kernel.
630 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
632 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
633 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
635 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
637 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
639 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
640 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
641 callbacks to local lockd.
643 2000-10-18 Scott McDermott <mcdermot@questra.com>
645 * utils/exportfs/exports.man: Updated for CIDR netmask.
647 2000-10-17 Scott McDermott <mcdermot@questra.com>
649 * support/export/client.c (client_init): Support CIDR netmask
652 2000-10-11 H.J. Lu <hjl@lucon.org>
654 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
655 * configure: Rebuilt.
657 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
659 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
660 "/var/lib/nfs/state".
662 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
664 * utils/statd/statd.h (run_mode): New global bitmask of runtime
665 behaviors: fg/bg, logging, etc.
666 * utils/statd/statd.c: New command line options: -V -h -? -d .
667 * utils/statd/statd.man: Update for changes to statd.
669 * utils/statd/log.h (log_init): Remove parameter of function; use
670 global variable "name_p" instead.
671 * utils/statd/log.c: Add support for logging to stderr.
673 * utils/statd/notlist.c: Partially rewrite notify list handling
674 functions. Eliminate run-off-end-of-list bug when calling
675 nlist_insert_timer. Add lots of comments.
677 2000-09-27 H.J. Lu <hjl@lucon.org>
679 * README: Updated for RedHat 7.0.
681 2000-09-27 H.J. Lu <hjl@lucon.org>
683 * nfs-utils.spec: Rebuild.
685 2000-09-27 H.J. Lu <hjl@lucon.org>
687 * README: Updated for 0.2.1.
689 2000-09-27 H.J. Lu <hjl@lucon.org>
691 * nfs-utils.spec.in: Updated to use rpm macros and support
694 2000-09-25 H.J. Lu <hjl@lucon.org>
696 * configure.in (VERSION): Set to "0.2.1".
697 * configure: Regenerated.
698 * nfs-utils.spec: Updated.
700 2000-09-25 H.J. Lu <hjl@lucon.org>
702 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
703 non-NULL hostent is always returned.
705 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
707 * etc/redhat/nfslock.init: don't kill lockd processes that do not
708 have an executable (i.e. kernel threads)
710 2000-09-01 H.J. Lu <hjl@lucon.org>
712 * README: Updated for 0.2.
714 2000-09-01 Jay Weber <jweber@valinux.com>
716 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
717 supporting version 3 of nfs if available, else it will fall back to
718 version 2 support only.
720 2000-08-30 H.J. Lu <hjl@lucon.org>
722 * configure.in (VERSION): Set to "0.2".
723 * configure: Regenerated.
724 * nfs-utils.spec: Updated.
726 2000-08-25 H.J. Lu <hjl@lucon.org>
728 * support/misc/tcpwrapper.c (logit): Modify the log output.
730 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
732 * utils/rquotad/rquotad.man, utils/statd/statd.man,
733 utils/mountd/mountd.man: updated
735 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
736 * utils/rquotad/Makefile: fix comment
738 * support/misc/tcpwrapper.c (logit): added comment about waiting
739 for the children after fork()
741 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
742 zombies behind (from logit()'s fork)
743 * utils/rquotad/rquota_svc.c (main): ditto
744 * utils/statd/statd.c (main): ditto
746 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
747 to check_default instead of 0, for prognum
749 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
750 to check_default instead of 0, for prognum
752 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
753 HAVE_TCP_WRAPPER is defined.
754 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
755 defined. Reject an RPC call if check_default () fails.
757 2000-08-25 H.J. Lu <hjl@lucon.org>
759 * support/include/tcpwrapper.h: New for the tcp wrapper
761 * support/misc/Makefile: Likewise.
762 * support/misc/from_local.c: Likewise.
763 * support/misc/tcpwrapper.c: Likewise.
765 * aclocal.m4 (AC_TCP_WRAPPER): New.
766 * configure.in: Use it. Substitute LIBWRAP.
767 * configure: Rebuilt.
769 * config.mk.in (LIBNSL): New.
772 * support/Makefile (SUBDIRS): Add misc.
774 * support/lib/Makefile (LIBS): Add libmisc.a.
776 * utils/rquotad/Makefile (LIBS): Add
778 -lmisc $(LIBWRAP) $(LIBNSL)
780 * utils/statd/Makefile (LIBS): Likewise.
782 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
783 HAVE_TCP_WRAPPER is defined.
784 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
785 defined. Reject an RPC call if check_default () fails.
787 * utils/statd/statd.c: Include "tcpwrapper.h" if
788 HAVE_TCP_WRAPPER is defined.
789 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
790 check_default () before calling sm_prog_1 (). Define it as
791 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
793 2000-08-25 Chip Salzenberg <chip@valinux.com>
795 * debian/*: Complete Debian build support.
796 * etc/debian/*: Remove.
798 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
800 * support/export/client.c(client_check): removed the "dot+1" as a
801 ypdomain argument to innetgr as this is entirely bogus.
802 It should always be NULL.
804 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
806 * support/export/xtab.c(xtab_read): introduce new mode for
807 reading xtab. i.e. a list of exports that might be known to the
808 kernel, or might not. These are flagged as m_exported == -1
809 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
810 value "2" for xtab, meaning don't trust this too much.
811 * support/include/exportfs.h(struct mexport): changed m_exported
812 from one bit to an int so that it can hold new value
813 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
814 kernel if it is uncertain whether the kernel knows (m_exported == -1)
815 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
818 * support/nfs/xio.c(xflock): added O_CREAT when getting
819 a write lock so that missing files aren't fatal.
821 * etc/debian/nfs-common: new file from "potato"
822 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
824 2000-08-09 H.J. Lu <hjl@lucon.org>
826 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
827 startup to ensure all existing clients work fine.
829 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
830 to xtab_read () for reading _PATH_XTAB.
832 2000-08-02 H.J. Lu <hjl@lucon.org>
834 * utils/mountd/auth.c (auth_authenticate_internal): Try to
835 avoid the reverse name lookup.
837 2000-07-04 H.J. Lu <hjl@lucon.org>
839 * utils/statd/log.c: Include <stdlib.h> for exit ().
841 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
844 2000-07-04 H.J. Lu <hjl@lucon.org>
846 * configure.in (VERSION): Set to "0.1.9.1".
847 * configure: Regenerated.
848 * nfs-utils.spec: Updated.
852 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
854 * support/export/hostname.c (hostent_dup): Handle the NULL
857 2000-07-03 H.J. Lu <hjl@lucon.org>
859 * README: Update the util-linux requirement.
861 2000-07-03 H.J. Lu <hjl@lucon.org>
863 * configure.in (VERSION): Set to "0.1.9".
864 * configure: Regenerated.
865 * nfs-utils.spec: Updated.
869 2000-07-03 H.J. Lu <hjl@lucon.org>
871 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
872 stop to ensure all clients can still access the server
873 before it is shutdown.
875 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
877 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
878 calls with format string.
880 2000-06-28 Chip Salzenberg <chip@valinux.com>
882 * utils/statd/log.c (log): Call syslog with format string.
884 2000-06-27 H.J. Lu <hjl@lucon.org>
886 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
889 2000-06-27 H.J. Lu <hjl@lucon.org>
893 2000-06-27 H.J. Lu <hjl@lucon.org>
895 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
896 startup to ensure all existing clients are exported.
898 * configure.in (VERSION): Set to "0.1.8.2".
899 * configure: Regenerated.
900 * nfs-utils.spec: Updated.
902 2000-06-06 H.J. Lu <hjl@lucon.org>
904 * configure.in (VERSION): Set to "0.1.8.1".
905 * configure: Regenerated.
906 * nfs-utils.spec: Updated.
908 2000-06-06 H.J. Lu <hjl@lucon.org>
910 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
911 to "struct sockaddr_in *" for glibc 2.2.
912 (mount_umnt_1_svc): Likewise.
913 (mount_umntall_1_svc): Likewise.
914 (mount_export_1_svc): Likewise.
915 (mount_exportall_1_svc): Likewise.
916 (mount_pathconf_2_svc): Likewise.
917 (get_rootfh): Likewise.
919 2000-06-04 H.J. Lu <hjl@lucon.org>
921 * etc/redhat/nfs.init: Fix a typo in comment.
923 2000-05-31 H.J. Lu <hjl@lucon.org>
925 * configure.in (VERSION): Set to "0.1.8".
926 * configure: Regenerated.
927 * nfs-utils.spec: Updated.
931 2000-05-31 H.J. Lu <hjl@lucon.org>
933 * configure.in (VERSION): Set to "0.1.7.5".
934 * configure: Regenerated.
935 * nfs-utils.spec: Updated.
937 * support/include/nfslib.h (exportent): Add a new field,
938 r_count, to count the number of mounts from a client.
939 (getrmtabent): Take a new argument for position in file.
940 (putrmtabent): Likewise.
941 (fgetrmtabent): Likewise.
942 (fputrmtabent): Likewise.
943 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
944 for position in file.
945 (fgetrmtabent): Likewise.
946 (putrmtabent): Likewise.
947 (fputrmtabent): Likewise.
949 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
952 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
953 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
955 * utils/mountd/rmtab.c (mountlist_add): Likewise.
956 (mountlist_del): Likewise.
957 (mountlist_del_all): Likewise.
958 (mountlist_list): Likewise.
960 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
961 for the existing entry and initialize "r_count" to 1.
962 (mountlist_del): Decrement "r_count".
964 2000-05-18 H.J. Lu <hjl@lucon.org>
966 * configure.in (VERSION): Set to "0.1.7.4".
967 * configure: Regenerated.
968 * nfs-utils.spec: Updated.
970 2000-05-18 H.J. Lu <hjl@lucon.org>
972 * etc/redhat/nfs.init (restart): Just do stop and start.
974 2000-05-09 Jay Weber <jweber@valinux.com>
976 * utils/rquotad/hasquota.c: added support for ext3 recognition
978 * utils/rquotad/mntent.h: Likewise.
980 2000-05-01 H.J. Lu <hjl@lucon.org>
982 * configure.in (VERSION): Set to "0.1.7.3".
983 * configure: Regenerated.
984 * nfs-utils.spec: Updated.
986 2000-05-01 H.J. Lu <hjl@lucon.org>
988 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
989 mounting poins in /etc/fstab.
991 2000-05-01 H.J. Lu <hjl@lucon.org>
993 * configure.in (VERSION): Set to "0.1.7.2".
994 * configure: Regenerated.
995 * nfs-utils.spec: Updated.
997 2000-05-01 H.J. Lu <hjl@lucon.org>
999 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1000 to check for the mounting point.
1002 2000-04-29 Chip Salzenberg <chip@valinux.com>
1003 Neil Brown <neilb@cse.unsw.edu.au>
1005 * Really re-use RPC ports.
1006 (Fixes earlier patch. Sorry, Neil.)
1008 2000-04-26 H.J. Lu <hjl@lucon.org>
1010 * configure.in (VERSION): Set to "0.1.7.1".
1011 * configure: Regenerated.
1012 * nfs-utils.spec: Updated.
1014 2000-04-26 H.J. Lu <hjl@lucon.org>
1016 * etc/redhat/nfslock.init: Check if lockd exits before killing
1019 2000-04-25 H.J. Lu <hjl@lucon.org>
1021 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1023 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1025 * support/nfs/exports.c (parsesquash): Correctly set the
1028 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1030 * support/include/nfs/nfs.h: Removed knowledge of internals of
1031 kernel filehandles (which can change) and defined nfs_fh_size
1032 which has variable size
1034 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1035 get variable sized file handles, and change getfh{,old} to
1038 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1041 * tools/Makefile, tools/nlmtest/nlmtest.c
1042 nlmtest.c depended on internel format of file handles, so now
1046 2000-03-12 Chip Salzenberg <chip@valinux.com>
1047 Neil Brown <neilb@cse.unsw.edu.au>
1049 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1051 2000-03-13 H.J. Lu <hjl@lucon.org>
1053 * etc/redhat/nfsd.init: Updated.
1055 * etc/redhat/nfslock.init: Updated.
1057 * nfs-utils.spec.in: Updated.
1059 * configure.in (VERSION): Set to "0.1.7".
1060 * configure: Regenerated.
1061 * nfs-utils.spec: Updated.
1065 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1067 * utils/exportfs/exportfs.c (dump): Included printing of
1068 nohide, no_subtree_check, and insecure_locks
1070 2000-02-26 Chip Salzenberg <chip@valinux.com>
1072 * config.mk.in (INSTALLSUID): Strip ("-s").
1073 (INSTALLSCRIPT): Define.
1074 * utils/nhfsstone/Makefile: Use it.
1076 2000-02-26 Chip Salzenberg <chip@valinux.com>
1078 * utils/lockd/lockd.man: Create.
1079 * utils/lockd/Makefile: Install it.
1080 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1081 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1082 * utils/nhfsstone/Makefile: Install the helper scripts and
1084 * utils/exportfs/exports.man: Fix typo.
1086 2000-02-26 Chip Salzenberg <chip@valinux.com>
1088 * support/nfs/xio.c (xungetc): Decrement line number when
1089 character to unget is newline. Make first parameter int, so
1090 it can distinguish EOF from \377.
1091 * support/include/xio.h (xungetc): Adjust prototype.
1093 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1095 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1096 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1097 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1099 This is for supporting a new option introduced in 2.3.42
1101 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1103 * COPYING: Added. GPL.
1105 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1107 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1108 to get the block size.
1110 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1112 * nfs-utils.spec.in: Update ftp site.
1114 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1116 * README: Update hostnames.
1118 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1120 * configure.in (VERSION): Set to "0.1.6".
1121 * configure: Regenerated.
1122 * nfs-utils.spec: Updated.
1126 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1128 * utils/mountd/auth.c (auth_authenticate_internal): Call
1129 xstrdup for hostname before passing it to gethostbyname.
1131 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1134 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1136 * README: Update the mailing list address.
1138 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1140 * configure.in (VERSION): Set to "0.1.5".
1141 * configure: Regenerated.
1142 * nfs-utils.spec: Updated.
1146 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1148 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1151 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1153 * configure.in (VERSION): Set to "0.1.4".
1154 * configure: Regenerated.
1155 * nfs-utils.spec: Updated.
1159 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1161 * nfs-utils.spec.in: New file.
1163 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1165 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1167 1999-12-04 Chip Salzenberg <chip@valinux.com>
1169 * config.mk.in: Use $(CC) as set by configure.
1171 1999-12-04 Chip Salzenberg <chip@valinux.com>
1173 * rules.mk: Call $(MAKE) with $(MFLAGS).
1175 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1177 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1178 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1180 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1182 * nfs-utils.spec (Version): Set to 0.1.3.
1184 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1185 * configure: Regenerated.
1189 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1191 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1192 (_PATH_DEV_DSK): Likewise.
1193 (getquotainfo): Match the mounting point from /etc/mtab
1194 instead of calling nfsmount_to_devname ().
1196 1999-11-24 Chip Salzenberg <chip@valinux.com>
1198 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1199 to the new port 24 as well as the historical port 100021.
1201 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1203 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1204 stopping nfsd to stop spurious ESTALE on server shutdown.
1206 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1208 * support/nfs/exports.c (parseopts): make copy of opt string
1209 before 'nul'ing out commas so that
1211 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1213 applies both options to both exports.
1215 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1217 * README: Fix a few typos.
1219 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1221 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1222 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1223 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1224 (unsigned_dec): Likewise.
1225 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1226 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1228 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1230 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1231 (unsigned_dec): Likewise.
1232 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1233 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1234 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1236 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1238 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1239 * support/nfs/exports.c: added {no_,}subtree_check and changed
1241 * utils/exportfs/exports.man: added no_subtree_check and nohide
1242 and removed irrelevant stuff from unfsd.
1243 * support/export/rmtab.c: rmtab_read didn't quite do the right
1244 thing if a pathname from rmtab was a subdirectory of an export-point
1246 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1248 * README: Updated ftp site.
1250 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1252 * nfs-utils.spec (Version): Set to 0.1.2.
1254 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1255 * configure: Regenerated.
1259 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1261 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1262 (auth_authenticate_internal): Check for NULL return on forward
1264 (auth_authenticate): Handle "no_forward_dns".
1266 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1268 * Version 0.1.1 released.
1270 * nfs-utils.spec (Version): Set to 0.1.1.
1272 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1273 * configure: Regenerated.
1277 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1279 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1281 (Provides): Likewise.
1283 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1285 * Initial version 0.1 released.
1287 * configure.in (VERSION): Set to "nfs-utils 0.1".
1288 * configure: Regenerated.
1290 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1292 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1294 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1295 kernel only if the entry is exported to kernel.
1296 (unexportfs): Likewise.
1298 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1300 1/ utils/mountd/rmtab.c::mountlist_list
1302 This routine stats the rmtab file to see if it has changed. It
1303 if has, it cleans up it's old copy of the data. But it still
1304 always re-read the file, thus returning multiple copies of the
1305 data on consecutive calls without intervening changes.
1306 "Showmount -a" didn't show this as it appears to sort/unique the
1307 data, but 'strace showmount -a' showed that the size of the
1308 datagram that it received grew.
1310 I moved the getrmtabent loop inside the mtime test.
1312 2/ utils/exportfs/exportfs.c
1314 Many routines used the m_path field of m_export instead of
1316 According to the comment in nfslib.h, m_path should only
1317 be used when processing a mount request (i.e. in mountd)
1318 where the mountpoint may be a subdirectory of the export point.
1320 I changed all occurances of m_path to e_path
1323 3/ utils/exportfs/exportfs.c:main
1325 extra arguments are not meaningful with -a or -r, but
1326 exportfs accepted them and then ignored the -a/-r, expect that
1327 -r would still unexport everything first.
1329 I generate an error if there are extra args and f_all
1331 4/ utils/exportfs/exportfs.c:main
1332 extract dump out as a special case.
1334 5/ utils/exportfs/exportfs.c
1335 made f_reexport a local variable.
1338 6/ utils/exportfs/exportfs.c:main,exportall
1340 support/export/rmtab.c
1341 only mayexport on newly created entries, don't set xtabent at all
1343 7/ support/include/nfslib.h
1345 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1347 8/ support/export/xtab.c
1349 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1353 9/ support/export/xtab.c
1355 xtab_mount_read now sets m_exported, and NOT
1356 xtabent and mayexport
1358 removed the append arguement from xtab_write as it was
1361 added is_export flag to xtab_write similar to xtab_read
1362 if is_export, only write entries with m_xtabent or m_addxtab
1363 if !is_export, only write entries with m_exported
1365 10/ support/export/export.c::export_allowed_internal
1367 added test for exp->m_mayexport, as the export tree
1368 may have entries that are no longer allowed to be exported,
1369 and so shouldn't caused deduced exported by rmtab_read
1371 11/ utils/exportfs/exportfs.c::main
1372 error checking of flags.
1374 12/ utils/exportfs/exportfs.c
1376 total rewrite of export and unexport logic.
1378 - build an exportslist of valid exports, based on
1379 current etab file and arguments,
1380 - read rmtab to instantiate relevant wild card entries
1381 - read etab to find out what is currently exported
1382 - synchronise intention with reality
1383 - write out etab and xtab
1386 discard the m_addxtab flag
1387 add m_changed flag so we know what to report in exportfs
1389 14/ utils/mountd/auth.c:auth_authenticate
1391 the value returned by gethostbyaddr was trusted.
1393 It now follows this with a call to gethostbyname
1394 and checks that the address is in the list.
1396 15/ support/export/nfsctl.c::cltsetup,expsetup
1398 force client names to lowercase as kernel is
1401 16/ quietened a few compiler warnings
1403 17/ support/export/client:client_lookup
1405 look for pre-existing client with same name before creating
1408 18/ support/include/exportfs.h
1410 The ordering of the MCL_* enum was:
1411 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1413 I moved ANONYMOUS to the end.
1415 The ordering is significant when an export entry is being searched for to
1416 match a given address. There are two problems with ANONYMOUS being first.
1418 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1419 then the ro case will always be found first and the privileged hosts won't get
1421 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1422 export entry for the specific host, and writes it to xtab.
1423 When another request comes from the same host, the ANONYMOUS entry is found again,
1424 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1425 again. If causes bloat in xtab.
1427 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1429 19/ utils/exportfs/exportfs.man
1430 many updates to the man page to reflect changes to the code
1432 -----------------------
1438 - allow exportfs to modify rmtab file
1439 - make sure kernel never gets two clients with same IP address
1440 - possible kernel should reject
1441 - needs to be some way to lookup client in kernel by IP address
1442 - maybe get kernel to do case-insensitive comparisons on client names
1443 - remove unused clients from kernel
1445 - change etab to xtab and xtab to xtab.active
1447 - timestamp and/or statd-stamp in rmtab for removing old entries.
1449 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1451 * linux-nfs: New directory.
1452 * linux-nfs/ChangeLog: Moved from ..
1453 * linux-nfs/INSTALL: Likewise.
1454 * linux-nfs/KNOWNBUGS: Likewise.
1455 * linux-nfs/NEW: Likewise.
1456 * linux-nfs/README: Likewise.
1457 * linux-nfs/THANKS: Likewise.
1458 * linux-nfs/TODO: Likewise.
1460 * Starting from knfsd 1.4.7.