1 2003-06-10 Chip Salzenberg <chip@pobox.com>
3 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
4 * debian/changelog: Version 1.0.3-2.
6 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
7 NeilBrown <neilb@cse.unsw.edu.au>
9 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
10 long long to avoid overflow when printing stats.
12 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
14 * support/export/export.c, support/include/nfslib.h,
15 support/nfs/export.c, utils/exportfs/exportfs.c,
16 utils/mountd/mountd.c: new export option "mountpoint"
17 If no path is given, then the export point must be a
18 mount point, or it won't be exported. If a path is
19 given (e.g. mountpoint=/path) then that path must be
20 a mountpoint or the exportpoint won't be exported.
21 * utils/exportfs/exportfs.man: document mountpoint option.
22 * support/misc/mountpoint.c: New file with is_mountpoint()
23 to determine if something is a mountpoint.
25 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
27 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
28 argument as we might not be getting the filehandle for the
30 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
32 * utils/mountd/mountd.c(get_rootfh): check export point and
33 requested directory are on the same filesystem, and complain if
36 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
38 * utils/mountd/auth.c(auth_authenticate_internal): make sure
39 portnumber is still checked when using new cache lookup.
41 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
43 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
44 Don't actually talk to kernel when new cache is in effect, except
46 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
47 * support/export/xtab.c: Only rename new xtab into place if it has
48 changed, thus preserving modify date for exportfs to use when
50 * support/nfs/cacheio.c: Add cache_flush
51 * support/export/xtab.c: Only rename new xtab into place if it has
52 changed, thus preserving modify date for exportfs to use when
55 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
57 * support/export/client.c: Add client_compose, client_member to
58 handle new composite client names
59 * support/include/exportfs.h: Declare above functions.
60 * utils/mountd/auth.c: use client_compose to determine calling
61 client if new cache is being used.
62 * utils/mountd/auth.c: call cache_export to export a filesystem if
63 new_cache, check if new cache is used, and call my_svc_run instead
65 * utils/mountd/svc_run.c: new file defining my_svc_run
66 * utils/mountd/cache.c: new file for handling cache upcalls.
67 * support/nfs/cacheio.c(check_new_cache): new function to check if
68 new cache should be used.
71 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
73 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
74 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
75 * utils/exportfs/exportfs.c(dump): ditto
77 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
79 * support/export/hostname.c(get_reliable_hostbyaddr): new function
80 to get host name from address with full checking of authenticity.
81 * support/include/misc.h: declare above function
82 * utils/mountd/auth.c(auth_authenticate_internal): remove all
83 logic for authenticating address.
84 * utils/mountd/auth.c(auth_authenticate): call new
85 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
88 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
90 * tools/rpcgen/rpc_main.c(find_cpp): removed
91 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
92 then try hard-coded paths.
94 2003-03-26 Chip Salzenberg <chip@pobox.com>
96 * debian/changelog: Version 1.0.3-1.
98 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
100 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
101 "const char*", not "char*".
103 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
105 * configure.in (VERSION): Set to "1.0.3".
106 * nfs-utils.spec: Likewise.
107 * configure: Regenerated.
109 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
111 * support/nfs/cacheio.c: New File - support for read/writing
112 to export cache in /proc/rpc/*/channel
113 * support/nfs/Makefile: compile cacheio.c
114 * support/include/nfslib.h: declare cacheio.c functions
115 * support/nfs/nfsexport.c: export and unexport through
116 /proc/rpc/*/channel if possible, as old syscall interface
117 may not survive into 2.6 on all architectures.
119 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
120 Ben Leslie <benno@sesgroup.net>
122 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
123 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
124 former would incorectly ignore defport if the application
125 explicitly set __rpcfdtype. The later is sufficient to avoid the
126 special handling in the case where stdin is an internet socket.
128 * utils/mountd/mountd.c(main): Add 'n' to option list in
129 getopt_long as this is a short form of --no-tcp which want being
132 2003-02-12 Chip Salzenberg <chip@pobox.com>
134 * debian/changelog: Version 1.0.2-2.
136 2002-11-27 Chip Salzenberg <chip@pobox.com>
138 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
139 overflow bug. Reformat per rest of source file.
141 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
143 * utils/exportfs/exports.man: Correct notes about whether the wild
144 card characters match a period. They do.
146 2002-10-15 Juan Gomez <juang@us.ibm.com>
148 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
150 (mountlist_add): Call slink_safe_rename instead of rename.
152 2002-10-11 H.J. Lu <hjl@lucon.org>
154 * support/include/exportfs.h (export_errno): New.
156 * support/nfs/exports.c: Include <errno.h>.
158 (getexportent): Set export_errno to EINVAL for bad option.
159 (parseopts): Likewise.
160 Report the location of the default sync/async option.
162 * utils/exportfs/exportfs.c (main): Initialize export_errno to
163 0. Return export_errno.
165 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
166 NeilBrown <neilb@cse.unsw.edu.au>
168 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
169 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
171 2002-09-16 Chip Salzenberg <chip@pobox.com>
173 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
175 2002-09-15 Chip Salzenberg <chip@pobox.com>
177 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
178 socket, as occurs when run from sshd.
179 * debian/changelog: Version 1.0.2-1.
181 2002-09-12 H.J. Lu <hjl@lucon.org>
183 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
186 2002-09-12 H.J. Lu <hjl@lucon.org>
188 * configure.in: Remove checking svctcp_socket and svcudp_socket.
189 * configure: Regenerated.
191 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
192 (HAVE_SVCUDP_SOCKET): Removed.
194 * support/include/nfslib.h: Undo the last change.
196 2002-09-12 H.J. Lu <hjl@lucon.org>
198 * support/include/nfslib.h (svctcp_socket): Protect it with
200 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
202 2002-09-12 H.J. Lu <hjl@lucon.org>
204 * configure.in (VERSION): Set to "1.0.2".
205 * configure: Regenerated.
206 * nfs-utils.spec: Likewise.
208 2002-09-12 H.J. Lu <hjl@lucon.org>
210 * configure.in: Check svctcp_socket and svcudp_socket.
211 * configure: Regenerated.
213 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
214 (HAVE_SVCUDP_SOCKET): New.
216 * support/include/nfslib.h (svctcp_socket): New.
217 (svcudp_socket): New.
219 * support/nfs/Makefile (OBJS): Add svc_socket.o.
221 * support/nfs/svc_socket.c: New.
223 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
224 svcudp_socket if port is unspecified.
226 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
228 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
229 (killer): New. Signal handler to unregister.
230 (main): Use killer. Call svcudp_socket to get the default
233 2002-09-02 Juan Gomez <juang@us.ibm.com>
234 NeilBrown <neilb@cse.unsw.edu.au>
236 Add -N option to statd to run in notify-only mode.
238 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
239 * utils/statd/statd.man: document -N
240 * utils/statd/statd.c: enabled -N, largely exists but needed to be
241 uncommented and completed
243 2002-09-02 Juan Gomez <juang@us.ibm.com>
244 NeilBrown <neilb@cse.unsw.edu.au>
246 statd to have " -P directory" arg to use that directory instead
247 of /var/lib/nfs. This is useful for fail-over clusters.
249 * utils/statd/statd.h: define SM_DIR etc as var, not const.
250 * utils/statd/statd.c: define "-P" option to set SM_*
252 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
254 * utils/statd/notify.c: ditto.
255 * utils/statd/statd.man: document -P option.
257 2002-08-26 Chip Salzenberg <chip@pobox.com>
259 * utils/nfsd/nfsd.man: Fix typo.
260 * debian/changelog: Version 1.0.1-1.
262 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
264 * let parseopts know if /etc/exports was being read or not,
265 and have it only print "no sync or async" warning in that case.
267 2002-05-06 Tom McNeal <trmcneal@attbi.com>
268 NeilBrown <neilb@cse.unsw.edu.au>
270 * utils/nfsstat/nfsstat.c: Handle differing format for
271 /proc/net/rpc/nfsd between pre and post 2.4.0
273 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
274 James Pearson <james-p@moving-picture.com>
276 * support/nfs/rmtab.c(fendrmtabent): sync changes to
277 storage before returning, as this is critical state
279 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
280 H.J. Lu <hjl@lucon.org>
282 * etc/redhat/nfs: New.
284 2002-04-08 H.J. Lu <hjl@lucon.org>
286 * etc/redhat/nfs.init: Updated.
288 * nfs-utils.spec.in: Updated.
289 * nfs-utils.spec: Regenerated.
291 * utils/mountd/mountd.c (longopts): Fix a typo.
293 * utils/mountd/mountd.man: Updated.
295 2002-04-07 H.J. Lu <hjl@lucon.org>
297 * etc/redhat/nfslock.init (restart): Just do stop and start.
299 * etc/redhat/nfs.init: Fix a typo.
301 2002-04-07 H.J. Lu <hjl@lucon.org>
303 * configure.in (VERSION): Set to "1.0.1".
304 * configure: Regenerated.
305 * nfs-utils.spec: Likewise.
307 * README: Updated for 1.0.1.
309 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
310 H.J. Lu <hjl@lucon.org>
312 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
314 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
315 NeilBrown <neilb@cse.unsw.edu.au>
317 Add support for fsid=nn export option so that device
318 numbers don't go in filehandles.
319 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
320 is set, pass the fsid in-place of the device number
321 * support/nfs/exports.c: parse and print fsid= option.
322 Also check if efname has been set, and use "command line"
323 instead in error messages.
324 Also, use strtol instead of atoi for anon[ug]id= so that
325 bad numbers cause errors.
327 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
328 NeilBrown <neilb@cse.unsw.edu.au>
330 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
331 flag so that "sync" becomes the default.
332 Check that either "sync" or "async" is given as an option
333 and warn if neither are present
334 * utils/exportfs/exports.man: change documentation for "sync"
335 to be documentation for "async".
336 * utils/exportfs/exportfs.man: note that "sync" is the default
340 2002-01-02 Chip Salzenberg <chip@pobox.com>
342 * support/export/nfsctl.c (expsetup): Don't export entries that
343 specify id mappings not supported by the kernel. No extant kernel
344 supports any significant mapping, only 'identity' (i.e. none).
345 When other mappings are supported, this code will need changing.
346 * debian/changelog: Version 1.0-2.
348 2001-12-26 Chip Salzenberg <chip@pobox.com>
350 * nfs-utils.spec (Version): Set to "1.0".
351 * configure.in (VERSION): Likewise.
352 * configure: Regenerated.
354 * debian/changelog: Version 1.0-1.
356 * utils/exportfs/exports.man: Emphasize the need for options to
357 immediately follow client names. Explain that wildcards don't
358 usually work on addresses, but may work when reverse DNS fails.
359 Comment out a leftover TP that was TPing our indentation.
360 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
361 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
362 * debian/changelog: Version 0.3.3-6.
364 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
366 * support/export/client.c(client_lookup): If a host has multiple
367 IP addresses, then we must always use the result of a
368 gethostbyname, not that of gethostbyaddr for exporting
370 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
372 * support/export/client.c (client_lookup): use strcasecmp when
374 * support/nfs/export.c (getexportent): add fromkernel arg and use
375 different defaults as kernels prior to 2.4.11 assume different
376 defaults in /proc/fs/nfs/exports
377 * support/include/nfslib.h, support/export/export.c,
378 support/export/xtab.c: support extra "fromkernel" arg for
381 2001-12-13 Chip Salzenberg <chip@pobox.com>
383 * debian/changelog: Version 0.3.3-5.
385 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
387 * support/nfs/xio.c (xskip): Call `xungetc' instead of
388 `ungetc' to keep x_line more properly.
390 2001-11-26 Chip Salzenberg <chip@pobox.com>
392 * utils/showmount/showmount.c (main): Don't assume that strings
393 starting with digits are IP addresses.
394 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
395 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
396 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
397 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
398 man pages: We check host names *and* addresses with tcpwrappers.
399 * debian/changelog: Version 0.3.3-4.
401 2001-11-21 Chip Salzenberg <chip@pobox.com>
403 * support/nfs/clients.c (cfname): Added: current clients file name.
404 (setnfsclntent): Set it.
405 ({get,end}nfsclntent, syntaxerr): Use it.
406 * support/nfs/exports.c (efname): Added: current exports file name.
407 (setnfsexportent): Set it.
408 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
409 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
410 * debian/changelog: Version 0.3.3-3.
412 2001-10-11 Chip Salzenberg <chip@pobox.com>
414 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
415 * debian/changelog: Version 0.3.3-2.
417 2001-10-08 Chip Salzenberg <chip@pobox.com>
419 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
420 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
421 * utils/mountd/mountd.man: Update paths to /var/lib.
422 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
424 2001-10-06 Preston Brown <pbrown@redhat.com>
426 * utils/nfsstat/nfsstat.man: Updated.
428 2001-09-24 H.J. Lu <hjl@lucon.org>
430 * configure.in (VERSION): Set to "0.3.3".
431 * configure: Regenerated.
432 * nfs-utils.spec: Likewise.
434 * README: Updated for 0.3.3.
436 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
438 Arrange that "exportfs -au" never does DNS lookup:
440 * support/export/client.c (client_lookup) : add "canonical"
441 flag which says that the hostname is known to be canonical, so
444 * support/export/export.c (export_create) : add "canonical"
445 flag to be passed down to client_lookup
446 * support/export/export.c (export_lookup) : Likewise
448 * support/export/xtab.c (xtab_read) : pass appropriate
449 "canonical" flag to export_lookup and export_create:
450 set if reading list of filesystems currently exports
453 * support/export/export.c (export_read) : pass 0 as
454 "canonical" flag to export_lookup and export_create
455 * support/export/rmtab.s (rmtab_read) : Likewise
457 * support/include/exportfs.h : redeclare various routines
458 to have "canonical" flag
460 * utils/exportfs/exportfs.c (main) : redo logic for
461 "-au" to read in what is currently exported, but never even
462 look at what "should" be exported.
464 * utils/exportfs/exportfs.c (unexportall) : remove this
465 routine. Functionality is completely included in
468 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
469 flag to zero in calls to export_lookup and export_create.
472 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
473 Anne Milicia <milicia@missioncriticallinux.com>
475 * support/export/client.c (client_lookup) call gethostbyadd
476 to make sure that we have a canonical hostname, even for
478 * utils/exportfs/exportfs.c (exportfs) Likewise
480 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
482 * support/nfs/exports.c (putexportent): \octal quote any spaces
484 * support/nfs/xio.c (xgettok): recognise double-quote and
485 \octal quoting in path names
486 * utils/exportfs/exports.man: document quoting conventions
489 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
491 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
492 change from 2000-08-02: It causes problems if someone exports
493 to both a hostname and IP addresses. nfs-utils must be
494 consistant about the canonical name that it chooses.
496 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
497 H.J. Lu <hjl@lucon.org>
499 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
501 * utils/statd/statd.c (longopts): Add "name".
502 (usage): Add "-n/--name".
503 (main): Set MY_NAME with "-n/--name".
505 * utils/statd/state.c (change_state): Set MY_NAME only if it
508 * utils/statd/statd.man: Updated for "-n/--name".
510 2001-07-26 H.J. Lu <hjl@lucon.org>
512 * nfs-utils.spec (Release): Set to 8.
514 2001-07-25 H.J. Lu <hjl@lucon.org>
516 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
519 2001-06-27 H.J. Lu <hjl@lucon.org>
521 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
523 2001-06-27 H.J. Lu <hjl@lucon.org>
525 * utils/rquotad/rquota_server.c: Don't call statfs () for
526 the block size. Use BLOCK_SIZE instead.
528 2001-06-27 H.J. Lu <hjl@lucon.org>
530 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
531 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
533 * configure.in (enable_nfsv3): Set to yes by default.
534 (--enable-rquotad): Added
535 (AC_PROG_CXX): Removed.
536 (AC_OUTPUT): Add utils/Makefile.
537 (CC_FOR_BUILD): Renamed from BUILD_CC.
538 * configure: Regenerated.
540 * utils/Makefile: Removed.
542 * utils/Makefile.in: New.
544 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
546 (CC_FOR_BUILD): Renamed from BUILD_CC.
547 * nfs-utils.spec: Regenerated.
549 2001-06-15 Chip Salzenberg <chip@debian.org>
551 * debian/changelog: Version 0.3.2-2.
552 * debian/*.init: Minor fixes.
554 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
556 * etc/nodist/nfs-server: Fixed a bug where the script would
557 disable mounts from NFSv3 clients if NFSv3 is present.
559 2001-06-05 H.J. Lu <hjl@lucon.org>
561 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
562 (main): Support --descriptors/-o to set the limit of the number
563 of open file descriptors.
566 * utils/mountd/mountd.man: Updated for --descriptors/-o.
568 2001-06-04 H.J. Lu <hjl@lucon.org>
570 * nfs-utils.spec (Release): Set to 6.
572 2001-05-28 H.J. Lu <hjl@lucon.org>
574 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
575 * utils/mountd/mountd.c (main): Likewise.
576 * utils/nfsd/nfsd.c (main): Likewise.
577 * utils/rquotad/rquota_svc.c (main): Likewise.
579 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
581 * support/export/client.c (client_check): Check IP address
584 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
586 * support/export/client.c (client_gettype): Treat `*' as
589 2001-04-22 H.J. Lu <hjl@lucon.org>
591 * nfs-utils.spec.in: Fix a typo.
592 * nfs-utils.spec: Regenerated.
594 2001-04-21 H.J. Lu <hjl@lucon.org>
596 * nfs-utils.spec.in: Fix cross build.
597 * nfs-utils.spec: Regenerated.
600 2001-04-18 H.J. Lu <hjl@lucon.org>
602 * nfs-utils.spec.in: Support cross build.
603 * nfs-utils.spec: Regenerated.
609 * config.mk.in (BUILD_CC): New.
610 (CC): Set to $(BUILD_CC) if BUILD is defined.
613 (RANLIB): Set to @RANLIB@.
615 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
616 * configure: Regenerated.
618 * tools/rpcgen/Makefile (BUILD): Set to true.
620 2001-04-01 Chip Salzenberg <chip@valinux.com>
622 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
623 redundant, and sometimes broken, declaration of svc_fdset;
625 * support/nfs/rpcmisc.c (closedown): Likewise.
627 2001-03-21 H.J. Lu <hjl@lucon.org>
629 * nfs-utils.spec: Regenerated.
632 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
634 * utils/statd/statd.c (main): make sure file descriptors 0-2
635 are open to /dev/null.
637 2001-03-21 H.J. Lu <hjl@lucon.org>
639 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
640 * support/nfs/rpcmisc.c: Likewise.
641 * utils/rquotad/rquota_svc.c: Likewise.
642 * utils/rquotad/rquotad.man: Likewise.
643 * utils/statd/Makefile: Likewise.
644 * utils/statd/rmtcall.c: Likewise.
645 * utils/statd/simulate.c: Likewise.
646 * utils/statd/statd.c: Likewise.
647 * utils/statd/statd.man: Likewise.
649 2001-03-11 H.J. Lu <hjl@lucon.org>
651 * configure.in (RELEASE): New. Default to 1, set by
652 --with-release=XXX. Substitute nfs-utils.spec.
653 * nfs-utils.spec.in (Release): Set to @RELEASE@.
654 * configure: Regenerated.
655 * nfs-utils.spec: Likewise.
657 2001-03-11 H.J. Lu <hjl@lucon.org>
659 * utils/rquotad/rquotad.man: Fix a typo.
661 2001-03-11 H.J. Lu <hjl@lucon.org>
663 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
664 * support/nfs/rpcmisc.c: Likewise.
665 * utils/rquotad/rquota_svc.c: Likewise.
666 * utils/rquotad/rquotad.man: Likewise.
667 * utils/statd/Makefile: Likewise.
668 * utils/statd/rmtcall.c: Likewise.
669 * utils/statd/simulate.c: Likewise.
670 * utils/statd/statd.c: Likewise.
671 * utils/statd/statd.man: Likewise.
673 2001-03-10 H.J. Lu <hjl@lucon.org>
675 * configure.in (VERSION): Set to "0.3.2".
676 * configure: Regenerated.
677 * nfs-utils.spec: Likewise.
679 * README: Updated for 0.3.2.
681 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
683 * utils/rquotad/rquotad.man: Updated for -p.
684 * utils/statd/statd.man: Likewise.
686 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
688 * support/nfs/rpcmisc.c: export makesock()
690 * support/include/rpcmisc.h (makesock): Declared.
692 * utils/rquotad/rquota_svc.c: added longopts, added support for
693 specifying the port to bind to on the command line.
695 * utils/statd/statd.c: ditto, also specify port used for
696 outgoing connections.
697 (do_regist): Removed.
699 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
700 get_socket. Make it extern.
702 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
703 instead of do_regist.
705 * utils/statd/Makefile (LIBS): link with our own libnfs
707 2001-03-09 H.J. Lu <hjl@lucon.org>
709 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
710 * etc/nodist/nfs-client: Likewise.
712 2001-02-26 Chip Salzenberg <chip@valinux.com>
714 * debian/changelog: Version 0.3.1-1.
715 * Mention upstream source and license in copyright file.
716 * Add build-Depends for debhelper and libwrap0-dev.
718 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
720 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
721 * etc/nodist/nfs-client: Likewise.
723 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
725 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
728 2001-02-17 Patrick J. LoPresti <patl@curl.com>
730 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
733 2001-02-14 H.J. Lu <hjl@lucon.org>
735 * utils/statd/rmtcall.c: Include <time.h>.
736 * utils/statd/svc_run.c: Likewise.
738 2001-02-14 H.J. Lu <hjl@lucon.org>
740 * configure.in (VERSION): Set to "0.3.1".
741 * configure: Regenerated.
742 * nfs-utils.spec: Likewise.
744 * README: Updated for 0.3.1.
746 2001-02-14 H.J. Lu <hjl@lucon.org>
748 * support/nfs/rpcmisc.c: Include <time.h>.
750 2001-02-14 Chip Salzenberg <chip@valinux.com>
752 * debian/control: Change priority of nhfsstone package to 'extra'.
754 2001-02-12 Chip Salzenberg <chip@valinux.com>
756 * debian/changelog: Version 0.3-2.
758 2001-02-02 H.J. Lu <hjl@lucon.org>
760 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
762 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
763 out SO_SNDBUF/SO_RCVBUF.
764 (rpc_init): Remove bufsize and remove socksz in calls to
767 * utils/mountd/mountd.c (main): Remove bufsize in calls to
770 2001-01-28 Chip Salzenberg <chip@valinux.com>
772 * debian/changelog: Version 0.3-1.
774 2001-01-25 H.J. Lu <hjl@lucon.org>
776 * configure.in (VERSION): Set to "0.3".
777 * configure: Regenerated.
778 * nfs-utils.spec: Likewise.
780 * README: Updated for 0.3.
782 2001-01-25 H.J. Lu <hjl@lucon.org>
784 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
786 2001-01-20 Chip Salzenberg <chip@valinux.com>
788 * support/include/xio.h (xgetc): Declare to return int.
789 * support/nfs/xio.c (xgetc): Return int.
790 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
791 * utils/statd/statd.c (main): Use int for value of getopt.
792 * debian/changelog: Version 0.2.1-5.
794 2000-12-10 Chip Salzenberg <chip@valinux.com>
796 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
797 program and procedure numbers of kernel lockd's callback. Also,
798 besides the old (and broken) procedure #24, allow #16 per Trond.
800 2000-12-03 Chip Salzenberg <chip@valinux.com>
802 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
803 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
804 * debian/changelog: Version 0.2.1-4.
806 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
808 * utils/mountd/auth.c (auth_authenticate): Log the bad path
811 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
813 * support/nfs/exports.c (getexportent): Check for host name
814 without option, or options without hostname, and print a warning,
815 as this is most likely a typo.
817 2000-11-19 Chip Salzenberg <chip@valinux.com>
819 * debian/control: Add dependency on portmap.
820 * debian/changelog: Version 0.2.1-3.
822 2000-11-10 H.J. Lu <hjl@lucon.org>
824 * nfs-utils.spec.in: Don't use libtool.
825 Add ChangeLog and COPYING to doc.
826 * nfs-utils.spec: Rebuild.
828 2000-11-09 H.J. Lu <hjl@lucon.org>
830 * etc/redhat/nfs.init (start): Back out the last change.
832 2000-11-09 H.J. Lu <hjl@lucon.org>
834 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
835 TCP is not supported by kernel.
837 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
839 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
840 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
842 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
844 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
846 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
847 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
848 callbacks to local lockd.
850 2000-10-18 Scott McDermott <mcdermot@questra.com>
852 * utils/exportfs/exports.man: Updated for CIDR netmask.
854 2000-10-17 Scott McDermott <mcdermot@questra.com>
856 * support/export/client.c (client_init): Support CIDR netmask
859 2000-10-11 H.J. Lu <hjl@lucon.org>
861 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
862 * configure: Rebuilt.
864 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
866 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
867 "/var/lib/nfs/state".
869 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
871 * utils/statd/statd.h (run_mode): New global bitmask of runtime
872 behaviors: fg/bg, logging, etc.
873 * utils/statd/statd.c: New command line options: -V -h -? -d .
874 * utils/statd/statd.man: Update for changes to statd.
876 * utils/statd/log.h (log_init): Remove parameter of function; use
877 global variable "name_p" instead.
878 * utils/statd/log.c: Add support for logging to stderr.
880 * utils/statd/notlist.c: Partially rewrite notify list handling
881 functions. Eliminate run-off-end-of-list bug when calling
882 nlist_insert_timer. Add lots of comments.
884 2000-09-27 H.J. Lu <hjl@lucon.org>
886 * README: Updated for RedHat 7.0.
888 2000-09-27 H.J. Lu <hjl@lucon.org>
890 * nfs-utils.spec: Rebuild.
892 2000-09-27 H.J. Lu <hjl@lucon.org>
894 * README: Updated for 0.2.1.
896 2000-09-27 H.J. Lu <hjl@lucon.org>
898 * nfs-utils.spec.in: Updated to use rpm macros and support
901 2000-09-25 H.J. Lu <hjl@lucon.org>
903 * configure.in (VERSION): Set to "0.2.1".
904 * configure: Regenerated.
905 * nfs-utils.spec: Updated.
907 2000-09-25 H.J. Lu <hjl@lucon.org>
909 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
910 non-NULL hostent is always returned.
912 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
914 * etc/redhat/nfslock.init: don't kill lockd processes that do not
915 have an executable (i.e. kernel threads)
917 2000-09-01 H.J. Lu <hjl@lucon.org>
919 * README: Updated for 0.2.
921 2000-09-01 Jay Weber <jweber@valinux.com>
923 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
924 supporting version 3 of nfs if available, else it will fall back to
925 version 2 support only.
927 2000-08-30 H.J. Lu <hjl@lucon.org>
929 * configure.in (VERSION): Set to "0.2".
930 * configure: Regenerated.
931 * nfs-utils.spec: Updated.
933 2000-08-25 H.J. Lu <hjl@lucon.org>
935 * support/misc/tcpwrapper.c (logit): Modify the log output.
937 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
939 * utils/rquotad/rquotad.man, utils/statd/statd.man,
940 utils/mountd/mountd.man: updated
942 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
943 * utils/rquotad/Makefile: fix comment
945 * support/misc/tcpwrapper.c (logit): added comment about waiting
946 for the children after fork()
948 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
949 zombies behind (from logit()'s fork)
950 * utils/rquotad/rquota_svc.c (main): ditto
951 * utils/statd/statd.c (main): ditto
953 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
954 to check_default instead of 0, for prognum
956 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
957 to check_default instead of 0, for prognum
959 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
960 HAVE_TCP_WRAPPER is defined.
961 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
962 defined. Reject an RPC call if check_default () fails.
964 2000-08-25 H.J. Lu <hjl@lucon.org>
966 * support/include/tcpwrapper.h: New for the tcp wrapper
968 * support/misc/Makefile: Likewise.
969 * support/misc/from_local.c: Likewise.
970 * support/misc/tcpwrapper.c: Likewise.
972 * aclocal.m4 (AC_TCP_WRAPPER): New.
973 * configure.in: Use it. Substitute LIBWRAP.
974 * configure: Rebuilt.
976 * config.mk.in (LIBNSL): New.
979 * support/Makefile (SUBDIRS): Add misc.
981 * support/lib/Makefile (LIBS): Add libmisc.a.
983 * utils/rquotad/Makefile (LIBS): Add
985 -lmisc $(LIBWRAP) $(LIBNSL)
987 * utils/statd/Makefile (LIBS): Likewise.
989 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
990 HAVE_TCP_WRAPPER is defined.
991 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
992 defined. Reject an RPC call if check_default () fails.
994 * utils/statd/statd.c: Include "tcpwrapper.h" if
995 HAVE_TCP_WRAPPER is defined.
996 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
997 check_default () before calling sm_prog_1 (). Define it as
998 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1000 2000-08-25 Chip Salzenberg <chip@valinux.com>
1002 * debian/*: Complete Debian build support.
1003 * etc/debian/*: Remove.
1005 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1007 * support/export/client.c(client_check): removed the "dot+1" as a
1008 ypdomain argument to innetgr as this is entirely bogus.
1009 It should always be NULL.
1011 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1013 * support/export/xtab.c(xtab_read): introduce new mode for
1014 reading xtab. i.e. a list of exports that might be known to the
1015 kernel, or might not. These are flagged as m_exported == -1
1016 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1017 value "2" for xtab, meaning don't trust this too much.
1018 * support/include/exportfs.h(struct mexport): changed m_exported
1019 from one bit to an int so that it can hold new value
1020 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1021 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1022 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1025 * support/nfs/xio.c(xflock): added O_CREAT when getting
1026 a write lock so that missing files aren't fatal.
1028 * etc/debian/nfs-common: new file from "potato"
1029 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1031 2000-08-09 H.J. Lu <hjl@lucon.org>
1033 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1034 startup to ensure all existing clients work fine.
1036 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1037 to xtab_read () for reading _PATH_XTAB.
1039 2000-08-02 H.J. Lu <hjl@lucon.org>
1041 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1042 avoid the reverse name lookup.
1044 2000-07-04 H.J. Lu <hjl@lucon.org>
1046 * utils/statd/log.c: Include <stdlib.h> for exit ().
1048 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1051 2000-07-04 H.J. Lu <hjl@lucon.org>
1053 * configure.in (VERSION): Set to "0.1.9.1".
1054 * configure: Regenerated.
1055 * nfs-utils.spec: Updated.
1059 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1061 * support/export/hostname.c (hostent_dup): Handle the NULL
1064 2000-07-03 H.J. Lu <hjl@lucon.org>
1066 * README: Update the util-linux requirement.
1068 2000-07-03 H.J. Lu <hjl@lucon.org>
1070 * configure.in (VERSION): Set to "0.1.9".
1071 * configure: Regenerated.
1072 * nfs-utils.spec: Updated.
1076 2000-07-03 H.J. Lu <hjl@lucon.org>
1078 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1079 stop to ensure all clients can still access the server
1080 before it is shutdown.
1082 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1084 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1085 calls with format string.
1087 2000-06-28 Chip Salzenberg <chip@valinux.com>
1089 * utils/statd/log.c (log): Call syslog with format string.
1091 2000-06-27 H.J. Lu <hjl@lucon.org>
1093 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1094 instead of OPEN_MAX.
1096 2000-06-27 H.J. Lu <hjl@lucon.org>
1100 2000-06-27 H.J. Lu <hjl@lucon.org>
1102 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1103 startup to ensure all existing clients are exported.
1105 * configure.in (VERSION): Set to "0.1.8.2".
1106 * configure: Regenerated.
1107 * nfs-utils.spec: Updated.
1109 2000-06-06 H.J. Lu <hjl@lucon.org>
1111 * configure.in (VERSION): Set to "0.1.8.1".
1112 * configure: Regenerated.
1113 * nfs-utils.spec: Updated.
1115 2000-06-06 H.J. Lu <hjl@lucon.org>
1117 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1118 to "struct sockaddr_in *" for glibc 2.2.
1119 (mount_umnt_1_svc): Likewise.
1120 (mount_umntall_1_svc): Likewise.
1121 (mount_export_1_svc): Likewise.
1122 (mount_exportall_1_svc): Likewise.
1123 (mount_pathconf_2_svc): Likewise.
1124 (get_rootfh): Likewise.
1126 2000-06-04 H.J. Lu <hjl@lucon.org>
1128 * etc/redhat/nfs.init: Fix a typo in comment.
1130 2000-05-31 H.J. Lu <hjl@lucon.org>
1132 * configure.in (VERSION): Set to "0.1.8".
1133 * configure: Regenerated.
1134 * nfs-utils.spec: Updated.
1138 2000-05-31 H.J. Lu <hjl@lucon.org>
1140 * configure.in (VERSION): Set to "0.1.7.5".
1141 * configure: Regenerated.
1142 * nfs-utils.spec: Updated.
1144 * support/include/nfslib.h (exportent): Add a new field,
1145 r_count, to count the number of mounts from a client.
1146 (getrmtabent): Take a new argument for position in file.
1147 (putrmtabent): Likewise.
1148 (fgetrmtabent): Likewise.
1149 (fputrmtabent): Likewise.
1150 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1151 for position in file.
1152 (fgetrmtabent): Likewise.
1153 (putrmtabent): Likewise.
1154 (fputrmtabent): Likewise.
1156 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1159 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1160 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1161 and fputrmtabent ().
1162 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1163 (mountlist_del): Likewise.
1164 (mountlist_del_all): Likewise.
1165 (mountlist_list): Likewise.
1167 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1168 for the existing entry and initialize "r_count" to 1.
1169 (mountlist_del): Decrement "r_count".
1171 2000-05-18 H.J. Lu <hjl@lucon.org>
1173 * configure.in (VERSION): Set to "0.1.7.4".
1174 * configure: Regenerated.
1175 * nfs-utils.spec: Updated.
1177 2000-05-18 H.J. Lu <hjl@lucon.org>
1179 * etc/redhat/nfs.init (restart): Just do stop and start.
1181 2000-05-09 Jay Weber <jweber@valinux.com>
1183 * utils/rquotad/hasquota.c: added support for ext3 recognition
1185 * utils/rquotad/mntent.h: Likewise.
1187 2000-05-01 H.J. Lu <hjl@lucon.org>
1189 * configure.in (VERSION): Set to "0.1.7.3".
1190 * configure: Regenerated.
1191 * nfs-utils.spec: Updated.
1193 2000-05-01 H.J. Lu <hjl@lucon.org>
1195 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1196 mounting poins in /etc/fstab.
1198 2000-05-01 H.J. Lu <hjl@lucon.org>
1200 * configure.in (VERSION): Set to "0.1.7.2".
1201 * configure: Regenerated.
1202 * nfs-utils.spec: Updated.
1204 2000-05-01 H.J. Lu <hjl@lucon.org>
1206 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1207 to check for the mounting point.
1209 2000-04-29 Chip Salzenberg <chip@valinux.com>
1210 Neil Brown <neilb@cse.unsw.edu.au>
1212 * Really re-use RPC ports.
1213 (Fixes earlier patch. Sorry, Neil.)
1215 2000-04-26 H.J. Lu <hjl@lucon.org>
1217 * configure.in (VERSION): Set to "0.1.7.1".
1218 * configure: Regenerated.
1219 * nfs-utils.spec: Updated.
1221 2000-04-26 H.J. Lu <hjl@lucon.org>
1223 * etc/redhat/nfslock.init: Check if lockd exits before killing
1226 2000-04-25 H.J. Lu <hjl@lucon.org>
1228 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1230 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1232 * support/nfs/exports.c (parsesquash): Correctly set the
1235 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1237 * support/include/nfs/nfs.h: Removed knowledge of internals of
1238 kernel filehandles (which can change) and defined nfs_fh_size
1239 which has variable size
1241 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1242 get variable sized file handles, and change getfh{,old} to
1245 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1248 * tools/Makefile, tools/nlmtest/nlmtest.c
1249 nlmtest.c depended on internel format of file handles, so now
1253 2000-03-12 Chip Salzenberg <chip@valinux.com>
1254 Neil Brown <neilb@cse.unsw.edu.au>
1256 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1258 2000-03-13 H.J. Lu <hjl@lucon.org>
1260 * etc/redhat/nfsd.init: Updated.
1262 * etc/redhat/nfslock.init: Updated.
1264 * nfs-utils.spec.in: Updated.
1266 * configure.in (VERSION): Set to "0.1.7".
1267 * configure: Regenerated.
1268 * nfs-utils.spec: Updated.
1272 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1274 * utils/exportfs/exportfs.c (dump): Included printing of
1275 nohide, no_subtree_check, and insecure_locks
1277 2000-02-26 Chip Salzenberg <chip@valinux.com>
1279 * config.mk.in (INSTALLSUID): Strip ("-s").
1280 (INSTALLSCRIPT): Define.
1281 * utils/nhfsstone/Makefile: Use it.
1283 2000-02-26 Chip Salzenberg <chip@valinux.com>
1285 * utils/lockd/lockd.man: Create.
1286 * utils/lockd/Makefile: Install it.
1287 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1288 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1289 * utils/nhfsstone/Makefile: Install the helper scripts and
1291 * utils/exportfs/exports.man: Fix typo.
1293 2000-02-26 Chip Salzenberg <chip@valinux.com>
1295 * support/nfs/xio.c (xungetc): Decrement line number when
1296 character to unget is newline. Make first parameter int, so
1297 it can distinguish EOF from \377.
1298 * support/include/xio.h (xungetc): Adjust prototype.
1300 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1302 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1303 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1304 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1306 This is for supporting a new option introduced in 2.3.42
1308 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1310 * COPYING: Added. GPL.
1312 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1314 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1315 to get the block size.
1317 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1319 * nfs-utils.spec.in: Update ftp site.
1321 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1323 * README: Update hostnames.
1325 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1327 * configure.in (VERSION): Set to "0.1.6".
1328 * configure: Regenerated.
1329 * nfs-utils.spec: Updated.
1333 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1335 * utils/mountd/auth.c (auth_authenticate_internal): Call
1336 xstrdup for hostname before passing it to gethostbyname.
1338 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1341 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1343 * README: Update the mailing list address.
1345 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1347 * configure.in (VERSION): Set to "0.1.5".
1348 * configure: Regenerated.
1349 * nfs-utils.spec: Updated.
1353 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1355 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1358 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1360 * configure.in (VERSION): Set to "0.1.4".
1361 * configure: Regenerated.
1362 * nfs-utils.spec: Updated.
1366 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1368 * nfs-utils.spec.in: New file.
1370 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1372 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1374 1999-12-04 Chip Salzenberg <chip@valinux.com>
1376 * config.mk.in: Use $(CC) as set by configure.
1378 1999-12-04 Chip Salzenberg <chip@valinux.com>
1380 * rules.mk: Call $(MAKE) with $(MFLAGS).
1382 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1384 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1385 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1387 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1389 * nfs-utils.spec (Version): Set to 0.1.3.
1391 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1392 * configure: Regenerated.
1396 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1398 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1399 (_PATH_DEV_DSK): Likewise.
1400 (getquotainfo): Match the mounting point from /etc/mtab
1401 instead of calling nfsmount_to_devname ().
1403 1999-11-24 Chip Salzenberg <chip@valinux.com>
1405 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1406 to the new port 24 as well as the historical port 100021.
1408 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1410 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1411 stopping nfsd to stop spurious ESTALE on server shutdown.
1413 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1415 * support/nfs/exports.c (parseopts): make copy of opt string
1416 before 'nul'ing out commas so that
1418 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1420 applies both options to both exports.
1422 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1424 * README: Fix a few typos.
1426 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1428 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1429 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1430 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1431 (unsigned_dec): Likewise.
1432 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1433 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1435 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1437 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1438 (unsigned_dec): Likewise.
1439 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1440 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1441 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1443 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1445 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1446 * support/nfs/exports.c: added {no_,}subtree_check and changed
1448 * utils/exportfs/exports.man: added no_subtree_check and nohide
1449 and removed irrelevant stuff from unfsd.
1450 * support/export/rmtab.c: rmtab_read didn't quite do the right
1451 thing if a pathname from rmtab was a subdirectory of an export-point
1453 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1455 * README: Updated ftp site.
1457 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1459 * nfs-utils.spec (Version): Set to 0.1.2.
1461 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1462 * configure: Regenerated.
1466 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1468 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1469 (auth_authenticate_internal): Check for NULL return on forward
1471 (auth_authenticate): Handle "no_forward_dns".
1473 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1475 * Version 0.1.1 released.
1477 * nfs-utils.spec (Version): Set to 0.1.1.
1479 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1480 * configure: Regenerated.
1484 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1486 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1488 (Provides): Likewise.
1490 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1492 * Initial version 0.1 released.
1494 * configure.in (VERSION): Set to "nfs-utils 0.1".
1495 * configure: Regenerated.
1497 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1499 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1501 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1502 kernel only if the entry is exported to kernel.
1503 (unexportfs): Likewise.
1505 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1507 1/ utils/mountd/rmtab.c::mountlist_list
1509 This routine stats the rmtab file to see if it has changed. It
1510 if has, it cleans up it's old copy of the data. But it still
1511 always re-read the file, thus returning multiple copies of the
1512 data on consecutive calls without intervening changes.
1513 "Showmount -a" didn't show this as it appears to sort/unique the
1514 data, but 'strace showmount -a' showed that the size of the
1515 datagram that it received grew.
1517 I moved the getrmtabent loop inside the mtime test.
1519 2/ utils/exportfs/exportfs.c
1521 Many routines used the m_path field of m_export instead of
1523 According to the comment in nfslib.h, m_path should only
1524 be used when processing a mount request (i.e. in mountd)
1525 where the mountpoint may be a subdirectory of the export point.
1527 I changed all occurances of m_path to e_path
1530 3/ utils/exportfs/exportfs.c:main
1532 extra arguments are not meaningful with -a or -r, but
1533 exportfs accepted them and then ignored the -a/-r, expect that
1534 -r would still unexport everything first.
1536 I generate an error if there are extra args and f_all
1538 4/ utils/exportfs/exportfs.c:main
1539 extract dump out as a special case.
1541 5/ utils/exportfs/exportfs.c
1542 made f_reexport a local variable.
1545 6/ utils/exportfs/exportfs.c:main,exportall
1547 support/export/rmtab.c
1548 only mayexport on newly created entries, don't set xtabent at all
1550 7/ support/include/nfslib.h
1552 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1554 8/ support/export/xtab.c
1556 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1560 9/ support/export/xtab.c
1562 xtab_mount_read now sets m_exported, and NOT
1563 xtabent and mayexport
1565 removed the append arguement from xtab_write as it was
1568 added is_export flag to xtab_write similar to xtab_read
1569 if is_export, only write entries with m_xtabent or m_addxtab
1570 if !is_export, only write entries with m_exported
1572 10/ support/export/export.c::export_allowed_internal
1574 added test for exp->m_mayexport, as the export tree
1575 may have entries that are no longer allowed to be exported,
1576 and so shouldn't caused deduced exported by rmtab_read
1578 11/ utils/exportfs/exportfs.c::main
1579 error checking of flags.
1581 12/ utils/exportfs/exportfs.c
1583 total rewrite of export and unexport logic.
1585 - build an exportslist of valid exports, based on
1586 current etab file and arguments,
1587 - read rmtab to instantiate relevant wild card entries
1588 - read etab to find out what is currently exported
1589 - synchronise intention with reality
1590 - write out etab and xtab
1593 discard the m_addxtab flag
1594 add m_changed flag so we know what to report in exportfs
1596 14/ utils/mountd/auth.c:auth_authenticate
1598 the value returned by gethostbyaddr was trusted.
1600 It now follows this with a call to gethostbyname
1601 and checks that the address is in the list.
1603 15/ support/export/nfsctl.c::cltsetup,expsetup
1605 force client names to lowercase as kernel is
1608 16/ quietened a few compiler warnings
1610 17/ support/export/client:client_lookup
1612 look for pre-existing client with same name before creating
1615 18/ support/include/exportfs.h
1617 The ordering of the MCL_* enum was:
1618 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1620 I moved ANONYMOUS to the end.
1622 The ordering is significant when an export entry is being searched for to
1623 match a given address. There are two problems with ANONYMOUS being first.
1625 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1626 then the ro case will always be found first and the privileged hosts won't get
1628 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1629 export entry for the specific host, and writes it to xtab.
1630 When another request comes from the same host, the ANONYMOUS entry is found again,
1631 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1632 again. If causes bloat in xtab.
1634 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1636 19/ utils/exportfs/exportfs.man
1637 many updates to the man page to reflect changes to the code
1639 -----------------------
1645 - allow exportfs to modify rmtab file
1646 - make sure kernel never gets two clients with same IP address
1647 - possible kernel should reject
1648 - needs to be some way to lookup client in kernel by IP address
1649 - maybe get kernel to do case-insensitive comparisons on client names
1650 - remove unused clients from kernel
1652 - change etab to xtab and xtab to xtab.active
1654 - timestamp and/or statd-stamp in rmtab for removing old entries.
1656 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1658 * linux-nfs: New directory.
1659 * linux-nfs/ChangeLog: Moved from ..
1660 * linux-nfs/INSTALL: Likewise.
1661 * linux-nfs/KNOWNBUGS: Likewise.
1662 * linux-nfs/NEW: Likewise.
1663 * linux-nfs/README: Likewise.
1664 * linux-nfs/THANKS: Likewise.
1665 * linux-nfs/TODO: Likewise.
1667 * Starting from knfsd 1.4.7.