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.
10 2001-10-11 Chip Salzenberg <chip@pobox.com>
12 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
13 * debian/changelog: Version 0.3.3-2.
15 2001-10-08 Chip Salzenberg <chip@pobox.com>
17 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
18 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
19 * utils/mountd/mountd.man: Update paths to /var/lib.
20 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
22 2001-10-06 Preston Brown <pbrown@redhat.com>
24 * utils/nfsstat/nfsstat.man: Updated.
26 2001-09-24 H.J. Lu <hjl@lucon.org>
28 * configure.in (VERSION): Set to "0.3.3".
29 * configure: Regenerated.
30 * nfs-utils.spec: Likewise.
32 * README: Updated for 0.3.3.
34 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
36 Arrange that "exportfs -au" never does DNS lookup:
38 * support/export/client.c (client_lookup) : add "canonical"
39 flag which says that the hostname is known to be canonical, so
42 * support/export/export.c (export_create) : add "canonical"
43 flag to be passed down to client_lookup
44 * support/export/export.c (export_lookup) : Likewise
46 * support/export/xtab.c (xtab_read) : pass appropriate
47 "canonical" flag to export_lookup and export_create:
48 set if reading list of filesystems currently exports
51 * support/export/export.c (export_read) : pass 0 as
52 "canonical" flag to export_lookup and export_create
53 * support/export/rmtab.s (rmtab_read) : Likewise
55 * support/include/exportfs.h : redeclare various routines
56 to have "canonical" flag
58 * utils/exportfs/exportfs.c (main) : redo logic for
59 "-au" to read in what is currently exported, but never even
60 look at what "should" be exported.
62 * utils/exportfs/exportfs.c (unexportall) : remove this
63 routine. Functionality is completely included in
66 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
67 flag to zero in calls to export_lookup and export_create.
70 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
71 Anne Milicia <milicia@missioncriticallinux.com>
73 * support/export/client.c (client_lookup) call gethostbyadd
74 to make sure that we have a canonical hostname, even for
76 * utils/exportfs/exportfs.c (exportfs) Likewise
78 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
80 * support/nfs/exports.c (putexportent): \octal quote any spaces
82 * support/nfs/xio.c (xgettok): recognise double-quote and
83 \octal quoting in path names
84 * utils/exportfs/exports.man: document quoting conventions
87 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
89 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
90 change from 2000-08-02: It causes problems if someone exports
91 to both a hostname and IP addresses. nfs-utils must be
92 consistant about the canonical name that it chooses.
94 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
95 H.J. Lu <hjl@lucon.org>
97 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
99 * utils/statd/statd.c (longopts): Add "name".
100 (usage): Add "-n/--name".
101 (main): Set MY_NAME with "-n/--name".
103 * utils/statd/state.c (change_state): Set MY_NAME only if it
106 * utils/statd/statd.man: Updated for "-n/--name".
108 2001-07-26 H.J. Lu <hjl@lucon.org>
110 * nfs-utils.spec (Release): Set to 8.
112 2001-07-25 H.J. Lu <hjl@lucon.org>
114 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
117 2001-06-27 H.J. Lu <hjl@lucon.org>
119 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
121 2001-06-27 H.J. Lu <hjl@lucon.org>
123 * utils/rquotad/rquota_server.c: Don't call statfs () for
124 the block size. Use BLOCK_SIZE instead.
126 2001-06-27 H.J. Lu <hjl@lucon.org>
128 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
129 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
131 * configure.in (enable_nfsv3): Set to yes by default.
132 (--enable-rquotad): Added
133 (AC_PROG_CXX): Removed.
134 (AC_OUTPUT): Add utils/Makefile.
135 (CC_FOR_BUILD): Renamed from BUILD_CC.
136 * configure: Regenerated.
138 * utils/Makefile: Removed.
140 * utils/Makefile.in: New.
142 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
144 (CC_FOR_BUILD): Renamed from BUILD_CC.
145 * nfs-utils.spec: Regenerated.
147 2001-06-15 Chip Salzenberg <chip@debian.org>
149 * debian/changelog: Version 0.3.2-2.
150 * debian/*.init: Minor fixes.
152 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
154 * etc/nodist/nfs-server: Fixed a bug where the script would
155 disable mounts from NFSv3 clients if NFSv3 is present.
157 2001-06-05 H.J. Lu <hjl@lucon.org>
159 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
160 (main): Support --descriptors/-o to set the limit of the number
161 of open file descriptors.
164 * utils/mountd/mountd.man: Updated for --descriptors/-o.
166 2001-06-04 H.J. Lu <hjl@lucon.org>
168 * nfs-utils.spec (Release): Set to 6.
170 2001-05-28 H.J. Lu <hjl@lucon.org>
172 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
173 * utils/mountd/mountd.c (main): Likewise.
174 * utils/nfsd/nfsd.c (main): Likewise.
175 * utils/rquotad/rquota_svc.c (main): Likewise.
177 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
179 * support/export/client.c (client_check): Check IP address
182 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
184 * support/export/client.c (client_gettype): Treat `*' as
187 2001-04-22 H.J. Lu <hjl@lucon.org>
189 * nfs-utils.spec.in: Fix a typo.
190 * nfs-utils.spec: Regenerated.
192 2001-04-21 H.J. Lu <hjl@lucon.org>
194 * nfs-utils.spec.in: Fix cross build.
195 * nfs-utils.spec: Regenerated.
198 2001-04-18 H.J. Lu <hjl@lucon.org>
200 * nfs-utils.spec.in: Support cross build.
201 * nfs-utils.spec: Regenerated.
207 * config.mk.in (BUILD_CC): New.
208 (CC): Set to $(BUILD_CC) if BUILD is defined.
211 (RANLIB): Set to @RANLIB@.
213 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
214 * configure: Regenerated.
216 * tools/rpcgen/Makefile (BUILD): Set to true.
218 2001-04-01 Chip Salzenberg <chip@valinux.com>
220 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
221 redundant, and sometimes broken, declaration of svc_fdset;
223 * support/nfs/rpcmisc.c (closedown): Likewise.
225 2001-03-21 H.J. Lu <hjl@lucon.org>
227 * nfs-utils.spec: Regenerated.
230 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
232 * utils/statd/statd.c (main): make sure file descriptors 0-2
233 are open to /dev/null.
235 2001-03-21 H.J. Lu <hjl@lucon.org>
237 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
238 * support/nfs/rpcmisc.c: Likewise.
239 * utils/rquotad/rquota_svc.c: Likewise.
240 * utils/rquotad/rquotad.man: Likewise.
241 * utils/statd/Makefile: Likewise.
242 * utils/statd/rmtcall.c: Likewise.
243 * utils/statd/simulate.c: Likewise.
244 * utils/statd/statd.c: Likewise.
245 * utils/statd/statd.man: Likewise.
247 2001-03-11 H.J. Lu <hjl@lucon.org>
249 * configure.in (RELEASE): New. Default to 1, set by
250 --with-release=XXX. Substitute nfs-utils.spec.
251 * nfs-utils.spec.in (Release): Set to @RELEASE@.
252 * configure: Regenerated.
253 * nfs-utils.spec: Likewise.
255 2001-03-11 H.J. Lu <hjl@lucon.org>
257 * utils/rquotad/rquotad.man: Fix a typo.
259 2001-03-11 H.J. Lu <hjl@lucon.org>
261 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
262 * support/nfs/rpcmisc.c: Likewise.
263 * utils/rquotad/rquota_svc.c: Likewise.
264 * utils/rquotad/rquotad.man: Likewise.
265 * utils/statd/Makefile: Likewise.
266 * utils/statd/rmtcall.c: Likewise.
267 * utils/statd/simulate.c: Likewise.
268 * utils/statd/statd.c: Likewise.
269 * utils/statd/statd.man: Likewise.
271 2001-03-10 H.J. Lu <hjl@lucon.org>
273 * configure.in (VERSION): Set to "0.3.2".
274 * configure: Regenerated.
275 * nfs-utils.spec: Likewise.
277 * README: Updated for 0.3.2.
279 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
281 * utils/rquotad/rquotad.man: Updated for -p.
282 * utils/statd/statd.man: Likewise.
284 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
286 * support/nfs/rpcmisc.c: export makesock()
288 * support/include/rpcmisc.h (makesock): Declared.
290 * utils/rquotad/rquota_svc.c: added longopts, added support for
291 specifying the port to bind to on the command line.
293 * utils/statd/statd.c: ditto, also specify port used for
294 outgoing connections.
295 (do_regist): Removed.
297 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
298 get_socket. Make it extern.
300 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
301 instead of do_regist.
303 * utils/statd/Makefile (LIBS): link with our own libnfs
305 2001-03-09 H.J. Lu <hjl@lucon.org>
307 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
308 * etc/nodist/nfs-client: Likewise.
310 2001-02-26 Chip Salzenberg <chip@valinux.com>
312 * debian/changelog: Version 0.3.1-1.
313 * Mention upstream source and license in copyright file.
314 * Add build-Depends for debhelper and libwrap0-dev.
316 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
318 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
319 * etc/nodist/nfs-client: Likewise.
321 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
323 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
326 2001-02-17 Patrick J. LoPresti <patl@curl.com>
328 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
331 2001-02-14 H.J. Lu <hjl@lucon.org>
333 * utils/statd/rmtcall.c: Include <time.h>.
334 * utils/statd/svc_run.c: Likewise.
336 2001-02-14 H.J. Lu <hjl@lucon.org>
338 * configure.in (VERSION): Set to "0.3.1".
339 * configure: Regenerated.
340 * nfs-utils.spec: Likewise.
342 * README: Updated for 0.3.1.
344 2001-02-14 H.J. Lu <hjl@lucon.org>
346 * support/nfs/rpcmisc.c: Include <time.h>.
348 2001-02-14 Chip Salzenberg <chip@valinux.com>
350 * debian/control: Change priority of nhfsstone package to 'extra'.
352 2001-02-12 Chip Salzenberg <chip@valinux.com>
354 * debian/changelog: Version 0.3-2.
356 2001-02-02 H.J. Lu <hjl@lucon.org>
358 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
360 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
361 out SO_SNDBUF/SO_RCVBUF.
362 (rpc_init): Remove bufsize and remove socksz in calls to
365 * utils/mountd/mountd.c (main): Remove bufsize in calls to
368 2001-01-28 Chip Salzenberg <chip@valinux.com>
370 * debian/changelog: Version 0.3-1.
372 2001-01-25 H.J. Lu <hjl@lucon.org>
374 * configure.in (VERSION): Set to "0.3".
375 * configure: Regenerated.
376 * nfs-utils.spec: Likewise.
378 * README: Updated for 0.3.
380 2001-01-25 H.J. Lu <hjl@lucon.org>
382 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
384 2001-01-20 Chip Salzenberg <chip@valinux.com>
386 * support/include/xio.h (xgetc): Declare to return int.
387 * support/nfs/xio.c (xgetc): Return int.
388 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
389 * utils/statd/statd.c (main): Use int for value of getopt.
390 * debian/changelog: Version 0.2.1-5.
392 2000-12-10 Chip Salzenberg <chip@valinux.com>
394 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
395 program and procedure numbers of kernel lockd's callback. Also,
396 besides the old (and broken) procedure #24, allow #16 per Trond.
398 2000-12-03 Chip Salzenberg <chip@valinux.com>
400 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
401 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
402 * debian/changelog: Version 0.2.1-4.
404 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
406 * utils/mountd/auth.c (auth_authenticate): Log the bad path
409 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
411 * support/nfs/exports.c (getexportent): Check for host name
412 without option, or options without hostname, and print a warning,
413 as this is most likely a typo.
415 2000-11-19 Chip Salzenberg <chip@valinux.com>
417 * debian/control: Add dependency on portmap.
418 * debian/changelog: Version 0.2.1-3.
420 2000-11-10 H.J. Lu <hjl@lucon.org>
422 * nfs-utils.spec.in: Don't use libtool.
423 Add ChangeLog and COPYING to doc.
424 * nfs-utils.spec: Rebuild.
426 2000-11-09 H.J. Lu <hjl@lucon.org>
428 * etc/redhat/nfs.init (start): Back out the last change.
430 2000-11-09 H.J. Lu <hjl@lucon.org>
432 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
433 TCP is not supported by kernel.
435 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
437 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
438 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
440 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
442 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
444 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
445 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
446 callbacks to local lockd.
448 2000-10-18 Scott McDermott <mcdermot@questra.com>
450 * utils/exportfs/exports.man: Updated for CIDR netmask.
452 2000-10-17 Scott McDermott <mcdermot@questra.com>
454 * support/export/client.c (client_init): Support CIDR netmask
457 2000-10-11 H.J. Lu <hjl@lucon.org>
459 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
460 * configure: Rebuilt.
462 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
464 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
465 "/var/lib/nfs/state".
467 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
469 * utils/statd/statd.h (run_mode): New global bitmask of runtime
470 behaviors: fg/bg, logging, etc.
471 * utils/statd/statd.c: New command line options: -V -h -? -d .
472 * utils/statd/statd.man: Update for changes to statd.
474 * utils/statd/log.h (log_init): Remove parameter of function; use
475 global variable "name_p" instead.
476 * utils/statd/log.c: Add support for logging to stderr.
478 * utils/statd/notlist.c: Partially rewrite notify list handling
479 functions. Eliminate run-off-end-of-list bug when calling
480 nlist_insert_timer. Add lots of comments.
482 2000-09-27 H.J. Lu <hjl@lucon.org>
484 * README: Updated for RedHat 7.0.
486 2000-09-27 H.J. Lu <hjl@lucon.org>
488 * nfs-utils.spec: Rebuild.
490 2000-09-27 H.J. Lu <hjl@lucon.org>
492 * README: Updated for 0.2.1.
494 2000-09-27 H.J. Lu <hjl@lucon.org>
496 * nfs-utils.spec.in: Updated to use rpm macros and support
499 2000-09-25 H.J. Lu <hjl@lucon.org>
501 * configure.in (VERSION): Set to "0.2.1".
502 * configure: Regenerated.
503 * nfs-utils.spec: Updated.
505 2000-09-25 H.J. Lu <hjl@lucon.org>
507 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
508 non-NULL hostent is always returned.
510 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
512 * etc/redhat/nfslock.init: don't kill lockd processes that do not
513 have an executable (i.e. kernel threads)
515 2000-09-01 H.J. Lu <hjl@lucon.org>
517 * README: Updated for 0.2.
519 2000-09-01 Jay Weber <jweber@valinux.com>
521 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
522 supporting version 3 of nfs if available, else it will fall back to
523 version 2 support only.
525 2000-08-30 H.J. Lu <hjl@lucon.org>
527 * configure.in (VERSION): Set to "0.2".
528 * configure: Regenerated.
529 * nfs-utils.spec: Updated.
531 2000-08-25 H.J. Lu <hjl@lucon.org>
533 * support/misc/tcpwrapper.c (logit): Modify the log output.
535 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
537 * utils/rquotad/rquotad.man, utils/statd/statd.man,
538 utils/mountd/mountd.man: updated
540 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
541 * utils/rquotad/Makefile: fix comment
543 * support/misc/tcpwrapper.c (logit): added comment about waiting
544 for the children after fork()
546 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
547 zombies behind (from logit()'s fork)
548 * utils/rquotad/rquota_svc.c (main): ditto
549 * utils/statd/statd.c (main): ditto
551 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
552 to check_default instead of 0, for prognum
554 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
555 to check_default instead of 0, for prognum
557 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
558 HAVE_TCP_WRAPPER is defined.
559 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
560 defined. Reject an RPC call if check_default () fails.
562 2000-08-25 H.J. Lu <hjl@lucon.org>
564 * support/include/tcpwrapper.h: New for the tcp wrapper
566 * support/misc/Makefile: Likewise.
567 * support/misc/from_local.c: Likewise.
568 * support/misc/tcpwrapper.c: Likewise.
570 * aclocal.m4 (AC_TCP_WRAPPER): New.
571 * configure.in: Use it. Substitute LIBWRAP.
572 * configure: Rebuilt.
574 * config.mk.in (LIBNSL): New.
577 * support/Makefile (SUBDIRS): Add misc.
579 * support/lib/Makefile (LIBS): Add libmisc.a.
581 * utils/rquotad/Makefile (LIBS): Add
583 -lmisc $(LIBWRAP) $(LIBNSL)
585 * utils/statd/Makefile (LIBS): Likewise.
587 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
588 HAVE_TCP_WRAPPER is defined.
589 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
590 defined. Reject an RPC call if check_default () fails.
592 * utils/statd/statd.c: Include "tcpwrapper.h" if
593 HAVE_TCP_WRAPPER is defined.
594 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
595 check_default () before calling sm_prog_1 (). Define it as
596 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
598 2000-08-25 Chip Salzenberg <chip@valinux.com>
600 * debian/*: Complete Debian build support.
601 * etc/debian/*: Remove.
603 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
605 * support/export/client.c(client_check): removed the "dot+1" as a
606 ypdomain argument to innetgr as this is entirely bogus.
607 It should always be NULL.
609 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
611 * support/export/xtab.c(xtab_read): introduce new mode for
612 reading xtab. i.e. a list of exports that might be known to the
613 kernel, or might not. These are flagged as m_exported == -1
614 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
615 value "2" for xtab, meaning don't trust this too much.
616 * support/include/exportfs.h(struct mexport): changed m_exported
617 from one bit to an int so that it can hold new value
618 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
619 kernel if it is uncertain whether the kernel knows (m_exported == -1)
620 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
623 * support/nfs/xio.c(xflock): added O_CREAT when getting
624 a write lock so that missing files aren't fatal.
626 * etc/debian/nfs-common: new file from "potato"
627 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
629 2000-08-09 H.J. Lu <hjl@lucon.org>
631 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
632 startup to ensure all existing clients work fine.
634 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
635 to xtab_read () for reading _PATH_XTAB.
637 2000-08-02 H.J. Lu <hjl@lucon.org>
639 * utils/mountd/auth.c (auth_authenticate_internal): Try to
640 avoid the reverse name lookup.
642 2000-07-04 H.J. Lu <hjl@lucon.org>
644 * utils/statd/log.c: Include <stdlib.h> for exit ().
646 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
649 2000-07-04 H.J. Lu <hjl@lucon.org>
651 * configure.in (VERSION): Set to "0.1.9.1".
652 * configure: Regenerated.
653 * nfs-utils.spec: Updated.
657 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
659 * support/export/hostname.c (hostent_dup): Handle the NULL
662 2000-07-03 H.J. Lu <hjl@lucon.org>
664 * README: Update the util-linux requirement.
666 2000-07-03 H.J. Lu <hjl@lucon.org>
668 * configure.in (VERSION): Set to "0.1.9".
669 * configure: Regenerated.
670 * nfs-utils.spec: Updated.
674 2000-07-03 H.J. Lu <hjl@lucon.org>
676 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
677 stop to ensure all clients can still access the server
678 before it is shutdown.
680 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
682 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
683 calls with format string.
685 2000-06-28 Chip Salzenberg <chip@valinux.com>
687 * utils/statd/log.c (log): Call syslog with format string.
689 2000-06-27 H.J. Lu <hjl@lucon.org>
691 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
694 2000-06-27 H.J. Lu <hjl@lucon.org>
698 2000-06-27 H.J. Lu <hjl@lucon.org>
700 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
701 startup to ensure all existing clients are exported.
703 * configure.in (VERSION): Set to "0.1.8.2".
704 * configure: Regenerated.
705 * nfs-utils.spec: Updated.
707 2000-06-06 H.J. Lu <hjl@lucon.org>
709 * configure.in (VERSION): Set to "0.1.8.1".
710 * configure: Regenerated.
711 * nfs-utils.spec: Updated.
713 2000-06-06 H.J. Lu <hjl@lucon.org>
715 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
716 to "struct sockaddr_in *" for glibc 2.2.
717 (mount_umnt_1_svc): Likewise.
718 (mount_umntall_1_svc): Likewise.
719 (mount_export_1_svc): Likewise.
720 (mount_exportall_1_svc): Likewise.
721 (mount_pathconf_2_svc): Likewise.
722 (get_rootfh): Likewise.
724 2000-06-04 H.J. Lu <hjl@lucon.org>
726 * etc/redhat/nfs.init: Fix a typo in comment.
728 2000-05-31 H.J. Lu <hjl@lucon.org>
730 * configure.in (VERSION): Set to "0.1.8".
731 * configure: Regenerated.
732 * nfs-utils.spec: Updated.
736 2000-05-31 H.J. Lu <hjl@lucon.org>
738 * configure.in (VERSION): Set to "0.1.7.5".
739 * configure: Regenerated.
740 * nfs-utils.spec: Updated.
742 * support/include/nfslib.h (exportent): Add a new field,
743 r_count, to count the number of mounts from a client.
744 (getrmtabent): Take a new argument for position in file.
745 (putrmtabent): Likewise.
746 (fgetrmtabent): Likewise.
747 (fputrmtabent): Likewise.
748 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
749 for position in file.
750 (fgetrmtabent): Likewise.
751 (putrmtabent): Likewise.
752 (fputrmtabent): Likewise.
754 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
757 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
758 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
760 * utils/mountd/rmtab.c (mountlist_add): Likewise.
761 (mountlist_del): Likewise.
762 (mountlist_del_all): Likewise.
763 (mountlist_list): Likewise.
765 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
766 for the existing entry and initialize "r_count" to 1.
767 (mountlist_del): Decrement "r_count".
769 2000-05-18 H.J. Lu <hjl@lucon.org>
771 * configure.in (VERSION): Set to "0.1.7.4".
772 * configure: Regenerated.
773 * nfs-utils.spec: Updated.
775 2000-05-18 H.J. Lu <hjl@lucon.org>
777 * etc/redhat/nfs.init (restart): Just do stop and start.
779 2000-05-09 Jay Weber <jweber@valinux.com>
781 * utils/rquotad/hasquota.c: added support for ext3 recognition
783 * utils/rquotad/mntent.h: Likewise.
785 2000-05-01 H.J. Lu <hjl@lucon.org>
787 * configure.in (VERSION): Set to "0.1.7.3".
788 * configure: Regenerated.
789 * nfs-utils.spec: Updated.
791 2000-05-01 H.J. Lu <hjl@lucon.org>
793 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
794 mounting poins in /etc/fstab.
796 2000-05-01 H.J. Lu <hjl@lucon.org>
798 * configure.in (VERSION): Set to "0.1.7.2".
799 * configure: Regenerated.
800 * nfs-utils.spec: Updated.
802 2000-05-01 H.J. Lu <hjl@lucon.org>
804 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
805 to check for the mounting point.
807 2000-04-29 Chip Salzenberg <chip@valinux.com>
808 Neil Brown <neilb@cse.unsw.edu.au>
810 * Really re-use RPC ports.
811 (Fixes earlier patch. Sorry, Neil.)
813 2000-04-26 H.J. Lu <hjl@lucon.org>
815 * configure.in (VERSION): Set to "0.1.7.1".
816 * configure: Regenerated.
817 * nfs-utils.spec: Updated.
819 2000-04-26 H.J. Lu <hjl@lucon.org>
821 * etc/redhat/nfslock.init: Check if lockd exits before killing
824 2000-04-25 H.J. Lu <hjl@lucon.org>
826 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
828 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
830 * support/nfs/exports.c (parsesquash): Correctly set the
833 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
835 * support/include/nfs/nfs.h: Removed knowledge of internals of
836 kernel filehandles (which can change) and defined nfs_fh_size
837 which has variable size
839 * support/nfs/getfh.c: defined getfh_size to use new syscall to
840 get variable sized file handles, and change getfh{,old} to
843 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
846 * tools/Makefile, tools/nlmtest/nlmtest.c
847 nlmtest.c depended on internel format of file handles, so now
851 2000-03-12 Chip Salzenberg <chip@valinux.com>
852 Neil Brown <neilb@cse.unsw.edu.au>
854 * support/nfs/rpcmisc.c (rpc_init): Share transports.
856 2000-03-13 H.J. Lu <hjl@lucon.org>
858 * etc/redhat/nfsd.init: Updated.
860 * etc/redhat/nfslock.init: Updated.
862 * nfs-utils.spec.in: Updated.
864 * configure.in (VERSION): Set to "0.1.7".
865 * configure: Regenerated.
866 * nfs-utils.spec: Updated.
870 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
872 * utils/exportfs/exportfs.c (dump): Included printing of
873 nohide, no_subtree_check, and insecure_locks
875 2000-02-26 Chip Salzenberg <chip@valinux.com>
877 * config.mk.in (INSTALLSUID): Strip ("-s").
878 (INSTALLSCRIPT): Define.
879 * utils/nhfsstone/Makefile: Use it.
881 2000-02-26 Chip Salzenberg <chip@valinux.com>
883 * utils/lockd/lockd.man: Create.
884 * utils/lockd/Makefile: Install it.
885 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
886 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
887 * utils/nhfsstone/Makefile: Install the helper scripts and
889 * utils/exportfs/exports.man: Fix typo.
891 2000-02-26 Chip Salzenberg <chip@valinux.com>
893 * support/nfs/xio.c (xungetc): Decrement line number when
894 character to unget is newline. Make first parameter int, so
895 it can distinguish EOF from \377.
896 * support/include/xio.h (xungetc): Adjust prototype.
898 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
900 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
901 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
902 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
904 This is for supporting a new option introduced in 2.3.42
906 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
908 * COPYING: Added. GPL.
910 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
912 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
913 to get the block size.
915 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
917 * nfs-utils.spec.in: Update ftp site.
919 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
921 * README: Update hostnames.
923 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
925 * configure.in (VERSION): Set to "0.1.6".
926 * configure: Regenerated.
927 * nfs-utils.spec: Updated.
931 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
933 * utils/mountd/auth.c (auth_authenticate_internal): Call
934 xstrdup for hostname before passing it to gethostbyname.
936 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
939 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
941 * README: Update the mailing list address.
943 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
945 * configure.in (VERSION): Set to "0.1.5".
946 * configure: Regenerated.
947 * nfs-utils.spec: Updated.
951 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
953 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
956 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
958 * configure.in (VERSION): Set to "0.1.4".
959 * configure: Regenerated.
960 * nfs-utils.spec: Updated.
964 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
966 * nfs-utils.spec.in: New file.
968 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
970 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
972 1999-12-04 Chip Salzenberg <chip@valinux.com>
974 * config.mk.in: Use $(CC) as set by configure.
976 1999-12-04 Chip Salzenberg <chip@valinux.com>
978 * rules.mk: Call $(MAKE) with $(MFLAGS).
980 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
982 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
983 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
985 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
987 * nfs-utils.spec (Version): Set to 0.1.3.
989 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
990 * configure: Regenerated.
994 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
996 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
997 (_PATH_DEV_DSK): Likewise.
998 (getquotainfo): Match the mounting point from /etc/mtab
999 instead of calling nfsmount_to_devname ().
1001 1999-11-24 Chip Salzenberg <chip@valinux.com>
1003 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1004 to the new port 24 as well as the historical port 100021.
1006 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1008 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1009 stopping nfsd to stop spurious ESTALE on server shutdown.
1011 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1013 * support/nfs/exports.c (parseopts): make copy of opt string
1014 before 'nul'ing out commas so that
1016 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1018 applies both options to both exports.
1020 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1022 * README: Fix a few typos.
1024 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1026 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1027 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1028 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1029 (unsigned_dec): Likewise.
1030 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1031 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1033 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1035 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1036 (unsigned_dec): Likewise.
1037 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1038 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1039 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1041 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1043 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1044 * support/nfs/exports.c: added {no_,}subtree_check and changed
1046 * utils/exportfs/exports.man: added no_subtree_check and nohide
1047 and removed irrelevant stuff from unfsd.
1048 * support/export/rmtab.c: rmtab_read didn't quite do the right
1049 thing if a pathname from rmtab was a subdirectory of an export-point
1051 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1053 * README: Updated ftp site.
1055 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1057 * nfs-utils.spec (Version): Set to 0.1.2.
1059 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1060 * configure: Regenerated.
1064 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1066 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1067 (auth_authenticate_internal): Check for NULL return on forward
1069 (auth_authenticate): Handle "no_forward_dns".
1071 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1073 * Version 0.1.1 released.
1075 * nfs-utils.spec (Version): Set to 0.1.1.
1077 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1078 * configure: Regenerated.
1082 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1084 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1086 (Provides): Likewise.
1088 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1090 * Initial version 0.1 released.
1092 * configure.in (VERSION): Set to "nfs-utils 0.1".
1093 * configure: Regenerated.
1095 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1097 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1099 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1100 kernel only if the entry is exported to kernel.
1101 (unexportfs): Likewise.
1103 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1105 1/ utils/mountd/rmtab.c::mountlist_list
1107 This routine stats the rmtab file to see if it has changed. It
1108 if has, it cleans up it's old copy of the data. But it still
1109 always re-read the file, thus returning multiple copies of the
1110 data on consecutive calls without intervening changes.
1111 "Showmount -a" didn't show this as it appears to sort/unique the
1112 data, but 'strace showmount -a' showed that the size of the
1113 datagram that it received grew.
1115 I moved the getrmtabent loop inside the mtime test.
1117 2/ utils/exportfs/exportfs.c
1119 Many routines used the m_path field of m_export instead of
1121 According to the comment in nfslib.h, m_path should only
1122 be used when processing a mount request (i.e. in mountd)
1123 where the mountpoint may be a subdirectory of the export point.
1125 I changed all occurances of m_path to e_path
1128 3/ utils/exportfs/exportfs.c:main
1130 extra arguments are not meaningful with -a or -r, but
1131 exportfs accepted them and then ignored the -a/-r, expect that
1132 -r would still unexport everything first.
1134 I generate an error if there are extra args and f_all
1136 4/ utils/exportfs/exportfs.c:main
1137 extract dump out as a special case.
1139 5/ utils/exportfs/exportfs.c
1140 made f_reexport a local variable.
1143 6/ utils/exportfs/exportfs.c:main,exportall
1145 support/export/rmtab.c
1146 only mayexport on newly created entries, don't set xtabent at all
1148 7/ support/include/nfslib.h
1150 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1152 8/ support/export/xtab.c
1154 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1158 9/ support/export/xtab.c
1160 xtab_mount_read now sets m_exported, and NOT
1161 xtabent and mayexport
1163 removed the append arguement from xtab_write as it was
1166 added is_export flag to xtab_write similar to xtab_read
1167 if is_export, only write entries with m_xtabent or m_addxtab
1168 if !is_export, only write entries with m_exported
1170 10/ support/export/export.c::export_allowed_internal
1172 added test for exp->m_mayexport, as the export tree
1173 may have entries that are no longer allowed to be exported,
1174 and so shouldn't caused deduced exported by rmtab_read
1176 11/ utils/exportfs/exportfs.c::main
1177 error checking of flags.
1179 12/ utils/exportfs/exportfs.c
1181 total rewrite of export and unexport logic.
1183 - build an exportslist of valid exports, based on
1184 current etab file and arguments,
1185 - read rmtab to instantiate relevant wild card entries
1186 - read etab to find out what is currently exported
1187 - synchronise intention with reality
1188 - write out etab and xtab
1191 discard the m_addxtab flag
1192 add m_changed flag so we know what to report in exportfs
1194 14/ utils/mountd/auth.c:auth_authenticate
1196 the value returned by gethostbyaddr was trusted.
1198 It now follows this with a call to gethostbyname
1199 and checks that the address is in the list.
1201 15/ support/export/nfsctl.c::cltsetup,expsetup
1203 force client names to lowercase as kernel is
1206 16/ quietened a few compiler warnings
1208 17/ support/export/client:client_lookup
1210 look for pre-existing client with same name before creating
1213 18/ support/include/exportfs.h
1215 The ordering of the MCL_* enum was:
1216 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1218 I moved ANONYMOUS to the end.
1220 The ordering is significant when an export entry is being searched for to
1221 match a given address. There are two problems with ANONYMOUS being first.
1223 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1224 then the ro case will always be found first and the privileged hosts won't get
1226 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1227 export entry for the specific host, and writes it to xtab.
1228 When another request comes from the same host, the ANONYMOUS entry is found again,
1229 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1230 again. If causes bloat in xtab.
1232 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1234 19/ utils/exportfs/exportfs.man
1235 many updates to the man page to reflect changes to the code
1237 -----------------------
1243 - allow exportfs to modify rmtab file
1244 - make sure kernel never gets two clients with same IP address
1245 - possible kernel should reject
1246 - needs to be some way to lookup client in kernel by IP address
1247 - maybe get kernel to do case-insensitive comparisons on client names
1248 - remove unused clients from kernel
1250 - change etab to xtab and xtab to xtab.active
1252 - timestamp and/or statd-stamp in rmtab for removing old entries.
1254 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1256 * linux-nfs: New directory.
1257 * linux-nfs/ChangeLog: Moved from ..
1258 * linux-nfs/INSTALL: Likewise.
1259 * linux-nfs/KNOWNBUGS: Likewise.
1260 * linux-nfs/NEW: Likewise.
1261 * linux-nfs/README: Likewise.
1262 * linux-nfs/THANKS: Likewise.
1263 * linux-nfs/TODO: Likewise.
1265 * Starting from knfsd 1.4.7.