1 2002-01-02 Chip Salzenberg <chip@pobox.com>
3 * support/export/nfsctl.c (expsetup): Don't export entries that
4 specify id mappings not supported by the kernel. No extant kernel
5 supports any significant mapping, only 'identity' (i.e. none).
6 When other mappings are supported, this code will need changing.
7 * debian/changelog: Version 1.0-2.
9 2001-12-26 Chip Salzenberg <chip@pobox.com>
11 * nfs-utils.spec (Version): Set to "1.0".
12 * configure.in (VERSION): Likewise.
13 * configure: Regenerated.
15 * debian/changelog: Version 1.0-1.
17 * utils/exportfs/exports.man: Emphasize the need for options to
18 immediately follow client names. Explain that wildcards don't
19 usually work on addresses, but may work when reverse DNS fails.
20 Comment out a leftover TP that was TPing our indentation.
21 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
22 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
23 * debian/changelog: Version 0.3.3-6.
25 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
27 * support/export/client.c(client_lookup): If a host has multiple
28 IP addresses, then we must always use the result of a
29 gethostbyname, not that of gethostbyaddr for exporting
31 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
33 * support/export/client.c (client_lookup): use strcasecmp when
35 * support/nfs/export.c (getexportent): add fromkernel arg and use
36 different defaults as kernels prior to 2.4.11 assume different
37 defaults in /proc/fs/nfs/exports
38 * support/include/nfslib.h, support/export/export.c,
39 support/export/xtab.c: support extra "fromkernel" arg for
42 2001-12-13 Chip Salzenberg <chip@pobox.com>
44 * debian/changelog: Version 0.3.3-5.
46 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
48 * support/nfs/xio.c (xskip): Call `xungetc' instead of
49 `ungetc' to keep x_line more properly.
51 2001-11-26 Chip Salzenberg <chip@pobox.com>
53 * utils/showmount/showmount.c (main): Don't assume that strings
54 starting with digits are IP addresses.
55 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
56 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
57 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
58 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
59 man pages: We check host names *and* addresses with tcpwrappers.
60 * debian/changelog: Version 0.3.3-4.
62 2001-11-21 Chip Salzenberg <chip@pobox.com>
64 * support/nfs/clients.c (cfname): Added: current clients file name.
65 (setnfsclntent): Set it.
66 ({get,end}nfsclntent, syntaxerr): Use it.
67 * support/nfs/exports.c (efname): Added: current exports file name.
68 (setnfsexportent): Set it.
69 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
70 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
71 * debian/changelog: Version 0.3.3-3.
73 2001-10-11 Chip Salzenberg <chip@pobox.com>
75 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
76 * debian/changelog: Version 0.3.3-2.
78 2001-10-08 Chip Salzenberg <chip@pobox.com>
80 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
81 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
82 * utils/mountd/mountd.man: Update paths to /var/lib.
83 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
85 2001-10-06 Preston Brown <pbrown@redhat.com>
87 * utils/nfsstat/nfsstat.man: Updated.
89 2001-09-24 H.J. Lu <hjl@lucon.org>
91 * configure.in (VERSION): Set to "0.3.3".
92 * configure: Regenerated.
93 * nfs-utils.spec: Likewise.
95 * README: Updated for 0.3.3.
97 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
99 Arrange that "exportfs -au" never does DNS lookup:
101 * support/export/client.c (client_lookup) : add "canonical"
102 flag which says that the hostname is known to be canonical, so
105 * support/export/export.c (export_create) : add "canonical"
106 flag to be passed down to client_lookup
107 * support/export/export.c (export_lookup) : Likewise
109 * support/export/xtab.c (xtab_read) : pass appropriate
110 "canonical" flag to export_lookup and export_create:
111 set if reading list of filesystems currently exports
114 * support/export/export.c (export_read) : pass 0 as
115 "canonical" flag to export_lookup and export_create
116 * support/export/rmtab.s (rmtab_read) : Likewise
118 * support/include/exportfs.h : redeclare various routines
119 to have "canonical" flag
121 * utils/exportfs/exportfs.c (main) : redo logic for
122 "-au" to read in what is currently exported, but never even
123 look at what "should" be exported.
125 * utils/exportfs/exportfs.c (unexportall) : remove this
126 routine. Functionality is completely included in
129 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
130 flag to zero in calls to export_lookup and export_create.
133 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
134 Anne Milicia <milicia@missioncriticallinux.com>
136 * support/export/client.c (client_lookup) call gethostbyadd
137 to make sure that we have a canonical hostname, even for
139 * utils/exportfs/exportfs.c (exportfs) Likewise
141 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
143 * support/nfs/exports.c (putexportent): \octal quote any spaces
145 * support/nfs/xio.c (xgettok): recognise double-quote and
146 \octal quoting in path names
147 * utils/exportfs/exports.man: document quoting conventions
150 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
152 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
153 change from 2000-08-02: It causes problems if someone exports
154 to both a hostname and IP addresses. nfs-utils must be
155 consistant about the canonical name that it chooses.
157 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
158 H.J. Lu <hjl@lucon.org>
160 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
162 * utils/statd/statd.c (longopts): Add "name".
163 (usage): Add "-n/--name".
164 (main): Set MY_NAME with "-n/--name".
166 * utils/statd/state.c (change_state): Set MY_NAME only if it
169 * utils/statd/statd.man: Updated for "-n/--name".
171 2001-07-26 H.J. Lu <hjl@lucon.org>
173 * nfs-utils.spec (Release): Set to 8.
175 2001-07-25 H.J. Lu <hjl@lucon.org>
177 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
180 2001-06-27 H.J. Lu <hjl@lucon.org>
182 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
184 2001-06-27 H.J. Lu <hjl@lucon.org>
186 * utils/rquotad/rquota_server.c: Don't call statfs () for
187 the block size. Use BLOCK_SIZE instead.
189 2001-06-27 H.J. Lu <hjl@lucon.org>
191 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
192 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
194 * configure.in (enable_nfsv3): Set to yes by default.
195 (--enable-rquotad): Added
196 (AC_PROG_CXX): Removed.
197 (AC_OUTPUT): Add utils/Makefile.
198 (CC_FOR_BUILD): Renamed from BUILD_CC.
199 * configure: Regenerated.
201 * utils/Makefile: Removed.
203 * utils/Makefile.in: New.
205 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
207 (CC_FOR_BUILD): Renamed from BUILD_CC.
208 * nfs-utils.spec: Regenerated.
210 2001-06-15 Chip Salzenberg <chip@debian.org>
212 * debian/changelog: Version 0.3.2-2.
213 * debian/*.init: Minor fixes.
215 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
217 * etc/nodist/nfs-server: Fixed a bug where the script would
218 disable mounts from NFSv3 clients if NFSv3 is present.
220 2001-06-05 H.J. Lu <hjl@lucon.org>
222 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
223 (main): Support --descriptors/-o to set the limit of the number
224 of open file descriptors.
227 * utils/mountd/mountd.man: Updated for --descriptors/-o.
229 2001-06-04 H.J. Lu <hjl@lucon.org>
231 * nfs-utils.spec (Release): Set to 6.
233 2001-05-28 H.J. Lu <hjl@lucon.org>
235 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
236 * utils/mountd/mountd.c (main): Likewise.
237 * utils/nfsd/nfsd.c (main): Likewise.
238 * utils/rquotad/rquota_svc.c (main): Likewise.
240 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
242 * support/export/client.c (client_check): Check IP address
245 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
247 * support/export/client.c (client_gettype): Treat `*' as
250 2001-04-22 H.J. Lu <hjl@lucon.org>
252 * nfs-utils.spec.in: Fix a typo.
253 * nfs-utils.spec: Regenerated.
255 2001-04-21 H.J. Lu <hjl@lucon.org>
257 * nfs-utils.spec.in: Fix cross build.
258 * nfs-utils.spec: Regenerated.
261 2001-04-18 H.J. Lu <hjl@lucon.org>
263 * nfs-utils.spec.in: Support cross build.
264 * nfs-utils.spec: Regenerated.
270 * config.mk.in (BUILD_CC): New.
271 (CC): Set to $(BUILD_CC) if BUILD is defined.
274 (RANLIB): Set to @RANLIB@.
276 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
277 * configure: Regenerated.
279 * tools/rpcgen/Makefile (BUILD): Set to true.
281 2001-04-01 Chip Salzenberg <chip@valinux.com>
283 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
284 redundant, and sometimes broken, declaration of svc_fdset;
286 * support/nfs/rpcmisc.c (closedown): Likewise.
288 2001-03-21 H.J. Lu <hjl@lucon.org>
290 * nfs-utils.spec: Regenerated.
293 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
295 * utils/statd/statd.c (main): make sure file descriptors 0-2
296 are open to /dev/null.
298 2001-03-21 H.J. Lu <hjl@lucon.org>
300 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
301 * support/nfs/rpcmisc.c: Likewise.
302 * utils/rquotad/rquota_svc.c: Likewise.
303 * utils/rquotad/rquotad.man: Likewise.
304 * utils/statd/Makefile: Likewise.
305 * utils/statd/rmtcall.c: Likewise.
306 * utils/statd/simulate.c: Likewise.
307 * utils/statd/statd.c: Likewise.
308 * utils/statd/statd.man: Likewise.
310 2001-03-11 H.J. Lu <hjl@lucon.org>
312 * configure.in (RELEASE): New. Default to 1, set by
313 --with-release=XXX. Substitute nfs-utils.spec.
314 * nfs-utils.spec.in (Release): Set to @RELEASE@.
315 * configure: Regenerated.
316 * nfs-utils.spec: Likewise.
318 2001-03-11 H.J. Lu <hjl@lucon.org>
320 * utils/rquotad/rquotad.man: Fix a typo.
322 2001-03-11 H.J. Lu <hjl@lucon.org>
324 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
325 * support/nfs/rpcmisc.c: Likewise.
326 * utils/rquotad/rquota_svc.c: Likewise.
327 * utils/rquotad/rquotad.man: Likewise.
328 * utils/statd/Makefile: Likewise.
329 * utils/statd/rmtcall.c: Likewise.
330 * utils/statd/simulate.c: Likewise.
331 * utils/statd/statd.c: Likewise.
332 * utils/statd/statd.man: Likewise.
334 2001-03-10 H.J. Lu <hjl@lucon.org>
336 * configure.in (VERSION): Set to "0.3.2".
337 * configure: Regenerated.
338 * nfs-utils.spec: Likewise.
340 * README: Updated for 0.3.2.
342 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
344 * utils/rquotad/rquotad.man: Updated for -p.
345 * utils/statd/statd.man: Likewise.
347 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
349 * support/nfs/rpcmisc.c: export makesock()
351 * support/include/rpcmisc.h (makesock): Declared.
353 * utils/rquotad/rquota_svc.c: added longopts, added support for
354 specifying the port to bind to on the command line.
356 * utils/statd/statd.c: ditto, also specify port used for
357 outgoing connections.
358 (do_regist): Removed.
360 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
361 get_socket. Make it extern.
363 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
364 instead of do_regist.
366 * utils/statd/Makefile (LIBS): link with our own libnfs
368 2001-03-09 H.J. Lu <hjl@lucon.org>
370 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
371 * etc/nodist/nfs-client: Likewise.
373 2001-02-26 Chip Salzenberg <chip@valinux.com>
375 * debian/changelog: Version 0.3.1-1.
376 * Mention upstream source and license in copyright file.
377 * Add build-Depends for debhelper and libwrap0-dev.
379 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
381 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
382 * etc/nodist/nfs-client: Likewise.
384 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
386 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
389 2001-02-17 Patrick J. LoPresti <patl@curl.com>
391 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
394 2001-02-14 H.J. Lu <hjl@lucon.org>
396 * utils/statd/rmtcall.c: Include <time.h>.
397 * utils/statd/svc_run.c: Likewise.
399 2001-02-14 H.J. Lu <hjl@lucon.org>
401 * configure.in (VERSION): Set to "0.3.1".
402 * configure: Regenerated.
403 * nfs-utils.spec: Likewise.
405 * README: Updated for 0.3.1.
407 2001-02-14 H.J. Lu <hjl@lucon.org>
409 * support/nfs/rpcmisc.c: Include <time.h>.
411 2001-02-14 Chip Salzenberg <chip@valinux.com>
413 * debian/control: Change priority of nhfsstone package to 'extra'.
415 2001-02-12 Chip Salzenberg <chip@valinux.com>
417 * debian/changelog: Version 0.3-2.
419 2001-02-02 H.J. Lu <hjl@lucon.org>
421 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
423 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
424 out SO_SNDBUF/SO_RCVBUF.
425 (rpc_init): Remove bufsize and remove socksz in calls to
428 * utils/mountd/mountd.c (main): Remove bufsize in calls to
431 2001-01-28 Chip Salzenberg <chip@valinux.com>
433 * debian/changelog: Version 0.3-1.
435 2001-01-25 H.J. Lu <hjl@lucon.org>
437 * configure.in (VERSION): Set to "0.3".
438 * configure: Regenerated.
439 * nfs-utils.spec: Likewise.
441 * README: Updated for 0.3.
443 2001-01-25 H.J. Lu <hjl@lucon.org>
445 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
447 2001-01-20 Chip Salzenberg <chip@valinux.com>
449 * support/include/xio.h (xgetc): Declare to return int.
450 * support/nfs/xio.c (xgetc): Return int.
451 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
452 * utils/statd/statd.c (main): Use int for value of getopt.
453 * debian/changelog: Version 0.2.1-5.
455 2000-12-10 Chip Salzenberg <chip@valinux.com>
457 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
458 program and procedure numbers of kernel lockd's callback. Also,
459 besides the old (and broken) procedure #24, allow #16 per Trond.
461 2000-12-03 Chip Salzenberg <chip@valinux.com>
463 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
464 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
465 * debian/changelog: Version 0.2.1-4.
467 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
469 * utils/mountd/auth.c (auth_authenticate): Log the bad path
472 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
474 * support/nfs/exports.c (getexportent): Check for host name
475 without option, or options without hostname, and print a warning,
476 as this is most likely a typo.
478 2000-11-19 Chip Salzenberg <chip@valinux.com>
480 * debian/control: Add dependency on portmap.
481 * debian/changelog: Version 0.2.1-3.
483 2000-11-10 H.J. Lu <hjl@lucon.org>
485 * nfs-utils.spec.in: Don't use libtool.
486 Add ChangeLog and COPYING to doc.
487 * nfs-utils.spec: Rebuild.
489 2000-11-09 H.J. Lu <hjl@lucon.org>
491 * etc/redhat/nfs.init (start): Back out the last change.
493 2000-11-09 H.J. Lu <hjl@lucon.org>
495 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
496 TCP is not supported by kernel.
498 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
500 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
501 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
503 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
505 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
507 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
508 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
509 callbacks to local lockd.
511 2000-10-18 Scott McDermott <mcdermot@questra.com>
513 * utils/exportfs/exports.man: Updated for CIDR netmask.
515 2000-10-17 Scott McDermott <mcdermot@questra.com>
517 * support/export/client.c (client_init): Support CIDR netmask
520 2000-10-11 H.J. Lu <hjl@lucon.org>
522 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
523 * configure: Rebuilt.
525 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
527 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
528 "/var/lib/nfs/state".
530 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
532 * utils/statd/statd.h (run_mode): New global bitmask of runtime
533 behaviors: fg/bg, logging, etc.
534 * utils/statd/statd.c: New command line options: -V -h -? -d .
535 * utils/statd/statd.man: Update for changes to statd.
537 * utils/statd/log.h (log_init): Remove parameter of function; use
538 global variable "name_p" instead.
539 * utils/statd/log.c: Add support for logging to stderr.
541 * utils/statd/notlist.c: Partially rewrite notify list handling
542 functions. Eliminate run-off-end-of-list bug when calling
543 nlist_insert_timer. Add lots of comments.
545 2000-09-27 H.J. Lu <hjl@lucon.org>
547 * README: Updated for RedHat 7.0.
549 2000-09-27 H.J. Lu <hjl@lucon.org>
551 * nfs-utils.spec: Rebuild.
553 2000-09-27 H.J. Lu <hjl@lucon.org>
555 * README: Updated for 0.2.1.
557 2000-09-27 H.J. Lu <hjl@lucon.org>
559 * nfs-utils.spec.in: Updated to use rpm macros and support
562 2000-09-25 H.J. Lu <hjl@lucon.org>
564 * configure.in (VERSION): Set to "0.2.1".
565 * configure: Regenerated.
566 * nfs-utils.spec: Updated.
568 2000-09-25 H.J. Lu <hjl@lucon.org>
570 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
571 non-NULL hostent is always returned.
573 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
575 * etc/redhat/nfslock.init: don't kill lockd processes that do not
576 have an executable (i.e. kernel threads)
578 2000-09-01 H.J. Lu <hjl@lucon.org>
580 * README: Updated for 0.2.
582 2000-09-01 Jay Weber <jweber@valinux.com>
584 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
585 supporting version 3 of nfs if available, else it will fall back to
586 version 2 support only.
588 2000-08-30 H.J. Lu <hjl@lucon.org>
590 * configure.in (VERSION): Set to "0.2".
591 * configure: Regenerated.
592 * nfs-utils.spec: Updated.
594 2000-08-25 H.J. Lu <hjl@lucon.org>
596 * support/misc/tcpwrapper.c (logit): Modify the log output.
598 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
600 * utils/rquotad/rquotad.man, utils/statd/statd.man,
601 utils/mountd/mountd.man: updated
603 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
604 * utils/rquotad/Makefile: fix comment
606 * support/misc/tcpwrapper.c (logit): added comment about waiting
607 for the children after fork()
609 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
610 zombies behind (from logit()'s fork)
611 * utils/rquotad/rquota_svc.c (main): ditto
612 * utils/statd/statd.c (main): ditto
614 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
615 to check_default instead of 0, for prognum
617 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
618 to check_default instead of 0, for prognum
620 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
621 HAVE_TCP_WRAPPER is defined.
622 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
623 defined. Reject an RPC call if check_default () fails.
625 2000-08-25 H.J. Lu <hjl@lucon.org>
627 * support/include/tcpwrapper.h: New for the tcp wrapper
629 * support/misc/Makefile: Likewise.
630 * support/misc/from_local.c: Likewise.
631 * support/misc/tcpwrapper.c: Likewise.
633 * aclocal.m4 (AC_TCP_WRAPPER): New.
634 * configure.in: Use it. Substitute LIBWRAP.
635 * configure: Rebuilt.
637 * config.mk.in (LIBNSL): New.
640 * support/Makefile (SUBDIRS): Add misc.
642 * support/lib/Makefile (LIBS): Add libmisc.a.
644 * utils/rquotad/Makefile (LIBS): Add
646 -lmisc $(LIBWRAP) $(LIBNSL)
648 * utils/statd/Makefile (LIBS): Likewise.
650 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
651 HAVE_TCP_WRAPPER is defined.
652 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
653 defined. Reject an RPC call if check_default () fails.
655 * utils/statd/statd.c: Include "tcpwrapper.h" if
656 HAVE_TCP_WRAPPER is defined.
657 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
658 check_default () before calling sm_prog_1 (). Define it as
659 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
661 2000-08-25 Chip Salzenberg <chip@valinux.com>
663 * debian/*: Complete Debian build support.
664 * etc/debian/*: Remove.
666 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
668 * support/export/client.c(client_check): removed the "dot+1" as a
669 ypdomain argument to innetgr as this is entirely bogus.
670 It should always be NULL.
672 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
674 * support/export/xtab.c(xtab_read): introduce new mode for
675 reading xtab. i.e. a list of exports that might be known to the
676 kernel, or might not. These are flagged as m_exported == -1
677 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
678 value "2" for xtab, meaning don't trust this too much.
679 * support/include/exportfs.h(struct mexport): changed m_exported
680 from one bit to an int so that it can hold new value
681 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
682 kernel if it is uncertain whether the kernel knows (m_exported == -1)
683 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
686 * support/nfs/xio.c(xflock): added O_CREAT when getting
687 a write lock so that missing files aren't fatal.
689 * etc/debian/nfs-common: new file from "potato"
690 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
692 2000-08-09 H.J. Lu <hjl@lucon.org>
694 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
695 startup to ensure all existing clients work fine.
697 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
698 to xtab_read () for reading _PATH_XTAB.
700 2000-08-02 H.J. Lu <hjl@lucon.org>
702 * utils/mountd/auth.c (auth_authenticate_internal): Try to
703 avoid the reverse name lookup.
705 2000-07-04 H.J. Lu <hjl@lucon.org>
707 * utils/statd/log.c: Include <stdlib.h> for exit ().
709 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
712 2000-07-04 H.J. Lu <hjl@lucon.org>
714 * configure.in (VERSION): Set to "0.1.9.1".
715 * configure: Regenerated.
716 * nfs-utils.spec: Updated.
720 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
722 * support/export/hostname.c (hostent_dup): Handle the NULL
725 2000-07-03 H.J. Lu <hjl@lucon.org>
727 * README: Update the util-linux requirement.
729 2000-07-03 H.J. Lu <hjl@lucon.org>
731 * configure.in (VERSION): Set to "0.1.9".
732 * configure: Regenerated.
733 * nfs-utils.spec: Updated.
737 2000-07-03 H.J. Lu <hjl@lucon.org>
739 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
740 stop to ensure all clients can still access the server
741 before it is shutdown.
743 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
745 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
746 calls with format string.
748 2000-06-28 Chip Salzenberg <chip@valinux.com>
750 * utils/statd/log.c (log): Call syslog with format string.
752 2000-06-27 H.J. Lu <hjl@lucon.org>
754 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
757 2000-06-27 H.J. Lu <hjl@lucon.org>
761 2000-06-27 H.J. Lu <hjl@lucon.org>
763 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
764 startup to ensure all existing clients are exported.
766 * configure.in (VERSION): Set to "0.1.8.2".
767 * configure: Regenerated.
768 * nfs-utils.spec: Updated.
770 2000-06-06 H.J. Lu <hjl@lucon.org>
772 * configure.in (VERSION): Set to "0.1.8.1".
773 * configure: Regenerated.
774 * nfs-utils.spec: Updated.
776 2000-06-06 H.J. Lu <hjl@lucon.org>
778 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
779 to "struct sockaddr_in *" for glibc 2.2.
780 (mount_umnt_1_svc): Likewise.
781 (mount_umntall_1_svc): Likewise.
782 (mount_export_1_svc): Likewise.
783 (mount_exportall_1_svc): Likewise.
784 (mount_pathconf_2_svc): Likewise.
785 (get_rootfh): Likewise.
787 2000-06-04 H.J. Lu <hjl@lucon.org>
789 * etc/redhat/nfs.init: Fix a typo in comment.
791 2000-05-31 H.J. Lu <hjl@lucon.org>
793 * configure.in (VERSION): Set to "0.1.8".
794 * configure: Regenerated.
795 * nfs-utils.spec: Updated.
799 2000-05-31 H.J. Lu <hjl@lucon.org>
801 * configure.in (VERSION): Set to "0.1.7.5".
802 * configure: Regenerated.
803 * nfs-utils.spec: Updated.
805 * support/include/nfslib.h (exportent): Add a new field,
806 r_count, to count the number of mounts from a client.
807 (getrmtabent): Take a new argument for position in file.
808 (putrmtabent): Likewise.
809 (fgetrmtabent): Likewise.
810 (fputrmtabent): Likewise.
811 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
812 for position in file.
813 (fgetrmtabent): Likewise.
814 (putrmtabent): Likewise.
815 (fputrmtabent): Likewise.
817 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
820 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
821 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
823 * utils/mountd/rmtab.c (mountlist_add): Likewise.
824 (mountlist_del): Likewise.
825 (mountlist_del_all): Likewise.
826 (mountlist_list): Likewise.
828 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
829 for the existing entry and initialize "r_count" to 1.
830 (mountlist_del): Decrement "r_count".
832 2000-05-18 H.J. Lu <hjl@lucon.org>
834 * configure.in (VERSION): Set to "0.1.7.4".
835 * configure: Regenerated.
836 * nfs-utils.spec: Updated.
838 2000-05-18 H.J. Lu <hjl@lucon.org>
840 * etc/redhat/nfs.init (restart): Just do stop and start.
842 2000-05-09 Jay Weber <jweber@valinux.com>
844 * utils/rquotad/hasquota.c: added support for ext3 recognition
846 * utils/rquotad/mntent.h: Likewise.
848 2000-05-01 H.J. Lu <hjl@lucon.org>
850 * configure.in (VERSION): Set to "0.1.7.3".
851 * configure: Regenerated.
852 * nfs-utils.spec: Updated.
854 2000-05-01 H.J. Lu <hjl@lucon.org>
856 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
857 mounting poins in /etc/fstab.
859 2000-05-01 H.J. Lu <hjl@lucon.org>
861 * configure.in (VERSION): Set to "0.1.7.2".
862 * configure: Regenerated.
863 * nfs-utils.spec: Updated.
865 2000-05-01 H.J. Lu <hjl@lucon.org>
867 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
868 to check for the mounting point.
870 2000-04-29 Chip Salzenberg <chip@valinux.com>
871 Neil Brown <neilb@cse.unsw.edu.au>
873 * Really re-use RPC ports.
874 (Fixes earlier patch. Sorry, Neil.)
876 2000-04-26 H.J. Lu <hjl@lucon.org>
878 * configure.in (VERSION): Set to "0.1.7.1".
879 * configure: Regenerated.
880 * nfs-utils.spec: Updated.
882 2000-04-26 H.J. Lu <hjl@lucon.org>
884 * etc/redhat/nfslock.init: Check if lockd exits before killing
887 2000-04-25 H.J. Lu <hjl@lucon.org>
889 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
891 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
893 * support/nfs/exports.c (parsesquash): Correctly set the
896 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
898 * support/include/nfs/nfs.h: Removed knowledge of internals of
899 kernel filehandles (which can change) and defined nfs_fh_size
900 which has variable size
902 * support/nfs/getfh.c: defined getfh_size to use new syscall to
903 get variable sized file handles, and change getfh{,old} to
906 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
909 * tools/Makefile, tools/nlmtest/nlmtest.c
910 nlmtest.c depended on internel format of file handles, so now
914 2000-03-12 Chip Salzenberg <chip@valinux.com>
915 Neil Brown <neilb@cse.unsw.edu.au>
917 * support/nfs/rpcmisc.c (rpc_init): Share transports.
919 2000-03-13 H.J. Lu <hjl@lucon.org>
921 * etc/redhat/nfsd.init: Updated.
923 * etc/redhat/nfslock.init: Updated.
925 * nfs-utils.spec.in: Updated.
927 * configure.in (VERSION): Set to "0.1.7".
928 * configure: Regenerated.
929 * nfs-utils.spec: Updated.
933 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
935 * utils/exportfs/exportfs.c (dump): Included printing of
936 nohide, no_subtree_check, and insecure_locks
938 2000-02-26 Chip Salzenberg <chip@valinux.com>
940 * config.mk.in (INSTALLSUID): Strip ("-s").
941 (INSTALLSCRIPT): Define.
942 * utils/nhfsstone/Makefile: Use it.
944 2000-02-26 Chip Salzenberg <chip@valinux.com>
946 * utils/lockd/lockd.man: Create.
947 * utils/lockd/Makefile: Install it.
948 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
949 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
950 * utils/nhfsstone/Makefile: Install the helper scripts and
952 * utils/exportfs/exports.man: Fix typo.
954 2000-02-26 Chip Salzenberg <chip@valinux.com>
956 * support/nfs/xio.c (xungetc): Decrement line number when
957 character to unget is newline. Make first parameter int, so
958 it can distinguish EOF from \377.
959 * support/include/xio.h (xungetc): Adjust prototype.
961 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
963 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
964 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
965 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
967 This is for supporting a new option introduced in 2.3.42
969 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
971 * COPYING: Added. GPL.
973 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
975 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
976 to get the block size.
978 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
980 * nfs-utils.spec.in: Update ftp site.
982 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
984 * README: Update hostnames.
986 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
988 * configure.in (VERSION): Set to "0.1.6".
989 * configure: Regenerated.
990 * nfs-utils.spec: Updated.
994 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
996 * utils/mountd/auth.c (auth_authenticate_internal): Call
997 xstrdup for hostname before passing it to gethostbyname.
999 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1002 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1004 * README: Update the mailing list address.
1006 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1008 * configure.in (VERSION): Set to "0.1.5".
1009 * configure: Regenerated.
1010 * nfs-utils.spec: Updated.
1014 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1016 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1019 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1021 * configure.in (VERSION): Set to "0.1.4".
1022 * configure: Regenerated.
1023 * nfs-utils.spec: Updated.
1027 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1029 * nfs-utils.spec.in: New file.
1031 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1033 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1035 1999-12-04 Chip Salzenberg <chip@valinux.com>
1037 * config.mk.in: Use $(CC) as set by configure.
1039 1999-12-04 Chip Salzenberg <chip@valinux.com>
1041 * rules.mk: Call $(MAKE) with $(MFLAGS).
1043 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1045 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1046 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1048 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1050 * nfs-utils.spec (Version): Set to 0.1.3.
1052 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1053 * configure: Regenerated.
1057 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1059 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1060 (_PATH_DEV_DSK): Likewise.
1061 (getquotainfo): Match the mounting point from /etc/mtab
1062 instead of calling nfsmount_to_devname ().
1064 1999-11-24 Chip Salzenberg <chip@valinux.com>
1066 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1067 to the new port 24 as well as the historical port 100021.
1069 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1071 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1072 stopping nfsd to stop spurious ESTALE on server shutdown.
1074 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1076 * support/nfs/exports.c (parseopts): make copy of opt string
1077 before 'nul'ing out commas so that
1079 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1081 applies both options to both exports.
1083 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1085 * README: Fix a few typos.
1087 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1089 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1090 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1091 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1092 (unsigned_dec): Likewise.
1093 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1094 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1096 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1098 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1099 (unsigned_dec): Likewise.
1100 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1101 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1102 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1104 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1106 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1107 * support/nfs/exports.c: added {no_,}subtree_check and changed
1109 * utils/exportfs/exports.man: added no_subtree_check and nohide
1110 and removed irrelevant stuff from unfsd.
1111 * support/export/rmtab.c: rmtab_read didn't quite do the right
1112 thing if a pathname from rmtab was a subdirectory of an export-point
1114 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1116 * README: Updated ftp site.
1118 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1120 * nfs-utils.spec (Version): Set to 0.1.2.
1122 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1123 * configure: Regenerated.
1127 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1129 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1130 (auth_authenticate_internal): Check for NULL return on forward
1132 (auth_authenticate): Handle "no_forward_dns".
1134 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1136 * Version 0.1.1 released.
1138 * nfs-utils.spec (Version): Set to 0.1.1.
1140 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1141 * configure: Regenerated.
1145 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1147 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1149 (Provides): Likewise.
1151 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1153 * Initial version 0.1 released.
1155 * configure.in (VERSION): Set to "nfs-utils 0.1".
1156 * configure: Regenerated.
1158 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1160 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1162 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1163 kernel only if the entry is exported to kernel.
1164 (unexportfs): Likewise.
1166 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1168 1/ utils/mountd/rmtab.c::mountlist_list
1170 This routine stats the rmtab file to see if it has changed. It
1171 if has, it cleans up it's old copy of the data. But it still
1172 always re-read the file, thus returning multiple copies of the
1173 data on consecutive calls without intervening changes.
1174 "Showmount -a" didn't show this as it appears to sort/unique the
1175 data, but 'strace showmount -a' showed that the size of the
1176 datagram that it received grew.
1178 I moved the getrmtabent loop inside the mtime test.
1180 2/ utils/exportfs/exportfs.c
1182 Many routines used the m_path field of m_export instead of
1184 According to the comment in nfslib.h, m_path should only
1185 be used when processing a mount request (i.e. in mountd)
1186 where the mountpoint may be a subdirectory of the export point.
1188 I changed all occurances of m_path to e_path
1191 3/ utils/exportfs/exportfs.c:main
1193 extra arguments are not meaningful with -a or -r, but
1194 exportfs accepted them and then ignored the -a/-r, expect that
1195 -r would still unexport everything first.
1197 I generate an error if there are extra args and f_all
1199 4/ utils/exportfs/exportfs.c:main
1200 extract dump out as a special case.
1202 5/ utils/exportfs/exportfs.c
1203 made f_reexport a local variable.
1206 6/ utils/exportfs/exportfs.c:main,exportall
1208 support/export/rmtab.c
1209 only mayexport on newly created entries, don't set xtabent at all
1211 7/ support/include/nfslib.h
1213 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1215 8/ support/export/xtab.c
1217 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1221 9/ support/export/xtab.c
1223 xtab_mount_read now sets m_exported, and NOT
1224 xtabent and mayexport
1226 removed the append arguement from xtab_write as it was
1229 added is_export flag to xtab_write similar to xtab_read
1230 if is_export, only write entries with m_xtabent or m_addxtab
1231 if !is_export, only write entries with m_exported
1233 10/ support/export/export.c::export_allowed_internal
1235 added test for exp->m_mayexport, as the export tree
1236 may have entries that are no longer allowed to be exported,
1237 and so shouldn't caused deduced exported by rmtab_read
1239 11/ utils/exportfs/exportfs.c::main
1240 error checking of flags.
1242 12/ utils/exportfs/exportfs.c
1244 total rewrite of export and unexport logic.
1246 - build an exportslist of valid exports, based on
1247 current etab file and arguments,
1248 - read rmtab to instantiate relevant wild card entries
1249 - read etab to find out what is currently exported
1250 - synchronise intention with reality
1251 - write out etab and xtab
1254 discard the m_addxtab flag
1255 add m_changed flag so we know what to report in exportfs
1257 14/ utils/mountd/auth.c:auth_authenticate
1259 the value returned by gethostbyaddr was trusted.
1261 It now follows this with a call to gethostbyname
1262 and checks that the address is in the list.
1264 15/ support/export/nfsctl.c::cltsetup,expsetup
1266 force client names to lowercase as kernel is
1269 16/ quietened a few compiler warnings
1271 17/ support/export/client:client_lookup
1273 look for pre-existing client with same name before creating
1276 18/ support/include/exportfs.h
1278 The ordering of the MCL_* enum was:
1279 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1281 I moved ANONYMOUS to the end.
1283 The ordering is significant when an export entry is being searched for to
1284 match a given address. There are two problems with ANONYMOUS being first.
1286 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1287 then the ro case will always be found first and the privileged hosts won't get
1289 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1290 export entry for the specific host, and writes it to xtab.
1291 When another request comes from the same host, the ANONYMOUS entry is found again,
1292 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1293 again. If causes bloat in xtab.
1295 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1297 19/ utils/exportfs/exportfs.man
1298 many updates to the man page to reflect changes to the code
1300 -----------------------
1306 - allow exportfs to modify rmtab file
1307 - make sure kernel never gets two clients with same IP address
1308 - possible kernel should reject
1309 - needs to be some way to lookup client in kernel by IP address
1310 - maybe get kernel to do case-insensitive comparisons on client names
1311 - remove unused clients from kernel
1313 - change etab to xtab and xtab to xtab.active
1315 - timestamp and/or statd-stamp in rmtab for removing old entries.
1317 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1319 * linux-nfs: New directory.
1320 * linux-nfs/ChangeLog: Moved from ..
1321 * linux-nfs/INSTALL: Likewise.
1322 * linux-nfs/KNOWNBUGS: Likewise.
1323 * linux-nfs/NEW: Likewise.
1324 * linux-nfs/README: Likewise.
1325 * linux-nfs/THANKS: Likewise.
1326 * linux-nfs/TODO: Likewise.
1328 * Starting from knfsd 1.4.7.