1 2001-04-18 H.J. Lu <hjl@lucon.org>
3 * nfs-utils.spec.in: Updated.
4 * nfs-utils.spec: Regenerated.
6 2001-04-18 H.J. Lu <hjl@lucon.org>
8 * nfs-utils.spec.in: Support cross build.
9 * nfs-utils.spec: Regenerated.
15 * config.mk.in (BUILD_CC): New.
16 (CC): Set to $(BUILD_CC) if BUILD is defined.
19 (RANLIB): Set to @RANLIB@.
21 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
22 * configure: Regenerated.
24 * tools/rpcgen/Makefile (BUILD): Set to true.
26 2001-04-01 Chip Salzenberg <chip@valinux.com>
28 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
29 redundant, and sometimes broken, declaration of svc_fdset;
31 * support/nfs/rpcmisc.c (closedown): Likewise.
33 2001-03-21 H.J. Lu <hjl@lucon.org>
35 * nfs-utils.spec: Regenerated.
38 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
40 * utils/statd/statd.c (main): make sure file descriptors 0-2
41 are open to /dev/null.
43 2001-03-21 H.J. Lu <hjl@lucon.org>
45 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
46 * support/nfs/rpcmisc.c: Likewise.
47 * utils/rquotad/rquota_svc.c: Likewise.
48 * utils/rquotad/rquotad.man: Likewise.
49 * utils/statd/Makefile: Likewise.
50 * utils/statd/rmtcall.c: Likewise.
51 * utils/statd/simulate.c: Likewise.
52 * utils/statd/statd.c: Likewise.
53 * utils/statd/statd.man: Likewise.
55 2001-03-11 H.J. Lu <hjl@lucon.org>
57 * configure.in (RELEASE): New. Default to 1, set by
58 --with-release=XXX. Substitute nfs-utils.spec.
59 * nfs-utils.spec.in (Release): Set to @RELEASE@.
60 * configure: Regenerated.
61 * nfs-utils.spec: Likewise.
63 2001-03-11 H.J. Lu <hjl@lucon.org>
65 * utils/rquotad/rquotad.man: Fix a typo.
67 2001-03-11 H.J. Lu <hjl@lucon.org>
69 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
70 * support/nfs/rpcmisc.c: Likewise.
71 * utils/rquotad/rquota_svc.c: Likewise.
72 * utils/rquotad/rquotad.man: Likewise.
73 * utils/statd/Makefile: Likewise.
74 * utils/statd/rmtcall.c: Likewise.
75 * utils/statd/simulate.c: Likewise.
76 * utils/statd/statd.c: Likewise.
77 * utils/statd/statd.man: Likewise.
79 2001-03-10 H.J. Lu <hjl@lucon.org>
81 * configure.in (VERSION): Set to "0.3.2".
82 * configure: Regenerated.
83 * nfs-utils.spec: Likewise.
85 * README: Updated for 0.3.2.
87 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
89 * utils/rquotad/rquotad.man: Updated for -p.
90 * utils/statd/statd.man: Likewise.
92 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
94 * support/nfs/rpcmisc.c: export makesock()
96 * support/include/rpcmisc.h (makesock): Declared.
98 * utils/rquotad/rquota_svc.c: added longopts, added support for
99 specifying the port to bind to on the command line.
101 * utils/statd/statd.c: ditto, also specify port used for
102 outgoing connections.
103 (do_regist): Removed.
105 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
106 get_socket. Make it extern.
108 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
109 instead of do_regist.
111 * utils/statd/Makefile (LIBS): link with our own libnfs
113 2001-03-09 H.J. Lu <hjl@lucon.org>
115 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
116 * etc/nodist/nfs-client: Likewise.
118 2001-02-26 Chip Salzenberg <chip@valinux.com>
120 * debian/changelog: Version 0.3.1-1.
121 * Mention upstream source and license in copyright file.
122 * Add build-Depends for debhelper and libwrap0-dev.
124 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
126 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
127 * etc/nodist/nfs-client: Likewise.
129 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
131 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
134 2001-02-17 Patrick J. LoPresti <patl@curl.com>
136 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
139 2001-02-14 H.J. Lu <hjl@lucon.org>
141 * utils/statd/rmtcall.c: Include <time.h>.
142 * utils/statd/svc_run.c: Likewise.
144 2001-02-14 H.J. Lu <hjl@lucon.org>
146 * configure.in (VERSION): Set to "0.3.1".
147 * configure: Regenerated.
148 * nfs-utils.spec: Likewise.
150 * README: Updated for 0.3.1.
152 2001-02-14 H.J. Lu <hjl@lucon.org>
154 * support/nfs/rpcmisc.c: Include <time.h>.
156 2001-02-14 Chip Salzenberg <chip@valinux.com>
158 * debian/control: Change priority of nhfsstone package to 'extra'.
160 2001-02-12 Chip Salzenberg <chip@valinux.com>
162 * debian/changelog: Version 0.3-2.
164 2001-02-02 H.J. Lu <hjl@lucon.org>
166 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
168 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
169 out SO_SNDBUF/SO_RCVBUF.
170 (rpc_init): Remove bufsize and remove socksz in calls to
173 * utils/mountd/mountd.c (main): Remove bufsize in calls to
176 2001-01-28 Chip Salzenberg <chip@valinux.com>
178 * debian/changelog: Version 0.3-1.
180 2001-01-25 H.J. Lu <hjl@lucon.org>
182 * configure.in (VERSION): Set to "0.3".
183 * configure: Regenerated.
184 * nfs-utils.spec: Likewise.
186 * README: Updated for 0.3.
188 2001-01-25 H.J. Lu <hjl@lucon.org>
190 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
192 2001-01-20 Chip Salzenberg <chip@valinux.com>
194 * support/include/xio.h (xgetc): Declare to return int.
195 * support/nfs/xio.c (xgetc): Return int.
196 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
197 * utils/statd/statd.c (main): Use int for value of getopt.
198 * debian/changelog: Version 0.2.1-5.
200 2000-12-10 Chip Salzenberg <chip@valinux.com>
202 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
203 program and procedure numbers of kernel lockd's callback. Also,
204 besides the old (and broken) procedure #24, allow #16 per Trond.
206 2000-12-03 Chip Salzenberg <chip@valinux.com>
208 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
209 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
210 * debian/changelog: Version 0.2.1-4.
212 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
214 * utils/mountd/auth.c (auth_authenticate): Log the bad path
217 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
219 * support/nfs/exports.c (getexportent): Check for host name
220 without option, or options without hostname, and print a warning,
221 as this is most likely a typo.
223 2000-11-19 Chip Salzenberg <chip@valinux.com>
225 * debian/control: Add dependency on portmap.
226 * debian/changelog: Version 0.2.1-3.
228 2000-11-10 H.J. Lu <hjl@lucon.org>
230 * nfs-utils.spec.in: Don't use libtool.
231 Add ChangeLog and COPYING to doc.
232 * nfs-utils.spec: Rebuild.
234 2000-11-09 H.J. Lu <hjl@lucon.org>
236 * etc/redhat/nfs.init (start): Back out the last change.
238 2000-11-09 H.J. Lu <hjl@lucon.org>
240 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
241 TCP is not supported by kernel.
243 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
245 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
246 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
248 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
250 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
252 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
253 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
254 callbacks to local lockd.
256 2000-10-18 Scott McDermott <mcdermot@questra.com>
258 * utils/exportfs/exports.man: Updated for CIDR netmask.
260 2000-10-17 Scott McDermott <mcdermot@questra.com>
262 * support/export/client.c (client_init): Support CIDR netmask
265 2000-10-11 H.J. Lu <hjl@lucon.org>
267 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
268 * configure: Rebuilt.
270 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
272 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
273 "/var/lib/nfs/state".
275 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
277 * utils/statd/statd.h (run_mode): New global bitmask of runtime
278 behaviors: fg/bg, logging, etc.
279 * utils/statd/statd.c: New command line options: -V -h -? -d .
280 * utils/statd/statd.man: Update for changes to statd.
282 * utils/statd/log.h (log_init): Remove parameter of function; use
283 global variable "name_p" instead.
284 * utils/statd/log.c: Add support for logging to stderr.
286 * utils/statd/notlist.c: Partially rewrite notify list handling
287 functions. Eliminate run-off-end-of-list bug when calling
288 nlist_insert_timer. Add lots of comments.
290 2000-09-27 H.J. Lu <hjl@lucon.org>
292 * README: Updated for RedHat 7.0.
294 2000-09-27 H.J. Lu <hjl@lucon.org>
296 * nfs-utils.spec: Rebuild.
298 2000-09-27 H.J. Lu <hjl@lucon.org>
300 * README: Updated for 0.2.1.
302 2000-09-27 H.J. Lu <hjl@lucon.org>
304 * nfs-utils.spec.in: Updated to use rpm macros and support
307 2000-09-25 H.J. Lu <hjl@lucon.org>
309 * configure.in (VERSION): Set to "0.2.1".
310 * configure: Regenerated.
311 * nfs-utils.spec: Updated.
313 2000-09-25 H.J. Lu <hjl@lucon.org>
315 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
316 non-NULL hostent is always returned.
318 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
320 * etc/redhat/nfslock.init: don't kill lockd processes that do not
321 have an executable (i.e. kernel threads)
323 2000-09-01 H.J. Lu <hjl@lucon.org>
325 * README: Updated for 0.2.
327 2000-09-01 Jay Weber <jweber@valinux.com>
329 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
330 supporting version 3 of nfs if available, else it will fall back to
331 version 2 support only.
333 2000-08-30 H.J. Lu <hjl@lucon.org>
335 * configure.in (VERSION): Set to "0.2".
336 * configure: Regenerated.
337 * nfs-utils.spec: Updated.
339 2000-08-25 H.J. Lu <hjl@lucon.org>
341 * support/misc/tcpwrapper.c (logit): Modify the log output.
343 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
345 * utils/rquotad/rquotad.man, utils/statd/statd.man,
346 utils/mountd/mountd.man: updated
348 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
349 * utils/rquotad/Makefile: fix comment
351 * support/misc/tcpwrapper.c (logit): added comment about waiting
352 for the children after fork()
354 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
355 zombies behind (from logit()'s fork)
356 * utils/rquotad/rquota_svc.c (main): ditto
357 * utils/statd/statd.c (main): ditto
359 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
360 to check_default instead of 0, for prognum
362 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
363 to check_default instead of 0, for prognum
365 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
366 HAVE_TCP_WRAPPER is defined.
367 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
368 defined. Reject an RPC call if check_default () fails.
370 2000-08-25 H.J. Lu <hjl@lucon.org>
372 * support/include/tcpwrapper.h: New for the tcp wrapper
374 * support/misc/Makefile: Likewise.
375 * support/misc/from_local.c: Likewise.
376 * support/misc/tcpwrapper.c: Likewise.
378 * aclocal.m4 (AC_TCP_WRAPPER): New.
379 * configure.in: Use it. Substitute LIBWRAP.
380 * configure: Rebuilt.
382 * config.mk.in (LIBNSL): New.
385 * support/Makefile (SUBDIRS): Add misc.
387 * support/lib/Makefile (LIBS): Add libmisc.a.
389 * utils/rquotad/Makefile (LIBS): Add
391 -lmisc $(LIBWRAP) $(LIBNSL)
393 * utils/statd/Makefile (LIBS): Likewise.
395 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
396 HAVE_TCP_WRAPPER is defined.
397 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
398 defined. Reject an RPC call if check_default () fails.
400 * utils/statd/statd.c: Include "tcpwrapper.h" if
401 HAVE_TCP_WRAPPER is defined.
402 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
403 check_default () before calling sm_prog_1 (). Define it as
404 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
406 2000-08-25 Chip Salzenberg <chip@valinux.com>
408 * debian/*: Complete Debian build support.
409 * etc/debian/*: Remove.
411 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
413 * support/export/client.c(client_check): removed the "dot+1" as a
414 ypdomain argument to innetgr as this is entirely bogus.
415 It should always be NULL.
417 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
419 * support/export/xtab.c(xtab_read): introduce new mode for
420 reading xtab. i.e. a list of exports that might be known to the
421 kernel, or might not. These are flagged as m_exported == -1
422 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
423 value "2" for xtab, meaning don't trust this too much.
424 * support/include/exportfs.h(struct mexport): changed m_exported
425 from one bit to an int so that it can hold new value
426 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
427 kernel if it is uncertain whether the kernel knows (m_exported == -1)
428 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
431 * support/nfs/xio.c(xflock): added O_CREAT when getting
432 a write lock so that missing files aren't fatal.
434 * etc/debian/nfs-common: new file from "potato"
435 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
437 2000-08-09 H.J. Lu <hjl@lucon.org>
439 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
440 startup to ensure all existing clients work fine.
442 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
443 to xtab_read () for reading _PATH_XTAB.
445 2000-08-02 H.J. Lu <hjl@lucon.org>
447 * utils/mountd/auth.c (auth_authenticate_internal): Try to
448 avoid the reverse name lookup.
450 2000-07-04 H.J. Lu <hjl@lucon.org>
452 * utils/statd/log.c: Include <stdlib.h> for exit ().
454 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
457 2000-07-04 H.J. Lu <hjl@lucon.org>
459 * configure.in (VERSION): Set to "0.1.9.1".
460 * configure: Regenerated.
461 * nfs-utils.spec: Updated.
465 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
467 * support/export/hostname.c (hostent_dup): Handle the NULL
470 2000-07-03 H.J. Lu <hjl@lucon.org>
472 * README: Update the util-linux requirement.
474 2000-07-03 H.J. Lu <hjl@lucon.org>
476 * configure.in (VERSION): Set to "0.1.9".
477 * configure: Regenerated.
478 * nfs-utils.spec: Updated.
482 2000-07-03 H.J. Lu <hjl@lucon.org>
484 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
485 stop to ensure all clients can still access the server
486 before it is shutdown.
488 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
490 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
491 calls with format string.
493 2000-06-28 Chip Salzenberg <chip@valinux.com>
495 * utils/statd/log.c (log): Call syslog with format string.
497 2000-06-27 H.J. Lu <hjl@lucon.org>
499 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
502 2000-06-27 H.J. Lu <hjl@lucon.org>
506 2000-06-27 H.J. Lu <hjl@lucon.org>
508 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
509 startup to ensure all existing clients are exported.
511 * configure.in (VERSION): Set to "0.1.8.2".
512 * configure: Regenerated.
513 * nfs-utils.spec: Updated.
515 2000-06-06 H.J. Lu <hjl@lucon.org>
517 * configure.in (VERSION): Set to "0.1.8.1".
518 * configure: Regenerated.
519 * nfs-utils.spec: Updated.
521 2000-06-06 H.J. Lu <hjl@lucon.org>
523 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
524 to "struct sockaddr_in *" for glibc 2.2.
525 (mount_umnt_1_svc): Likewise.
526 (mount_umntall_1_svc): Likewise.
527 (mount_export_1_svc): Likewise.
528 (mount_exportall_1_svc): Likewise.
529 (mount_pathconf_2_svc): Likewise.
530 (get_rootfh): Likewise.
532 2000-06-04 H.J. Lu <hjl@lucon.org>
534 * etc/redhat/nfs.init: Fix a typo in comment.
536 2000-05-31 H.J. Lu <hjl@lucon.org>
538 * configure.in (VERSION): Set to "0.1.8".
539 * configure: Regenerated.
540 * nfs-utils.spec: Updated.
544 2000-05-31 H.J. Lu <hjl@lucon.org>
546 * configure.in (VERSION): Set to "0.1.7.5".
547 * configure: Regenerated.
548 * nfs-utils.spec: Updated.
550 * support/include/nfslib.h (exportent): Add a new field,
551 r_count, to count the number of mounts from a client.
552 (getrmtabent): Take a new argument for position in file.
553 (putrmtabent): Likewise.
554 (fgetrmtabent): Likewise.
555 (fputrmtabent): Likewise.
556 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
557 for position in file.
558 (fgetrmtabent): Likewise.
559 (putrmtabent): Likewise.
560 (fputrmtabent): Likewise.
562 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
565 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
566 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
568 * utils/mountd/rmtab.c (mountlist_add): Likewise.
569 (mountlist_del): Likewise.
570 (mountlist_del_all): Likewise.
571 (mountlist_list): Likewise.
573 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
574 for the existing entry and initialize "r_count" to 1.
575 (mountlist_del): Decrement "r_count".
577 2000-05-18 H.J. Lu <hjl@lucon.org>
579 * configure.in (VERSION): Set to "0.1.7.4".
580 * configure: Regenerated.
581 * nfs-utils.spec: Updated.
583 2000-05-18 H.J. Lu <hjl@lucon.org>
585 * etc/redhat/nfs.init (restart): Just do stop and start.
587 2000-05-09 Jay Weber <jweber@valinux.com>
589 * utils/rquotad/hasquota.c: added support for ext3 recognition
591 * utils/rquotad/mntent.h: Likewise.
593 2000-05-01 H.J. Lu <hjl@lucon.org>
595 * configure.in (VERSION): Set to "0.1.7.3".
596 * configure: Regenerated.
597 * nfs-utils.spec: Updated.
599 2000-05-01 H.J. Lu <hjl@lucon.org>
601 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
602 mounting poins in /etc/fstab.
604 2000-05-01 H.J. Lu <hjl@lucon.org>
606 * configure.in (VERSION): Set to "0.1.7.2".
607 * configure: Regenerated.
608 * nfs-utils.spec: Updated.
610 2000-05-01 H.J. Lu <hjl@lucon.org>
612 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
613 to check for the mounting point.
615 2000-04-29 Chip Salzenberg <chip@valinux.com>
616 Neil Brown <neilb@cse.unsw.edu.au>
618 * Really re-use RPC ports.
619 (Fixes earlier patch. Sorry, Neil.)
621 2000-04-26 H.J. Lu <hjl@lucon.org>
623 * configure.in (VERSION): Set to "0.1.7.1".
624 * configure: Regenerated.
625 * nfs-utils.spec: Updated.
627 2000-04-26 H.J. Lu <hjl@lucon.org>
629 * etc/redhat/nfslock.init: Check if lockd exits before killing
632 2000-04-25 H.J. Lu <hjl@lucon.org>
634 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
636 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
638 * support/nfs/exports.c (parsesquash): Correctly set the
641 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
643 * support/include/nfs/nfs.h: Removed knowledge of internals of
644 kernel filehandles (which can change) and defined nfs_fh_size
645 which has variable size
647 * support/nfs/getfh.c: defined getfh_size to use new syscall to
648 get variable sized file handles, and change getfh{,old} to
651 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
654 * tools/Makefile, tools/nlmtest/nlmtest.c
655 nlmtest.c depended on internel format of file handles, so now
659 2000-03-12 Chip Salzenberg <chip@valinux.com>
660 Neil Brown <neilb@cse.unsw.edu.au>
662 * support/nfs/rpcmisc.c (rpc_init): Share transports.
664 2000-03-13 H.J. Lu <hjl@lucon.org>
666 * etc/redhat/nfsd.init: Updated.
668 * etc/redhat/nfslock.init: Updated.
670 * nfs-utils.spec.in: Updated.
672 * configure.in (VERSION): Set to "0.1.7".
673 * configure: Regenerated.
674 * nfs-utils.spec: Updated.
678 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
680 * utils/exportfs/exportfs.c (dump): Included printing of
681 nohide, no_subtree_check, and insecure_locks
683 2000-02-26 Chip Salzenberg <chip@valinux.com>
685 * config.mk.in (INSTALLSUID): Strip ("-s").
686 (INSTALLSCRIPT): Define.
687 * utils/nhfsstone/Makefile: Use it.
689 2000-02-26 Chip Salzenberg <chip@valinux.com>
691 * utils/lockd/lockd.man: Create.
692 * utils/lockd/Makefile: Install it.
693 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
694 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
695 * utils/nhfsstone/Makefile: Install the helper scripts and
697 * utils/exportfs/exports.man: Fix typo.
699 2000-02-26 Chip Salzenberg <chip@valinux.com>
701 * support/nfs/xio.c (xungetc): Decrement line number when
702 character to unget is newline. Make first parameter int, so
703 it can distinguish EOF from \377.
704 * support/include/xio.h (xungetc): Adjust prototype.
706 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
708 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
709 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
710 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
712 This is for supporting a new option introduced in 2.3.42
714 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
716 * COPYING: Added. GPL.
718 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
720 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
721 to get the block size.
723 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
725 * nfs-utils.spec.in: Update ftp site.
727 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
729 * README: Update hostnames.
731 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
733 * configure.in (VERSION): Set to "0.1.6".
734 * configure: Regenerated.
735 * nfs-utils.spec: Updated.
739 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
741 * utils/mountd/auth.c (auth_authenticate_internal): Call
742 xstrdup for hostname before passing it to gethostbyname.
744 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
747 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
749 * README: Update the mailing list address.
751 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
753 * configure.in (VERSION): Set to "0.1.5".
754 * configure: Regenerated.
755 * nfs-utils.spec: Updated.
759 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
761 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
764 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
766 * configure.in (VERSION): Set to "0.1.4".
767 * configure: Regenerated.
768 * nfs-utils.spec: Updated.
772 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
774 * nfs-utils.spec.in: New file.
776 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
778 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
780 1999-12-04 Chip Salzenberg <chip@valinux.com>
782 * config.mk.in: Use $(CC) as set by configure.
784 1999-12-04 Chip Salzenberg <chip@valinux.com>
786 * rules.mk: Call $(MAKE) with $(MFLAGS).
788 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
790 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
791 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
793 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
795 * nfs-utils.spec (Version): Set to 0.1.3.
797 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
798 * configure: Regenerated.
802 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
804 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
805 (_PATH_DEV_DSK): Likewise.
806 (getquotainfo): Match the mounting point from /etc/mtab
807 instead of calling nfsmount_to_devname ().
809 1999-11-24 Chip Salzenberg <chip@valinux.com>
811 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
812 to the new port 24 as well as the historical port 100021.
814 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
816 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
817 stopping nfsd to stop spurious ESTALE on server shutdown.
819 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
821 * support/nfs/exports.c (parseopts): make copy of opt string
822 before 'nul'ing out commas so that
824 # exportfs -o option1,option2 hosta:/fs hostb:/fs
826 applies both options to both exports.
828 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
830 * README: Fix a few typos.
832 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
834 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
835 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
836 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
837 (unsigned_dec): Likewise.
838 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
839 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
841 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
843 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
844 (unsigned_dec): Likewise.
845 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
846 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
847 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
849 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
851 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
852 * support/nfs/exports.c: added {no_,}subtree_check and changed
854 * utils/exportfs/exports.man: added no_subtree_check and nohide
855 and removed irrelevant stuff from unfsd.
856 * support/export/rmtab.c: rmtab_read didn't quite do the right
857 thing if a pathname from rmtab was a subdirectory of an export-point
859 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
861 * README: Updated ftp site.
863 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
865 * nfs-utils.spec (Version): Set to 0.1.2.
867 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
868 * configure: Regenerated.
872 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
874 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
875 (auth_authenticate_internal): Check for NULL return on forward
877 (auth_authenticate): Handle "no_forward_dns".
879 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
881 * Version 0.1.1 released.
883 * nfs-utils.spec (Version): Set to 0.1.1.
885 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
886 * configure: Regenerated.
890 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
892 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
894 (Provides): Likewise.
896 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
898 * Initial version 0.1 released.
900 * configure.in (VERSION): Set to "nfs-utils 0.1".
901 * configure: Regenerated.
903 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
905 * utils/mountd/mountd.c (get_exportlist): Cleanup.
907 * utils/exportfs/exportfs.c (unexport_all): Unexport from
908 kernel only if the entry is exported to kernel.
909 (unexportfs): Likewise.
911 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
913 1/ utils/mountd/rmtab.c::mountlist_list
915 This routine stats the rmtab file to see if it has changed. It
916 if has, it cleans up it's old copy of the data. But it still
917 always re-read the file, thus returning multiple copies of the
918 data on consecutive calls without intervening changes.
919 "Showmount -a" didn't show this as it appears to sort/unique the
920 data, but 'strace showmount -a' showed that the size of the
921 datagram that it received grew.
923 I moved the getrmtabent loop inside the mtime test.
925 2/ utils/exportfs/exportfs.c
927 Many routines used the m_path field of m_export instead of
929 According to the comment in nfslib.h, m_path should only
930 be used when processing a mount request (i.e. in mountd)
931 where the mountpoint may be a subdirectory of the export point.
933 I changed all occurances of m_path to e_path
936 3/ utils/exportfs/exportfs.c:main
938 extra arguments are not meaningful with -a or -r, but
939 exportfs accepted them and then ignored the -a/-r, expect that
940 -r would still unexport everything first.
942 I generate an error if there are extra args and f_all
944 4/ utils/exportfs/exportfs.c:main
945 extract dump out as a special case.
947 5/ utils/exportfs/exportfs.c
948 made f_reexport a local variable.
951 6/ utils/exportfs/exportfs.c:main,exportall
953 support/export/rmtab.c
954 only mayexport on newly created entries, don't set xtabent at all
956 7/ support/include/nfslib.h
958 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
960 8/ support/export/xtab.c
962 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
966 9/ support/export/xtab.c
968 xtab_mount_read now sets m_exported, and NOT
969 xtabent and mayexport
971 removed the append arguement from xtab_write as it was
974 added is_export flag to xtab_write similar to xtab_read
975 if is_export, only write entries with m_xtabent or m_addxtab
976 if !is_export, only write entries with m_exported
978 10/ support/export/export.c::export_allowed_internal
980 added test for exp->m_mayexport, as the export tree
981 may have entries that are no longer allowed to be exported,
982 and so shouldn't caused deduced exported by rmtab_read
984 11/ utils/exportfs/exportfs.c::main
985 error checking of flags.
987 12/ utils/exportfs/exportfs.c
989 total rewrite of export and unexport logic.
991 - build an exportslist of valid exports, based on
992 current etab file and arguments,
993 - read rmtab to instantiate relevant wild card entries
994 - read etab to find out what is currently exported
995 - synchronise intention with reality
996 - write out etab and xtab
999 discard the m_addxtab flag
1000 add m_changed flag so we know what to report in exportfs
1002 14/ utils/mountd/auth.c:auth_authenticate
1004 the value returned by gethostbyaddr was trusted.
1006 It now follows this with a call to gethostbyname
1007 and checks that the address is in the list.
1009 15/ support/export/nfsctl.c::cltsetup,expsetup
1011 force client names to lowercase as kernel is
1014 16/ quietened a few compiler warnings
1016 17/ support/export/client:client_lookup
1018 look for pre-existing client with same name before creating
1021 18/ support/include/exportfs.h
1023 The ordering of the MCL_* enum was:
1024 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1026 I moved ANONYMOUS to the end.
1028 The ordering is significant when an export entry is being searched for to
1029 match a given address. There are two problems with ANONYMOUS being first.
1031 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1032 then the ro case will always be found first and the privileged hosts won't get
1034 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1035 export entry for the specific host, and writes it to xtab.
1036 When another request comes from the same host, the ANONYMOUS entry is found again,
1037 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1038 again. If causes bloat in xtab.
1040 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1042 19/ utils/exportfs/exportfs.man
1043 many updates to the man page to reflect changes to the code
1045 -----------------------
1051 - allow exportfs to modify rmtab file
1052 - make sure kernel never gets two clients with same IP address
1053 - possible kernel should reject
1054 - needs to be some way to lookup client in kernel by IP address
1055 - maybe get kernel to do case-insensitive comparisons on client names
1056 - remove unused clients from kernel
1058 - change etab to xtab and xtab to xtab.active
1060 - timestamp and/or statd-stamp in rmtab for removing old entries.
1062 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1064 * linux-nfs: New directory.
1065 * linux-nfs/ChangeLog: Moved from ..
1066 * linux-nfs/INSTALL: Likewise.
1067 * linux-nfs/KNOWNBUGS: Likewise.
1068 * linux-nfs/NEW: Likewise.
1069 * linux-nfs/README: Likewise.
1070 * linux-nfs/THANKS: Likewise.
1071 * linux-nfs/TODO: Likewise.
1073 * Starting from knfsd 1.4.7.