1 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
3 * support/export/client.c (client_lookup): use strcasecmp when
5 * support/nfs/export.c (getexportent): add fromkernel arg and use
6 different defaults as kernels prior to 2.4.11 assume different
7 defaults in /proc/fs/nfs/exports
8 * support/include/nfslib.h, support/export/export.c,
9 support/export/xtab.c: support extra "fromkernel" arg for
12 2001-12-13 Chip Salzenberg <chip@pobox.com>
14 * debian/changelog: Version 0.3.3-5.
16 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
18 * support/nfs/xio.c (xskip): Call `xungetc' instead of
19 `ungetc' to keep x_line more properly.
21 2001-11-26 Chip Salzenberg <chip@pobox.com>
23 * utils/showmount/showmount.c (main): Don't assume that strings
24 starting with digits are IP addresses.
25 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
26 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
27 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
28 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
29 man pages: We check host names *and* addresses with tcpwrappers.
30 * debian/changelog: Version 0.3.3-4.
32 2001-11-21 Chip Salzenberg <chip@pobox.com>
34 * support/nfs/clients.c (cfname): Added: current clients file name.
35 (setnfsclntent): Set it.
36 ({get,end}nfsclntent, syntaxerr): Use it.
37 * support/nfs/exports.c (efname): Added: current exports file name.
38 (setnfsexportent): Set it.
39 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
40 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
41 * debian/changelog: Version 0.3.3-3.
43 2001-10-11 Chip Salzenberg <chip@pobox.com>
45 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
46 * debian/changelog: Version 0.3.3-2.
48 2001-10-08 Chip Salzenberg <chip@pobox.com>
50 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
51 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
52 * utils/mountd/mountd.man: Update paths to /var/lib.
53 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
55 2001-10-06 Preston Brown <pbrown@redhat.com>
57 * utils/nfsstat/nfsstat.man: Updated.
59 2001-09-24 H.J. Lu <hjl@lucon.org>
61 * configure.in (VERSION): Set to "0.3.3".
62 * configure: Regenerated.
63 * nfs-utils.spec: Likewise.
65 * README: Updated for 0.3.3.
67 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
69 Arrange that "exportfs -au" never does DNS lookup:
71 * support/export/client.c (client_lookup) : add "canonical"
72 flag which says that the hostname is known to be canonical, so
75 * support/export/export.c (export_create) : add "canonical"
76 flag to be passed down to client_lookup
77 * support/export/export.c (export_lookup) : Likewise
79 * support/export/xtab.c (xtab_read) : pass appropriate
80 "canonical" flag to export_lookup and export_create:
81 set if reading list of filesystems currently exports
84 * support/export/export.c (export_read) : pass 0 as
85 "canonical" flag to export_lookup and export_create
86 * support/export/rmtab.s (rmtab_read) : Likewise
88 * support/include/exportfs.h : redeclare various routines
89 to have "canonical" flag
91 * utils/exportfs/exportfs.c (main) : redo logic for
92 "-au" to read in what is currently exported, but never even
93 look at what "should" be exported.
95 * utils/exportfs/exportfs.c (unexportall) : remove this
96 routine. Functionality is completely included in
99 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
100 flag to zero in calls to export_lookup and export_create.
103 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
104 Anne Milicia <milicia@missioncriticallinux.com>
106 * support/export/client.c (client_lookup) call gethostbyadd
107 to make sure that we have a canonical hostname, even for
109 * utils/exportfs/exportfs.c (exportfs) Likewise
111 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
113 * support/nfs/exports.c (putexportent): \octal quote any spaces
115 * support/nfs/xio.c (xgettok): recognise double-quote and
116 \octal quoting in path names
117 * utils/exportfs/exports.man: document quoting conventions
120 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
122 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
123 change from 2000-08-02: It causes problems if someone exports
124 to both a hostname and IP addresses. nfs-utils must be
125 consistant about the canonical name that it chooses.
127 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
128 H.J. Lu <hjl@lucon.org>
130 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
132 * utils/statd/statd.c (longopts): Add "name".
133 (usage): Add "-n/--name".
134 (main): Set MY_NAME with "-n/--name".
136 * utils/statd/state.c (change_state): Set MY_NAME only if it
139 * utils/statd/statd.man: Updated for "-n/--name".
141 2001-07-26 H.J. Lu <hjl@lucon.org>
143 * nfs-utils.spec (Release): Set to 8.
145 2001-07-25 H.J. Lu <hjl@lucon.org>
147 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
150 2001-06-27 H.J. Lu <hjl@lucon.org>
152 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
154 2001-06-27 H.J. Lu <hjl@lucon.org>
156 * utils/rquotad/rquota_server.c: Don't call statfs () for
157 the block size. Use BLOCK_SIZE instead.
159 2001-06-27 H.J. Lu <hjl@lucon.org>
161 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
162 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
164 * configure.in (enable_nfsv3): Set to yes by default.
165 (--enable-rquotad): Added
166 (AC_PROG_CXX): Removed.
167 (AC_OUTPUT): Add utils/Makefile.
168 (CC_FOR_BUILD): Renamed from BUILD_CC.
169 * configure: Regenerated.
171 * utils/Makefile: Removed.
173 * utils/Makefile.in: New.
175 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
177 (CC_FOR_BUILD): Renamed from BUILD_CC.
178 * nfs-utils.spec: Regenerated.
180 2001-06-15 Chip Salzenberg <chip@debian.org>
182 * debian/changelog: Version 0.3.2-2.
183 * debian/*.init: Minor fixes.
185 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
187 * etc/nodist/nfs-server: Fixed a bug where the script would
188 disable mounts from NFSv3 clients if NFSv3 is present.
190 2001-06-05 H.J. Lu <hjl@lucon.org>
192 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
193 (main): Support --descriptors/-o to set the limit of the number
194 of open file descriptors.
197 * utils/mountd/mountd.man: Updated for --descriptors/-o.
199 2001-06-04 H.J. Lu <hjl@lucon.org>
201 * nfs-utils.spec (Release): Set to 6.
203 2001-05-28 H.J. Lu <hjl@lucon.org>
205 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
206 * utils/mountd/mountd.c (main): Likewise.
207 * utils/nfsd/nfsd.c (main): Likewise.
208 * utils/rquotad/rquota_svc.c (main): Likewise.
210 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
212 * support/export/client.c (client_check): Check IP address
215 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
217 * support/export/client.c (client_gettype): Treat `*' as
220 2001-04-22 H.J. Lu <hjl@lucon.org>
222 * nfs-utils.spec.in: Fix a typo.
223 * nfs-utils.spec: Regenerated.
225 2001-04-21 H.J. Lu <hjl@lucon.org>
227 * nfs-utils.spec.in: Fix cross build.
228 * nfs-utils.spec: Regenerated.
231 2001-04-18 H.J. Lu <hjl@lucon.org>
233 * nfs-utils.spec.in: Support cross build.
234 * nfs-utils.spec: Regenerated.
240 * config.mk.in (BUILD_CC): New.
241 (CC): Set to $(BUILD_CC) if BUILD is defined.
244 (RANLIB): Set to @RANLIB@.
246 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
247 * configure: Regenerated.
249 * tools/rpcgen/Makefile (BUILD): Set to true.
251 2001-04-01 Chip Salzenberg <chip@valinux.com>
253 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
254 redundant, and sometimes broken, declaration of svc_fdset;
256 * support/nfs/rpcmisc.c (closedown): Likewise.
258 2001-03-21 H.J. Lu <hjl@lucon.org>
260 * nfs-utils.spec: Regenerated.
263 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
265 * utils/statd/statd.c (main): make sure file descriptors 0-2
266 are open to /dev/null.
268 2001-03-21 H.J. Lu <hjl@lucon.org>
270 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
271 * support/nfs/rpcmisc.c: Likewise.
272 * utils/rquotad/rquota_svc.c: Likewise.
273 * utils/rquotad/rquotad.man: Likewise.
274 * utils/statd/Makefile: Likewise.
275 * utils/statd/rmtcall.c: Likewise.
276 * utils/statd/simulate.c: Likewise.
277 * utils/statd/statd.c: Likewise.
278 * utils/statd/statd.man: Likewise.
280 2001-03-11 H.J. Lu <hjl@lucon.org>
282 * configure.in (RELEASE): New. Default to 1, set by
283 --with-release=XXX. Substitute nfs-utils.spec.
284 * nfs-utils.spec.in (Release): Set to @RELEASE@.
285 * configure: Regenerated.
286 * nfs-utils.spec: Likewise.
288 2001-03-11 H.J. Lu <hjl@lucon.org>
290 * utils/rquotad/rquotad.man: Fix a typo.
292 2001-03-11 H.J. Lu <hjl@lucon.org>
294 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
295 * support/nfs/rpcmisc.c: Likewise.
296 * utils/rquotad/rquota_svc.c: Likewise.
297 * utils/rquotad/rquotad.man: Likewise.
298 * utils/statd/Makefile: Likewise.
299 * utils/statd/rmtcall.c: Likewise.
300 * utils/statd/simulate.c: Likewise.
301 * utils/statd/statd.c: Likewise.
302 * utils/statd/statd.man: Likewise.
304 2001-03-10 H.J. Lu <hjl@lucon.org>
306 * configure.in (VERSION): Set to "0.3.2".
307 * configure: Regenerated.
308 * nfs-utils.spec: Likewise.
310 * README: Updated for 0.3.2.
312 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
314 * utils/rquotad/rquotad.man: Updated for -p.
315 * utils/statd/statd.man: Likewise.
317 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
319 * support/nfs/rpcmisc.c: export makesock()
321 * support/include/rpcmisc.h (makesock): Declared.
323 * utils/rquotad/rquota_svc.c: added longopts, added support for
324 specifying the port to bind to on the command line.
326 * utils/statd/statd.c: ditto, also specify port used for
327 outgoing connections.
328 (do_regist): Removed.
330 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
331 get_socket. Make it extern.
333 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
334 instead of do_regist.
336 * utils/statd/Makefile (LIBS): link with our own libnfs
338 2001-03-09 H.J. Lu <hjl@lucon.org>
340 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
341 * etc/nodist/nfs-client: Likewise.
343 2001-02-26 Chip Salzenberg <chip@valinux.com>
345 * debian/changelog: Version 0.3.1-1.
346 * Mention upstream source and license in copyright file.
347 * Add build-Depends for debhelper and libwrap0-dev.
349 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
351 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
352 * etc/nodist/nfs-client: Likewise.
354 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
356 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
359 2001-02-17 Patrick J. LoPresti <patl@curl.com>
361 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
364 2001-02-14 H.J. Lu <hjl@lucon.org>
366 * utils/statd/rmtcall.c: Include <time.h>.
367 * utils/statd/svc_run.c: Likewise.
369 2001-02-14 H.J. Lu <hjl@lucon.org>
371 * configure.in (VERSION): Set to "0.3.1".
372 * configure: Regenerated.
373 * nfs-utils.spec: Likewise.
375 * README: Updated for 0.3.1.
377 2001-02-14 H.J. Lu <hjl@lucon.org>
379 * support/nfs/rpcmisc.c: Include <time.h>.
381 2001-02-14 Chip Salzenberg <chip@valinux.com>
383 * debian/control: Change priority of nhfsstone package to 'extra'.
385 2001-02-12 Chip Salzenberg <chip@valinux.com>
387 * debian/changelog: Version 0.3-2.
389 2001-02-02 H.J. Lu <hjl@lucon.org>
391 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
393 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
394 out SO_SNDBUF/SO_RCVBUF.
395 (rpc_init): Remove bufsize and remove socksz in calls to
398 * utils/mountd/mountd.c (main): Remove bufsize in calls to
401 2001-01-28 Chip Salzenberg <chip@valinux.com>
403 * debian/changelog: Version 0.3-1.
405 2001-01-25 H.J. Lu <hjl@lucon.org>
407 * configure.in (VERSION): Set to "0.3".
408 * configure: Regenerated.
409 * nfs-utils.spec: Likewise.
411 * README: Updated for 0.3.
413 2001-01-25 H.J. Lu <hjl@lucon.org>
415 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
417 2001-01-20 Chip Salzenberg <chip@valinux.com>
419 * support/include/xio.h (xgetc): Declare to return int.
420 * support/nfs/xio.c (xgetc): Return int.
421 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
422 * utils/statd/statd.c (main): Use int for value of getopt.
423 * debian/changelog: Version 0.2.1-5.
425 2000-12-10 Chip Salzenberg <chip@valinux.com>
427 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
428 program and procedure numbers of kernel lockd's callback. Also,
429 besides the old (and broken) procedure #24, allow #16 per Trond.
431 2000-12-03 Chip Salzenberg <chip@valinux.com>
433 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
434 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
435 * debian/changelog: Version 0.2.1-4.
437 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
439 * utils/mountd/auth.c (auth_authenticate): Log the bad path
442 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
444 * support/nfs/exports.c (getexportent): Check for host name
445 without option, or options without hostname, and print a warning,
446 as this is most likely a typo.
448 2000-11-19 Chip Salzenberg <chip@valinux.com>
450 * debian/control: Add dependency on portmap.
451 * debian/changelog: Version 0.2.1-3.
453 2000-11-10 H.J. Lu <hjl@lucon.org>
455 * nfs-utils.spec.in: Don't use libtool.
456 Add ChangeLog and COPYING to doc.
457 * nfs-utils.spec: Rebuild.
459 2000-11-09 H.J. Lu <hjl@lucon.org>
461 * etc/redhat/nfs.init (start): Back out the last change.
463 2000-11-09 H.J. Lu <hjl@lucon.org>
465 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
466 TCP is not supported by kernel.
468 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
470 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
471 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
473 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
475 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
477 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
478 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
479 callbacks to local lockd.
481 2000-10-18 Scott McDermott <mcdermot@questra.com>
483 * utils/exportfs/exports.man: Updated for CIDR netmask.
485 2000-10-17 Scott McDermott <mcdermot@questra.com>
487 * support/export/client.c (client_init): Support CIDR netmask
490 2000-10-11 H.J. Lu <hjl@lucon.org>
492 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
493 * configure: Rebuilt.
495 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
497 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
498 "/var/lib/nfs/state".
500 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
502 * utils/statd/statd.h (run_mode): New global bitmask of runtime
503 behaviors: fg/bg, logging, etc.
504 * utils/statd/statd.c: New command line options: -V -h -? -d .
505 * utils/statd/statd.man: Update for changes to statd.
507 * utils/statd/log.h (log_init): Remove parameter of function; use
508 global variable "name_p" instead.
509 * utils/statd/log.c: Add support for logging to stderr.
511 * utils/statd/notlist.c: Partially rewrite notify list handling
512 functions. Eliminate run-off-end-of-list bug when calling
513 nlist_insert_timer. Add lots of comments.
515 2000-09-27 H.J. Lu <hjl@lucon.org>
517 * README: Updated for RedHat 7.0.
519 2000-09-27 H.J. Lu <hjl@lucon.org>
521 * nfs-utils.spec: Rebuild.
523 2000-09-27 H.J. Lu <hjl@lucon.org>
525 * README: Updated for 0.2.1.
527 2000-09-27 H.J. Lu <hjl@lucon.org>
529 * nfs-utils.spec.in: Updated to use rpm macros and support
532 2000-09-25 H.J. Lu <hjl@lucon.org>
534 * configure.in (VERSION): Set to "0.2.1".
535 * configure: Regenerated.
536 * nfs-utils.spec: Updated.
538 2000-09-25 H.J. Lu <hjl@lucon.org>
540 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
541 non-NULL hostent is always returned.
543 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
545 * etc/redhat/nfslock.init: don't kill lockd processes that do not
546 have an executable (i.e. kernel threads)
548 2000-09-01 H.J. Lu <hjl@lucon.org>
550 * README: Updated for 0.2.
552 2000-09-01 Jay Weber <jweber@valinux.com>
554 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
555 supporting version 3 of nfs if available, else it will fall back to
556 version 2 support only.
558 2000-08-30 H.J. Lu <hjl@lucon.org>
560 * configure.in (VERSION): Set to "0.2".
561 * configure: Regenerated.
562 * nfs-utils.spec: Updated.
564 2000-08-25 H.J. Lu <hjl@lucon.org>
566 * support/misc/tcpwrapper.c (logit): Modify the log output.
568 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
570 * utils/rquotad/rquotad.man, utils/statd/statd.man,
571 utils/mountd/mountd.man: updated
573 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
574 * utils/rquotad/Makefile: fix comment
576 * support/misc/tcpwrapper.c (logit): added comment about waiting
577 for the children after fork()
579 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
580 zombies behind (from logit()'s fork)
581 * utils/rquotad/rquota_svc.c (main): ditto
582 * utils/statd/statd.c (main): ditto
584 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
585 to check_default instead of 0, for prognum
587 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
588 to check_default instead of 0, for prognum
590 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
591 HAVE_TCP_WRAPPER is defined.
592 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
593 defined. Reject an RPC call if check_default () fails.
595 2000-08-25 H.J. Lu <hjl@lucon.org>
597 * support/include/tcpwrapper.h: New for the tcp wrapper
599 * support/misc/Makefile: Likewise.
600 * support/misc/from_local.c: Likewise.
601 * support/misc/tcpwrapper.c: Likewise.
603 * aclocal.m4 (AC_TCP_WRAPPER): New.
604 * configure.in: Use it. Substitute LIBWRAP.
605 * configure: Rebuilt.
607 * config.mk.in (LIBNSL): New.
610 * support/Makefile (SUBDIRS): Add misc.
612 * support/lib/Makefile (LIBS): Add libmisc.a.
614 * utils/rquotad/Makefile (LIBS): Add
616 -lmisc $(LIBWRAP) $(LIBNSL)
618 * utils/statd/Makefile (LIBS): Likewise.
620 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
621 HAVE_TCP_WRAPPER is defined.
622 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
623 defined. Reject an RPC call if check_default () fails.
625 * utils/statd/statd.c: Include "tcpwrapper.h" if
626 HAVE_TCP_WRAPPER is defined.
627 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
628 check_default () before calling sm_prog_1 (). Define it as
629 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
631 2000-08-25 Chip Salzenberg <chip@valinux.com>
633 * debian/*: Complete Debian build support.
634 * etc/debian/*: Remove.
636 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
638 * support/export/client.c(client_check): removed the "dot+1" as a
639 ypdomain argument to innetgr as this is entirely bogus.
640 It should always be NULL.
642 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
644 * support/export/xtab.c(xtab_read): introduce new mode for
645 reading xtab. i.e. a list of exports that might be known to the
646 kernel, or might not. These are flagged as m_exported == -1
647 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
648 value "2" for xtab, meaning don't trust this too much.
649 * support/include/exportfs.h(struct mexport): changed m_exported
650 from one bit to an int so that it can hold new value
651 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
652 kernel if it is uncertain whether the kernel knows (m_exported == -1)
653 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
656 * support/nfs/xio.c(xflock): added O_CREAT when getting
657 a write lock so that missing files aren't fatal.
659 * etc/debian/nfs-common: new file from "potato"
660 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
662 2000-08-09 H.J. Lu <hjl@lucon.org>
664 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
665 startup to ensure all existing clients work fine.
667 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
668 to xtab_read () for reading _PATH_XTAB.
670 2000-08-02 H.J. Lu <hjl@lucon.org>
672 * utils/mountd/auth.c (auth_authenticate_internal): Try to
673 avoid the reverse name lookup.
675 2000-07-04 H.J. Lu <hjl@lucon.org>
677 * utils/statd/log.c: Include <stdlib.h> for exit ().
679 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
682 2000-07-04 H.J. Lu <hjl@lucon.org>
684 * configure.in (VERSION): Set to "0.1.9.1".
685 * configure: Regenerated.
686 * nfs-utils.spec: Updated.
690 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
692 * support/export/hostname.c (hostent_dup): Handle the NULL
695 2000-07-03 H.J. Lu <hjl@lucon.org>
697 * README: Update the util-linux requirement.
699 2000-07-03 H.J. Lu <hjl@lucon.org>
701 * configure.in (VERSION): Set to "0.1.9".
702 * configure: Regenerated.
703 * nfs-utils.spec: Updated.
707 2000-07-03 H.J. Lu <hjl@lucon.org>
709 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
710 stop to ensure all clients can still access the server
711 before it is shutdown.
713 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
715 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
716 calls with format string.
718 2000-06-28 Chip Salzenberg <chip@valinux.com>
720 * utils/statd/log.c (log): Call syslog with format string.
722 2000-06-27 H.J. Lu <hjl@lucon.org>
724 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
727 2000-06-27 H.J. Lu <hjl@lucon.org>
731 2000-06-27 H.J. Lu <hjl@lucon.org>
733 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
734 startup to ensure all existing clients are exported.
736 * configure.in (VERSION): Set to "0.1.8.2".
737 * configure: Regenerated.
738 * nfs-utils.spec: Updated.
740 2000-06-06 H.J. Lu <hjl@lucon.org>
742 * configure.in (VERSION): Set to "0.1.8.1".
743 * configure: Regenerated.
744 * nfs-utils.spec: Updated.
746 2000-06-06 H.J. Lu <hjl@lucon.org>
748 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
749 to "struct sockaddr_in *" for glibc 2.2.
750 (mount_umnt_1_svc): Likewise.
751 (mount_umntall_1_svc): Likewise.
752 (mount_export_1_svc): Likewise.
753 (mount_exportall_1_svc): Likewise.
754 (mount_pathconf_2_svc): Likewise.
755 (get_rootfh): Likewise.
757 2000-06-04 H.J. Lu <hjl@lucon.org>
759 * etc/redhat/nfs.init: Fix a typo in comment.
761 2000-05-31 H.J. Lu <hjl@lucon.org>
763 * configure.in (VERSION): Set to "0.1.8".
764 * configure: Regenerated.
765 * nfs-utils.spec: Updated.
769 2000-05-31 H.J. Lu <hjl@lucon.org>
771 * configure.in (VERSION): Set to "0.1.7.5".
772 * configure: Regenerated.
773 * nfs-utils.spec: Updated.
775 * support/include/nfslib.h (exportent): Add a new field,
776 r_count, to count the number of mounts from a client.
777 (getrmtabent): Take a new argument for position in file.
778 (putrmtabent): Likewise.
779 (fgetrmtabent): Likewise.
780 (fputrmtabent): Likewise.
781 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
782 for position in file.
783 (fgetrmtabent): Likewise.
784 (putrmtabent): Likewise.
785 (fputrmtabent): Likewise.
787 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
790 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
791 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
793 * utils/mountd/rmtab.c (mountlist_add): Likewise.
794 (mountlist_del): Likewise.
795 (mountlist_del_all): Likewise.
796 (mountlist_list): Likewise.
798 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
799 for the existing entry and initialize "r_count" to 1.
800 (mountlist_del): Decrement "r_count".
802 2000-05-18 H.J. Lu <hjl@lucon.org>
804 * configure.in (VERSION): Set to "0.1.7.4".
805 * configure: Regenerated.
806 * nfs-utils.spec: Updated.
808 2000-05-18 H.J. Lu <hjl@lucon.org>
810 * etc/redhat/nfs.init (restart): Just do stop and start.
812 2000-05-09 Jay Weber <jweber@valinux.com>
814 * utils/rquotad/hasquota.c: added support for ext3 recognition
816 * utils/rquotad/mntent.h: Likewise.
818 2000-05-01 H.J. Lu <hjl@lucon.org>
820 * configure.in (VERSION): Set to "0.1.7.3".
821 * configure: Regenerated.
822 * nfs-utils.spec: Updated.
824 2000-05-01 H.J. Lu <hjl@lucon.org>
826 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
827 mounting poins in /etc/fstab.
829 2000-05-01 H.J. Lu <hjl@lucon.org>
831 * configure.in (VERSION): Set to "0.1.7.2".
832 * configure: Regenerated.
833 * nfs-utils.spec: Updated.
835 2000-05-01 H.J. Lu <hjl@lucon.org>
837 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
838 to check for the mounting point.
840 2000-04-29 Chip Salzenberg <chip@valinux.com>
841 Neil Brown <neilb@cse.unsw.edu.au>
843 * Really re-use RPC ports.
844 (Fixes earlier patch. Sorry, Neil.)
846 2000-04-26 H.J. Lu <hjl@lucon.org>
848 * configure.in (VERSION): Set to "0.1.7.1".
849 * configure: Regenerated.
850 * nfs-utils.spec: Updated.
852 2000-04-26 H.J. Lu <hjl@lucon.org>
854 * etc/redhat/nfslock.init: Check if lockd exits before killing
857 2000-04-25 H.J. Lu <hjl@lucon.org>
859 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
861 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
863 * support/nfs/exports.c (parsesquash): Correctly set the
866 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
868 * support/include/nfs/nfs.h: Removed knowledge of internals of
869 kernel filehandles (which can change) and defined nfs_fh_size
870 which has variable size
872 * support/nfs/getfh.c: defined getfh_size to use new syscall to
873 get variable sized file handles, and change getfh{,old} to
876 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
879 * tools/Makefile, tools/nlmtest/nlmtest.c
880 nlmtest.c depended on internel format of file handles, so now
884 2000-03-12 Chip Salzenberg <chip@valinux.com>
885 Neil Brown <neilb@cse.unsw.edu.au>
887 * support/nfs/rpcmisc.c (rpc_init): Share transports.
889 2000-03-13 H.J. Lu <hjl@lucon.org>
891 * etc/redhat/nfsd.init: Updated.
893 * etc/redhat/nfslock.init: Updated.
895 * nfs-utils.spec.in: Updated.
897 * configure.in (VERSION): Set to "0.1.7".
898 * configure: Regenerated.
899 * nfs-utils.spec: Updated.
903 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
905 * utils/exportfs/exportfs.c (dump): Included printing of
906 nohide, no_subtree_check, and insecure_locks
908 2000-02-26 Chip Salzenberg <chip@valinux.com>
910 * config.mk.in (INSTALLSUID): Strip ("-s").
911 (INSTALLSCRIPT): Define.
912 * utils/nhfsstone/Makefile: Use it.
914 2000-02-26 Chip Salzenberg <chip@valinux.com>
916 * utils/lockd/lockd.man: Create.
917 * utils/lockd/Makefile: Install it.
918 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
919 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
920 * utils/nhfsstone/Makefile: Install the helper scripts and
922 * utils/exportfs/exports.man: Fix typo.
924 2000-02-26 Chip Salzenberg <chip@valinux.com>
926 * support/nfs/xio.c (xungetc): Decrement line number when
927 character to unget is newline. Make first parameter int, so
928 it can distinguish EOF from \377.
929 * support/include/xio.h (xungetc): Adjust prototype.
931 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
933 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
934 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
935 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
937 This is for supporting a new option introduced in 2.3.42
939 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
941 * COPYING: Added. GPL.
943 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
945 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
946 to get the block size.
948 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
950 * nfs-utils.spec.in: Update ftp site.
952 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
954 * README: Update hostnames.
956 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
958 * configure.in (VERSION): Set to "0.1.6".
959 * configure: Regenerated.
960 * nfs-utils.spec: Updated.
964 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
966 * utils/mountd/auth.c (auth_authenticate_internal): Call
967 xstrdup for hostname before passing it to gethostbyname.
969 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
972 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
974 * README: Update the mailing list address.
976 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
978 * configure.in (VERSION): Set to "0.1.5".
979 * configure: Regenerated.
980 * nfs-utils.spec: Updated.
984 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
986 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
989 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
991 * configure.in (VERSION): Set to "0.1.4".
992 * configure: Regenerated.
993 * nfs-utils.spec: Updated.
997 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
999 * nfs-utils.spec.in: New file.
1001 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1003 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1005 1999-12-04 Chip Salzenberg <chip@valinux.com>
1007 * config.mk.in: Use $(CC) as set by configure.
1009 1999-12-04 Chip Salzenberg <chip@valinux.com>
1011 * rules.mk: Call $(MAKE) with $(MFLAGS).
1013 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1015 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1016 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1018 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1020 * nfs-utils.spec (Version): Set to 0.1.3.
1022 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1023 * configure: Regenerated.
1027 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1029 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1030 (_PATH_DEV_DSK): Likewise.
1031 (getquotainfo): Match the mounting point from /etc/mtab
1032 instead of calling nfsmount_to_devname ().
1034 1999-11-24 Chip Salzenberg <chip@valinux.com>
1036 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1037 to the new port 24 as well as the historical port 100021.
1039 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1041 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1042 stopping nfsd to stop spurious ESTALE on server shutdown.
1044 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1046 * support/nfs/exports.c (parseopts): make copy of opt string
1047 before 'nul'ing out commas so that
1049 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1051 applies both options to both exports.
1053 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1055 * README: Fix a few typos.
1057 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1059 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1060 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1061 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1062 (unsigned_dec): Likewise.
1063 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1064 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1066 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1068 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1069 (unsigned_dec): Likewise.
1070 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1071 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1072 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1074 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1076 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1077 * support/nfs/exports.c: added {no_,}subtree_check and changed
1079 * utils/exportfs/exports.man: added no_subtree_check and nohide
1080 and removed irrelevant stuff from unfsd.
1081 * support/export/rmtab.c: rmtab_read didn't quite do the right
1082 thing if a pathname from rmtab was a subdirectory of an export-point
1084 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1086 * README: Updated ftp site.
1088 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1090 * nfs-utils.spec (Version): Set to 0.1.2.
1092 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1093 * configure: Regenerated.
1097 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1099 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1100 (auth_authenticate_internal): Check for NULL return on forward
1102 (auth_authenticate): Handle "no_forward_dns".
1104 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1106 * Version 0.1.1 released.
1108 * nfs-utils.spec (Version): Set to 0.1.1.
1110 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1111 * configure: Regenerated.
1115 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1117 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1119 (Provides): Likewise.
1121 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1123 * Initial version 0.1 released.
1125 * configure.in (VERSION): Set to "nfs-utils 0.1".
1126 * configure: Regenerated.
1128 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1130 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1132 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1133 kernel only if the entry is exported to kernel.
1134 (unexportfs): Likewise.
1136 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1138 1/ utils/mountd/rmtab.c::mountlist_list
1140 This routine stats the rmtab file to see if it has changed. It
1141 if has, it cleans up it's old copy of the data. But it still
1142 always re-read the file, thus returning multiple copies of the
1143 data on consecutive calls without intervening changes.
1144 "Showmount -a" didn't show this as it appears to sort/unique the
1145 data, but 'strace showmount -a' showed that the size of the
1146 datagram that it received grew.
1148 I moved the getrmtabent loop inside the mtime test.
1150 2/ utils/exportfs/exportfs.c
1152 Many routines used the m_path field of m_export instead of
1154 According to the comment in nfslib.h, m_path should only
1155 be used when processing a mount request (i.e. in mountd)
1156 where the mountpoint may be a subdirectory of the export point.
1158 I changed all occurances of m_path to e_path
1161 3/ utils/exportfs/exportfs.c:main
1163 extra arguments are not meaningful with -a or -r, but
1164 exportfs accepted them and then ignored the -a/-r, expect that
1165 -r would still unexport everything first.
1167 I generate an error if there are extra args and f_all
1169 4/ utils/exportfs/exportfs.c:main
1170 extract dump out as a special case.
1172 5/ utils/exportfs/exportfs.c
1173 made f_reexport a local variable.
1176 6/ utils/exportfs/exportfs.c:main,exportall
1178 support/export/rmtab.c
1179 only mayexport on newly created entries, don't set xtabent at all
1181 7/ support/include/nfslib.h
1183 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1185 8/ support/export/xtab.c
1187 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1191 9/ support/export/xtab.c
1193 xtab_mount_read now sets m_exported, and NOT
1194 xtabent and mayexport
1196 removed the append arguement from xtab_write as it was
1199 added is_export flag to xtab_write similar to xtab_read
1200 if is_export, only write entries with m_xtabent or m_addxtab
1201 if !is_export, only write entries with m_exported
1203 10/ support/export/export.c::export_allowed_internal
1205 added test for exp->m_mayexport, as the export tree
1206 may have entries that are no longer allowed to be exported,
1207 and so shouldn't caused deduced exported by rmtab_read
1209 11/ utils/exportfs/exportfs.c::main
1210 error checking of flags.
1212 12/ utils/exportfs/exportfs.c
1214 total rewrite of export and unexport logic.
1216 - build an exportslist of valid exports, based on
1217 current etab file and arguments,
1218 - read rmtab to instantiate relevant wild card entries
1219 - read etab to find out what is currently exported
1220 - synchronise intention with reality
1221 - write out etab and xtab
1224 discard the m_addxtab flag
1225 add m_changed flag so we know what to report in exportfs
1227 14/ utils/mountd/auth.c:auth_authenticate
1229 the value returned by gethostbyaddr was trusted.
1231 It now follows this with a call to gethostbyname
1232 and checks that the address is in the list.
1234 15/ support/export/nfsctl.c::cltsetup,expsetup
1236 force client names to lowercase as kernel is
1239 16/ quietened a few compiler warnings
1241 17/ support/export/client:client_lookup
1243 look for pre-existing client with same name before creating
1246 18/ support/include/exportfs.h
1248 The ordering of the MCL_* enum was:
1249 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1251 I moved ANONYMOUS to the end.
1253 The ordering is significant when an export entry is being searched for to
1254 match a given address. There are two problems with ANONYMOUS being first.
1256 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1257 then the ro case will always be found first and the privileged hosts won't get
1259 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1260 export entry for the specific host, and writes it to xtab.
1261 When another request comes from the same host, the ANONYMOUS entry is found again,
1262 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1263 again. If causes bloat in xtab.
1265 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1267 19/ utils/exportfs/exportfs.man
1268 many updates to the man page to reflect changes to the code
1270 -----------------------
1276 - allow exportfs to modify rmtab file
1277 - make sure kernel never gets two clients with same IP address
1278 - possible kernel should reject
1279 - needs to be some way to lookup client in kernel by IP address
1280 - maybe get kernel to do case-insensitive comparisons on client names
1281 - remove unused clients from kernel
1283 - change etab to xtab and xtab to xtab.active
1285 - timestamp and/or statd-stamp in rmtab for removing old entries.
1287 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1289 * linux-nfs: New directory.
1290 * linux-nfs/ChangeLog: Moved from ..
1291 * linux-nfs/INSTALL: Likewise.
1292 * linux-nfs/KNOWNBUGS: Likewise.
1293 * linux-nfs/NEW: Likewise.
1294 * linux-nfs/README: Likewise.
1295 * linux-nfs/THANKS: Likewise.
1296 * linux-nfs/TODO: Likewise.
1298 * Starting from knfsd 1.4.7.