1 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
3 * configure.in (VERSION): Set to "1.0.3".
4 * nfs-utils.spec: Likewise.
5 * configure: Regenerated.
7 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
9 * support/nfs/cacheio.c: New File - support for read/writing
10 to export cache in /proc/rpc/*/channel
11 * support/nfs/Makefile: compile cacheio.c
12 * support/include/nfslib.h: declare cacheio.c functions
13 * support/nfs/nfsexport.c: export and unexport through
14 /proc/rpc/*/channel if possible, as old syscall interface
15 may not survive into 2.6 on all architectures.
17 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
18 Ben Leslie <benno@sesgroup.net>
20 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
21 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
22 former would incorectly ignore defport if the application
23 explicitly set __rpcfdtype. The later is sufficient to avoid the
24 special handling in the case where stdin is an internet socket.
26 * utils/mountd/mountd.c(main): Add 'n' to option list in
27 getopt_long as this is a short form of --no-tcp which want being
30 2003-02-12 Chip Salzenberg <chip@pobox.com>
32 * debian/changelog: Version 1.0.2-2.
34 2002-11-27 Chip Salzenberg <chip@pobox.com>
36 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
37 overflow bug. Reformat per rest of source file.
39 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
41 * utils/exportfs/exports.man: Correct notes about whether the wild
42 card characters match a period. They do.
44 2002-10-15 Juan Gomez <juang@us.ibm.com>
46 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
48 (mountlist_add): Call slink_safe_rename instead of rename.
50 2002-10-11 H.J. Lu <hjl@lucon.org>
52 * support/include/exportfs.h (export_errno): New.
54 * support/nfs/exports.c: Include <errno.h>.
56 (getexportent): Set export_errno to EINVAL for bad option.
57 (parseopts): Likewise.
58 Report the location of the default sync/async option.
60 * utils/exportfs/exportfs.c (main): Initialize export_errno to
61 0. Return export_errno.
63 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
64 NeilBrown <neilb@cse.unsw.edu.au>
66 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
67 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
69 2002-09-16 Chip Salzenberg <chip@pobox.com>
71 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
73 2002-09-15 Chip Salzenberg <chip@pobox.com>
75 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
76 socket, as occurs when run from sshd.
77 * debian/changelog: Version 1.0.2-1.
79 2002-09-12 H.J. Lu <hjl@lucon.org>
81 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
84 2002-09-12 H.J. Lu <hjl@lucon.org>
86 * configure.in: Remove checking svctcp_socket and svcudp_socket.
87 * configure: Regenerated.
89 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
90 (HAVE_SVCUDP_SOCKET): Removed.
92 * support/include/nfslib.h: Undo the last change.
94 2002-09-12 H.J. Lu <hjl@lucon.org>
96 * support/include/nfslib.h (svctcp_socket): Protect it with
98 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
100 2002-09-12 H.J. Lu <hjl@lucon.org>
102 * configure.in (VERSION): Set to "1.0.2".
103 * configure: Regenerated.
104 * nfs-utils.spec: Likewise.
106 2002-09-12 H.J. Lu <hjl@lucon.org>
108 * configure.in: Check svctcp_socket and svcudp_socket.
109 * configure: Regenerated.
111 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
112 (HAVE_SVCUDP_SOCKET): New.
114 * support/include/nfslib.h (svctcp_socket): New.
115 (svcudp_socket): New.
117 * support/nfs/Makefile (OBJS): Add svc_socket.o.
119 * support/nfs/svc_socket.c: New.
121 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
122 svcudp_socket if port is unspecified.
124 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
126 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
127 (killer): New. Signal handler to unregister.
128 (main): Use killer. Call svcudp_socket to get the default
131 2002-09-02 Juan Gomez <juang@us.ibm.com>
132 NeilBrown <neilb@cse.unsw.edu.au>
134 Add -N option to statd to run in notify-only mode.
136 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
137 * utils/statd/statd.man: document -N
138 * utils/statd/statd.c: enabled -N, largely exists but needed to be
139 uncommented and completed
141 2002-09-02 Juan Gomez <juang@us.ibm.com>
142 NeilBrown <neilb@cse.unsw.edu.au>
144 statd to have " -P directory" arg to use that directory instead
145 of /var/lib/nfs. This is useful for fail-over clusters.
147 * utils/statd/statd.h: define SM_DIR etc as var, not const.
148 * utils/statd/statd.c: define "-P" option to set SM_*
150 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
152 * utils/statd/notify.c: ditto.
153 * utils/statd/statd.man: document -P option.
155 2002-08-26 Chip Salzenberg <chip@pobox.com>
157 * utils/nfsd/nfsd.man: Fix typo.
158 * debian/changelog: Version 1.0.1-1.
160 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
162 * let parseopts know if /etc/exports was being read or not,
163 and have it only print "no sync or async" warning in that case.
165 2002-05-06 Tom McNeal <trmcneal@attbi.com>
166 NeilBrown <neilb@cse.unsw.edu.au>
168 * utils/nfsstat/nfsstat.c: Handle differing format for
169 /proc/net/rpc/nfsd between pre and post 2.4.0
171 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
172 James Pearson <james-p@moving-picture.com>
174 * support/nfs/rmtab.c(fendrmtabent): sync changes to
175 storage before returning, as this is critical state
177 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
178 H.J. Lu <hjl@lucon.org>
180 * etc/redhat/nfs: New.
182 2002-04-08 H.J. Lu <hjl@lucon.org>
184 * etc/redhat/nfs.init: Updated.
186 * nfs-utils.spec.in: Updated.
187 * nfs-utils.spec: Regenerated.
189 * utils/mountd/mountd.c (longopts): Fix a typo.
191 * utils/mountd/mountd.man: Updated.
193 2002-04-07 H.J. Lu <hjl@lucon.org>
195 * etc/redhat/nfslock.init (restart): Just do stop and start.
197 * etc/redhat/nfs.init: Fix a typo.
199 2002-04-07 H.J. Lu <hjl@lucon.org>
201 * configure.in (VERSION): Set to "1.0.1".
202 * configure: Regenerated.
203 * nfs-utils.spec: Likewise.
205 * README: Updated for 1.0.1.
207 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
208 H.J. Lu <hjl@lucon.org>
210 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
212 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
213 NeilBrown <neilb@cse.unsw.edu.au>
215 Add support for fsid=nn export option so that device
216 numbers don't go in filehandles.
217 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
218 is set, pass the fsid in-place of the device number
219 * support/nfs/exports.c: parse and print fsid= option.
220 Also check if efname has been set, and use "command line"
221 instead in error messages.
222 Also, use strtol instead of atoi for anon[ug]id= so that
223 bad numbers cause errors.
225 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
226 NeilBrown <neilb@cse.unsw.edu.au>
228 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
229 flag so that "sync" becomes the default.
230 Check that either "sync" or "async" is given as an option
231 and warn if neither are present
232 * utils/exportfs/exports.man: change documentation for "sync"
233 to be documentation for "async".
234 * utils/exportfs/exportfs.man: note that "sync" is the default
238 2002-01-02 Chip Salzenberg <chip@pobox.com>
240 * support/export/nfsctl.c (expsetup): Don't export entries that
241 specify id mappings not supported by the kernel. No extant kernel
242 supports any significant mapping, only 'identity' (i.e. none).
243 When other mappings are supported, this code will need changing.
244 * debian/changelog: Version 1.0-2.
246 2001-12-26 Chip Salzenberg <chip@pobox.com>
248 * nfs-utils.spec (Version): Set to "1.0".
249 * configure.in (VERSION): Likewise.
250 * configure: Regenerated.
252 * debian/changelog: Version 1.0-1.
254 * utils/exportfs/exports.man: Emphasize the need for options to
255 immediately follow client names. Explain that wildcards don't
256 usually work on addresses, but may work when reverse DNS fails.
257 Comment out a leftover TP that was TPing our indentation.
258 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
259 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
260 * debian/changelog: Version 0.3.3-6.
262 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
264 * support/export/client.c(client_lookup): If a host has multiple
265 IP addresses, then we must always use the result of a
266 gethostbyname, not that of gethostbyaddr for exporting
268 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
270 * support/export/client.c (client_lookup): use strcasecmp when
272 * support/nfs/export.c (getexportent): add fromkernel arg and use
273 different defaults as kernels prior to 2.4.11 assume different
274 defaults in /proc/fs/nfs/exports
275 * support/include/nfslib.h, support/export/export.c,
276 support/export/xtab.c: support extra "fromkernel" arg for
279 2001-12-13 Chip Salzenberg <chip@pobox.com>
281 * debian/changelog: Version 0.3.3-5.
283 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
285 * support/nfs/xio.c (xskip): Call `xungetc' instead of
286 `ungetc' to keep x_line more properly.
288 2001-11-26 Chip Salzenberg <chip@pobox.com>
290 * utils/showmount/showmount.c (main): Don't assume that strings
291 starting with digits are IP addresses.
292 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
293 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
294 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
295 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
296 man pages: We check host names *and* addresses with tcpwrappers.
297 * debian/changelog: Version 0.3.3-4.
299 2001-11-21 Chip Salzenberg <chip@pobox.com>
301 * support/nfs/clients.c (cfname): Added: current clients file name.
302 (setnfsclntent): Set it.
303 ({get,end}nfsclntent, syntaxerr): Use it.
304 * support/nfs/exports.c (efname): Added: current exports file name.
305 (setnfsexportent): Set it.
306 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
307 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
308 * debian/changelog: Version 0.3.3-3.
310 2001-10-11 Chip Salzenberg <chip@pobox.com>
312 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
313 * debian/changelog: Version 0.3.3-2.
315 2001-10-08 Chip Salzenberg <chip@pobox.com>
317 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
318 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
319 * utils/mountd/mountd.man: Update paths to /var/lib.
320 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
322 2001-10-06 Preston Brown <pbrown@redhat.com>
324 * utils/nfsstat/nfsstat.man: Updated.
326 2001-09-24 H.J. Lu <hjl@lucon.org>
328 * configure.in (VERSION): Set to "0.3.3".
329 * configure: Regenerated.
330 * nfs-utils.spec: Likewise.
332 * README: Updated for 0.3.3.
334 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
336 Arrange that "exportfs -au" never does DNS lookup:
338 * support/export/client.c (client_lookup) : add "canonical"
339 flag which says that the hostname is known to be canonical, so
342 * support/export/export.c (export_create) : add "canonical"
343 flag to be passed down to client_lookup
344 * support/export/export.c (export_lookup) : Likewise
346 * support/export/xtab.c (xtab_read) : pass appropriate
347 "canonical" flag to export_lookup and export_create:
348 set if reading list of filesystems currently exports
351 * support/export/export.c (export_read) : pass 0 as
352 "canonical" flag to export_lookup and export_create
353 * support/export/rmtab.s (rmtab_read) : Likewise
355 * support/include/exportfs.h : redeclare various routines
356 to have "canonical" flag
358 * utils/exportfs/exportfs.c (main) : redo logic for
359 "-au" to read in what is currently exported, but never even
360 look at what "should" be exported.
362 * utils/exportfs/exportfs.c (unexportall) : remove this
363 routine. Functionality is completely included in
366 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
367 flag to zero in calls to export_lookup and export_create.
370 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
371 Anne Milicia <milicia@missioncriticallinux.com>
373 * support/export/client.c (client_lookup) call gethostbyadd
374 to make sure that we have a canonical hostname, even for
376 * utils/exportfs/exportfs.c (exportfs) Likewise
378 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
380 * support/nfs/exports.c (putexportent): \octal quote any spaces
382 * support/nfs/xio.c (xgettok): recognise double-quote and
383 \octal quoting in path names
384 * utils/exportfs/exports.man: document quoting conventions
387 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
389 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
390 change from 2000-08-02: It causes problems if someone exports
391 to both a hostname and IP addresses. nfs-utils must be
392 consistant about the canonical name that it chooses.
394 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
395 H.J. Lu <hjl@lucon.org>
397 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
399 * utils/statd/statd.c (longopts): Add "name".
400 (usage): Add "-n/--name".
401 (main): Set MY_NAME with "-n/--name".
403 * utils/statd/state.c (change_state): Set MY_NAME only if it
406 * utils/statd/statd.man: Updated for "-n/--name".
408 2001-07-26 H.J. Lu <hjl@lucon.org>
410 * nfs-utils.spec (Release): Set to 8.
412 2001-07-25 H.J. Lu <hjl@lucon.org>
414 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
417 2001-06-27 H.J. Lu <hjl@lucon.org>
419 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
421 2001-06-27 H.J. Lu <hjl@lucon.org>
423 * utils/rquotad/rquota_server.c: Don't call statfs () for
424 the block size. Use BLOCK_SIZE instead.
426 2001-06-27 H.J. Lu <hjl@lucon.org>
428 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
429 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
431 * configure.in (enable_nfsv3): Set to yes by default.
432 (--enable-rquotad): Added
433 (AC_PROG_CXX): Removed.
434 (AC_OUTPUT): Add utils/Makefile.
435 (CC_FOR_BUILD): Renamed from BUILD_CC.
436 * configure: Regenerated.
438 * utils/Makefile: Removed.
440 * utils/Makefile.in: New.
442 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
444 (CC_FOR_BUILD): Renamed from BUILD_CC.
445 * nfs-utils.spec: Regenerated.
447 2001-06-15 Chip Salzenberg <chip@debian.org>
449 * debian/changelog: Version 0.3.2-2.
450 * debian/*.init: Minor fixes.
452 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
454 * etc/nodist/nfs-server: Fixed a bug where the script would
455 disable mounts from NFSv3 clients if NFSv3 is present.
457 2001-06-05 H.J. Lu <hjl@lucon.org>
459 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
460 (main): Support --descriptors/-o to set the limit of the number
461 of open file descriptors.
464 * utils/mountd/mountd.man: Updated for --descriptors/-o.
466 2001-06-04 H.J. Lu <hjl@lucon.org>
468 * nfs-utils.spec (Release): Set to 6.
470 2001-05-28 H.J. Lu <hjl@lucon.org>
472 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
473 * utils/mountd/mountd.c (main): Likewise.
474 * utils/nfsd/nfsd.c (main): Likewise.
475 * utils/rquotad/rquota_svc.c (main): Likewise.
477 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
479 * support/export/client.c (client_check): Check IP address
482 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
484 * support/export/client.c (client_gettype): Treat `*' as
487 2001-04-22 H.J. Lu <hjl@lucon.org>
489 * nfs-utils.spec.in: Fix a typo.
490 * nfs-utils.spec: Regenerated.
492 2001-04-21 H.J. Lu <hjl@lucon.org>
494 * nfs-utils.spec.in: Fix cross build.
495 * nfs-utils.spec: Regenerated.
498 2001-04-18 H.J. Lu <hjl@lucon.org>
500 * nfs-utils.spec.in: Support cross build.
501 * nfs-utils.spec: Regenerated.
507 * config.mk.in (BUILD_CC): New.
508 (CC): Set to $(BUILD_CC) if BUILD is defined.
511 (RANLIB): Set to @RANLIB@.
513 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
514 * configure: Regenerated.
516 * tools/rpcgen/Makefile (BUILD): Set to true.
518 2001-04-01 Chip Salzenberg <chip@valinux.com>
520 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
521 redundant, and sometimes broken, declaration of svc_fdset;
523 * support/nfs/rpcmisc.c (closedown): Likewise.
525 2001-03-21 H.J. Lu <hjl@lucon.org>
527 * nfs-utils.spec: Regenerated.
530 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
532 * utils/statd/statd.c (main): make sure file descriptors 0-2
533 are open to /dev/null.
535 2001-03-21 H.J. Lu <hjl@lucon.org>
537 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
538 * support/nfs/rpcmisc.c: Likewise.
539 * utils/rquotad/rquota_svc.c: Likewise.
540 * utils/rquotad/rquotad.man: Likewise.
541 * utils/statd/Makefile: Likewise.
542 * utils/statd/rmtcall.c: Likewise.
543 * utils/statd/simulate.c: Likewise.
544 * utils/statd/statd.c: Likewise.
545 * utils/statd/statd.man: Likewise.
547 2001-03-11 H.J. Lu <hjl@lucon.org>
549 * configure.in (RELEASE): New. Default to 1, set by
550 --with-release=XXX. Substitute nfs-utils.spec.
551 * nfs-utils.spec.in (Release): Set to @RELEASE@.
552 * configure: Regenerated.
553 * nfs-utils.spec: Likewise.
555 2001-03-11 H.J. Lu <hjl@lucon.org>
557 * utils/rquotad/rquotad.man: Fix a typo.
559 2001-03-11 H.J. Lu <hjl@lucon.org>
561 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
562 * support/nfs/rpcmisc.c: Likewise.
563 * utils/rquotad/rquota_svc.c: Likewise.
564 * utils/rquotad/rquotad.man: Likewise.
565 * utils/statd/Makefile: Likewise.
566 * utils/statd/rmtcall.c: Likewise.
567 * utils/statd/simulate.c: Likewise.
568 * utils/statd/statd.c: Likewise.
569 * utils/statd/statd.man: Likewise.
571 2001-03-10 H.J. Lu <hjl@lucon.org>
573 * configure.in (VERSION): Set to "0.3.2".
574 * configure: Regenerated.
575 * nfs-utils.spec: Likewise.
577 * README: Updated for 0.3.2.
579 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
581 * utils/rquotad/rquotad.man: Updated for -p.
582 * utils/statd/statd.man: Likewise.
584 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
586 * support/nfs/rpcmisc.c: export makesock()
588 * support/include/rpcmisc.h (makesock): Declared.
590 * utils/rquotad/rquota_svc.c: added longopts, added support for
591 specifying the port to bind to on the command line.
593 * utils/statd/statd.c: ditto, also specify port used for
594 outgoing connections.
595 (do_regist): Removed.
597 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
598 get_socket. Make it extern.
600 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
601 instead of do_regist.
603 * utils/statd/Makefile (LIBS): link with our own libnfs
605 2001-03-09 H.J. Lu <hjl@lucon.org>
607 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
608 * etc/nodist/nfs-client: Likewise.
610 2001-02-26 Chip Salzenberg <chip@valinux.com>
612 * debian/changelog: Version 0.3.1-1.
613 * Mention upstream source and license in copyright file.
614 * Add build-Depends for debhelper and libwrap0-dev.
616 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
618 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
619 * etc/nodist/nfs-client: Likewise.
621 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
623 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
626 2001-02-17 Patrick J. LoPresti <patl@curl.com>
628 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
631 2001-02-14 H.J. Lu <hjl@lucon.org>
633 * utils/statd/rmtcall.c: Include <time.h>.
634 * utils/statd/svc_run.c: Likewise.
636 2001-02-14 H.J. Lu <hjl@lucon.org>
638 * configure.in (VERSION): Set to "0.3.1".
639 * configure: Regenerated.
640 * nfs-utils.spec: Likewise.
642 * README: Updated for 0.3.1.
644 2001-02-14 H.J. Lu <hjl@lucon.org>
646 * support/nfs/rpcmisc.c: Include <time.h>.
648 2001-02-14 Chip Salzenberg <chip@valinux.com>
650 * debian/control: Change priority of nhfsstone package to 'extra'.
652 2001-02-12 Chip Salzenberg <chip@valinux.com>
654 * debian/changelog: Version 0.3-2.
656 2001-02-02 H.J. Lu <hjl@lucon.org>
658 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
660 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
661 out SO_SNDBUF/SO_RCVBUF.
662 (rpc_init): Remove bufsize and remove socksz in calls to
665 * utils/mountd/mountd.c (main): Remove bufsize in calls to
668 2001-01-28 Chip Salzenberg <chip@valinux.com>
670 * debian/changelog: Version 0.3-1.
672 2001-01-25 H.J. Lu <hjl@lucon.org>
674 * configure.in (VERSION): Set to "0.3".
675 * configure: Regenerated.
676 * nfs-utils.spec: Likewise.
678 * README: Updated for 0.3.
680 2001-01-25 H.J. Lu <hjl@lucon.org>
682 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
684 2001-01-20 Chip Salzenberg <chip@valinux.com>
686 * support/include/xio.h (xgetc): Declare to return int.
687 * support/nfs/xio.c (xgetc): Return int.
688 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
689 * utils/statd/statd.c (main): Use int for value of getopt.
690 * debian/changelog: Version 0.2.1-5.
692 2000-12-10 Chip Salzenberg <chip@valinux.com>
694 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
695 program and procedure numbers of kernel lockd's callback. Also,
696 besides the old (and broken) procedure #24, allow #16 per Trond.
698 2000-12-03 Chip Salzenberg <chip@valinux.com>
700 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
701 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
702 * debian/changelog: Version 0.2.1-4.
704 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
706 * utils/mountd/auth.c (auth_authenticate): Log the bad path
709 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
711 * support/nfs/exports.c (getexportent): Check for host name
712 without option, or options without hostname, and print a warning,
713 as this is most likely a typo.
715 2000-11-19 Chip Salzenberg <chip@valinux.com>
717 * debian/control: Add dependency on portmap.
718 * debian/changelog: Version 0.2.1-3.
720 2000-11-10 H.J. Lu <hjl@lucon.org>
722 * nfs-utils.spec.in: Don't use libtool.
723 Add ChangeLog and COPYING to doc.
724 * nfs-utils.spec: Rebuild.
726 2000-11-09 H.J. Lu <hjl@lucon.org>
728 * etc/redhat/nfs.init (start): Back out the last change.
730 2000-11-09 H.J. Lu <hjl@lucon.org>
732 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
733 TCP is not supported by kernel.
735 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
737 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
738 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
740 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
742 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
744 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
745 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
746 callbacks to local lockd.
748 2000-10-18 Scott McDermott <mcdermot@questra.com>
750 * utils/exportfs/exports.man: Updated for CIDR netmask.
752 2000-10-17 Scott McDermott <mcdermot@questra.com>
754 * support/export/client.c (client_init): Support CIDR netmask
757 2000-10-11 H.J. Lu <hjl@lucon.org>
759 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
760 * configure: Rebuilt.
762 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
764 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
765 "/var/lib/nfs/state".
767 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
769 * utils/statd/statd.h (run_mode): New global bitmask of runtime
770 behaviors: fg/bg, logging, etc.
771 * utils/statd/statd.c: New command line options: -V -h -? -d .
772 * utils/statd/statd.man: Update for changes to statd.
774 * utils/statd/log.h (log_init): Remove parameter of function; use
775 global variable "name_p" instead.
776 * utils/statd/log.c: Add support for logging to stderr.
778 * utils/statd/notlist.c: Partially rewrite notify list handling
779 functions. Eliminate run-off-end-of-list bug when calling
780 nlist_insert_timer. Add lots of comments.
782 2000-09-27 H.J. Lu <hjl@lucon.org>
784 * README: Updated for RedHat 7.0.
786 2000-09-27 H.J. Lu <hjl@lucon.org>
788 * nfs-utils.spec: Rebuild.
790 2000-09-27 H.J. Lu <hjl@lucon.org>
792 * README: Updated for 0.2.1.
794 2000-09-27 H.J. Lu <hjl@lucon.org>
796 * nfs-utils.spec.in: Updated to use rpm macros and support
799 2000-09-25 H.J. Lu <hjl@lucon.org>
801 * configure.in (VERSION): Set to "0.2.1".
802 * configure: Regenerated.
803 * nfs-utils.spec: Updated.
805 2000-09-25 H.J. Lu <hjl@lucon.org>
807 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
808 non-NULL hostent is always returned.
810 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
812 * etc/redhat/nfslock.init: don't kill lockd processes that do not
813 have an executable (i.e. kernel threads)
815 2000-09-01 H.J. Lu <hjl@lucon.org>
817 * README: Updated for 0.2.
819 2000-09-01 Jay Weber <jweber@valinux.com>
821 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
822 supporting version 3 of nfs if available, else it will fall back to
823 version 2 support only.
825 2000-08-30 H.J. Lu <hjl@lucon.org>
827 * configure.in (VERSION): Set to "0.2".
828 * configure: Regenerated.
829 * nfs-utils.spec: Updated.
831 2000-08-25 H.J. Lu <hjl@lucon.org>
833 * support/misc/tcpwrapper.c (logit): Modify the log output.
835 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
837 * utils/rquotad/rquotad.man, utils/statd/statd.man,
838 utils/mountd/mountd.man: updated
840 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
841 * utils/rquotad/Makefile: fix comment
843 * support/misc/tcpwrapper.c (logit): added comment about waiting
844 for the children after fork()
846 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
847 zombies behind (from logit()'s fork)
848 * utils/rquotad/rquota_svc.c (main): ditto
849 * utils/statd/statd.c (main): ditto
851 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
852 to check_default instead of 0, for prognum
854 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
855 to check_default instead of 0, for prognum
857 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
858 HAVE_TCP_WRAPPER is defined.
859 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
860 defined. Reject an RPC call if check_default () fails.
862 2000-08-25 H.J. Lu <hjl@lucon.org>
864 * support/include/tcpwrapper.h: New for the tcp wrapper
866 * support/misc/Makefile: Likewise.
867 * support/misc/from_local.c: Likewise.
868 * support/misc/tcpwrapper.c: Likewise.
870 * aclocal.m4 (AC_TCP_WRAPPER): New.
871 * configure.in: Use it. Substitute LIBWRAP.
872 * configure: Rebuilt.
874 * config.mk.in (LIBNSL): New.
877 * support/Makefile (SUBDIRS): Add misc.
879 * support/lib/Makefile (LIBS): Add libmisc.a.
881 * utils/rquotad/Makefile (LIBS): Add
883 -lmisc $(LIBWRAP) $(LIBNSL)
885 * utils/statd/Makefile (LIBS): Likewise.
887 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
888 HAVE_TCP_WRAPPER is defined.
889 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
890 defined. Reject an RPC call if check_default () fails.
892 * utils/statd/statd.c: Include "tcpwrapper.h" if
893 HAVE_TCP_WRAPPER is defined.
894 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
895 check_default () before calling sm_prog_1 (). Define it as
896 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
898 2000-08-25 Chip Salzenberg <chip@valinux.com>
900 * debian/*: Complete Debian build support.
901 * etc/debian/*: Remove.
903 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
905 * support/export/client.c(client_check): removed the "dot+1" as a
906 ypdomain argument to innetgr as this is entirely bogus.
907 It should always be NULL.
909 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
911 * support/export/xtab.c(xtab_read): introduce new mode for
912 reading xtab. i.e. a list of exports that might be known to the
913 kernel, or might not. These are flagged as m_exported == -1
914 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
915 value "2" for xtab, meaning don't trust this too much.
916 * support/include/exportfs.h(struct mexport): changed m_exported
917 from one bit to an int so that it can hold new value
918 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
919 kernel if it is uncertain whether the kernel knows (m_exported == -1)
920 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
923 * support/nfs/xio.c(xflock): added O_CREAT when getting
924 a write lock so that missing files aren't fatal.
926 * etc/debian/nfs-common: new file from "potato"
927 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
929 2000-08-09 H.J. Lu <hjl@lucon.org>
931 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
932 startup to ensure all existing clients work fine.
934 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
935 to xtab_read () for reading _PATH_XTAB.
937 2000-08-02 H.J. Lu <hjl@lucon.org>
939 * utils/mountd/auth.c (auth_authenticate_internal): Try to
940 avoid the reverse name lookup.
942 2000-07-04 H.J. Lu <hjl@lucon.org>
944 * utils/statd/log.c: Include <stdlib.h> for exit ().
946 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
949 2000-07-04 H.J. Lu <hjl@lucon.org>
951 * configure.in (VERSION): Set to "0.1.9.1".
952 * configure: Regenerated.
953 * nfs-utils.spec: Updated.
957 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
959 * support/export/hostname.c (hostent_dup): Handle the NULL
962 2000-07-03 H.J. Lu <hjl@lucon.org>
964 * README: Update the util-linux requirement.
966 2000-07-03 H.J. Lu <hjl@lucon.org>
968 * configure.in (VERSION): Set to "0.1.9".
969 * configure: Regenerated.
970 * nfs-utils.spec: Updated.
974 2000-07-03 H.J. Lu <hjl@lucon.org>
976 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
977 stop to ensure all clients can still access the server
978 before it is shutdown.
980 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
982 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
983 calls with format string.
985 2000-06-28 Chip Salzenberg <chip@valinux.com>
987 * utils/statd/log.c (log): Call syslog with format string.
989 2000-06-27 H.J. Lu <hjl@lucon.org>
991 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
994 2000-06-27 H.J. Lu <hjl@lucon.org>
998 2000-06-27 H.J. Lu <hjl@lucon.org>
1000 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1001 startup to ensure all existing clients are exported.
1003 * configure.in (VERSION): Set to "0.1.8.2".
1004 * configure: Regenerated.
1005 * nfs-utils.spec: Updated.
1007 2000-06-06 H.J. Lu <hjl@lucon.org>
1009 * configure.in (VERSION): Set to "0.1.8.1".
1010 * configure: Regenerated.
1011 * nfs-utils.spec: Updated.
1013 2000-06-06 H.J. Lu <hjl@lucon.org>
1015 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1016 to "struct sockaddr_in *" for glibc 2.2.
1017 (mount_umnt_1_svc): Likewise.
1018 (mount_umntall_1_svc): Likewise.
1019 (mount_export_1_svc): Likewise.
1020 (mount_exportall_1_svc): Likewise.
1021 (mount_pathconf_2_svc): Likewise.
1022 (get_rootfh): Likewise.
1024 2000-06-04 H.J. Lu <hjl@lucon.org>
1026 * etc/redhat/nfs.init: Fix a typo in comment.
1028 2000-05-31 H.J. Lu <hjl@lucon.org>
1030 * configure.in (VERSION): Set to "0.1.8".
1031 * configure: Regenerated.
1032 * nfs-utils.spec: Updated.
1036 2000-05-31 H.J. Lu <hjl@lucon.org>
1038 * configure.in (VERSION): Set to "0.1.7.5".
1039 * configure: Regenerated.
1040 * nfs-utils.spec: Updated.
1042 * support/include/nfslib.h (exportent): Add a new field,
1043 r_count, to count the number of mounts from a client.
1044 (getrmtabent): Take a new argument for position in file.
1045 (putrmtabent): Likewise.
1046 (fgetrmtabent): Likewise.
1047 (fputrmtabent): Likewise.
1048 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1049 for position in file.
1050 (fgetrmtabent): Likewise.
1051 (putrmtabent): Likewise.
1052 (fputrmtabent): Likewise.
1054 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1057 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1058 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1059 and fputrmtabent ().
1060 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1061 (mountlist_del): Likewise.
1062 (mountlist_del_all): Likewise.
1063 (mountlist_list): Likewise.
1065 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1066 for the existing entry and initialize "r_count" to 1.
1067 (mountlist_del): Decrement "r_count".
1069 2000-05-18 H.J. Lu <hjl@lucon.org>
1071 * configure.in (VERSION): Set to "0.1.7.4".
1072 * configure: Regenerated.
1073 * nfs-utils.spec: Updated.
1075 2000-05-18 H.J. Lu <hjl@lucon.org>
1077 * etc/redhat/nfs.init (restart): Just do stop and start.
1079 2000-05-09 Jay Weber <jweber@valinux.com>
1081 * utils/rquotad/hasquota.c: added support for ext3 recognition
1083 * utils/rquotad/mntent.h: Likewise.
1085 2000-05-01 H.J. Lu <hjl@lucon.org>
1087 * configure.in (VERSION): Set to "0.1.7.3".
1088 * configure: Regenerated.
1089 * nfs-utils.spec: Updated.
1091 2000-05-01 H.J. Lu <hjl@lucon.org>
1093 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1094 mounting poins in /etc/fstab.
1096 2000-05-01 H.J. Lu <hjl@lucon.org>
1098 * configure.in (VERSION): Set to "0.1.7.2".
1099 * configure: Regenerated.
1100 * nfs-utils.spec: Updated.
1102 2000-05-01 H.J. Lu <hjl@lucon.org>
1104 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1105 to check for the mounting point.
1107 2000-04-29 Chip Salzenberg <chip@valinux.com>
1108 Neil Brown <neilb@cse.unsw.edu.au>
1110 * Really re-use RPC ports.
1111 (Fixes earlier patch. Sorry, Neil.)
1113 2000-04-26 H.J. Lu <hjl@lucon.org>
1115 * configure.in (VERSION): Set to "0.1.7.1".
1116 * configure: Regenerated.
1117 * nfs-utils.spec: Updated.
1119 2000-04-26 H.J. Lu <hjl@lucon.org>
1121 * etc/redhat/nfslock.init: Check if lockd exits before killing
1124 2000-04-25 H.J. Lu <hjl@lucon.org>
1126 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1128 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1130 * support/nfs/exports.c (parsesquash): Correctly set the
1133 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1135 * support/include/nfs/nfs.h: Removed knowledge of internals of
1136 kernel filehandles (which can change) and defined nfs_fh_size
1137 which has variable size
1139 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1140 get variable sized file handles, and change getfh{,old} to
1143 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1146 * tools/Makefile, tools/nlmtest/nlmtest.c
1147 nlmtest.c depended on internel format of file handles, so now
1151 2000-03-12 Chip Salzenberg <chip@valinux.com>
1152 Neil Brown <neilb@cse.unsw.edu.au>
1154 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1156 2000-03-13 H.J. Lu <hjl@lucon.org>
1158 * etc/redhat/nfsd.init: Updated.
1160 * etc/redhat/nfslock.init: Updated.
1162 * nfs-utils.spec.in: Updated.
1164 * configure.in (VERSION): Set to "0.1.7".
1165 * configure: Regenerated.
1166 * nfs-utils.spec: Updated.
1170 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1172 * utils/exportfs/exportfs.c (dump): Included printing of
1173 nohide, no_subtree_check, and insecure_locks
1175 2000-02-26 Chip Salzenberg <chip@valinux.com>
1177 * config.mk.in (INSTALLSUID): Strip ("-s").
1178 (INSTALLSCRIPT): Define.
1179 * utils/nhfsstone/Makefile: Use it.
1181 2000-02-26 Chip Salzenberg <chip@valinux.com>
1183 * utils/lockd/lockd.man: Create.
1184 * utils/lockd/Makefile: Install it.
1185 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1186 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1187 * utils/nhfsstone/Makefile: Install the helper scripts and
1189 * utils/exportfs/exports.man: Fix typo.
1191 2000-02-26 Chip Salzenberg <chip@valinux.com>
1193 * support/nfs/xio.c (xungetc): Decrement line number when
1194 character to unget is newline. Make first parameter int, so
1195 it can distinguish EOF from \377.
1196 * support/include/xio.h (xungetc): Adjust prototype.
1198 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1200 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1201 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1202 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1204 This is for supporting a new option introduced in 2.3.42
1206 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1208 * COPYING: Added. GPL.
1210 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1212 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1213 to get the block size.
1215 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1217 * nfs-utils.spec.in: Update ftp site.
1219 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1221 * README: Update hostnames.
1223 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1225 * configure.in (VERSION): Set to "0.1.6".
1226 * configure: Regenerated.
1227 * nfs-utils.spec: Updated.
1231 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1233 * utils/mountd/auth.c (auth_authenticate_internal): Call
1234 xstrdup for hostname before passing it to gethostbyname.
1236 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1239 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1241 * README: Update the mailing list address.
1243 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1245 * configure.in (VERSION): Set to "0.1.5".
1246 * configure: Regenerated.
1247 * nfs-utils.spec: Updated.
1251 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1253 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1256 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1258 * configure.in (VERSION): Set to "0.1.4".
1259 * configure: Regenerated.
1260 * nfs-utils.spec: Updated.
1264 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1266 * nfs-utils.spec.in: New file.
1268 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1270 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1272 1999-12-04 Chip Salzenberg <chip@valinux.com>
1274 * config.mk.in: Use $(CC) as set by configure.
1276 1999-12-04 Chip Salzenberg <chip@valinux.com>
1278 * rules.mk: Call $(MAKE) with $(MFLAGS).
1280 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1282 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1283 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1285 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1287 * nfs-utils.spec (Version): Set to 0.1.3.
1289 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1290 * configure: Regenerated.
1294 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1296 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1297 (_PATH_DEV_DSK): Likewise.
1298 (getquotainfo): Match the mounting point from /etc/mtab
1299 instead of calling nfsmount_to_devname ().
1301 1999-11-24 Chip Salzenberg <chip@valinux.com>
1303 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1304 to the new port 24 as well as the historical port 100021.
1306 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1308 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1309 stopping nfsd to stop spurious ESTALE on server shutdown.
1311 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1313 * support/nfs/exports.c (parseopts): make copy of opt string
1314 before 'nul'ing out commas so that
1316 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1318 applies both options to both exports.
1320 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1322 * README: Fix a few typos.
1324 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1326 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1327 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1328 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1329 (unsigned_dec): Likewise.
1330 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1331 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1333 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1335 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1336 (unsigned_dec): Likewise.
1337 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1338 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1339 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1341 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1343 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1344 * support/nfs/exports.c: added {no_,}subtree_check and changed
1346 * utils/exportfs/exports.man: added no_subtree_check and nohide
1347 and removed irrelevant stuff from unfsd.
1348 * support/export/rmtab.c: rmtab_read didn't quite do the right
1349 thing if a pathname from rmtab was a subdirectory of an export-point
1351 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1353 * README: Updated ftp site.
1355 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1357 * nfs-utils.spec (Version): Set to 0.1.2.
1359 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1360 * configure: Regenerated.
1364 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1366 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1367 (auth_authenticate_internal): Check for NULL return on forward
1369 (auth_authenticate): Handle "no_forward_dns".
1371 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1373 * Version 0.1.1 released.
1375 * nfs-utils.spec (Version): Set to 0.1.1.
1377 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1378 * configure: Regenerated.
1382 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1384 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1386 (Provides): Likewise.
1388 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1390 * Initial version 0.1 released.
1392 * configure.in (VERSION): Set to "nfs-utils 0.1".
1393 * configure: Regenerated.
1395 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1397 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1399 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1400 kernel only if the entry is exported to kernel.
1401 (unexportfs): Likewise.
1403 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1405 1/ utils/mountd/rmtab.c::mountlist_list
1407 This routine stats the rmtab file to see if it has changed. It
1408 if has, it cleans up it's old copy of the data. But it still
1409 always re-read the file, thus returning multiple copies of the
1410 data on consecutive calls without intervening changes.
1411 "Showmount -a" didn't show this as it appears to sort/unique the
1412 data, but 'strace showmount -a' showed that the size of the
1413 datagram that it received grew.
1415 I moved the getrmtabent loop inside the mtime test.
1417 2/ utils/exportfs/exportfs.c
1419 Many routines used the m_path field of m_export instead of
1421 According to the comment in nfslib.h, m_path should only
1422 be used when processing a mount request (i.e. in mountd)
1423 where the mountpoint may be a subdirectory of the export point.
1425 I changed all occurances of m_path to e_path
1428 3/ utils/exportfs/exportfs.c:main
1430 extra arguments are not meaningful with -a or -r, but
1431 exportfs accepted them and then ignored the -a/-r, expect that
1432 -r would still unexport everything first.
1434 I generate an error if there are extra args and f_all
1436 4/ utils/exportfs/exportfs.c:main
1437 extract dump out as a special case.
1439 5/ utils/exportfs/exportfs.c
1440 made f_reexport a local variable.
1443 6/ utils/exportfs/exportfs.c:main,exportall
1445 support/export/rmtab.c
1446 only mayexport on newly created entries, don't set xtabent at all
1448 7/ support/include/nfslib.h
1450 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1452 8/ support/export/xtab.c
1454 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1458 9/ support/export/xtab.c
1460 xtab_mount_read now sets m_exported, and NOT
1461 xtabent and mayexport
1463 removed the append arguement from xtab_write as it was
1466 added is_export flag to xtab_write similar to xtab_read
1467 if is_export, only write entries with m_xtabent or m_addxtab
1468 if !is_export, only write entries with m_exported
1470 10/ support/export/export.c::export_allowed_internal
1472 added test for exp->m_mayexport, as the export tree
1473 may have entries that are no longer allowed to be exported,
1474 and so shouldn't caused deduced exported by rmtab_read
1476 11/ utils/exportfs/exportfs.c::main
1477 error checking of flags.
1479 12/ utils/exportfs/exportfs.c
1481 total rewrite of export and unexport logic.
1483 - build an exportslist of valid exports, based on
1484 current etab file and arguments,
1485 - read rmtab to instantiate relevant wild card entries
1486 - read etab to find out what is currently exported
1487 - synchronise intention with reality
1488 - write out etab and xtab
1491 discard the m_addxtab flag
1492 add m_changed flag so we know what to report in exportfs
1494 14/ utils/mountd/auth.c:auth_authenticate
1496 the value returned by gethostbyaddr was trusted.
1498 It now follows this with a call to gethostbyname
1499 and checks that the address is in the list.
1501 15/ support/export/nfsctl.c::cltsetup,expsetup
1503 force client names to lowercase as kernel is
1506 16/ quietened a few compiler warnings
1508 17/ support/export/client:client_lookup
1510 look for pre-existing client with same name before creating
1513 18/ support/include/exportfs.h
1515 The ordering of the MCL_* enum was:
1516 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1518 I moved ANONYMOUS to the end.
1520 The ordering is significant when an export entry is being searched for to
1521 match a given address. There are two problems with ANONYMOUS being first.
1523 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1524 then the ro case will always be found first and the privileged hosts won't get
1526 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1527 export entry for the specific host, and writes it to xtab.
1528 When another request comes from the same host, the ANONYMOUS entry is found again,
1529 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1530 again. If causes bloat in xtab.
1532 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1534 19/ utils/exportfs/exportfs.man
1535 many updates to the man page to reflect changes to the code
1537 -----------------------
1543 - allow exportfs to modify rmtab file
1544 - make sure kernel never gets two clients with same IP address
1545 - possible kernel should reject
1546 - needs to be some way to lookup client in kernel by IP address
1547 - maybe get kernel to do case-insensitive comparisons on client names
1548 - remove unused clients from kernel
1550 - change etab to xtab and xtab to xtab.active
1552 - timestamp and/or statd-stamp in rmtab for removing old entries.
1554 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1556 * linux-nfs: New directory.
1557 * linux-nfs/ChangeLog: Moved from ..
1558 * linux-nfs/INSTALL: Likewise.
1559 * linux-nfs/KNOWNBUGS: Likewise.
1560 * linux-nfs/NEW: Likewise.
1561 * linux-nfs/README: Likewise.
1562 * linux-nfs/THANKS: Likewise.
1563 * linux-nfs/TODO: Likewise.
1565 * Starting from knfsd 1.4.7.