1 2002-09-12 H.J. Lu <hjl@lucon.org>
3 * support/include/nfslib.h (svctcp_socket): Protect it with
5 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
7 2002-09-12 H.J. Lu <hjl@lucon.org>
9 * configure.in (VERSION): Set to "1.0.2".
10 * configure: Regenerated.
11 * nfs-utils.spec: Likewise.
13 2002-09-12 H.J. Lu <hjl@lucon.org>
15 * configure.in: Check svctcp_socket and svcudp_socket.
16 * configure: Regenerated.
18 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
19 (HAVE_SVCUDP_SOCKET): New.
21 * support/include/nfslib.h (svctcp_socket): New.
24 * support/nfs/Makefile (OBJS): Add svc_socket.o.
26 * support/nfs/svc_socket.c: New.
28 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
29 svcudp_socket if port is unspecified.
31 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
33 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
34 (killer): New. Signal handler to unregister.
35 (main): Use killer. Call svcudp_socket to get the default
38 2002-09-02 Juan Gomez <juang@us.ibm.com>
39 NeilBrown <neilb@cse.unsw.edu.au>
41 Add -N option to statd to run in notify-only mode.
43 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
44 * utils/statd/statd.man: document -N
45 * utils/statd/statd.c: enabled -N, largely exists but needed to be
46 uncommented and completed
48 2002-09-02 Juan Gomez <juang@us.ibm.com>
49 NeilBrown <neilb@cse.unsw.edu.au>
51 statd to have " -P directory" arg to use that directory instead
52 of /var/lib/nfs. This is useful for fail-over clusters.
54 * utils/statd/statd.h: define SM_DIR etc as var, not const.
55 * utils/statd/statd.c: define "-P" option to set SM_*
57 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
59 * utils/statd/notify.c: ditto.
60 * utils/statd/statd.man: document -P option.
62 2002-08-26 Chip Salzenberg <chip@pobox.com>
64 * utils/nfsd/nfsd.man: Fix typo.
65 * debian/changelog: Version 1.0.1-1.
67 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
69 * let parseopts know if /etc/exports was being read or not,
70 and have it only print "no sync or async" warning in that case.
72 2002-05-06 Tom McNeal <trmcneal@attbi.com>
73 NeilBrown <neilb@cse.unsw.edu.au>
75 * utils/nfsstat/nfsstat.c: Handle differing format for
76 /proc/net/rpc/nfsd between pre and post 2.4.0
78 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
79 James Pearson <james-p@moving-picture.com>
81 * support/nfs/rmtab.c(fendrmtabent): sync changes to
82 storage before returning, as this is critical state
84 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
85 H.J. Lu <hjl@lucon.org>
87 * etc/redhat/nfs: New.
89 2002-04-08 H.J. Lu <hjl@lucon.org>
91 * etc/redhat/nfs.init: Updated.
93 * nfs-utils.spec.in: Updated.
94 * nfs-utils.spec: Regenerated.
96 * utils/mountd/mountd.c (longopts): Fix a typo.
98 * utils/mountd/mountd.man: Updated.
100 2002-04-07 H.J. Lu <hjl@lucon.org>
102 * etc/redhat/nfslock.init (restart): Just do stop and start.
104 * etc/redhat/nfs.init: Fix a typo.
106 2002-04-07 H.J. Lu <hjl@lucon.org>
108 * configure.in (VERSION): Set to "1.0.1".
109 * configure: Regenerated.
110 * nfs-utils.spec: Likewise.
112 * README: Updated for 1.0.1.
114 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
115 H.J. Lu <hjl@lucon.org>
117 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
119 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
120 NeilBrown <neilb@cse.unsw.edu.au>
122 Add support for fsid=nn export option so that device
123 numbers don't go in filehandles.
124 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
125 is set, pass the fsid in-place of the device number
126 * support/nfs/exports.c: parse and print fsid= option.
127 Also check if efname has been set, and use "command line"
128 instead in error messages.
129 Also, use strtol instead of atoi for anon[ug]id= so that
130 bad numbers cause errors.
132 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
133 NeilBrown <neilb@cse.unsw.edu.au>
135 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
136 flag so that "sync" becomes the default.
137 Check that either "sync" or "async" is given as an option
138 and warn if neither are present
139 * utils/exportfs/exports.man: change documentation for "sync"
140 to be documentation for "async".
141 * utils/exportfs/exportfs.man: note that "sync" is the default
145 2002-01-02 Chip Salzenberg <chip@pobox.com>
147 * support/export/nfsctl.c (expsetup): Don't export entries that
148 specify id mappings not supported by the kernel. No extant kernel
149 supports any significant mapping, only 'identity' (i.e. none).
150 When other mappings are supported, this code will need changing.
151 * debian/changelog: Version 1.0-2.
153 2001-12-26 Chip Salzenberg <chip@pobox.com>
155 * nfs-utils.spec (Version): Set to "1.0".
156 * configure.in (VERSION): Likewise.
157 * configure: Regenerated.
159 * debian/changelog: Version 1.0-1.
161 * utils/exportfs/exports.man: Emphasize the need for options to
162 immediately follow client names. Explain that wildcards don't
163 usually work on addresses, but may work when reverse DNS fails.
164 Comment out a leftover TP that was TPing our indentation.
165 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
166 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
167 * debian/changelog: Version 0.3.3-6.
169 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
171 * support/export/client.c(client_lookup): If a host has multiple
172 IP addresses, then we must always use the result of a
173 gethostbyname, not that of gethostbyaddr for exporting
175 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
177 * support/export/client.c (client_lookup): use strcasecmp when
179 * support/nfs/export.c (getexportent): add fromkernel arg and use
180 different defaults as kernels prior to 2.4.11 assume different
181 defaults in /proc/fs/nfs/exports
182 * support/include/nfslib.h, support/export/export.c,
183 support/export/xtab.c: support extra "fromkernel" arg for
186 2001-12-13 Chip Salzenberg <chip@pobox.com>
188 * debian/changelog: Version 0.3.3-5.
190 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
192 * support/nfs/xio.c (xskip): Call `xungetc' instead of
193 `ungetc' to keep x_line more properly.
195 2001-11-26 Chip Salzenberg <chip@pobox.com>
197 * utils/showmount/showmount.c (main): Don't assume that strings
198 starting with digits are IP addresses.
199 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
200 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
201 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
202 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
203 man pages: We check host names *and* addresses with tcpwrappers.
204 * debian/changelog: Version 0.3.3-4.
206 2001-11-21 Chip Salzenberg <chip@pobox.com>
208 * support/nfs/clients.c (cfname): Added: current clients file name.
209 (setnfsclntent): Set it.
210 ({get,end}nfsclntent, syntaxerr): Use it.
211 * support/nfs/exports.c (efname): Added: current exports file name.
212 (setnfsexportent): Set it.
213 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
214 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
215 * debian/changelog: Version 0.3.3-3.
217 2001-10-11 Chip Salzenberg <chip@pobox.com>
219 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
220 * debian/changelog: Version 0.3.3-2.
222 2001-10-08 Chip Salzenberg <chip@pobox.com>
224 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
225 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
226 * utils/mountd/mountd.man: Update paths to /var/lib.
227 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
229 2001-10-06 Preston Brown <pbrown@redhat.com>
231 * utils/nfsstat/nfsstat.man: Updated.
233 2001-09-24 H.J. Lu <hjl@lucon.org>
235 * configure.in (VERSION): Set to "0.3.3".
236 * configure: Regenerated.
237 * nfs-utils.spec: Likewise.
239 * README: Updated for 0.3.3.
241 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
243 Arrange that "exportfs -au" never does DNS lookup:
245 * support/export/client.c (client_lookup) : add "canonical"
246 flag which says that the hostname is known to be canonical, so
249 * support/export/export.c (export_create) : add "canonical"
250 flag to be passed down to client_lookup
251 * support/export/export.c (export_lookup) : Likewise
253 * support/export/xtab.c (xtab_read) : pass appropriate
254 "canonical" flag to export_lookup and export_create:
255 set if reading list of filesystems currently exports
258 * support/export/export.c (export_read) : pass 0 as
259 "canonical" flag to export_lookup and export_create
260 * support/export/rmtab.s (rmtab_read) : Likewise
262 * support/include/exportfs.h : redeclare various routines
263 to have "canonical" flag
265 * utils/exportfs/exportfs.c (main) : redo logic for
266 "-au" to read in what is currently exported, but never even
267 look at what "should" be exported.
269 * utils/exportfs/exportfs.c (unexportall) : remove this
270 routine. Functionality is completely included in
273 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
274 flag to zero in calls to export_lookup and export_create.
277 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
278 Anne Milicia <milicia@missioncriticallinux.com>
280 * support/export/client.c (client_lookup) call gethostbyadd
281 to make sure that we have a canonical hostname, even for
283 * utils/exportfs/exportfs.c (exportfs) Likewise
285 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
287 * support/nfs/exports.c (putexportent): \octal quote any spaces
289 * support/nfs/xio.c (xgettok): recognise double-quote and
290 \octal quoting in path names
291 * utils/exportfs/exports.man: document quoting conventions
294 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
296 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
297 change from 2000-08-02: It causes problems if someone exports
298 to both a hostname and IP addresses. nfs-utils must be
299 consistant about the canonical name that it chooses.
301 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
302 H.J. Lu <hjl@lucon.org>
304 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
306 * utils/statd/statd.c (longopts): Add "name".
307 (usage): Add "-n/--name".
308 (main): Set MY_NAME with "-n/--name".
310 * utils/statd/state.c (change_state): Set MY_NAME only if it
313 * utils/statd/statd.man: Updated for "-n/--name".
315 2001-07-26 H.J. Lu <hjl@lucon.org>
317 * nfs-utils.spec (Release): Set to 8.
319 2001-07-25 H.J. Lu <hjl@lucon.org>
321 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
324 2001-06-27 H.J. Lu <hjl@lucon.org>
326 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
328 2001-06-27 H.J. Lu <hjl@lucon.org>
330 * utils/rquotad/rquota_server.c: Don't call statfs () for
331 the block size. Use BLOCK_SIZE instead.
333 2001-06-27 H.J. Lu <hjl@lucon.org>
335 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
336 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
338 * configure.in (enable_nfsv3): Set to yes by default.
339 (--enable-rquotad): Added
340 (AC_PROG_CXX): Removed.
341 (AC_OUTPUT): Add utils/Makefile.
342 (CC_FOR_BUILD): Renamed from BUILD_CC.
343 * configure: Regenerated.
345 * utils/Makefile: Removed.
347 * utils/Makefile.in: New.
349 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
351 (CC_FOR_BUILD): Renamed from BUILD_CC.
352 * nfs-utils.spec: Regenerated.
354 2001-06-15 Chip Salzenberg <chip@debian.org>
356 * debian/changelog: Version 0.3.2-2.
357 * debian/*.init: Minor fixes.
359 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
361 * etc/nodist/nfs-server: Fixed a bug where the script would
362 disable mounts from NFSv3 clients if NFSv3 is present.
364 2001-06-05 H.J. Lu <hjl@lucon.org>
366 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
367 (main): Support --descriptors/-o to set the limit of the number
368 of open file descriptors.
371 * utils/mountd/mountd.man: Updated for --descriptors/-o.
373 2001-06-04 H.J. Lu <hjl@lucon.org>
375 * nfs-utils.spec (Release): Set to 6.
377 2001-05-28 H.J. Lu <hjl@lucon.org>
379 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
380 * utils/mountd/mountd.c (main): Likewise.
381 * utils/nfsd/nfsd.c (main): Likewise.
382 * utils/rquotad/rquota_svc.c (main): Likewise.
384 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
386 * support/export/client.c (client_check): Check IP address
389 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
391 * support/export/client.c (client_gettype): Treat `*' as
394 2001-04-22 H.J. Lu <hjl@lucon.org>
396 * nfs-utils.spec.in: Fix a typo.
397 * nfs-utils.spec: Regenerated.
399 2001-04-21 H.J. Lu <hjl@lucon.org>
401 * nfs-utils.spec.in: Fix cross build.
402 * nfs-utils.spec: Regenerated.
405 2001-04-18 H.J. Lu <hjl@lucon.org>
407 * nfs-utils.spec.in: Support cross build.
408 * nfs-utils.spec: Regenerated.
414 * config.mk.in (BUILD_CC): New.
415 (CC): Set to $(BUILD_CC) if BUILD is defined.
418 (RANLIB): Set to @RANLIB@.
420 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
421 * configure: Regenerated.
423 * tools/rpcgen/Makefile (BUILD): Set to true.
425 2001-04-01 Chip Salzenberg <chip@valinux.com>
427 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
428 redundant, and sometimes broken, declaration of svc_fdset;
430 * support/nfs/rpcmisc.c (closedown): Likewise.
432 2001-03-21 H.J. Lu <hjl@lucon.org>
434 * nfs-utils.spec: Regenerated.
437 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
439 * utils/statd/statd.c (main): make sure file descriptors 0-2
440 are open to /dev/null.
442 2001-03-21 H.J. Lu <hjl@lucon.org>
444 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
445 * support/nfs/rpcmisc.c: Likewise.
446 * utils/rquotad/rquota_svc.c: Likewise.
447 * utils/rquotad/rquotad.man: Likewise.
448 * utils/statd/Makefile: Likewise.
449 * utils/statd/rmtcall.c: Likewise.
450 * utils/statd/simulate.c: Likewise.
451 * utils/statd/statd.c: Likewise.
452 * utils/statd/statd.man: Likewise.
454 2001-03-11 H.J. Lu <hjl@lucon.org>
456 * configure.in (RELEASE): New. Default to 1, set by
457 --with-release=XXX. Substitute nfs-utils.spec.
458 * nfs-utils.spec.in (Release): Set to @RELEASE@.
459 * configure: Regenerated.
460 * nfs-utils.spec: Likewise.
462 2001-03-11 H.J. Lu <hjl@lucon.org>
464 * utils/rquotad/rquotad.man: Fix a typo.
466 2001-03-11 H.J. Lu <hjl@lucon.org>
468 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
469 * support/nfs/rpcmisc.c: Likewise.
470 * utils/rquotad/rquota_svc.c: Likewise.
471 * utils/rquotad/rquotad.man: Likewise.
472 * utils/statd/Makefile: Likewise.
473 * utils/statd/rmtcall.c: Likewise.
474 * utils/statd/simulate.c: Likewise.
475 * utils/statd/statd.c: Likewise.
476 * utils/statd/statd.man: Likewise.
478 2001-03-10 H.J. Lu <hjl@lucon.org>
480 * configure.in (VERSION): Set to "0.3.2".
481 * configure: Regenerated.
482 * nfs-utils.spec: Likewise.
484 * README: Updated for 0.3.2.
486 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
488 * utils/rquotad/rquotad.man: Updated for -p.
489 * utils/statd/statd.man: Likewise.
491 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
493 * support/nfs/rpcmisc.c: export makesock()
495 * support/include/rpcmisc.h (makesock): Declared.
497 * utils/rquotad/rquota_svc.c: added longopts, added support for
498 specifying the port to bind to on the command line.
500 * utils/statd/statd.c: ditto, also specify port used for
501 outgoing connections.
502 (do_regist): Removed.
504 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
505 get_socket. Make it extern.
507 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
508 instead of do_regist.
510 * utils/statd/Makefile (LIBS): link with our own libnfs
512 2001-03-09 H.J. Lu <hjl@lucon.org>
514 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
515 * etc/nodist/nfs-client: Likewise.
517 2001-02-26 Chip Salzenberg <chip@valinux.com>
519 * debian/changelog: Version 0.3.1-1.
520 * Mention upstream source and license in copyright file.
521 * Add build-Depends for debhelper and libwrap0-dev.
523 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
525 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
526 * etc/nodist/nfs-client: Likewise.
528 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
530 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
533 2001-02-17 Patrick J. LoPresti <patl@curl.com>
535 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
538 2001-02-14 H.J. Lu <hjl@lucon.org>
540 * utils/statd/rmtcall.c: Include <time.h>.
541 * utils/statd/svc_run.c: Likewise.
543 2001-02-14 H.J. Lu <hjl@lucon.org>
545 * configure.in (VERSION): Set to "0.3.1".
546 * configure: Regenerated.
547 * nfs-utils.spec: Likewise.
549 * README: Updated for 0.3.1.
551 2001-02-14 H.J. Lu <hjl@lucon.org>
553 * support/nfs/rpcmisc.c: Include <time.h>.
555 2001-02-14 Chip Salzenberg <chip@valinux.com>
557 * debian/control: Change priority of nhfsstone package to 'extra'.
559 2001-02-12 Chip Salzenberg <chip@valinux.com>
561 * debian/changelog: Version 0.3-2.
563 2001-02-02 H.J. Lu <hjl@lucon.org>
565 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
567 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
568 out SO_SNDBUF/SO_RCVBUF.
569 (rpc_init): Remove bufsize and remove socksz in calls to
572 * utils/mountd/mountd.c (main): Remove bufsize in calls to
575 2001-01-28 Chip Salzenberg <chip@valinux.com>
577 * debian/changelog: Version 0.3-1.
579 2001-01-25 H.J. Lu <hjl@lucon.org>
581 * configure.in (VERSION): Set to "0.3".
582 * configure: Regenerated.
583 * nfs-utils.spec: Likewise.
585 * README: Updated for 0.3.
587 2001-01-25 H.J. Lu <hjl@lucon.org>
589 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
591 2001-01-20 Chip Salzenberg <chip@valinux.com>
593 * support/include/xio.h (xgetc): Declare to return int.
594 * support/nfs/xio.c (xgetc): Return int.
595 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
596 * utils/statd/statd.c (main): Use int for value of getopt.
597 * debian/changelog: Version 0.2.1-5.
599 2000-12-10 Chip Salzenberg <chip@valinux.com>
601 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
602 program and procedure numbers of kernel lockd's callback. Also,
603 besides the old (and broken) procedure #24, allow #16 per Trond.
605 2000-12-03 Chip Salzenberg <chip@valinux.com>
607 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
608 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
609 * debian/changelog: Version 0.2.1-4.
611 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
613 * utils/mountd/auth.c (auth_authenticate): Log the bad path
616 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
618 * support/nfs/exports.c (getexportent): Check for host name
619 without option, or options without hostname, and print a warning,
620 as this is most likely a typo.
622 2000-11-19 Chip Salzenberg <chip@valinux.com>
624 * debian/control: Add dependency on portmap.
625 * debian/changelog: Version 0.2.1-3.
627 2000-11-10 H.J. Lu <hjl@lucon.org>
629 * nfs-utils.spec.in: Don't use libtool.
630 Add ChangeLog and COPYING to doc.
631 * nfs-utils.spec: Rebuild.
633 2000-11-09 H.J. Lu <hjl@lucon.org>
635 * etc/redhat/nfs.init (start): Back out the last change.
637 2000-11-09 H.J. Lu <hjl@lucon.org>
639 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
640 TCP is not supported by kernel.
642 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
644 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
645 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
647 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
649 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
651 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
652 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
653 callbacks to local lockd.
655 2000-10-18 Scott McDermott <mcdermot@questra.com>
657 * utils/exportfs/exports.man: Updated for CIDR netmask.
659 2000-10-17 Scott McDermott <mcdermot@questra.com>
661 * support/export/client.c (client_init): Support CIDR netmask
664 2000-10-11 H.J. Lu <hjl@lucon.org>
666 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
667 * configure: Rebuilt.
669 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
671 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
672 "/var/lib/nfs/state".
674 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
676 * utils/statd/statd.h (run_mode): New global bitmask of runtime
677 behaviors: fg/bg, logging, etc.
678 * utils/statd/statd.c: New command line options: -V -h -? -d .
679 * utils/statd/statd.man: Update for changes to statd.
681 * utils/statd/log.h (log_init): Remove parameter of function; use
682 global variable "name_p" instead.
683 * utils/statd/log.c: Add support for logging to stderr.
685 * utils/statd/notlist.c: Partially rewrite notify list handling
686 functions. Eliminate run-off-end-of-list bug when calling
687 nlist_insert_timer. Add lots of comments.
689 2000-09-27 H.J. Lu <hjl@lucon.org>
691 * README: Updated for RedHat 7.0.
693 2000-09-27 H.J. Lu <hjl@lucon.org>
695 * nfs-utils.spec: Rebuild.
697 2000-09-27 H.J. Lu <hjl@lucon.org>
699 * README: Updated for 0.2.1.
701 2000-09-27 H.J. Lu <hjl@lucon.org>
703 * nfs-utils.spec.in: Updated to use rpm macros and support
706 2000-09-25 H.J. Lu <hjl@lucon.org>
708 * configure.in (VERSION): Set to "0.2.1".
709 * configure: Regenerated.
710 * nfs-utils.spec: Updated.
712 2000-09-25 H.J. Lu <hjl@lucon.org>
714 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
715 non-NULL hostent is always returned.
717 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
719 * etc/redhat/nfslock.init: don't kill lockd processes that do not
720 have an executable (i.e. kernel threads)
722 2000-09-01 H.J. Lu <hjl@lucon.org>
724 * README: Updated for 0.2.
726 2000-09-01 Jay Weber <jweber@valinux.com>
728 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
729 supporting version 3 of nfs if available, else it will fall back to
730 version 2 support only.
732 2000-08-30 H.J. Lu <hjl@lucon.org>
734 * configure.in (VERSION): Set to "0.2".
735 * configure: Regenerated.
736 * nfs-utils.spec: Updated.
738 2000-08-25 H.J. Lu <hjl@lucon.org>
740 * support/misc/tcpwrapper.c (logit): Modify the log output.
742 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
744 * utils/rquotad/rquotad.man, utils/statd/statd.man,
745 utils/mountd/mountd.man: updated
747 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
748 * utils/rquotad/Makefile: fix comment
750 * support/misc/tcpwrapper.c (logit): added comment about waiting
751 for the children after fork()
753 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
754 zombies behind (from logit()'s fork)
755 * utils/rquotad/rquota_svc.c (main): ditto
756 * utils/statd/statd.c (main): ditto
758 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
759 to check_default instead of 0, for prognum
761 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
762 to check_default instead of 0, for prognum
764 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
765 HAVE_TCP_WRAPPER is defined.
766 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
767 defined. Reject an RPC call if check_default () fails.
769 2000-08-25 H.J. Lu <hjl@lucon.org>
771 * support/include/tcpwrapper.h: New for the tcp wrapper
773 * support/misc/Makefile: Likewise.
774 * support/misc/from_local.c: Likewise.
775 * support/misc/tcpwrapper.c: Likewise.
777 * aclocal.m4 (AC_TCP_WRAPPER): New.
778 * configure.in: Use it. Substitute LIBWRAP.
779 * configure: Rebuilt.
781 * config.mk.in (LIBNSL): New.
784 * support/Makefile (SUBDIRS): Add misc.
786 * support/lib/Makefile (LIBS): Add libmisc.a.
788 * utils/rquotad/Makefile (LIBS): Add
790 -lmisc $(LIBWRAP) $(LIBNSL)
792 * utils/statd/Makefile (LIBS): Likewise.
794 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
795 HAVE_TCP_WRAPPER is defined.
796 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
797 defined. Reject an RPC call if check_default () fails.
799 * utils/statd/statd.c: Include "tcpwrapper.h" if
800 HAVE_TCP_WRAPPER is defined.
801 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
802 check_default () before calling sm_prog_1 (). Define it as
803 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
805 2000-08-25 Chip Salzenberg <chip@valinux.com>
807 * debian/*: Complete Debian build support.
808 * etc/debian/*: Remove.
810 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
812 * support/export/client.c(client_check): removed the "dot+1" as a
813 ypdomain argument to innetgr as this is entirely bogus.
814 It should always be NULL.
816 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
818 * support/export/xtab.c(xtab_read): introduce new mode for
819 reading xtab. i.e. a list of exports that might be known to the
820 kernel, or might not. These are flagged as m_exported == -1
821 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
822 value "2" for xtab, meaning don't trust this too much.
823 * support/include/exportfs.h(struct mexport): changed m_exported
824 from one bit to an int so that it can hold new value
825 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
826 kernel if it is uncertain whether the kernel knows (m_exported == -1)
827 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
830 * support/nfs/xio.c(xflock): added O_CREAT when getting
831 a write lock so that missing files aren't fatal.
833 * etc/debian/nfs-common: new file from "potato"
834 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
836 2000-08-09 H.J. Lu <hjl@lucon.org>
838 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
839 startup to ensure all existing clients work fine.
841 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
842 to xtab_read () for reading _PATH_XTAB.
844 2000-08-02 H.J. Lu <hjl@lucon.org>
846 * utils/mountd/auth.c (auth_authenticate_internal): Try to
847 avoid the reverse name lookup.
849 2000-07-04 H.J. Lu <hjl@lucon.org>
851 * utils/statd/log.c: Include <stdlib.h> for exit ().
853 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
856 2000-07-04 H.J. Lu <hjl@lucon.org>
858 * configure.in (VERSION): Set to "0.1.9.1".
859 * configure: Regenerated.
860 * nfs-utils.spec: Updated.
864 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
866 * support/export/hostname.c (hostent_dup): Handle the NULL
869 2000-07-03 H.J. Lu <hjl@lucon.org>
871 * README: Update the util-linux requirement.
873 2000-07-03 H.J. Lu <hjl@lucon.org>
875 * configure.in (VERSION): Set to "0.1.9".
876 * configure: Regenerated.
877 * nfs-utils.spec: Updated.
881 2000-07-03 H.J. Lu <hjl@lucon.org>
883 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
884 stop to ensure all clients can still access the server
885 before it is shutdown.
887 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
889 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
890 calls with format string.
892 2000-06-28 Chip Salzenberg <chip@valinux.com>
894 * utils/statd/log.c (log): Call syslog with format string.
896 2000-06-27 H.J. Lu <hjl@lucon.org>
898 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
901 2000-06-27 H.J. Lu <hjl@lucon.org>
905 2000-06-27 H.J. Lu <hjl@lucon.org>
907 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
908 startup to ensure all existing clients are exported.
910 * configure.in (VERSION): Set to "0.1.8.2".
911 * configure: Regenerated.
912 * nfs-utils.spec: Updated.
914 2000-06-06 H.J. Lu <hjl@lucon.org>
916 * configure.in (VERSION): Set to "0.1.8.1".
917 * configure: Regenerated.
918 * nfs-utils.spec: Updated.
920 2000-06-06 H.J. Lu <hjl@lucon.org>
922 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
923 to "struct sockaddr_in *" for glibc 2.2.
924 (mount_umnt_1_svc): Likewise.
925 (mount_umntall_1_svc): Likewise.
926 (mount_export_1_svc): Likewise.
927 (mount_exportall_1_svc): Likewise.
928 (mount_pathconf_2_svc): Likewise.
929 (get_rootfh): Likewise.
931 2000-06-04 H.J. Lu <hjl@lucon.org>
933 * etc/redhat/nfs.init: Fix a typo in comment.
935 2000-05-31 H.J. Lu <hjl@lucon.org>
937 * configure.in (VERSION): Set to "0.1.8".
938 * configure: Regenerated.
939 * nfs-utils.spec: Updated.
943 2000-05-31 H.J. Lu <hjl@lucon.org>
945 * configure.in (VERSION): Set to "0.1.7.5".
946 * configure: Regenerated.
947 * nfs-utils.spec: Updated.
949 * support/include/nfslib.h (exportent): Add a new field,
950 r_count, to count the number of mounts from a client.
951 (getrmtabent): Take a new argument for position in file.
952 (putrmtabent): Likewise.
953 (fgetrmtabent): Likewise.
954 (fputrmtabent): Likewise.
955 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
956 for position in file.
957 (fgetrmtabent): Likewise.
958 (putrmtabent): Likewise.
959 (fputrmtabent): Likewise.
961 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
964 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
965 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
967 * utils/mountd/rmtab.c (mountlist_add): Likewise.
968 (mountlist_del): Likewise.
969 (mountlist_del_all): Likewise.
970 (mountlist_list): Likewise.
972 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
973 for the existing entry and initialize "r_count" to 1.
974 (mountlist_del): Decrement "r_count".
976 2000-05-18 H.J. Lu <hjl@lucon.org>
978 * configure.in (VERSION): Set to "0.1.7.4".
979 * configure: Regenerated.
980 * nfs-utils.spec: Updated.
982 2000-05-18 H.J. Lu <hjl@lucon.org>
984 * etc/redhat/nfs.init (restart): Just do stop and start.
986 2000-05-09 Jay Weber <jweber@valinux.com>
988 * utils/rquotad/hasquota.c: added support for ext3 recognition
990 * utils/rquotad/mntent.h: Likewise.
992 2000-05-01 H.J. Lu <hjl@lucon.org>
994 * configure.in (VERSION): Set to "0.1.7.3".
995 * configure: Regenerated.
996 * nfs-utils.spec: Updated.
998 2000-05-01 H.J. Lu <hjl@lucon.org>
1000 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1001 mounting poins in /etc/fstab.
1003 2000-05-01 H.J. Lu <hjl@lucon.org>
1005 * configure.in (VERSION): Set to "0.1.7.2".
1006 * configure: Regenerated.
1007 * nfs-utils.spec: Updated.
1009 2000-05-01 H.J. Lu <hjl@lucon.org>
1011 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1012 to check for the mounting point.
1014 2000-04-29 Chip Salzenberg <chip@valinux.com>
1015 Neil Brown <neilb@cse.unsw.edu.au>
1017 * Really re-use RPC ports.
1018 (Fixes earlier patch. Sorry, Neil.)
1020 2000-04-26 H.J. Lu <hjl@lucon.org>
1022 * configure.in (VERSION): Set to "0.1.7.1".
1023 * configure: Regenerated.
1024 * nfs-utils.spec: Updated.
1026 2000-04-26 H.J. Lu <hjl@lucon.org>
1028 * etc/redhat/nfslock.init: Check if lockd exits before killing
1031 2000-04-25 H.J. Lu <hjl@lucon.org>
1033 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1035 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1037 * support/nfs/exports.c (parsesquash): Correctly set the
1040 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1042 * support/include/nfs/nfs.h: Removed knowledge of internals of
1043 kernel filehandles (which can change) and defined nfs_fh_size
1044 which has variable size
1046 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1047 get variable sized file handles, and change getfh{,old} to
1050 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1053 * tools/Makefile, tools/nlmtest/nlmtest.c
1054 nlmtest.c depended on internel format of file handles, so now
1058 2000-03-12 Chip Salzenberg <chip@valinux.com>
1059 Neil Brown <neilb@cse.unsw.edu.au>
1061 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1063 2000-03-13 H.J. Lu <hjl@lucon.org>
1065 * etc/redhat/nfsd.init: Updated.
1067 * etc/redhat/nfslock.init: Updated.
1069 * nfs-utils.spec.in: Updated.
1071 * configure.in (VERSION): Set to "0.1.7".
1072 * configure: Regenerated.
1073 * nfs-utils.spec: Updated.
1077 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1079 * utils/exportfs/exportfs.c (dump): Included printing of
1080 nohide, no_subtree_check, and insecure_locks
1082 2000-02-26 Chip Salzenberg <chip@valinux.com>
1084 * config.mk.in (INSTALLSUID): Strip ("-s").
1085 (INSTALLSCRIPT): Define.
1086 * utils/nhfsstone/Makefile: Use it.
1088 2000-02-26 Chip Salzenberg <chip@valinux.com>
1090 * utils/lockd/lockd.man: Create.
1091 * utils/lockd/Makefile: Install it.
1092 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1093 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1094 * utils/nhfsstone/Makefile: Install the helper scripts and
1096 * utils/exportfs/exports.man: Fix typo.
1098 2000-02-26 Chip Salzenberg <chip@valinux.com>
1100 * support/nfs/xio.c (xungetc): Decrement line number when
1101 character to unget is newline. Make first parameter int, so
1102 it can distinguish EOF from \377.
1103 * support/include/xio.h (xungetc): Adjust prototype.
1105 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1107 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1108 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1109 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1111 This is for supporting a new option introduced in 2.3.42
1113 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1115 * COPYING: Added. GPL.
1117 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1119 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1120 to get the block size.
1122 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1124 * nfs-utils.spec.in: Update ftp site.
1126 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1128 * README: Update hostnames.
1130 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1132 * configure.in (VERSION): Set to "0.1.6".
1133 * configure: Regenerated.
1134 * nfs-utils.spec: Updated.
1138 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1140 * utils/mountd/auth.c (auth_authenticate_internal): Call
1141 xstrdup for hostname before passing it to gethostbyname.
1143 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1146 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1148 * README: Update the mailing list address.
1150 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1152 * configure.in (VERSION): Set to "0.1.5".
1153 * configure: Regenerated.
1154 * nfs-utils.spec: Updated.
1158 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1160 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1163 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1165 * configure.in (VERSION): Set to "0.1.4".
1166 * configure: Regenerated.
1167 * nfs-utils.spec: Updated.
1171 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1173 * nfs-utils.spec.in: New file.
1175 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1177 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1179 1999-12-04 Chip Salzenberg <chip@valinux.com>
1181 * config.mk.in: Use $(CC) as set by configure.
1183 1999-12-04 Chip Salzenberg <chip@valinux.com>
1185 * rules.mk: Call $(MAKE) with $(MFLAGS).
1187 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1189 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1190 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1192 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1194 * nfs-utils.spec (Version): Set to 0.1.3.
1196 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1197 * configure: Regenerated.
1201 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1203 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1204 (_PATH_DEV_DSK): Likewise.
1205 (getquotainfo): Match the mounting point from /etc/mtab
1206 instead of calling nfsmount_to_devname ().
1208 1999-11-24 Chip Salzenberg <chip@valinux.com>
1210 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1211 to the new port 24 as well as the historical port 100021.
1213 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1215 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1216 stopping nfsd to stop spurious ESTALE on server shutdown.
1218 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1220 * support/nfs/exports.c (parseopts): make copy of opt string
1221 before 'nul'ing out commas so that
1223 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1225 applies both options to both exports.
1227 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1229 * README: Fix a few typos.
1231 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1233 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1234 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1235 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1236 (unsigned_dec): Likewise.
1237 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1238 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1240 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1242 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1243 (unsigned_dec): Likewise.
1244 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1245 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1246 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1248 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1250 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1251 * support/nfs/exports.c: added {no_,}subtree_check and changed
1253 * utils/exportfs/exports.man: added no_subtree_check and nohide
1254 and removed irrelevant stuff from unfsd.
1255 * support/export/rmtab.c: rmtab_read didn't quite do the right
1256 thing if a pathname from rmtab was a subdirectory of an export-point
1258 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1260 * README: Updated ftp site.
1262 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1264 * nfs-utils.spec (Version): Set to 0.1.2.
1266 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1267 * configure: Regenerated.
1271 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1273 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1274 (auth_authenticate_internal): Check for NULL return on forward
1276 (auth_authenticate): Handle "no_forward_dns".
1278 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1280 * Version 0.1.1 released.
1282 * nfs-utils.spec (Version): Set to 0.1.1.
1284 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1285 * configure: Regenerated.
1289 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1291 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1293 (Provides): Likewise.
1295 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1297 * Initial version 0.1 released.
1299 * configure.in (VERSION): Set to "nfs-utils 0.1".
1300 * configure: Regenerated.
1302 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1304 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1306 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1307 kernel only if the entry is exported to kernel.
1308 (unexportfs): Likewise.
1310 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1312 1/ utils/mountd/rmtab.c::mountlist_list
1314 This routine stats the rmtab file to see if it has changed. It
1315 if has, it cleans up it's old copy of the data. But it still
1316 always re-read the file, thus returning multiple copies of the
1317 data on consecutive calls without intervening changes.
1318 "Showmount -a" didn't show this as it appears to sort/unique the
1319 data, but 'strace showmount -a' showed that the size of the
1320 datagram that it received grew.
1322 I moved the getrmtabent loop inside the mtime test.
1324 2/ utils/exportfs/exportfs.c
1326 Many routines used the m_path field of m_export instead of
1328 According to the comment in nfslib.h, m_path should only
1329 be used when processing a mount request (i.e. in mountd)
1330 where the mountpoint may be a subdirectory of the export point.
1332 I changed all occurances of m_path to e_path
1335 3/ utils/exportfs/exportfs.c:main
1337 extra arguments are not meaningful with -a or -r, but
1338 exportfs accepted them and then ignored the -a/-r, expect that
1339 -r would still unexport everything first.
1341 I generate an error if there are extra args and f_all
1343 4/ utils/exportfs/exportfs.c:main
1344 extract dump out as a special case.
1346 5/ utils/exportfs/exportfs.c
1347 made f_reexport a local variable.
1350 6/ utils/exportfs/exportfs.c:main,exportall
1352 support/export/rmtab.c
1353 only mayexport on newly created entries, don't set xtabent at all
1355 7/ support/include/nfslib.h
1357 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1359 8/ support/export/xtab.c
1361 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1365 9/ support/export/xtab.c
1367 xtab_mount_read now sets m_exported, and NOT
1368 xtabent and mayexport
1370 removed the append arguement from xtab_write as it was
1373 added is_export flag to xtab_write similar to xtab_read
1374 if is_export, only write entries with m_xtabent or m_addxtab
1375 if !is_export, only write entries with m_exported
1377 10/ support/export/export.c::export_allowed_internal
1379 added test for exp->m_mayexport, as the export tree
1380 may have entries that are no longer allowed to be exported,
1381 and so shouldn't caused deduced exported by rmtab_read
1383 11/ utils/exportfs/exportfs.c::main
1384 error checking of flags.
1386 12/ utils/exportfs/exportfs.c
1388 total rewrite of export and unexport logic.
1390 - build an exportslist of valid exports, based on
1391 current etab file and arguments,
1392 - read rmtab to instantiate relevant wild card entries
1393 - read etab to find out what is currently exported
1394 - synchronise intention with reality
1395 - write out etab and xtab
1398 discard the m_addxtab flag
1399 add m_changed flag so we know what to report in exportfs
1401 14/ utils/mountd/auth.c:auth_authenticate
1403 the value returned by gethostbyaddr was trusted.
1405 It now follows this with a call to gethostbyname
1406 and checks that the address is in the list.
1408 15/ support/export/nfsctl.c::cltsetup,expsetup
1410 force client names to lowercase as kernel is
1413 16/ quietened a few compiler warnings
1415 17/ support/export/client:client_lookup
1417 look for pre-existing client with same name before creating
1420 18/ support/include/exportfs.h
1422 The ordering of the MCL_* enum was:
1423 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1425 I moved ANONYMOUS to the end.
1427 The ordering is significant when an export entry is being searched for to
1428 match a given address. There are two problems with ANONYMOUS being first.
1430 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1431 then the ro case will always be found first and the privileged hosts won't get
1433 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1434 export entry for the specific host, and writes it to xtab.
1435 When another request comes from the same host, the ANONYMOUS entry is found again,
1436 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1437 again. If causes bloat in xtab.
1439 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1441 19/ utils/exportfs/exportfs.man
1442 many updates to the man page to reflect changes to the code
1444 -----------------------
1450 - allow exportfs to modify rmtab file
1451 - make sure kernel never gets two clients with same IP address
1452 - possible kernel should reject
1453 - needs to be some way to lookup client in kernel by IP address
1454 - maybe get kernel to do case-insensitive comparisons on client names
1455 - remove unused clients from kernel
1457 - change etab to xtab and xtab to xtab.active
1459 - timestamp and/or statd-stamp in rmtab for removing old entries.
1461 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1463 * linux-nfs: New directory.
1464 * linux-nfs/ChangeLog: Moved from ..
1465 * linux-nfs/INSTALL: Likewise.
1466 * linux-nfs/KNOWNBUGS: Likewise.
1467 * linux-nfs/NEW: Likewise.
1468 * linux-nfs/README: Likewise.
1469 * linux-nfs/THANKS: Likewise.
1470 * linux-nfs/TODO: Likewise.
1472 * Starting from knfsd 1.4.7.