1 2001-11-21 Chip Salzenberg <chip@pobox.com>
3 * support/nfs/clients.c (cfname): Added: current clients file name.
4 (setnfsclntent): Set it.
5 ({get,end}nfsclntent, syntaxerr): Use it.
6 * support/nfs/exports.c (efname): Added: current exports file name.
7 (setnfsexportent): Set it.
8 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
9 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
10 * debian/changelog: Version 0.3.3-3.
12 2001-10-11 Chip Salzenberg <chip@pobox.com>
14 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
15 * debian/changelog: Version 0.3.3-2.
17 2001-10-08 Chip Salzenberg <chip@pobox.com>
19 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
20 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
21 * utils/mountd/mountd.man: Update paths to /var/lib.
22 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
24 2001-10-06 Preston Brown <pbrown@redhat.com>
26 * utils/nfsstat/nfsstat.man: Updated.
28 2001-09-24 H.J. Lu <hjl@lucon.org>
30 * configure.in (VERSION): Set to "0.3.3".
31 * configure: Regenerated.
32 * nfs-utils.spec: Likewise.
34 * README: Updated for 0.3.3.
36 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
38 Arrange that "exportfs -au" never does DNS lookup:
40 * support/export/client.c (client_lookup) : add "canonical"
41 flag which says that the hostname is known to be canonical, so
44 * support/export/export.c (export_create) : add "canonical"
45 flag to be passed down to client_lookup
46 * support/export/export.c (export_lookup) : Likewise
48 * support/export/xtab.c (xtab_read) : pass appropriate
49 "canonical" flag to export_lookup and export_create:
50 set if reading list of filesystems currently exports
53 * support/export/export.c (export_read) : pass 0 as
54 "canonical" flag to export_lookup and export_create
55 * support/export/rmtab.s (rmtab_read) : Likewise
57 * support/include/exportfs.h : redeclare various routines
58 to have "canonical" flag
60 * utils/exportfs/exportfs.c (main) : redo logic for
61 "-au" to read in what is currently exported, but never even
62 look at what "should" be exported.
64 * utils/exportfs/exportfs.c (unexportall) : remove this
65 routine. Functionality is completely included in
68 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
69 flag to zero in calls to export_lookup and export_create.
72 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
73 Anne Milicia <milicia@missioncriticallinux.com>
75 * support/export/client.c (client_lookup) call gethostbyadd
76 to make sure that we have a canonical hostname, even for
78 * utils/exportfs/exportfs.c (exportfs) Likewise
80 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
82 * support/nfs/exports.c (putexportent): \octal quote any spaces
84 * support/nfs/xio.c (xgettok): recognise double-quote and
85 \octal quoting in path names
86 * utils/exportfs/exports.man: document quoting conventions
89 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
91 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
92 change from 2000-08-02: It causes problems if someone exports
93 to both a hostname and IP addresses. nfs-utils must be
94 consistant about the canonical name that it chooses.
96 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
97 H.J. Lu <hjl@lucon.org>
99 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
101 * utils/statd/statd.c (longopts): Add "name".
102 (usage): Add "-n/--name".
103 (main): Set MY_NAME with "-n/--name".
105 * utils/statd/state.c (change_state): Set MY_NAME only if it
108 * utils/statd/statd.man: Updated for "-n/--name".
110 2001-07-26 H.J. Lu <hjl@lucon.org>
112 * nfs-utils.spec (Release): Set to 8.
114 2001-07-25 H.J. Lu <hjl@lucon.org>
116 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
119 2001-06-27 H.J. Lu <hjl@lucon.org>
121 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
123 2001-06-27 H.J. Lu <hjl@lucon.org>
125 * utils/rquotad/rquota_server.c: Don't call statfs () for
126 the block size. Use BLOCK_SIZE instead.
128 2001-06-27 H.J. Lu <hjl@lucon.org>
130 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
131 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
133 * configure.in (enable_nfsv3): Set to yes by default.
134 (--enable-rquotad): Added
135 (AC_PROG_CXX): Removed.
136 (AC_OUTPUT): Add utils/Makefile.
137 (CC_FOR_BUILD): Renamed from BUILD_CC.
138 * configure: Regenerated.
140 * utils/Makefile: Removed.
142 * utils/Makefile.in: New.
144 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
146 (CC_FOR_BUILD): Renamed from BUILD_CC.
147 * nfs-utils.spec: Regenerated.
149 2001-06-15 Chip Salzenberg <chip@debian.org>
151 * debian/changelog: Version 0.3.2-2.
152 * debian/*.init: Minor fixes.
154 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
156 * etc/nodist/nfs-server: Fixed a bug where the script would
157 disable mounts from NFSv3 clients if NFSv3 is present.
159 2001-06-05 H.J. Lu <hjl@lucon.org>
161 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
162 (main): Support --descriptors/-o to set the limit of the number
163 of open file descriptors.
166 * utils/mountd/mountd.man: Updated for --descriptors/-o.
168 2001-06-04 H.J. Lu <hjl@lucon.org>
170 * nfs-utils.spec (Release): Set to 6.
172 2001-05-28 H.J. Lu <hjl@lucon.org>
174 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
175 * utils/mountd/mountd.c (main): Likewise.
176 * utils/nfsd/nfsd.c (main): Likewise.
177 * utils/rquotad/rquota_svc.c (main): Likewise.
179 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
181 * support/export/client.c (client_check): Check IP address
184 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
186 * support/export/client.c (client_gettype): Treat `*' as
189 2001-04-22 H.J. Lu <hjl@lucon.org>
191 * nfs-utils.spec.in: Fix a typo.
192 * nfs-utils.spec: Regenerated.
194 2001-04-21 H.J. Lu <hjl@lucon.org>
196 * nfs-utils.spec.in: Fix cross build.
197 * nfs-utils.spec: Regenerated.
200 2001-04-18 H.J. Lu <hjl@lucon.org>
202 * nfs-utils.spec.in: Support cross build.
203 * nfs-utils.spec: Regenerated.
209 * config.mk.in (BUILD_CC): New.
210 (CC): Set to $(BUILD_CC) if BUILD is defined.
213 (RANLIB): Set to @RANLIB@.
215 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
216 * configure: Regenerated.
218 * tools/rpcgen/Makefile (BUILD): Set to true.
220 2001-04-01 Chip Salzenberg <chip@valinux.com>
222 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
223 redundant, and sometimes broken, declaration of svc_fdset;
225 * support/nfs/rpcmisc.c (closedown): Likewise.
227 2001-03-21 H.J. Lu <hjl@lucon.org>
229 * nfs-utils.spec: Regenerated.
232 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
234 * utils/statd/statd.c (main): make sure file descriptors 0-2
235 are open to /dev/null.
237 2001-03-21 H.J. Lu <hjl@lucon.org>
239 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
240 * support/nfs/rpcmisc.c: Likewise.
241 * utils/rquotad/rquota_svc.c: Likewise.
242 * utils/rquotad/rquotad.man: Likewise.
243 * utils/statd/Makefile: Likewise.
244 * utils/statd/rmtcall.c: Likewise.
245 * utils/statd/simulate.c: Likewise.
246 * utils/statd/statd.c: Likewise.
247 * utils/statd/statd.man: Likewise.
249 2001-03-11 H.J. Lu <hjl@lucon.org>
251 * configure.in (RELEASE): New. Default to 1, set by
252 --with-release=XXX. Substitute nfs-utils.spec.
253 * nfs-utils.spec.in (Release): Set to @RELEASE@.
254 * configure: Regenerated.
255 * nfs-utils.spec: Likewise.
257 2001-03-11 H.J. Lu <hjl@lucon.org>
259 * utils/rquotad/rquotad.man: Fix a typo.
261 2001-03-11 H.J. Lu <hjl@lucon.org>
263 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
264 * support/nfs/rpcmisc.c: Likewise.
265 * utils/rquotad/rquota_svc.c: Likewise.
266 * utils/rquotad/rquotad.man: Likewise.
267 * utils/statd/Makefile: Likewise.
268 * utils/statd/rmtcall.c: Likewise.
269 * utils/statd/simulate.c: Likewise.
270 * utils/statd/statd.c: Likewise.
271 * utils/statd/statd.man: Likewise.
273 2001-03-10 H.J. Lu <hjl@lucon.org>
275 * configure.in (VERSION): Set to "0.3.2".
276 * configure: Regenerated.
277 * nfs-utils.spec: Likewise.
279 * README: Updated for 0.3.2.
281 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
283 * utils/rquotad/rquotad.man: Updated for -p.
284 * utils/statd/statd.man: Likewise.
286 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
288 * support/nfs/rpcmisc.c: export makesock()
290 * support/include/rpcmisc.h (makesock): Declared.
292 * utils/rquotad/rquota_svc.c: added longopts, added support for
293 specifying the port to bind to on the command line.
295 * utils/statd/statd.c: ditto, also specify port used for
296 outgoing connections.
297 (do_regist): Removed.
299 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
300 get_socket. Make it extern.
302 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
303 instead of do_regist.
305 * utils/statd/Makefile (LIBS): link with our own libnfs
307 2001-03-09 H.J. Lu <hjl@lucon.org>
309 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
310 * etc/nodist/nfs-client: Likewise.
312 2001-02-26 Chip Salzenberg <chip@valinux.com>
314 * debian/changelog: Version 0.3.1-1.
315 * Mention upstream source and license in copyright file.
316 * Add build-Depends for debhelper and libwrap0-dev.
318 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
320 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
321 * etc/nodist/nfs-client: Likewise.
323 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
325 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
328 2001-02-17 Patrick J. LoPresti <patl@curl.com>
330 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
333 2001-02-14 H.J. Lu <hjl@lucon.org>
335 * utils/statd/rmtcall.c: Include <time.h>.
336 * utils/statd/svc_run.c: Likewise.
338 2001-02-14 H.J. Lu <hjl@lucon.org>
340 * configure.in (VERSION): Set to "0.3.1".
341 * configure: Regenerated.
342 * nfs-utils.spec: Likewise.
344 * README: Updated for 0.3.1.
346 2001-02-14 H.J. Lu <hjl@lucon.org>
348 * support/nfs/rpcmisc.c: Include <time.h>.
350 2001-02-14 Chip Salzenberg <chip@valinux.com>
352 * debian/control: Change priority of nhfsstone package to 'extra'.
354 2001-02-12 Chip Salzenberg <chip@valinux.com>
356 * debian/changelog: Version 0.3-2.
358 2001-02-02 H.J. Lu <hjl@lucon.org>
360 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
362 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
363 out SO_SNDBUF/SO_RCVBUF.
364 (rpc_init): Remove bufsize and remove socksz in calls to
367 * utils/mountd/mountd.c (main): Remove bufsize in calls to
370 2001-01-28 Chip Salzenberg <chip@valinux.com>
372 * debian/changelog: Version 0.3-1.
374 2001-01-25 H.J. Lu <hjl@lucon.org>
376 * configure.in (VERSION): Set to "0.3".
377 * configure: Regenerated.
378 * nfs-utils.spec: Likewise.
380 * README: Updated for 0.3.
382 2001-01-25 H.J. Lu <hjl@lucon.org>
384 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
386 2001-01-20 Chip Salzenberg <chip@valinux.com>
388 * support/include/xio.h (xgetc): Declare to return int.
389 * support/nfs/xio.c (xgetc): Return int.
390 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
391 * utils/statd/statd.c (main): Use int for value of getopt.
392 * debian/changelog: Version 0.2.1-5.
394 2000-12-10 Chip Salzenberg <chip@valinux.com>
396 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
397 program and procedure numbers of kernel lockd's callback. Also,
398 besides the old (and broken) procedure #24, allow #16 per Trond.
400 2000-12-03 Chip Salzenberg <chip@valinux.com>
402 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
403 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
404 * debian/changelog: Version 0.2.1-4.
406 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
408 * utils/mountd/auth.c (auth_authenticate): Log the bad path
411 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
413 * support/nfs/exports.c (getexportent): Check for host name
414 without option, or options without hostname, and print a warning,
415 as this is most likely a typo.
417 2000-11-19 Chip Salzenberg <chip@valinux.com>
419 * debian/control: Add dependency on portmap.
420 * debian/changelog: Version 0.2.1-3.
422 2000-11-10 H.J. Lu <hjl@lucon.org>
424 * nfs-utils.spec.in: Don't use libtool.
425 Add ChangeLog and COPYING to doc.
426 * nfs-utils.spec: Rebuild.
428 2000-11-09 H.J. Lu <hjl@lucon.org>
430 * etc/redhat/nfs.init (start): Back out the last change.
432 2000-11-09 H.J. Lu <hjl@lucon.org>
434 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
435 TCP is not supported by kernel.
437 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
439 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
440 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
442 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
444 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
446 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
447 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
448 callbacks to local lockd.
450 2000-10-18 Scott McDermott <mcdermot@questra.com>
452 * utils/exportfs/exports.man: Updated for CIDR netmask.
454 2000-10-17 Scott McDermott <mcdermot@questra.com>
456 * support/export/client.c (client_init): Support CIDR netmask
459 2000-10-11 H.J. Lu <hjl@lucon.org>
461 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
462 * configure: Rebuilt.
464 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
466 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
467 "/var/lib/nfs/state".
469 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
471 * utils/statd/statd.h (run_mode): New global bitmask of runtime
472 behaviors: fg/bg, logging, etc.
473 * utils/statd/statd.c: New command line options: -V -h -? -d .
474 * utils/statd/statd.man: Update for changes to statd.
476 * utils/statd/log.h (log_init): Remove parameter of function; use
477 global variable "name_p" instead.
478 * utils/statd/log.c: Add support for logging to stderr.
480 * utils/statd/notlist.c: Partially rewrite notify list handling
481 functions. Eliminate run-off-end-of-list bug when calling
482 nlist_insert_timer. Add lots of comments.
484 2000-09-27 H.J. Lu <hjl@lucon.org>
486 * README: Updated for RedHat 7.0.
488 2000-09-27 H.J. Lu <hjl@lucon.org>
490 * nfs-utils.spec: Rebuild.
492 2000-09-27 H.J. Lu <hjl@lucon.org>
494 * README: Updated for 0.2.1.
496 2000-09-27 H.J. Lu <hjl@lucon.org>
498 * nfs-utils.spec.in: Updated to use rpm macros and support
501 2000-09-25 H.J. Lu <hjl@lucon.org>
503 * configure.in (VERSION): Set to "0.2.1".
504 * configure: Regenerated.
505 * nfs-utils.spec: Updated.
507 2000-09-25 H.J. Lu <hjl@lucon.org>
509 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
510 non-NULL hostent is always returned.
512 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
514 * etc/redhat/nfslock.init: don't kill lockd processes that do not
515 have an executable (i.e. kernel threads)
517 2000-09-01 H.J. Lu <hjl@lucon.org>
519 * README: Updated for 0.2.
521 2000-09-01 Jay Weber <jweber@valinux.com>
523 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
524 supporting version 3 of nfs if available, else it will fall back to
525 version 2 support only.
527 2000-08-30 H.J. Lu <hjl@lucon.org>
529 * configure.in (VERSION): Set to "0.2".
530 * configure: Regenerated.
531 * nfs-utils.spec: Updated.
533 2000-08-25 H.J. Lu <hjl@lucon.org>
535 * support/misc/tcpwrapper.c (logit): Modify the log output.
537 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
539 * utils/rquotad/rquotad.man, utils/statd/statd.man,
540 utils/mountd/mountd.man: updated
542 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
543 * utils/rquotad/Makefile: fix comment
545 * support/misc/tcpwrapper.c (logit): added comment about waiting
546 for the children after fork()
548 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
549 zombies behind (from logit()'s fork)
550 * utils/rquotad/rquota_svc.c (main): ditto
551 * utils/statd/statd.c (main): ditto
553 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
554 to check_default instead of 0, for prognum
556 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
557 to check_default instead of 0, for prognum
559 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
560 HAVE_TCP_WRAPPER is defined.
561 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
562 defined. Reject an RPC call if check_default () fails.
564 2000-08-25 H.J. Lu <hjl@lucon.org>
566 * support/include/tcpwrapper.h: New for the tcp wrapper
568 * support/misc/Makefile: Likewise.
569 * support/misc/from_local.c: Likewise.
570 * support/misc/tcpwrapper.c: Likewise.
572 * aclocal.m4 (AC_TCP_WRAPPER): New.
573 * configure.in: Use it. Substitute LIBWRAP.
574 * configure: Rebuilt.
576 * config.mk.in (LIBNSL): New.
579 * support/Makefile (SUBDIRS): Add misc.
581 * support/lib/Makefile (LIBS): Add libmisc.a.
583 * utils/rquotad/Makefile (LIBS): Add
585 -lmisc $(LIBWRAP) $(LIBNSL)
587 * utils/statd/Makefile (LIBS): Likewise.
589 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
590 HAVE_TCP_WRAPPER is defined.
591 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
592 defined. Reject an RPC call if check_default () fails.
594 * utils/statd/statd.c: Include "tcpwrapper.h" if
595 HAVE_TCP_WRAPPER is defined.
596 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
597 check_default () before calling sm_prog_1 (). Define it as
598 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
600 2000-08-25 Chip Salzenberg <chip@valinux.com>
602 * debian/*: Complete Debian build support.
603 * etc/debian/*: Remove.
605 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
607 * support/export/client.c(client_check): removed the "dot+1" as a
608 ypdomain argument to innetgr as this is entirely bogus.
609 It should always be NULL.
611 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
613 * support/export/xtab.c(xtab_read): introduce new mode for
614 reading xtab. i.e. a list of exports that might be known to the
615 kernel, or might not. These are flagged as m_exported == -1
616 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
617 value "2" for xtab, meaning don't trust this too much.
618 * support/include/exportfs.h(struct mexport): changed m_exported
619 from one bit to an int so that it can hold new value
620 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
621 kernel if it is uncertain whether the kernel knows (m_exported == -1)
622 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
625 * support/nfs/xio.c(xflock): added O_CREAT when getting
626 a write lock so that missing files aren't fatal.
628 * etc/debian/nfs-common: new file from "potato"
629 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
631 2000-08-09 H.J. Lu <hjl@lucon.org>
633 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
634 startup to ensure all existing clients work fine.
636 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
637 to xtab_read () for reading _PATH_XTAB.
639 2000-08-02 H.J. Lu <hjl@lucon.org>
641 * utils/mountd/auth.c (auth_authenticate_internal): Try to
642 avoid the reverse name lookup.
644 2000-07-04 H.J. Lu <hjl@lucon.org>
646 * utils/statd/log.c: Include <stdlib.h> for exit ().
648 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
651 2000-07-04 H.J. Lu <hjl@lucon.org>
653 * configure.in (VERSION): Set to "0.1.9.1".
654 * configure: Regenerated.
655 * nfs-utils.spec: Updated.
659 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
661 * support/export/hostname.c (hostent_dup): Handle the NULL
664 2000-07-03 H.J. Lu <hjl@lucon.org>
666 * README: Update the util-linux requirement.
668 2000-07-03 H.J. Lu <hjl@lucon.org>
670 * configure.in (VERSION): Set to "0.1.9".
671 * configure: Regenerated.
672 * nfs-utils.spec: Updated.
676 2000-07-03 H.J. Lu <hjl@lucon.org>
678 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
679 stop to ensure all clients can still access the server
680 before it is shutdown.
682 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
684 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
685 calls with format string.
687 2000-06-28 Chip Salzenberg <chip@valinux.com>
689 * utils/statd/log.c (log): Call syslog with format string.
691 2000-06-27 H.J. Lu <hjl@lucon.org>
693 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
696 2000-06-27 H.J. Lu <hjl@lucon.org>
700 2000-06-27 H.J. Lu <hjl@lucon.org>
702 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
703 startup to ensure all existing clients are exported.
705 * configure.in (VERSION): Set to "0.1.8.2".
706 * configure: Regenerated.
707 * nfs-utils.spec: Updated.
709 2000-06-06 H.J. Lu <hjl@lucon.org>
711 * configure.in (VERSION): Set to "0.1.8.1".
712 * configure: Regenerated.
713 * nfs-utils.spec: Updated.
715 2000-06-06 H.J. Lu <hjl@lucon.org>
717 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
718 to "struct sockaddr_in *" for glibc 2.2.
719 (mount_umnt_1_svc): Likewise.
720 (mount_umntall_1_svc): Likewise.
721 (mount_export_1_svc): Likewise.
722 (mount_exportall_1_svc): Likewise.
723 (mount_pathconf_2_svc): Likewise.
724 (get_rootfh): Likewise.
726 2000-06-04 H.J. Lu <hjl@lucon.org>
728 * etc/redhat/nfs.init: Fix a typo in comment.
730 2000-05-31 H.J. Lu <hjl@lucon.org>
732 * configure.in (VERSION): Set to "0.1.8".
733 * configure: Regenerated.
734 * nfs-utils.spec: Updated.
738 2000-05-31 H.J. Lu <hjl@lucon.org>
740 * configure.in (VERSION): Set to "0.1.7.5".
741 * configure: Regenerated.
742 * nfs-utils.spec: Updated.
744 * support/include/nfslib.h (exportent): Add a new field,
745 r_count, to count the number of mounts from a client.
746 (getrmtabent): Take a new argument for position in file.
747 (putrmtabent): Likewise.
748 (fgetrmtabent): Likewise.
749 (fputrmtabent): Likewise.
750 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
751 for position in file.
752 (fgetrmtabent): Likewise.
753 (putrmtabent): Likewise.
754 (fputrmtabent): Likewise.
756 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
759 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
760 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
762 * utils/mountd/rmtab.c (mountlist_add): Likewise.
763 (mountlist_del): Likewise.
764 (mountlist_del_all): Likewise.
765 (mountlist_list): Likewise.
767 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
768 for the existing entry and initialize "r_count" to 1.
769 (mountlist_del): Decrement "r_count".
771 2000-05-18 H.J. Lu <hjl@lucon.org>
773 * configure.in (VERSION): Set to "0.1.7.4".
774 * configure: Regenerated.
775 * nfs-utils.spec: Updated.
777 2000-05-18 H.J. Lu <hjl@lucon.org>
779 * etc/redhat/nfs.init (restart): Just do stop and start.
781 2000-05-09 Jay Weber <jweber@valinux.com>
783 * utils/rquotad/hasquota.c: added support for ext3 recognition
785 * utils/rquotad/mntent.h: Likewise.
787 2000-05-01 H.J. Lu <hjl@lucon.org>
789 * configure.in (VERSION): Set to "0.1.7.3".
790 * configure: Regenerated.
791 * nfs-utils.spec: Updated.
793 2000-05-01 H.J. Lu <hjl@lucon.org>
795 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
796 mounting poins in /etc/fstab.
798 2000-05-01 H.J. Lu <hjl@lucon.org>
800 * configure.in (VERSION): Set to "0.1.7.2".
801 * configure: Regenerated.
802 * nfs-utils.spec: Updated.
804 2000-05-01 H.J. Lu <hjl@lucon.org>
806 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
807 to check for the mounting point.
809 2000-04-29 Chip Salzenberg <chip@valinux.com>
810 Neil Brown <neilb@cse.unsw.edu.au>
812 * Really re-use RPC ports.
813 (Fixes earlier patch. Sorry, Neil.)
815 2000-04-26 H.J. Lu <hjl@lucon.org>
817 * configure.in (VERSION): Set to "0.1.7.1".
818 * configure: Regenerated.
819 * nfs-utils.spec: Updated.
821 2000-04-26 H.J. Lu <hjl@lucon.org>
823 * etc/redhat/nfslock.init: Check if lockd exits before killing
826 2000-04-25 H.J. Lu <hjl@lucon.org>
828 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
830 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
832 * support/nfs/exports.c (parsesquash): Correctly set the
835 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
837 * support/include/nfs/nfs.h: Removed knowledge of internals of
838 kernel filehandles (which can change) and defined nfs_fh_size
839 which has variable size
841 * support/nfs/getfh.c: defined getfh_size to use new syscall to
842 get variable sized file handles, and change getfh{,old} to
845 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
848 * tools/Makefile, tools/nlmtest/nlmtest.c
849 nlmtest.c depended on internel format of file handles, so now
853 2000-03-12 Chip Salzenberg <chip@valinux.com>
854 Neil Brown <neilb@cse.unsw.edu.au>
856 * support/nfs/rpcmisc.c (rpc_init): Share transports.
858 2000-03-13 H.J. Lu <hjl@lucon.org>
860 * etc/redhat/nfsd.init: Updated.
862 * etc/redhat/nfslock.init: Updated.
864 * nfs-utils.spec.in: Updated.
866 * configure.in (VERSION): Set to "0.1.7".
867 * configure: Regenerated.
868 * nfs-utils.spec: Updated.
872 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
874 * utils/exportfs/exportfs.c (dump): Included printing of
875 nohide, no_subtree_check, and insecure_locks
877 2000-02-26 Chip Salzenberg <chip@valinux.com>
879 * config.mk.in (INSTALLSUID): Strip ("-s").
880 (INSTALLSCRIPT): Define.
881 * utils/nhfsstone/Makefile: Use it.
883 2000-02-26 Chip Salzenberg <chip@valinux.com>
885 * utils/lockd/lockd.man: Create.
886 * utils/lockd/Makefile: Install it.
887 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
888 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
889 * utils/nhfsstone/Makefile: Install the helper scripts and
891 * utils/exportfs/exports.man: Fix typo.
893 2000-02-26 Chip Salzenberg <chip@valinux.com>
895 * support/nfs/xio.c (xungetc): Decrement line number when
896 character to unget is newline. Make first parameter int, so
897 it can distinguish EOF from \377.
898 * support/include/xio.h (xungetc): Adjust prototype.
900 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
902 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
903 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
904 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
906 This is for supporting a new option introduced in 2.3.42
908 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
910 * COPYING: Added. GPL.
912 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
914 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
915 to get the block size.
917 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
919 * nfs-utils.spec.in: Update ftp site.
921 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
923 * README: Update hostnames.
925 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
927 * configure.in (VERSION): Set to "0.1.6".
928 * configure: Regenerated.
929 * nfs-utils.spec: Updated.
933 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
935 * utils/mountd/auth.c (auth_authenticate_internal): Call
936 xstrdup for hostname before passing it to gethostbyname.
938 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
941 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
943 * README: Update the mailing list address.
945 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
947 * configure.in (VERSION): Set to "0.1.5".
948 * configure: Regenerated.
949 * nfs-utils.spec: Updated.
953 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
955 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
958 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
960 * configure.in (VERSION): Set to "0.1.4".
961 * configure: Regenerated.
962 * nfs-utils.spec: Updated.
966 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
968 * nfs-utils.spec.in: New file.
970 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
972 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
974 1999-12-04 Chip Salzenberg <chip@valinux.com>
976 * config.mk.in: Use $(CC) as set by configure.
978 1999-12-04 Chip Salzenberg <chip@valinux.com>
980 * rules.mk: Call $(MAKE) with $(MFLAGS).
982 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
984 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
985 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
987 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
989 * nfs-utils.spec (Version): Set to 0.1.3.
991 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
992 * configure: Regenerated.
996 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
998 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
999 (_PATH_DEV_DSK): Likewise.
1000 (getquotainfo): Match the mounting point from /etc/mtab
1001 instead of calling nfsmount_to_devname ().
1003 1999-11-24 Chip Salzenberg <chip@valinux.com>
1005 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1006 to the new port 24 as well as the historical port 100021.
1008 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1010 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1011 stopping nfsd to stop spurious ESTALE on server shutdown.
1013 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1015 * support/nfs/exports.c (parseopts): make copy of opt string
1016 before 'nul'ing out commas so that
1018 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1020 applies both options to both exports.
1022 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1024 * README: Fix a few typos.
1026 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1028 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1029 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1030 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1031 (unsigned_dec): Likewise.
1032 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1033 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1035 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1037 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1038 (unsigned_dec): Likewise.
1039 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1040 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1041 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1043 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1045 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1046 * support/nfs/exports.c: added {no_,}subtree_check and changed
1048 * utils/exportfs/exports.man: added no_subtree_check and nohide
1049 and removed irrelevant stuff from unfsd.
1050 * support/export/rmtab.c: rmtab_read didn't quite do the right
1051 thing if a pathname from rmtab was a subdirectory of an export-point
1053 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1055 * README: Updated ftp site.
1057 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1059 * nfs-utils.spec (Version): Set to 0.1.2.
1061 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1062 * configure: Regenerated.
1066 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1068 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1069 (auth_authenticate_internal): Check for NULL return on forward
1071 (auth_authenticate): Handle "no_forward_dns".
1073 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1075 * Version 0.1.1 released.
1077 * nfs-utils.spec (Version): Set to 0.1.1.
1079 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1080 * configure: Regenerated.
1084 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1086 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1088 (Provides): Likewise.
1090 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1092 * Initial version 0.1 released.
1094 * configure.in (VERSION): Set to "nfs-utils 0.1".
1095 * configure: Regenerated.
1097 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1099 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1101 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1102 kernel only if the entry is exported to kernel.
1103 (unexportfs): Likewise.
1105 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1107 1/ utils/mountd/rmtab.c::mountlist_list
1109 This routine stats the rmtab file to see if it has changed. It
1110 if has, it cleans up it's old copy of the data. But it still
1111 always re-read the file, thus returning multiple copies of the
1112 data on consecutive calls without intervening changes.
1113 "Showmount -a" didn't show this as it appears to sort/unique the
1114 data, but 'strace showmount -a' showed that the size of the
1115 datagram that it received grew.
1117 I moved the getrmtabent loop inside the mtime test.
1119 2/ utils/exportfs/exportfs.c
1121 Many routines used the m_path field of m_export instead of
1123 According to the comment in nfslib.h, m_path should only
1124 be used when processing a mount request (i.e. in mountd)
1125 where the mountpoint may be a subdirectory of the export point.
1127 I changed all occurances of m_path to e_path
1130 3/ utils/exportfs/exportfs.c:main
1132 extra arguments are not meaningful with -a or -r, but
1133 exportfs accepted them and then ignored the -a/-r, expect that
1134 -r would still unexport everything first.
1136 I generate an error if there are extra args and f_all
1138 4/ utils/exportfs/exportfs.c:main
1139 extract dump out as a special case.
1141 5/ utils/exportfs/exportfs.c
1142 made f_reexport a local variable.
1145 6/ utils/exportfs/exportfs.c:main,exportall
1147 support/export/rmtab.c
1148 only mayexport on newly created entries, don't set xtabent at all
1150 7/ support/include/nfslib.h
1152 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1154 8/ support/export/xtab.c
1156 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1160 9/ support/export/xtab.c
1162 xtab_mount_read now sets m_exported, and NOT
1163 xtabent and mayexport
1165 removed the append arguement from xtab_write as it was
1168 added is_export flag to xtab_write similar to xtab_read
1169 if is_export, only write entries with m_xtabent or m_addxtab
1170 if !is_export, only write entries with m_exported
1172 10/ support/export/export.c::export_allowed_internal
1174 added test for exp->m_mayexport, as the export tree
1175 may have entries that are no longer allowed to be exported,
1176 and so shouldn't caused deduced exported by rmtab_read
1178 11/ utils/exportfs/exportfs.c::main
1179 error checking of flags.
1181 12/ utils/exportfs/exportfs.c
1183 total rewrite of export and unexport logic.
1185 - build an exportslist of valid exports, based on
1186 current etab file and arguments,
1187 - read rmtab to instantiate relevant wild card entries
1188 - read etab to find out what is currently exported
1189 - synchronise intention with reality
1190 - write out etab and xtab
1193 discard the m_addxtab flag
1194 add m_changed flag so we know what to report in exportfs
1196 14/ utils/mountd/auth.c:auth_authenticate
1198 the value returned by gethostbyaddr was trusted.
1200 It now follows this with a call to gethostbyname
1201 and checks that the address is in the list.
1203 15/ support/export/nfsctl.c::cltsetup,expsetup
1205 force client names to lowercase as kernel is
1208 16/ quietened a few compiler warnings
1210 17/ support/export/client:client_lookup
1212 look for pre-existing client with same name before creating
1215 18/ support/include/exportfs.h
1217 The ordering of the MCL_* enum was:
1218 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1220 I moved ANONYMOUS to the end.
1222 The ordering is significant when an export entry is being searched for to
1223 match a given address. There are two problems with ANONYMOUS being first.
1225 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1226 then the ro case will always be found first and the privileged hosts won't get
1228 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1229 export entry for the specific host, and writes it to xtab.
1230 When another request comes from the same host, the ANONYMOUS entry is found again,
1231 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1232 again. If causes bloat in xtab.
1234 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1236 19/ utils/exportfs/exportfs.man
1237 many updates to the man page to reflect changes to the code
1239 -----------------------
1245 - allow exportfs to modify rmtab file
1246 - make sure kernel never gets two clients with same IP address
1247 - possible kernel should reject
1248 - needs to be some way to lookup client in kernel by IP address
1249 - maybe get kernel to do case-insensitive comparisons on client names
1250 - remove unused clients from kernel
1252 - change etab to xtab and xtab to xtab.active
1254 - timestamp and/or statd-stamp in rmtab for removing old entries.
1256 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1258 * linux-nfs: New directory.
1259 * linux-nfs/ChangeLog: Moved from ..
1260 * linux-nfs/INSTALL: Likewise.
1261 * linux-nfs/KNOWNBUGS: Likewise.
1262 * linux-nfs/NEW: Likewise.
1263 * linux-nfs/README: Likewise.
1264 * linux-nfs/THANKS: Likewise.
1265 * linux-nfs/TODO: Likewise.
1267 * Starting from knfsd 1.4.7.