1 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
3 * support/export/client.c(client_lookup): If a host has multiple
4 IP addresses, then we must always use the result of a
5 gethostbyname, not that of gethostbyaddr for exporting
7 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
9 * support/export/client.c (client_lookup): use strcasecmp when
11 * support/nfs/export.c (getexportent): add fromkernel arg and use
12 different defaults as kernels prior to 2.4.11 assume different
13 defaults in /proc/fs/nfs/exports
14 * support/include/nfslib.h, support/export/export.c,
15 support/export/xtab.c: support extra "fromkernel" arg for
18 2001-12-13 Chip Salzenberg <chip@pobox.com>
20 * debian/changelog: Version 0.3.3-5.
22 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
24 * support/nfs/xio.c (xskip): Call `xungetc' instead of
25 `ungetc' to keep x_line more properly.
27 2001-11-26 Chip Salzenberg <chip@pobox.com>
29 * utils/showmount/showmount.c (main): Don't assume that strings
30 starting with digits are IP addresses.
31 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
32 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
33 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
34 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
35 man pages: We check host names *and* addresses with tcpwrappers.
36 * debian/changelog: Version 0.3.3-4.
38 2001-11-21 Chip Salzenberg <chip@pobox.com>
40 * support/nfs/clients.c (cfname): Added: current clients file name.
41 (setnfsclntent): Set it.
42 ({get,end}nfsclntent, syntaxerr): Use it.
43 * support/nfs/exports.c (efname): Added: current exports file name.
44 (setnfsexportent): Set it.
45 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
46 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
47 * debian/changelog: Version 0.3.3-3.
49 2001-10-11 Chip Salzenberg <chip@pobox.com>
51 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
52 * debian/changelog: Version 0.3.3-2.
54 2001-10-08 Chip Salzenberg <chip@pobox.com>
56 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
57 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
58 * utils/mountd/mountd.man: Update paths to /var/lib.
59 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
61 2001-10-06 Preston Brown <pbrown@redhat.com>
63 * utils/nfsstat/nfsstat.man: Updated.
65 2001-09-24 H.J. Lu <hjl@lucon.org>
67 * configure.in (VERSION): Set to "0.3.3".
68 * configure: Regenerated.
69 * nfs-utils.spec: Likewise.
71 * README: Updated for 0.3.3.
73 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
75 Arrange that "exportfs -au" never does DNS lookup:
77 * support/export/client.c (client_lookup) : add "canonical"
78 flag which says that the hostname is known to be canonical, so
81 * support/export/export.c (export_create) : add "canonical"
82 flag to be passed down to client_lookup
83 * support/export/export.c (export_lookup) : Likewise
85 * support/export/xtab.c (xtab_read) : pass appropriate
86 "canonical" flag to export_lookup and export_create:
87 set if reading list of filesystems currently exports
90 * support/export/export.c (export_read) : pass 0 as
91 "canonical" flag to export_lookup and export_create
92 * support/export/rmtab.s (rmtab_read) : Likewise
94 * support/include/exportfs.h : redeclare various routines
95 to have "canonical" flag
97 * utils/exportfs/exportfs.c (main) : redo logic for
98 "-au" to read in what is currently exported, but never even
99 look at what "should" be exported.
101 * utils/exportfs/exportfs.c (unexportall) : remove this
102 routine. Functionality is completely included in
105 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
106 flag to zero in calls to export_lookup and export_create.
109 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
110 Anne Milicia <milicia@missioncriticallinux.com>
112 * support/export/client.c (client_lookup) call gethostbyadd
113 to make sure that we have a canonical hostname, even for
115 * utils/exportfs/exportfs.c (exportfs) Likewise
117 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
119 * support/nfs/exports.c (putexportent): \octal quote any spaces
121 * support/nfs/xio.c (xgettok): recognise double-quote and
122 \octal quoting in path names
123 * utils/exportfs/exports.man: document quoting conventions
126 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
128 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
129 change from 2000-08-02: It causes problems if someone exports
130 to both a hostname and IP addresses. nfs-utils must be
131 consistant about the canonical name that it chooses.
133 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
134 H.J. Lu <hjl@lucon.org>
136 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
138 * utils/statd/statd.c (longopts): Add "name".
139 (usage): Add "-n/--name".
140 (main): Set MY_NAME with "-n/--name".
142 * utils/statd/state.c (change_state): Set MY_NAME only if it
145 * utils/statd/statd.man: Updated for "-n/--name".
147 2001-07-26 H.J. Lu <hjl@lucon.org>
149 * nfs-utils.spec (Release): Set to 8.
151 2001-07-25 H.J. Lu <hjl@lucon.org>
153 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
156 2001-06-27 H.J. Lu <hjl@lucon.org>
158 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
160 2001-06-27 H.J. Lu <hjl@lucon.org>
162 * utils/rquotad/rquota_server.c: Don't call statfs () for
163 the block size. Use BLOCK_SIZE instead.
165 2001-06-27 H.J. Lu <hjl@lucon.org>
167 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
168 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
170 * configure.in (enable_nfsv3): Set to yes by default.
171 (--enable-rquotad): Added
172 (AC_PROG_CXX): Removed.
173 (AC_OUTPUT): Add utils/Makefile.
174 (CC_FOR_BUILD): Renamed from BUILD_CC.
175 * configure: Regenerated.
177 * utils/Makefile: Removed.
179 * utils/Makefile.in: New.
181 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
183 (CC_FOR_BUILD): Renamed from BUILD_CC.
184 * nfs-utils.spec: Regenerated.
186 2001-06-15 Chip Salzenberg <chip@debian.org>
188 * debian/changelog: Version 0.3.2-2.
189 * debian/*.init: Minor fixes.
191 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
193 * etc/nodist/nfs-server: Fixed a bug where the script would
194 disable mounts from NFSv3 clients if NFSv3 is present.
196 2001-06-05 H.J. Lu <hjl@lucon.org>
198 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
199 (main): Support --descriptors/-o to set the limit of the number
200 of open file descriptors.
203 * utils/mountd/mountd.man: Updated for --descriptors/-o.
205 2001-06-04 H.J. Lu <hjl@lucon.org>
207 * nfs-utils.spec (Release): Set to 6.
209 2001-05-28 H.J. Lu <hjl@lucon.org>
211 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
212 * utils/mountd/mountd.c (main): Likewise.
213 * utils/nfsd/nfsd.c (main): Likewise.
214 * utils/rquotad/rquota_svc.c (main): Likewise.
216 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
218 * support/export/client.c (client_check): Check IP address
221 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
223 * support/export/client.c (client_gettype): Treat `*' as
226 2001-04-22 H.J. Lu <hjl@lucon.org>
228 * nfs-utils.spec.in: Fix a typo.
229 * nfs-utils.spec: Regenerated.
231 2001-04-21 H.J. Lu <hjl@lucon.org>
233 * nfs-utils.spec.in: Fix cross build.
234 * nfs-utils.spec: Regenerated.
237 2001-04-18 H.J. Lu <hjl@lucon.org>
239 * nfs-utils.spec.in: Support cross build.
240 * nfs-utils.spec: Regenerated.
246 * config.mk.in (BUILD_CC): New.
247 (CC): Set to $(BUILD_CC) if BUILD is defined.
250 (RANLIB): Set to @RANLIB@.
252 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
253 * configure: Regenerated.
255 * tools/rpcgen/Makefile (BUILD): Set to true.
257 2001-04-01 Chip Salzenberg <chip@valinux.com>
259 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
260 redundant, and sometimes broken, declaration of svc_fdset;
262 * support/nfs/rpcmisc.c (closedown): Likewise.
264 2001-03-21 H.J. Lu <hjl@lucon.org>
266 * nfs-utils.spec: Regenerated.
269 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
271 * utils/statd/statd.c (main): make sure file descriptors 0-2
272 are open to /dev/null.
274 2001-03-21 H.J. Lu <hjl@lucon.org>
276 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
277 * support/nfs/rpcmisc.c: Likewise.
278 * utils/rquotad/rquota_svc.c: Likewise.
279 * utils/rquotad/rquotad.man: Likewise.
280 * utils/statd/Makefile: Likewise.
281 * utils/statd/rmtcall.c: Likewise.
282 * utils/statd/simulate.c: Likewise.
283 * utils/statd/statd.c: Likewise.
284 * utils/statd/statd.man: Likewise.
286 2001-03-11 H.J. Lu <hjl@lucon.org>
288 * configure.in (RELEASE): New. Default to 1, set by
289 --with-release=XXX. Substitute nfs-utils.spec.
290 * nfs-utils.spec.in (Release): Set to @RELEASE@.
291 * configure: Regenerated.
292 * nfs-utils.spec: Likewise.
294 2001-03-11 H.J. Lu <hjl@lucon.org>
296 * utils/rquotad/rquotad.man: Fix a typo.
298 2001-03-11 H.J. Lu <hjl@lucon.org>
300 * support/include/rpcmisc.h: Undo 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-10 H.J. Lu <hjl@lucon.org>
312 * configure.in (VERSION): Set to "0.3.2".
313 * configure: Regenerated.
314 * nfs-utils.spec: Likewise.
316 * README: Updated for 0.3.2.
318 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
320 * utils/rquotad/rquotad.man: Updated for -p.
321 * utils/statd/statd.man: Likewise.
323 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
325 * support/nfs/rpcmisc.c: export makesock()
327 * support/include/rpcmisc.h (makesock): Declared.
329 * utils/rquotad/rquota_svc.c: added longopts, added support for
330 specifying the port to bind to on the command line.
332 * utils/statd/statd.c: ditto, also specify port used for
333 outgoing connections.
334 (do_regist): Removed.
336 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
337 get_socket. Make it extern.
339 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
340 instead of do_regist.
342 * utils/statd/Makefile (LIBS): link with our own libnfs
344 2001-03-09 H.J. Lu <hjl@lucon.org>
346 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
347 * etc/nodist/nfs-client: Likewise.
349 2001-02-26 Chip Salzenberg <chip@valinux.com>
351 * debian/changelog: Version 0.3.1-1.
352 * Mention upstream source and license in copyright file.
353 * Add build-Depends for debhelper and libwrap0-dev.
355 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
357 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
358 * etc/nodist/nfs-client: Likewise.
360 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
362 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
365 2001-02-17 Patrick J. LoPresti <patl@curl.com>
367 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
370 2001-02-14 H.J. Lu <hjl@lucon.org>
372 * utils/statd/rmtcall.c: Include <time.h>.
373 * utils/statd/svc_run.c: Likewise.
375 2001-02-14 H.J. Lu <hjl@lucon.org>
377 * configure.in (VERSION): Set to "0.3.1".
378 * configure: Regenerated.
379 * nfs-utils.spec: Likewise.
381 * README: Updated for 0.3.1.
383 2001-02-14 H.J. Lu <hjl@lucon.org>
385 * support/nfs/rpcmisc.c: Include <time.h>.
387 2001-02-14 Chip Salzenberg <chip@valinux.com>
389 * debian/control: Change priority of nhfsstone package to 'extra'.
391 2001-02-12 Chip Salzenberg <chip@valinux.com>
393 * debian/changelog: Version 0.3-2.
395 2001-02-02 H.J. Lu <hjl@lucon.org>
397 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
399 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
400 out SO_SNDBUF/SO_RCVBUF.
401 (rpc_init): Remove bufsize and remove socksz in calls to
404 * utils/mountd/mountd.c (main): Remove bufsize in calls to
407 2001-01-28 Chip Salzenberg <chip@valinux.com>
409 * debian/changelog: Version 0.3-1.
411 2001-01-25 H.J. Lu <hjl@lucon.org>
413 * configure.in (VERSION): Set to "0.3".
414 * configure: Regenerated.
415 * nfs-utils.spec: Likewise.
417 * README: Updated for 0.3.
419 2001-01-25 H.J. Lu <hjl@lucon.org>
421 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
423 2001-01-20 Chip Salzenberg <chip@valinux.com>
425 * support/include/xio.h (xgetc): Declare to return int.
426 * support/nfs/xio.c (xgetc): Return int.
427 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
428 * utils/statd/statd.c (main): Use int for value of getopt.
429 * debian/changelog: Version 0.2.1-5.
431 2000-12-10 Chip Salzenberg <chip@valinux.com>
433 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
434 program and procedure numbers of kernel lockd's callback. Also,
435 besides the old (and broken) procedure #24, allow #16 per Trond.
437 2000-12-03 Chip Salzenberg <chip@valinux.com>
439 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
440 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
441 * debian/changelog: Version 0.2.1-4.
443 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
445 * utils/mountd/auth.c (auth_authenticate): Log the bad path
448 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
450 * support/nfs/exports.c (getexportent): Check for host name
451 without option, or options without hostname, and print a warning,
452 as this is most likely a typo.
454 2000-11-19 Chip Salzenberg <chip@valinux.com>
456 * debian/control: Add dependency on portmap.
457 * debian/changelog: Version 0.2.1-3.
459 2000-11-10 H.J. Lu <hjl@lucon.org>
461 * nfs-utils.spec.in: Don't use libtool.
462 Add ChangeLog and COPYING to doc.
463 * nfs-utils.spec: Rebuild.
465 2000-11-09 H.J. Lu <hjl@lucon.org>
467 * etc/redhat/nfs.init (start): Back out the last change.
469 2000-11-09 H.J. Lu <hjl@lucon.org>
471 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
472 TCP is not supported by kernel.
474 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
476 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
477 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
479 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
481 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
483 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
484 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
485 callbacks to local lockd.
487 2000-10-18 Scott McDermott <mcdermot@questra.com>
489 * utils/exportfs/exports.man: Updated for CIDR netmask.
491 2000-10-17 Scott McDermott <mcdermot@questra.com>
493 * support/export/client.c (client_init): Support CIDR netmask
496 2000-10-11 H.J. Lu <hjl@lucon.org>
498 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
499 * configure: Rebuilt.
501 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
503 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
504 "/var/lib/nfs/state".
506 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
508 * utils/statd/statd.h (run_mode): New global bitmask of runtime
509 behaviors: fg/bg, logging, etc.
510 * utils/statd/statd.c: New command line options: -V -h -? -d .
511 * utils/statd/statd.man: Update for changes to statd.
513 * utils/statd/log.h (log_init): Remove parameter of function; use
514 global variable "name_p" instead.
515 * utils/statd/log.c: Add support for logging to stderr.
517 * utils/statd/notlist.c: Partially rewrite notify list handling
518 functions. Eliminate run-off-end-of-list bug when calling
519 nlist_insert_timer. Add lots of comments.
521 2000-09-27 H.J. Lu <hjl@lucon.org>
523 * README: Updated for RedHat 7.0.
525 2000-09-27 H.J. Lu <hjl@lucon.org>
527 * nfs-utils.spec: Rebuild.
529 2000-09-27 H.J. Lu <hjl@lucon.org>
531 * README: Updated for 0.2.1.
533 2000-09-27 H.J. Lu <hjl@lucon.org>
535 * nfs-utils.spec.in: Updated to use rpm macros and support
538 2000-09-25 H.J. Lu <hjl@lucon.org>
540 * configure.in (VERSION): Set to "0.2.1".
541 * configure: Regenerated.
542 * nfs-utils.spec: Updated.
544 2000-09-25 H.J. Lu <hjl@lucon.org>
546 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
547 non-NULL hostent is always returned.
549 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
551 * etc/redhat/nfslock.init: don't kill lockd processes that do not
552 have an executable (i.e. kernel threads)
554 2000-09-01 H.J. Lu <hjl@lucon.org>
556 * README: Updated for 0.2.
558 2000-09-01 Jay Weber <jweber@valinux.com>
560 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
561 supporting version 3 of nfs if available, else it will fall back to
562 version 2 support only.
564 2000-08-30 H.J. Lu <hjl@lucon.org>
566 * configure.in (VERSION): Set to "0.2".
567 * configure: Regenerated.
568 * nfs-utils.spec: Updated.
570 2000-08-25 H.J. Lu <hjl@lucon.org>
572 * support/misc/tcpwrapper.c (logit): Modify the log output.
574 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
576 * utils/rquotad/rquotad.man, utils/statd/statd.man,
577 utils/mountd/mountd.man: updated
579 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
580 * utils/rquotad/Makefile: fix comment
582 * support/misc/tcpwrapper.c (logit): added comment about waiting
583 for the children after fork()
585 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
586 zombies behind (from logit()'s fork)
587 * utils/rquotad/rquota_svc.c (main): ditto
588 * utils/statd/statd.c (main): ditto
590 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
591 to check_default instead of 0, for prognum
593 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
594 to check_default instead of 0, for prognum
596 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
597 HAVE_TCP_WRAPPER is defined.
598 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
599 defined. Reject an RPC call if check_default () fails.
601 2000-08-25 H.J. Lu <hjl@lucon.org>
603 * support/include/tcpwrapper.h: New for the tcp wrapper
605 * support/misc/Makefile: Likewise.
606 * support/misc/from_local.c: Likewise.
607 * support/misc/tcpwrapper.c: Likewise.
609 * aclocal.m4 (AC_TCP_WRAPPER): New.
610 * configure.in: Use it. Substitute LIBWRAP.
611 * configure: Rebuilt.
613 * config.mk.in (LIBNSL): New.
616 * support/Makefile (SUBDIRS): Add misc.
618 * support/lib/Makefile (LIBS): Add libmisc.a.
620 * utils/rquotad/Makefile (LIBS): Add
622 -lmisc $(LIBWRAP) $(LIBNSL)
624 * utils/statd/Makefile (LIBS): Likewise.
626 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
627 HAVE_TCP_WRAPPER is defined.
628 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
629 defined. Reject an RPC call if check_default () fails.
631 * utils/statd/statd.c: Include "tcpwrapper.h" if
632 HAVE_TCP_WRAPPER is defined.
633 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
634 check_default () before calling sm_prog_1 (). Define it as
635 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
637 2000-08-25 Chip Salzenberg <chip@valinux.com>
639 * debian/*: Complete Debian build support.
640 * etc/debian/*: Remove.
642 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
644 * support/export/client.c(client_check): removed the "dot+1" as a
645 ypdomain argument to innetgr as this is entirely bogus.
646 It should always be NULL.
648 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
650 * support/export/xtab.c(xtab_read): introduce new mode for
651 reading xtab. i.e. a list of exports that might be known to the
652 kernel, or might not. These are flagged as m_exported == -1
653 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
654 value "2" for xtab, meaning don't trust this too much.
655 * support/include/exportfs.h(struct mexport): changed m_exported
656 from one bit to an int so that it can hold new value
657 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
658 kernel if it is uncertain whether the kernel knows (m_exported == -1)
659 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
662 * support/nfs/xio.c(xflock): added O_CREAT when getting
663 a write lock so that missing files aren't fatal.
665 * etc/debian/nfs-common: new file from "potato"
666 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
668 2000-08-09 H.J. Lu <hjl@lucon.org>
670 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
671 startup to ensure all existing clients work fine.
673 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
674 to xtab_read () for reading _PATH_XTAB.
676 2000-08-02 H.J. Lu <hjl@lucon.org>
678 * utils/mountd/auth.c (auth_authenticate_internal): Try to
679 avoid the reverse name lookup.
681 2000-07-04 H.J. Lu <hjl@lucon.org>
683 * utils/statd/log.c: Include <stdlib.h> for exit ().
685 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
688 2000-07-04 H.J. Lu <hjl@lucon.org>
690 * configure.in (VERSION): Set to "0.1.9.1".
691 * configure: Regenerated.
692 * nfs-utils.spec: Updated.
696 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
698 * support/export/hostname.c (hostent_dup): Handle the NULL
701 2000-07-03 H.J. Lu <hjl@lucon.org>
703 * README: Update the util-linux requirement.
705 2000-07-03 H.J. Lu <hjl@lucon.org>
707 * configure.in (VERSION): Set to "0.1.9".
708 * configure: Regenerated.
709 * nfs-utils.spec: Updated.
713 2000-07-03 H.J. Lu <hjl@lucon.org>
715 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
716 stop to ensure all clients can still access the server
717 before it is shutdown.
719 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
721 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
722 calls with format string.
724 2000-06-28 Chip Salzenberg <chip@valinux.com>
726 * utils/statd/log.c (log): Call syslog with format string.
728 2000-06-27 H.J. Lu <hjl@lucon.org>
730 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
733 2000-06-27 H.J. Lu <hjl@lucon.org>
737 2000-06-27 H.J. Lu <hjl@lucon.org>
739 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
740 startup to ensure all existing clients are exported.
742 * configure.in (VERSION): Set to "0.1.8.2".
743 * configure: Regenerated.
744 * nfs-utils.spec: Updated.
746 2000-06-06 H.J. Lu <hjl@lucon.org>
748 * configure.in (VERSION): Set to "0.1.8.1".
749 * configure: Regenerated.
750 * nfs-utils.spec: Updated.
752 2000-06-06 H.J. Lu <hjl@lucon.org>
754 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
755 to "struct sockaddr_in *" for glibc 2.2.
756 (mount_umnt_1_svc): Likewise.
757 (mount_umntall_1_svc): Likewise.
758 (mount_export_1_svc): Likewise.
759 (mount_exportall_1_svc): Likewise.
760 (mount_pathconf_2_svc): Likewise.
761 (get_rootfh): Likewise.
763 2000-06-04 H.J. Lu <hjl@lucon.org>
765 * etc/redhat/nfs.init: Fix a typo in comment.
767 2000-05-31 H.J. Lu <hjl@lucon.org>
769 * configure.in (VERSION): Set to "0.1.8".
770 * configure: Regenerated.
771 * nfs-utils.spec: Updated.
775 2000-05-31 H.J. Lu <hjl@lucon.org>
777 * configure.in (VERSION): Set to "0.1.7.5".
778 * configure: Regenerated.
779 * nfs-utils.spec: Updated.
781 * support/include/nfslib.h (exportent): Add a new field,
782 r_count, to count the number of mounts from a client.
783 (getrmtabent): Take a new argument for position in file.
784 (putrmtabent): Likewise.
785 (fgetrmtabent): Likewise.
786 (fputrmtabent): Likewise.
787 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
788 for position in file.
789 (fgetrmtabent): Likewise.
790 (putrmtabent): Likewise.
791 (fputrmtabent): Likewise.
793 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
796 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
797 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
799 * utils/mountd/rmtab.c (mountlist_add): Likewise.
800 (mountlist_del): Likewise.
801 (mountlist_del_all): Likewise.
802 (mountlist_list): Likewise.
804 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
805 for the existing entry and initialize "r_count" to 1.
806 (mountlist_del): Decrement "r_count".
808 2000-05-18 H.J. Lu <hjl@lucon.org>
810 * configure.in (VERSION): Set to "0.1.7.4".
811 * configure: Regenerated.
812 * nfs-utils.spec: Updated.
814 2000-05-18 H.J. Lu <hjl@lucon.org>
816 * etc/redhat/nfs.init (restart): Just do stop and start.
818 2000-05-09 Jay Weber <jweber@valinux.com>
820 * utils/rquotad/hasquota.c: added support for ext3 recognition
822 * utils/rquotad/mntent.h: Likewise.
824 2000-05-01 H.J. Lu <hjl@lucon.org>
826 * configure.in (VERSION): Set to "0.1.7.3".
827 * configure: Regenerated.
828 * nfs-utils.spec: Updated.
830 2000-05-01 H.J. Lu <hjl@lucon.org>
832 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
833 mounting poins in /etc/fstab.
835 2000-05-01 H.J. Lu <hjl@lucon.org>
837 * configure.in (VERSION): Set to "0.1.7.2".
838 * configure: Regenerated.
839 * nfs-utils.spec: Updated.
841 2000-05-01 H.J. Lu <hjl@lucon.org>
843 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
844 to check for the mounting point.
846 2000-04-29 Chip Salzenberg <chip@valinux.com>
847 Neil Brown <neilb@cse.unsw.edu.au>
849 * Really re-use RPC ports.
850 (Fixes earlier patch. Sorry, Neil.)
852 2000-04-26 H.J. Lu <hjl@lucon.org>
854 * configure.in (VERSION): Set to "0.1.7.1".
855 * configure: Regenerated.
856 * nfs-utils.spec: Updated.
858 2000-04-26 H.J. Lu <hjl@lucon.org>
860 * etc/redhat/nfslock.init: Check if lockd exits before killing
863 2000-04-25 H.J. Lu <hjl@lucon.org>
865 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
867 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
869 * support/nfs/exports.c (parsesquash): Correctly set the
872 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
874 * support/include/nfs/nfs.h: Removed knowledge of internals of
875 kernel filehandles (which can change) and defined nfs_fh_size
876 which has variable size
878 * support/nfs/getfh.c: defined getfh_size to use new syscall to
879 get variable sized file handles, and change getfh{,old} to
882 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
885 * tools/Makefile, tools/nlmtest/nlmtest.c
886 nlmtest.c depended on internel format of file handles, so now
890 2000-03-12 Chip Salzenberg <chip@valinux.com>
891 Neil Brown <neilb@cse.unsw.edu.au>
893 * support/nfs/rpcmisc.c (rpc_init): Share transports.
895 2000-03-13 H.J. Lu <hjl@lucon.org>
897 * etc/redhat/nfsd.init: Updated.
899 * etc/redhat/nfslock.init: Updated.
901 * nfs-utils.spec.in: Updated.
903 * configure.in (VERSION): Set to "0.1.7".
904 * configure: Regenerated.
905 * nfs-utils.spec: Updated.
909 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
911 * utils/exportfs/exportfs.c (dump): Included printing of
912 nohide, no_subtree_check, and insecure_locks
914 2000-02-26 Chip Salzenberg <chip@valinux.com>
916 * config.mk.in (INSTALLSUID): Strip ("-s").
917 (INSTALLSCRIPT): Define.
918 * utils/nhfsstone/Makefile: Use it.
920 2000-02-26 Chip Salzenberg <chip@valinux.com>
922 * utils/lockd/lockd.man: Create.
923 * utils/lockd/Makefile: Install it.
924 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
925 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
926 * utils/nhfsstone/Makefile: Install the helper scripts and
928 * utils/exportfs/exports.man: Fix typo.
930 2000-02-26 Chip Salzenberg <chip@valinux.com>
932 * support/nfs/xio.c (xungetc): Decrement line number when
933 character to unget is newline. Make first parameter int, so
934 it can distinguish EOF from \377.
935 * support/include/xio.h (xungetc): Adjust prototype.
937 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
939 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
940 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
941 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
943 This is for supporting a new option introduced in 2.3.42
945 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
947 * COPYING: Added. GPL.
949 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
951 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
952 to get the block size.
954 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
956 * nfs-utils.spec.in: Update ftp site.
958 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
960 * README: Update hostnames.
962 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
964 * configure.in (VERSION): Set to "0.1.6".
965 * configure: Regenerated.
966 * nfs-utils.spec: Updated.
970 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
972 * utils/mountd/auth.c (auth_authenticate_internal): Call
973 xstrdup for hostname before passing it to gethostbyname.
975 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
978 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
980 * README: Update the mailing list address.
982 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
984 * configure.in (VERSION): Set to "0.1.5".
985 * configure: Regenerated.
986 * nfs-utils.spec: Updated.
990 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
992 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
995 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
997 * configure.in (VERSION): Set to "0.1.4".
998 * configure: Regenerated.
999 * nfs-utils.spec: Updated.
1003 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1005 * nfs-utils.spec.in: New file.
1007 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1009 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1011 1999-12-04 Chip Salzenberg <chip@valinux.com>
1013 * config.mk.in: Use $(CC) as set by configure.
1015 1999-12-04 Chip Salzenberg <chip@valinux.com>
1017 * rules.mk: Call $(MAKE) with $(MFLAGS).
1019 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1021 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1022 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1024 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1026 * nfs-utils.spec (Version): Set to 0.1.3.
1028 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1029 * configure: Regenerated.
1033 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1035 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1036 (_PATH_DEV_DSK): Likewise.
1037 (getquotainfo): Match the mounting point from /etc/mtab
1038 instead of calling nfsmount_to_devname ().
1040 1999-11-24 Chip Salzenberg <chip@valinux.com>
1042 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1043 to the new port 24 as well as the historical port 100021.
1045 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1047 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1048 stopping nfsd to stop spurious ESTALE on server shutdown.
1050 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1052 * support/nfs/exports.c (parseopts): make copy of opt string
1053 before 'nul'ing out commas so that
1055 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1057 applies both options to both exports.
1059 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1061 * README: Fix a few typos.
1063 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1065 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1066 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1067 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1068 (unsigned_dec): Likewise.
1069 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1070 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1072 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1074 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1075 (unsigned_dec): Likewise.
1076 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1077 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1078 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1080 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1082 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1083 * support/nfs/exports.c: added {no_,}subtree_check and changed
1085 * utils/exportfs/exports.man: added no_subtree_check and nohide
1086 and removed irrelevant stuff from unfsd.
1087 * support/export/rmtab.c: rmtab_read didn't quite do the right
1088 thing if a pathname from rmtab was a subdirectory of an export-point
1090 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1092 * README: Updated ftp site.
1094 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1096 * nfs-utils.spec (Version): Set to 0.1.2.
1098 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1099 * configure: Regenerated.
1103 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1105 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1106 (auth_authenticate_internal): Check for NULL return on forward
1108 (auth_authenticate): Handle "no_forward_dns".
1110 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1112 * Version 0.1.1 released.
1114 * nfs-utils.spec (Version): Set to 0.1.1.
1116 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1117 * configure: Regenerated.
1121 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1123 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1125 (Provides): Likewise.
1127 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1129 * Initial version 0.1 released.
1131 * configure.in (VERSION): Set to "nfs-utils 0.1".
1132 * configure: Regenerated.
1134 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1136 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1138 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1139 kernel only if the entry is exported to kernel.
1140 (unexportfs): Likewise.
1142 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1144 1/ utils/mountd/rmtab.c::mountlist_list
1146 This routine stats the rmtab file to see if it has changed. It
1147 if has, it cleans up it's old copy of the data. But it still
1148 always re-read the file, thus returning multiple copies of the
1149 data on consecutive calls without intervening changes.
1150 "Showmount -a" didn't show this as it appears to sort/unique the
1151 data, but 'strace showmount -a' showed that the size of the
1152 datagram that it received grew.
1154 I moved the getrmtabent loop inside the mtime test.
1156 2/ utils/exportfs/exportfs.c
1158 Many routines used the m_path field of m_export instead of
1160 According to the comment in nfslib.h, m_path should only
1161 be used when processing a mount request (i.e. in mountd)
1162 where the mountpoint may be a subdirectory of the export point.
1164 I changed all occurances of m_path to e_path
1167 3/ utils/exportfs/exportfs.c:main
1169 extra arguments are not meaningful with -a or -r, but
1170 exportfs accepted them and then ignored the -a/-r, expect that
1171 -r would still unexport everything first.
1173 I generate an error if there are extra args and f_all
1175 4/ utils/exportfs/exportfs.c:main
1176 extract dump out as a special case.
1178 5/ utils/exportfs/exportfs.c
1179 made f_reexport a local variable.
1182 6/ utils/exportfs/exportfs.c:main,exportall
1184 support/export/rmtab.c
1185 only mayexport on newly created entries, don't set xtabent at all
1187 7/ support/include/nfslib.h
1189 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1191 8/ support/export/xtab.c
1193 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1197 9/ support/export/xtab.c
1199 xtab_mount_read now sets m_exported, and NOT
1200 xtabent and mayexport
1202 removed the append arguement from xtab_write as it was
1205 added is_export flag to xtab_write similar to xtab_read
1206 if is_export, only write entries with m_xtabent or m_addxtab
1207 if !is_export, only write entries with m_exported
1209 10/ support/export/export.c::export_allowed_internal
1211 added test for exp->m_mayexport, as the export tree
1212 may have entries that are no longer allowed to be exported,
1213 and so shouldn't caused deduced exported by rmtab_read
1215 11/ utils/exportfs/exportfs.c::main
1216 error checking of flags.
1218 12/ utils/exportfs/exportfs.c
1220 total rewrite of export and unexport logic.
1222 - build an exportslist of valid exports, based on
1223 current etab file and arguments,
1224 - read rmtab to instantiate relevant wild card entries
1225 - read etab to find out what is currently exported
1226 - synchronise intention with reality
1227 - write out etab and xtab
1230 discard the m_addxtab flag
1231 add m_changed flag so we know what to report in exportfs
1233 14/ utils/mountd/auth.c:auth_authenticate
1235 the value returned by gethostbyaddr was trusted.
1237 It now follows this with a call to gethostbyname
1238 and checks that the address is in the list.
1240 15/ support/export/nfsctl.c::cltsetup,expsetup
1242 force client names to lowercase as kernel is
1245 16/ quietened a few compiler warnings
1247 17/ support/export/client:client_lookup
1249 look for pre-existing client with same name before creating
1252 18/ support/include/exportfs.h
1254 The ordering of the MCL_* enum was:
1255 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1257 I moved ANONYMOUS to the end.
1259 The ordering is significant when an export entry is being searched for to
1260 match a given address. There are two problems with ANONYMOUS being first.
1262 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1263 then the ro case will always be found first and the privileged hosts won't get
1265 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1266 export entry for the specific host, and writes it to xtab.
1267 When another request comes from the same host, the ANONYMOUS entry is found again,
1268 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1269 again. If causes bloat in xtab.
1271 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1273 19/ utils/exportfs/exportfs.man
1274 many updates to the man page to reflect changes to the code
1276 -----------------------
1282 - allow exportfs to modify rmtab file
1283 - make sure kernel never gets two clients with same IP address
1284 - possible kernel should reject
1285 - needs to be some way to lookup client in kernel by IP address
1286 - maybe get kernel to do case-insensitive comparisons on client names
1287 - remove unused clients from kernel
1289 - change etab to xtab and xtab to xtab.active
1291 - timestamp and/or statd-stamp in rmtab for removing old entries.
1293 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1295 * linux-nfs: New directory.
1296 * linux-nfs/ChangeLog: Moved from ..
1297 * linux-nfs/INSTALL: Likewise.
1298 * linux-nfs/KNOWNBUGS: Likewise.
1299 * linux-nfs/NEW: Likewise.
1300 * linux-nfs/README: Likewise.
1301 * linux-nfs/THANKS: Likewise.
1302 * linux-nfs/TODO: Likewise.
1304 * Starting from knfsd 1.4.7.