1 2001-09020 NeilBrown <neilb@cse.unsw.edu.au>
2 Anne Milicia <milicia@missioncriticallinux.com>
4 * support/export/client.c (client_lookup) call gethostbyadd
5 to make sure that we have a canonical hostname, even for
7 * utils/exportfs/exportfs.c (exportfs) Likewise
9 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
11 * support/nfs/exports.c (putexportent): \octal quote any spaces
13 * support/nfs/xio.c (xgettok): recognise double-quote and
14 \octal quoting in path names
15 * utils/exportfs/exports.man: document quoting conventions
18 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
20 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
21 change from 2000-08-02: It causes problems if someone exports
22 to both a hostname and IP addresses. nfs-utils must be
23 consistant about the canonical name that it chooses.
25 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
26 H.J. Lu <hjl@lucon.org>
28 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
30 * utils/statd/statd.c (longopts): Add "name".
31 (usage): Add "-n/--name".
32 (main): Set MY_NAME with "-n/--name".
34 * utils/statd/state.c (change_state): Set MY_NAME only if it
37 * utils/statd/statd.man: Updated for "-n/--name".
39 2001-07-26 H.J. Lu <hjl@lucon.org>
41 * nfs-utils.spec (Release): Set to 8.
43 2001-07-25 H.J. Lu <hjl@lucon.org>
45 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
48 2001-06-27 H.J. Lu <hjl@lucon.org>
50 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
52 2001-06-27 H.J. Lu <hjl@lucon.org>
54 * utils/rquotad/rquota_server.c: Don't call statfs () for
55 the block size. Use BLOCK_SIZE instead.
57 2001-06-27 H.J. Lu <hjl@lucon.org>
59 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
60 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
62 * configure.in (enable_nfsv3): Set to yes by default.
63 (--enable-rquotad): Added
64 (AC_PROG_CXX): Removed.
65 (AC_OUTPUT): Add utils/Makefile.
66 (CC_FOR_BUILD): Renamed from BUILD_CC.
67 * configure: Regenerated.
69 * utils/Makefile: Removed.
71 * utils/Makefile.in: New.
73 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
75 (CC_FOR_BUILD): Renamed from BUILD_CC.
76 * nfs-utils.spec: Regenerated.
78 2001-06-15 Chip Salzenberg <chip@debian.org>
80 * debian/changelog: Version 0.3.2-2.
81 * debian/*.init: Minor fixes.
83 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
85 * etc/nodist/nfs-server: Fixed a bug where the script would
86 disable mounts from NFSv3 clients if NFSv3 is present.
88 2001-06-05 H.J. Lu <hjl@lucon.org>
90 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
91 (main): Support --descriptors/-o to set the limit of the number
92 of open file descriptors.
95 * utils/mountd/mountd.man: Updated for --descriptors/-o.
97 2001-06-04 H.J. Lu <hjl@lucon.org>
99 * nfs-utils.spec (Release): Set to 6.
101 2001-05-28 H.J. Lu <hjl@lucon.org>
103 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
104 * utils/mountd/mountd.c (main): Likewise.
105 * utils/nfsd/nfsd.c (main): Likewise.
106 * utils/rquotad/rquota_svc.c (main): Likewise.
108 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
110 * support/export/client.c (client_check): Check IP address
113 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
115 * support/export/client.c (client_gettype): Treat `*' as
118 2001-04-22 H.J. Lu <hjl@lucon.org>
120 * nfs-utils.spec.in: Fix a typo.
121 * nfs-utils.spec: Regenerated.
123 2001-04-21 H.J. Lu <hjl@lucon.org>
125 * nfs-utils.spec.in: Fix cross build.
126 * nfs-utils.spec: Regenerated.
129 2001-04-18 H.J. Lu <hjl@lucon.org>
131 * nfs-utils.spec.in: Support cross build.
132 * nfs-utils.spec: Regenerated.
138 * config.mk.in (BUILD_CC): New.
139 (CC): Set to $(BUILD_CC) if BUILD is defined.
142 (RANLIB): Set to @RANLIB@.
144 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
145 * configure: Regenerated.
147 * tools/rpcgen/Makefile (BUILD): Set to true.
149 2001-04-01 Chip Salzenberg <chip@valinux.com>
151 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
152 redundant, and sometimes broken, declaration of svc_fdset;
154 * support/nfs/rpcmisc.c (closedown): Likewise.
156 2001-03-21 H.J. Lu <hjl@lucon.org>
158 * nfs-utils.spec: Regenerated.
161 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
163 * utils/statd/statd.c (main): make sure file descriptors 0-2
164 are open to /dev/null.
166 2001-03-21 H.J. Lu <hjl@lucon.org>
168 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
169 * support/nfs/rpcmisc.c: Likewise.
170 * utils/rquotad/rquota_svc.c: Likewise.
171 * utils/rquotad/rquotad.man: Likewise.
172 * utils/statd/Makefile: Likewise.
173 * utils/statd/rmtcall.c: Likewise.
174 * utils/statd/simulate.c: Likewise.
175 * utils/statd/statd.c: Likewise.
176 * utils/statd/statd.man: Likewise.
178 2001-03-11 H.J. Lu <hjl@lucon.org>
180 * configure.in (RELEASE): New. Default to 1, set by
181 --with-release=XXX. Substitute nfs-utils.spec.
182 * nfs-utils.spec.in (Release): Set to @RELEASE@.
183 * configure: Regenerated.
184 * nfs-utils.spec: Likewise.
186 2001-03-11 H.J. Lu <hjl@lucon.org>
188 * utils/rquotad/rquotad.man: Fix a typo.
190 2001-03-11 H.J. Lu <hjl@lucon.org>
192 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
193 * support/nfs/rpcmisc.c: Likewise.
194 * utils/rquotad/rquota_svc.c: Likewise.
195 * utils/rquotad/rquotad.man: Likewise.
196 * utils/statd/Makefile: Likewise.
197 * utils/statd/rmtcall.c: Likewise.
198 * utils/statd/simulate.c: Likewise.
199 * utils/statd/statd.c: Likewise.
200 * utils/statd/statd.man: Likewise.
202 2001-03-10 H.J. Lu <hjl@lucon.org>
204 * configure.in (VERSION): Set to "0.3.2".
205 * configure: Regenerated.
206 * nfs-utils.spec: Likewise.
208 * README: Updated for 0.3.2.
210 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
212 * utils/rquotad/rquotad.man: Updated for -p.
213 * utils/statd/statd.man: Likewise.
215 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
217 * support/nfs/rpcmisc.c: export makesock()
219 * support/include/rpcmisc.h (makesock): Declared.
221 * utils/rquotad/rquota_svc.c: added longopts, added support for
222 specifying the port to bind to on the command line.
224 * utils/statd/statd.c: ditto, also specify port used for
225 outgoing connections.
226 (do_regist): Removed.
228 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
229 get_socket. Make it extern.
231 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
232 instead of do_regist.
234 * utils/statd/Makefile (LIBS): link with our own libnfs
236 2001-03-09 H.J. Lu <hjl@lucon.org>
238 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
239 * etc/nodist/nfs-client: Likewise.
241 2001-02-26 Chip Salzenberg <chip@valinux.com>
243 * debian/changelog: Version 0.3.1-1.
244 * Mention upstream source and license in copyright file.
245 * Add build-Depends for debhelper and libwrap0-dev.
247 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
249 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
250 * etc/nodist/nfs-client: Likewise.
252 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
254 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
257 2001-02-17 Patrick J. LoPresti <patl@curl.com>
259 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
262 2001-02-14 H.J. Lu <hjl@lucon.org>
264 * utils/statd/rmtcall.c: Include <time.h>.
265 * utils/statd/svc_run.c: Likewise.
267 2001-02-14 H.J. Lu <hjl@lucon.org>
269 * configure.in (VERSION): Set to "0.3.1".
270 * configure: Regenerated.
271 * nfs-utils.spec: Likewise.
273 * README: Updated for 0.3.1.
275 2001-02-14 H.J. Lu <hjl@lucon.org>
277 * support/nfs/rpcmisc.c: Include <time.h>.
279 2001-02-14 Chip Salzenberg <chip@valinux.com>
281 * debian/control: Change priority of nhfsstone package to 'extra'.
283 2001-02-12 Chip Salzenberg <chip@valinux.com>
285 * debian/changelog: Version 0.3-2.
287 2001-02-02 H.J. Lu <hjl@lucon.org>
289 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
291 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
292 out SO_SNDBUF/SO_RCVBUF.
293 (rpc_init): Remove bufsize and remove socksz in calls to
296 * utils/mountd/mountd.c (main): Remove bufsize in calls to
299 2001-01-28 Chip Salzenberg <chip@valinux.com>
301 * debian/changelog: Version 0.3-1.
303 2001-01-25 H.J. Lu <hjl@lucon.org>
305 * configure.in (VERSION): Set to "0.3".
306 * configure: Regenerated.
307 * nfs-utils.spec: Likewise.
309 * README: Updated for 0.3.
311 2001-01-25 H.J. Lu <hjl@lucon.org>
313 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
315 2001-01-20 Chip Salzenberg <chip@valinux.com>
317 * support/include/xio.h (xgetc): Declare to return int.
318 * support/nfs/xio.c (xgetc): Return int.
319 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
320 * utils/statd/statd.c (main): Use int for value of getopt.
321 * debian/changelog: Version 0.2.1-5.
323 2000-12-10 Chip Salzenberg <chip@valinux.com>
325 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
326 program and procedure numbers of kernel lockd's callback. Also,
327 besides the old (and broken) procedure #24, allow #16 per Trond.
329 2000-12-03 Chip Salzenberg <chip@valinux.com>
331 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
332 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
333 * debian/changelog: Version 0.2.1-4.
335 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
337 * utils/mountd/auth.c (auth_authenticate): Log the bad path
340 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
342 * support/nfs/exports.c (getexportent): Check for host name
343 without option, or options without hostname, and print a warning,
344 as this is most likely a typo.
346 2000-11-19 Chip Salzenberg <chip@valinux.com>
348 * debian/control: Add dependency on portmap.
349 * debian/changelog: Version 0.2.1-3.
351 2000-11-10 H.J. Lu <hjl@lucon.org>
353 * nfs-utils.spec.in: Don't use libtool.
354 Add ChangeLog and COPYING to doc.
355 * nfs-utils.spec: Rebuild.
357 2000-11-09 H.J. Lu <hjl@lucon.org>
359 * etc/redhat/nfs.init (start): Back out the last change.
361 2000-11-09 H.J. Lu <hjl@lucon.org>
363 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
364 TCP is not supported by kernel.
366 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
368 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
369 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
371 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
373 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
375 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
376 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
377 callbacks to local lockd.
379 2000-10-18 Scott McDermott <mcdermot@questra.com>
381 * utils/exportfs/exports.man: Updated for CIDR netmask.
383 2000-10-17 Scott McDermott <mcdermot@questra.com>
385 * support/export/client.c (client_init): Support CIDR netmask
388 2000-10-11 H.J. Lu <hjl@lucon.org>
390 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
391 * configure: Rebuilt.
393 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
395 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
396 "/var/lib/nfs/state".
398 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
400 * utils/statd/statd.h (run_mode): New global bitmask of runtime
401 behaviors: fg/bg, logging, etc.
402 * utils/statd/statd.c: New command line options: -V -h -? -d .
403 * utils/statd/statd.man: Update for changes to statd.
405 * utils/statd/log.h (log_init): Remove parameter of function; use
406 global variable "name_p" instead.
407 * utils/statd/log.c: Add support for logging to stderr.
409 * utils/statd/notlist.c: Partially rewrite notify list handling
410 functions. Eliminate run-off-end-of-list bug when calling
411 nlist_insert_timer. Add lots of comments.
413 2000-09-27 H.J. Lu <hjl@lucon.org>
415 * README: Updated for RedHat 7.0.
417 2000-09-27 H.J. Lu <hjl@lucon.org>
419 * nfs-utils.spec: Rebuild.
421 2000-09-27 H.J. Lu <hjl@lucon.org>
423 * README: Updated for 0.2.1.
425 2000-09-27 H.J. Lu <hjl@lucon.org>
427 * nfs-utils.spec.in: Updated to use rpm macros and support
430 2000-09-25 H.J. Lu <hjl@lucon.org>
432 * configure.in (VERSION): Set to "0.2.1".
433 * configure: Regenerated.
434 * nfs-utils.spec: Updated.
436 2000-09-25 H.J. Lu <hjl@lucon.org>
438 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
439 non-NULL hostent is always returned.
441 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
443 * etc/redhat/nfslock.init: don't kill lockd processes that do not
444 have an executable (i.e. kernel threads)
446 2000-09-01 H.J. Lu <hjl@lucon.org>
448 * README: Updated for 0.2.
450 2000-09-01 Jay Weber <jweber@valinux.com>
452 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
453 supporting version 3 of nfs if available, else it will fall back to
454 version 2 support only.
456 2000-08-30 H.J. Lu <hjl@lucon.org>
458 * configure.in (VERSION): Set to "0.2".
459 * configure: Regenerated.
460 * nfs-utils.spec: Updated.
462 2000-08-25 H.J. Lu <hjl@lucon.org>
464 * support/misc/tcpwrapper.c (logit): Modify the log output.
466 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
468 * utils/rquotad/rquotad.man, utils/statd/statd.man,
469 utils/mountd/mountd.man: updated
471 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
472 * utils/rquotad/Makefile: fix comment
474 * support/misc/tcpwrapper.c (logit): added comment about waiting
475 for the children after fork()
477 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
478 zombies behind (from logit()'s fork)
479 * utils/rquotad/rquota_svc.c (main): ditto
480 * utils/statd/statd.c (main): ditto
482 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
483 to check_default instead of 0, for prognum
485 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
486 to check_default instead of 0, for prognum
488 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
489 HAVE_TCP_WRAPPER is defined.
490 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
491 defined. Reject an RPC call if check_default () fails.
493 2000-08-25 H.J. Lu <hjl@lucon.org>
495 * support/include/tcpwrapper.h: New for the tcp wrapper
497 * support/misc/Makefile: Likewise.
498 * support/misc/from_local.c: Likewise.
499 * support/misc/tcpwrapper.c: Likewise.
501 * aclocal.m4 (AC_TCP_WRAPPER): New.
502 * configure.in: Use it. Substitute LIBWRAP.
503 * configure: Rebuilt.
505 * config.mk.in (LIBNSL): New.
508 * support/Makefile (SUBDIRS): Add misc.
510 * support/lib/Makefile (LIBS): Add libmisc.a.
512 * utils/rquotad/Makefile (LIBS): Add
514 -lmisc $(LIBWRAP) $(LIBNSL)
516 * utils/statd/Makefile (LIBS): Likewise.
518 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
519 HAVE_TCP_WRAPPER is defined.
520 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
521 defined. Reject an RPC call if check_default () fails.
523 * utils/statd/statd.c: Include "tcpwrapper.h" if
524 HAVE_TCP_WRAPPER is defined.
525 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
526 check_default () before calling sm_prog_1 (). Define it as
527 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
529 2000-08-25 Chip Salzenberg <chip@valinux.com>
531 * debian/*: Complete Debian build support.
532 * etc/debian/*: Remove.
534 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
536 * support/export/client.c(client_check): removed the "dot+1" as a
537 ypdomain argument to innetgr as this is entirely bogus.
538 It should always be NULL.
540 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
542 * support/export/xtab.c(xtab_read): introduce new mode for
543 reading xtab. i.e. a list of exports that might be known to the
544 kernel, or might not. These are flagged as m_exported == -1
545 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
546 value "2" for xtab, meaning don't trust this too much.
547 * support/include/exportfs.h(struct mexport): changed m_exported
548 from one bit to an int so that it can hold new value
549 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
550 kernel if it is uncertain whether the kernel knows (m_exported == -1)
551 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
554 * support/nfs/xio.c(xflock): added O_CREAT when getting
555 a write lock so that missing files aren't fatal.
557 * etc/debian/nfs-common: new file from "potato"
558 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
560 2000-08-09 H.J. Lu <hjl@lucon.org>
562 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
563 startup to ensure all existing clients work fine.
565 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
566 to xtab_read () for reading _PATH_XTAB.
568 2000-08-02 H.J. Lu <hjl@lucon.org>
570 * utils/mountd/auth.c (auth_authenticate_internal): Try to
571 avoid the reverse name lookup.
573 2000-07-04 H.J. Lu <hjl@lucon.org>
575 * utils/statd/log.c: Include <stdlib.h> for exit ().
577 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
580 2000-07-04 H.J. Lu <hjl@lucon.org>
582 * configure.in (VERSION): Set to "0.1.9.1".
583 * configure: Regenerated.
584 * nfs-utils.spec: Updated.
588 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
590 * support/export/hostname.c (hostent_dup): Handle the NULL
593 2000-07-03 H.J. Lu <hjl@lucon.org>
595 * README: Update the util-linux requirement.
597 2000-07-03 H.J. Lu <hjl@lucon.org>
599 * configure.in (VERSION): Set to "0.1.9".
600 * configure: Regenerated.
601 * nfs-utils.spec: Updated.
605 2000-07-03 H.J. Lu <hjl@lucon.org>
607 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
608 stop to ensure all clients can still access the server
609 before it is shutdown.
611 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
613 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
614 calls with format string.
616 2000-06-28 Chip Salzenberg <chip@valinux.com>
618 * utils/statd/log.c (log): Call syslog with format string.
620 2000-06-27 H.J. Lu <hjl@lucon.org>
622 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
625 2000-06-27 H.J. Lu <hjl@lucon.org>
629 2000-06-27 H.J. Lu <hjl@lucon.org>
631 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
632 startup to ensure all existing clients are exported.
634 * configure.in (VERSION): Set to "0.1.8.2".
635 * configure: Regenerated.
636 * nfs-utils.spec: Updated.
638 2000-06-06 H.J. Lu <hjl@lucon.org>
640 * configure.in (VERSION): Set to "0.1.8.1".
641 * configure: Regenerated.
642 * nfs-utils.spec: Updated.
644 2000-06-06 H.J. Lu <hjl@lucon.org>
646 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
647 to "struct sockaddr_in *" for glibc 2.2.
648 (mount_umnt_1_svc): Likewise.
649 (mount_umntall_1_svc): Likewise.
650 (mount_export_1_svc): Likewise.
651 (mount_exportall_1_svc): Likewise.
652 (mount_pathconf_2_svc): Likewise.
653 (get_rootfh): Likewise.
655 2000-06-04 H.J. Lu <hjl@lucon.org>
657 * etc/redhat/nfs.init: Fix a typo in comment.
659 2000-05-31 H.J. Lu <hjl@lucon.org>
661 * configure.in (VERSION): Set to "0.1.8".
662 * configure: Regenerated.
663 * nfs-utils.spec: Updated.
667 2000-05-31 H.J. Lu <hjl@lucon.org>
669 * configure.in (VERSION): Set to "0.1.7.5".
670 * configure: Regenerated.
671 * nfs-utils.spec: Updated.
673 * support/include/nfslib.h (exportent): Add a new field,
674 r_count, to count the number of mounts from a client.
675 (getrmtabent): Take a new argument for position in file.
676 (putrmtabent): Likewise.
677 (fgetrmtabent): Likewise.
678 (fputrmtabent): Likewise.
679 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
680 for position in file.
681 (fgetrmtabent): Likewise.
682 (putrmtabent): Likewise.
683 (fputrmtabent): Likewise.
685 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
688 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
689 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
691 * utils/mountd/rmtab.c (mountlist_add): Likewise.
692 (mountlist_del): Likewise.
693 (mountlist_del_all): Likewise.
694 (mountlist_list): Likewise.
696 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
697 for the existing entry and initialize "r_count" to 1.
698 (mountlist_del): Decrement "r_count".
700 2000-05-18 H.J. Lu <hjl@lucon.org>
702 * configure.in (VERSION): Set to "0.1.7.4".
703 * configure: Regenerated.
704 * nfs-utils.spec: Updated.
706 2000-05-18 H.J. Lu <hjl@lucon.org>
708 * etc/redhat/nfs.init (restart): Just do stop and start.
710 2000-05-09 Jay Weber <jweber@valinux.com>
712 * utils/rquotad/hasquota.c: added support for ext3 recognition
714 * utils/rquotad/mntent.h: Likewise.
716 2000-05-01 H.J. Lu <hjl@lucon.org>
718 * configure.in (VERSION): Set to "0.1.7.3".
719 * configure: Regenerated.
720 * nfs-utils.spec: Updated.
722 2000-05-01 H.J. Lu <hjl@lucon.org>
724 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
725 mounting poins in /etc/fstab.
727 2000-05-01 H.J. Lu <hjl@lucon.org>
729 * configure.in (VERSION): Set to "0.1.7.2".
730 * configure: Regenerated.
731 * nfs-utils.spec: Updated.
733 2000-05-01 H.J. Lu <hjl@lucon.org>
735 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
736 to check for the mounting point.
738 2000-04-29 Chip Salzenberg <chip@valinux.com>
739 Neil Brown <neilb@cse.unsw.edu.au>
741 * Really re-use RPC ports.
742 (Fixes earlier patch. Sorry, Neil.)
744 2000-04-26 H.J. Lu <hjl@lucon.org>
746 * configure.in (VERSION): Set to "0.1.7.1".
747 * configure: Regenerated.
748 * nfs-utils.spec: Updated.
750 2000-04-26 H.J. Lu <hjl@lucon.org>
752 * etc/redhat/nfslock.init: Check if lockd exits before killing
755 2000-04-25 H.J. Lu <hjl@lucon.org>
757 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
759 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
761 * support/nfs/exports.c (parsesquash): Correctly set the
764 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
766 * support/include/nfs/nfs.h: Removed knowledge of internals of
767 kernel filehandles (which can change) and defined nfs_fh_size
768 which has variable size
770 * support/nfs/getfh.c: defined getfh_size to use new syscall to
771 get variable sized file handles, and change getfh{,old} to
774 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
777 * tools/Makefile, tools/nlmtest/nlmtest.c
778 nlmtest.c depended on internel format of file handles, so now
782 2000-03-12 Chip Salzenberg <chip@valinux.com>
783 Neil Brown <neilb@cse.unsw.edu.au>
785 * support/nfs/rpcmisc.c (rpc_init): Share transports.
787 2000-03-13 H.J. Lu <hjl@lucon.org>
789 * etc/redhat/nfsd.init: Updated.
791 * etc/redhat/nfslock.init: Updated.
793 * nfs-utils.spec.in: Updated.
795 * configure.in (VERSION): Set to "0.1.7".
796 * configure: Regenerated.
797 * nfs-utils.spec: Updated.
801 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
803 * utils/exportfs/exportfs.c (dump): Included printing of
804 nohide, no_subtree_check, and insecure_locks
806 2000-02-26 Chip Salzenberg <chip@valinux.com>
808 * config.mk.in (INSTALLSUID): Strip ("-s").
809 (INSTALLSCRIPT): Define.
810 * utils/nhfsstone/Makefile: Use it.
812 2000-02-26 Chip Salzenberg <chip@valinux.com>
814 * utils/lockd/lockd.man: Create.
815 * utils/lockd/Makefile: Install it.
816 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
817 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
818 * utils/nhfsstone/Makefile: Install the helper scripts and
820 * utils/exportfs/exports.man: Fix typo.
822 2000-02-26 Chip Salzenberg <chip@valinux.com>
824 * support/nfs/xio.c (xungetc): Decrement line number when
825 character to unget is newline. Make first parameter int, so
826 it can distinguish EOF from \377.
827 * support/include/xio.h (xungetc): Adjust prototype.
829 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
831 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
832 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
833 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
835 This is for supporting a new option introduced in 2.3.42
837 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
839 * COPYING: Added. GPL.
841 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
843 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
844 to get the block size.
846 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
848 * nfs-utils.spec.in: Update ftp site.
850 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
852 * README: Update hostnames.
854 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
856 * configure.in (VERSION): Set to "0.1.6".
857 * configure: Regenerated.
858 * nfs-utils.spec: Updated.
862 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
864 * utils/mountd/auth.c (auth_authenticate_internal): Call
865 xstrdup for hostname before passing it to gethostbyname.
867 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
870 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
872 * README: Update the mailing list address.
874 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
876 * configure.in (VERSION): Set to "0.1.5".
877 * configure: Regenerated.
878 * nfs-utils.spec: Updated.
882 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
884 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
887 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
889 * configure.in (VERSION): Set to "0.1.4".
890 * configure: Regenerated.
891 * nfs-utils.spec: Updated.
895 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
897 * nfs-utils.spec.in: New file.
899 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
901 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
903 1999-12-04 Chip Salzenberg <chip@valinux.com>
905 * config.mk.in: Use $(CC) as set by configure.
907 1999-12-04 Chip Salzenberg <chip@valinux.com>
909 * rules.mk: Call $(MAKE) with $(MFLAGS).
911 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
913 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
914 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
916 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
918 * nfs-utils.spec (Version): Set to 0.1.3.
920 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
921 * configure: Regenerated.
925 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
927 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
928 (_PATH_DEV_DSK): Likewise.
929 (getquotainfo): Match the mounting point from /etc/mtab
930 instead of calling nfsmount_to_devname ().
932 1999-11-24 Chip Salzenberg <chip@valinux.com>
934 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
935 to the new port 24 as well as the historical port 100021.
937 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
939 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
940 stopping nfsd to stop spurious ESTALE on server shutdown.
942 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
944 * support/nfs/exports.c (parseopts): make copy of opt string
945 before 'nul'ing out commas so that
947 # exportfs -o option1,option2 hosta:/fs hostb:/fs
949 applies both options to both exports.
951 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
953 * README: Fix a few typos.
955 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
957 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
958 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
959 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
960 (unsigned_dec): Likewise.
961 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
962 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
964 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
966 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
967 (unsigned_dec): Likewise.
968 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
969 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
970 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
972 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
974 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
975 * support/nfs/exports.c: added {no_,}subtree_check and changed
977 * utils/exportfs/exports.man: added no_subtree_check and nohide
978 and removed irrelevant stuff from unfsd.
979 * support/export/rmtab.c: rmtab_read didn't quite do the right
980 thing if a pathname from rmtab was a subdirectory of an export-point
982 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
984 * README: Updated ftp site.
986 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
988 * nfs-utils.spec (Version): Set to 0.1.2.
990 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
991 * configure: Regenerated.
995 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
997 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
998 (auth_authenticate_internal): Check for NULL return on forward
1000 (auth_authenticate): Handle "no_forward_dns".
1002 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1004 * Version 0.1.1 released.
1006 * nfs-utils.spec (Version): Set to 0.1.1.
1008 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1009 * configure: Regenerated.
1013 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1015 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1017 (Provides): Likewise.
1019 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1021 * Initial version 0.1 released.
1023 * configure.in (VERSION): Set to "nfs-utils 0.1".
1024 * configure: Regenerated.
1026 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1028 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1030 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1031 kernel only if the entry is exported to kernel.
1032 (unexportfs): Likewise.
1034 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1036 1/ utils/mountd/rmtab.c::mountlist_list
1038 This routine stats the rmtab file to see if it has changed. It
1039 if has, it cleans up it's old copy of the data. But it still
1040 always re-read the file, thus returning multiple copies of the
1041 data on consecutive calls without intervening changes.
1042 "Showmount -a" didn't show this as it appears to sort/unique the
1043 data, but 'strace showmount -a' showed that the size of the
1044 datagram that it received grew.
1046 I moved the getrmtabent loop inside the mtime test.
1048 2/ utils/exportfs/exportfs.c
1050 Many routines used the m_path field of m_export instead of
1052 According to the comment in nfslib.h, m_path should only
1053 be used when processing a mount request (i.e. in mountd)
1054 where the mountpoint may be a subdirectory of the export point.
1056 I changed all occurances of m_path to e_path
1059 3/ utils/exportfs/exportfs.c:main
1061 extra arguments are not meaningful with -a or -r, but
1062 exportfs accepted them and then ignored the -a/-r, expect that
1063 -r would still unexport everything first.
1065 I generate an error if there are extra args and f_all
1067 4/ utils/exportfs/exportfs.c:main
1068 extract dump out as a special case.
1070 5/ utils/exportfs/exportfs.c
1071 made f_reexport a local variable.
1074 6/ utils/exportfs/exportfs.c:main,exportall
1076 support/export/rmtab.c
1077 only mayexport on newly created entries, don't set xtabent at all
1079 7/ support/include/nfslib.h
1081 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1083 8/ support/export/xtab.c
1085 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1089 9/ support/export/xtab.c
1091 xtab_mount_read now sets m_exported, and NOT
1092 xtabent and mayexport
1094 removed the append arguement from xtab_write as it was
1097 added is_export flag to xtab_write similar to xtab_read
1098 if is_export, only write entries with m_xtabent or m_addxtab
1099 if !is_export, only write entries with m_exported
1101 10/ support/export/export.c::export_allowed_internal
1103 added test for exp->m_mayexport, as the export tree
1104 may have entries that are no longer allowed to be exported,
1105 and so shouldn't caused deduced exported by rmtab_read
1107 11/ utils/exportfs/exportfs.c::main
1108 error checking of flags.
1110 12/ utils/exportfs/exportfs.c
1112 total rewrite of export and unexport logic.
1114 - build an exportslist of valid exports, based on
1115 current etab file and arguments,
1116 - read rmtab to instantiate relevant wild card entries
1117 - read etab to find out what is currently exported
1118 - synchronise intention with reality
1119 - write out etab and xtab
1122 discard the m_addxtab flag
1123 add m_changed flag so we know what to report in exportfs
1125 14/ utils/mountd/auth.c:auth_authenticate
1127 the value returned by gethostbyaddr was trusted.
1129 It now follows this with a call to gethostbyname
1130 and checks that the address is in the list.
1132 15/ support/export/nfsctl.c::cltsetup,expsetup
1134 force client names to lowercase as kernel is
1137 16/ quietened a few compiler warnings
1139 17/ support/export/client:client_lookup
1141 look for pre-existing client with same name before creating
1144 18/ support/include/exportfs.h
1146 The ordering of the MCL_* enum was:
1147 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1149 I moved ANONYMOUS to the end.
1151 The ordering is significant when an export entry is being searched for to
1152 match a given address. There are two problems with ANONYMOUS being first.
1154 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1155 then the ro case will always be found first and the privileged hosts won't get
1157 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1158 export entry for the specific host, and writes it to xtab.
1159 When another request comes from the same host, the ANONYMOUS entry is found again,
1160 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1161 again. If causes bloat in xtab.
1163 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1165 19/ utils/exportfs/exportfs.man
1166 many updates to the man page to reflect changes to the code
1168 -----------------------
1174 - allow exportfs to modify rmtab file
1175 - make sure kernel never gets two clients with same IP address
1176 - possible kernel should reject
1177 - needs to be some way to lookup client in kernel by IP address
1178 - maybe get kernel to do case-insensitive comparisons on client names
1179 - remove unused clients from kernel
1181 - change etab to xtab and xtab to xtab.active
1183 - timestamp and/or statd-stamp in rmtab for removing old entries.
1185 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1187 * linux-nfs: New directory.
1188 * linux-nfs/ChangeLog: Moved from ..
1189 * linux-nfs/INSTALL: Likewise.
1190 * linux-nfs/KNOWNBUGS: Likewise.
1191 * linux-nfs/NEW: Likewise.
1192 * linux-nfs/README: Likewise.
1193 * linux-nfs/THANKS: Likewise.
1194 * linux-nfs/TODO: Likewise.
1196 * Starting from knfsd 1.4.7.