1 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
2 NeilBrown <neilb@cse.unsw.edu.au>
4 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
5 long long to avoid overflow when printing stats.
7 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
9 * support/export/export.c, support/include/nfslib.h,
10 support/nfs/export.c, utils/exportfs/exportfs.c,
11 utils/mountd/mountd.c: new export option "mountpoint"
12 If no path is given, then the export point must be a
13 mount point, or it won't be exported. If a path is
14 given (e.g. mountpoint=/path) then that path must be
15 a mountpoint or the exportpoint won't be exported.
16 * utils/exportfs/exportfs.man: document mountpoint option.
17 * support/misc/mountpoint.c: New file with is_mountpoint()
18 to determine if something is a mountpoint.
20 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
22 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
23 argument as we might not be getting the filehandle for the
25 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
27 * utils/mountd/mountd.c(get_rootfh): check export point and
28 requested directory are on the same filesystem, and complain if
31 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
33 * utils/mountd/auth.c(auth_authenticate_internal): make sure
34 portnumber is still checked when using new cache lookup.
36 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
38 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
39 Don't actually talk to kernel when new cache is in effect, except
41 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
42 * support/export/xtab.c: Only rename new xtab into place if it has
43 changed, thus preserving modify date for exportfs to use when
45 * support/nfs/cacheio.c: Add cache_flush
46 * support/export/xtab.c: Only rename new xtab into place if it has
47 changed, thus preserving modify date for exportfs to use when
50 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
52 * support/export/client.c: Add client_compose, client_member to
53 handle new composite client names
54 * support/include/exportfs.h: Declare above functions.
55 * utils/mountd/auth.c: use client_compose to determine calling
56 client if new cache is being used.
57 * utils/mountd/auth.c: call cache_export to export a filesystem if
58 new_cache, check if new cache is used, and call my_svc_run instead
60 * utils/mountd/svc_run.c: new file defining my_svc_run
61 * utils/mountd/cache.c: new file for handling cache upcalls.
62 * support/nfs/cacheio.c(check_new_cache): new function to check if
63 new cache should be used.
66 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
68 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
69 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
70 * utils/exportfs/exportfs.c(dump): ditto
72 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
74 * support/export/hostname.c(get_reliable_hostbyaddr): new function
75 to get host name from address with full checking of authenticity.
76 * support/include/misc.h: declare above function
77 * utils/mountd/auth.c(auth_authenticate_internal): remove all
78 logic for authenticating address.
79 * utils/mountd/auth.c(auth_authenticate): call new
80 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
83 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
85 * tools/rpcgen/rpc_main.c(find_cpp): removed
86 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
87 then try hard-coded paths.
89 2003-03-26 Chip Salzenberg <chip@pobox.com>
91 * debian/changelog: Version 1.0.3-1.
93 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
95 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
96 "const char*", not "char*".
98 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
100 * configure.in (VERSION): Set to "1.0.3".
101 * nfs-utils.spec: Likewise.
102 * configure: Regenerated.
104 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
106 * support/nfs/cacheio.c: New File - support for read/writing
107 to export cache in /proc/rpc/*/channel
108 * support/nfs/Makefile: compile cacheio.c
109 * support/include/nfslib.h: declare cacheio.c functions
110 * support/nfs/nfsexport.c: export and unexport through
111 /proc/rpc/*/channel if possible, as old syscall interface
112 may not survive into 2.6 on all architectures.
114 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
115 Ben Leslie <benno@sesgroup.net>
117 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
118 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
119 former would incorectly ignore defport if the application
120 explicitly set __rpcfdtype. The later is sufficient to avoid the
121 special handling in the case where stdin is an internet socket.
123 * utils/mountd/mountd.c(main): Add 'n' to option list in
124 getopt_long as this is a short form of --no-tcp which want being
127 2003-02-12 Chip Salzenberg <chip@pobox.com>
129 * debian/changelog: Version 1.0.2-2.
131 2002-11-27 Chip Salzenberg <chip@pobox.com>
133 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
134 overflow bug. Reformat per rest of source file.
136 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
138 * utils/exportfs/exports.man: Correct notes about whether the wild
139 card characters match a period. They do.
141 2002-10-15 Juan Gomez <juang@us.ibm.com>
143 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
145 (mountlist_add): Call slink_safe_rename instead of rename.
147 2002-10-11 H.J. Lu <hjl@lucon.org>
149 * support/include/exportfs.h (export_errno): New.
151 * support/nfs/exports.c: Include <errno.h>.
153 (getexportent): Set export_errno to EINVAL for bad option.
154 (parseopts): Likewise.
155 Report the location of the default sync/async option.
157 * utils/exportfs/exportfs.c (main): Initialize export_errno to
158 0. Return export_errno.
160 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
161 NeilBrown <neilb@cse.unsw.edu.au>
163 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
164 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
166 2002-09-16 Chip Salzenberg <chip@pobox.com>
168 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
170 2002-09-15 Chip Salzenberg <chip@pobox.com>
172 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
173 socket, as occurs when run from sshd.
174 * debian/changelog: Version 1.0.2-1.
176 2002-09-12 H.J. Lu <hjl@lucon.org>
178 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
181 2002-09-12 H.J. Lu <hjl@lucon.org>
183 * configure.in: Remove checking svctcp_socket and svcudp_socket.
184 * configure: Regenerated.
186 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
187 (HAVE_SVCUDP_SOCKET): Removed.
189 * support/include/nfslib.h: Undo the last change.
191 2002-09-12 H.J. Lu <hjl@lucon.org>
193 * support/include/nfslib.h (svctcp_socket): Protect it with
195 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
197 2002-09-12 H.J. Lu <hjl@lucon.org>
199 * configure.in (VERSION): Set to "1.0.2".
200 * configure: Regenerated.
201 * nfs-utils.spec: Likewise.
203 2002-09-12 H.J. Lu <hjl@lucon.org>
205 * configure.in: Check svctcp_socket and svcudp_socket.
206 * configure: Regenerated.
208 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
209 (HAVE_SVCUDP_SOCKET): New.
211 * support/include/nfslib.h (svctcp_socket): New.
212 (svcudp_socket): New.
214 * support/nfs/Makefile (OBJS): Add svc_socket.o.
216 * support/nfs/svc_socket.c: New.
218 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
219 svcudp_socket if port is unspecified.
221 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
223 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
224 (killer): New. Signal handler to unregister.
225 (main): Use killer. Call svcudp_socket to get the default
228 2002-09-02 Juan Gomez <juang@us.ibm.com>
229 NeilBrown <neilb@cse.unsw.edu.au>
231 Add -N option to statd to run in notify-only mode.
233 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
234 * utils/statd/statd.man: document -N
235 * utils/statd/statd.c: enabled -N, largely exists but needed to be
236 uncommented and completed
238 2002-09-02 Juan Gomez <juang@us.ibm.com>
239 NeilBrown <neilb@cse.unsw.edu.au>
241 statd to have " -P directory" arg to use that directory instead
242 of /var/lib/nfs. This is useful for fail-over clusters.
244 * utils/statd/statd.h: define SM_DIR etc as var, not const.
245 * utils/statd/statd.c: define "-P" option to set SM_*
247 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
249 * utils/statd/notify.c: ditto.
250 * utils/statd/statd.man: document -P option.
252 2002-08-26 Chip Salzenberg <chip@pobox.com>
254 * utils/nfsd/nfsd.man: Fix typo.
255 * debian/changelog: Version 1.0.1-1.
257 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
259 * let parseopts know if /etc/exports was being read or not,
260 and have it only print "no sync or async" warning in that case.
262 2002-05-06 Tom McNeal <trmcneal@attbi.com>
263 NeilBrown <neilb@cse.unsw.edu.au>
265 * utils/nfsstat/nfsstat.c: Handle differing format for
266 /proc/net/rpc/nfsd between pre and post 2.4.0
268 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
269 James Pearson <james-p@moving-picture.com>
271 * support/nfs/rmtab.c(fendrmtabent): sync changes to
272 storage before returning, as this is critical state
274 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
275 H.J. Lu <hjl@lucon.org>
277 * etc/redhat/nfs: New.
279 2002-04-08 H.J. Lu <hjl@lucon.org>
281 * etc/redhat/nfs.init: Updated.
283 * nfs-utils.spec.in: Updated.
284 * nfs-utils.spec: Regenerated.
286 * utils/mountd/mountd.c (longopts): Fix a typo.
288 * utils/mountd/mountd.man: Updated.
290 2002-04-07 H.J. Lu <hjl@lucon.org>
292 * etc/redhat/nfslock.init (restart): Just do stop and start.
294 * etc/redhat/nfs.init: Fix a typo.
296 2002-04-07 H.J. Lu <hjl@lucon.org>
298 * configure.in (VERSION): Set to "1.0.1".
299 * configure: Regenerated.
300 * nfs-utils.spec: Likewise.
302 * README: Updated for 1.0.1.
304 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
305 H.J. Lu <hjl@lucon.org>
307 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
309 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
310 NeilBrown <neilb@cse.unsw.edu.au>
312 Add support for fsid=nn export option so that device
313 numbers don't go in filehandles.
314 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
315 is set, pass the fsid in-place of the device number
316 * support/nfs/exports.c: parse and print fsid= option.
317 Also check if efname has been set, and use "command line"
318 instead in error messages.
319 Also, use strtol instead of atoi for anon[ug]id= so that
320 bad numbers cause errors.
322 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
323 NeilBrown <neilb@cse.unsw.edu.au>
325 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
326 flag so that "sync" becomes the default.
327 Check that either "sync" or "async" is given as an option
328 and warn if neither are present
329 * utils/exportfs/exports.man: change documentation for "sync"
330 to be documentation for "async".
331 * utils/exportfs/exportfs.man: note that "sync" is the default
335 2002-01-02 Chip Salzenberg <chip@pobox.com>
337 * support/export/nfsctl.c (expsetup): Don't export entries that
338 specify id mappings not supported by the kernel. No extant kernel
339 supports any significant mapping, only 'identity' (i.e. none).
340 When other mappings are supported, this code will need changing.
341 * debian/changelog: Version 1.0-2.
343 2001-12-26 Chip Salzenberg <chip@pobox.com>
345 * nfs-utils.spec (Version): Set to "1.0".
346 * configure.in (VERSION): Likewise.
347 * configure: Regenerated.
349 * debian/changelog: Version 1.0-1.
351 * utils/exportfs/exports.man: Emphasize the need for options to
352 immediately follow client names. Explain that wildcards don't
353 usually work on addresses, but may work when reverse DNS fails.
354 Comment out a leftover TP that was TPing our indentation.
355 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
356 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
357 * debian/changelog: Version 0.3.3-6.
359 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
361 * support/export/client.c(client_lookup): If a host has multiple
362 IP addresses, then we must always use the result of a
363 gethostbyname, not that of gethostbyaddr for exporting
365 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
367 * support/export/client.c (client_lookup): use strcasecmp when
369 * support/nfs/export.c (getexportent): add fromkernel arg and use
370 different defaults as kernels prior to 2.4.11 assume different
371 defaults in /proc/fs/nfs/exports
372 * support/include/nfslib.h, support/export/export.c,
373 support/export/xtab.c: support extra "fromkernel" arg for
376 2001-12-13 Chip Salzenberg <chip@pobox.com>
378 * debian/changelog: Version 0.3.3-5.
380 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
382 * support/nfs/xio.c (xskip): Call `xungetc' instead of
383 `ungetc' to keep x_line more properly.
385 2001-11-26 Chip Salzenberg <chip@pobox.com>
387 * utils/showmount/showmount.c (main): Don't assume that strings
388 starting with digits are IP addresses.
389 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
390 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
391 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
392 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
393 man pages: We check host names *and* addresses with tcpwrappers.
394 * debian/changelog: Version 0.3.3-4.
396 2001-11-21 Chip Salzenberg <chip@pobox.com>
398 * support/nfs/clients.c (cfname): Added: current clients file name.
399 (setnfsclntent): Set it.
400 ({get,end}nfsclntent, syntaxerr): Use it.
401 * support/nfs/exports.c (efname): Added: current exports file name.
402 (setnfsexportent): Set it.
403 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
404 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
405 * debian/changelog: Version 0.3.3-3.
407 2001-10-11 Chip Salzenberg <chip@pobox.com>
409 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
410 * debian/changelog: Version 0.3.3-2.
412 2001-10-08 Chip Salzenberg <chip@pobox.com>
414 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
415 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
416 * utils/mountd/mountd.man: Update paths to /var/lib.
417 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
419 2001-10-06 Preston Brown <pbrown@redhat.com>
421 * utils/nfsstat/nfsstat.man: Updated.
423 2001-09-24 H.J. Lu <hjl@lucon.org>
425 * configure.in (VERSION): Set to "0.3.3".
426 * configure: Regenerated.
427 * nfs-utils.spec: Likewise.
429 * README: Updated for 0.3.3.
431 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
433 Arrange that "exportfs -au" never does DNS lookup:
435 * support/export/client.c (client_lookup) : add "canonical"
436 flag which says that the hostname is known to be canonical, so
439 * support/export/export.c (export_create) : add "canonical"
440 flag to be passed down to client_lookup
441 * support/export/export.c (export_lookup) : Likewise
443 * support/export/xtab.c (xtab_read) : pass appropriate
444 "canonical" flag to export_lookup and export_create:
445 set if reading list of filesystems currently exports
448 * support/export/export.c (export_read) : pass 0 as
449 "canonical" flag to export_lookup and export_create
450 * support/export/rmtab.s (rmtab_read) : Likewise
452 * support/include/exportfs.h : redeclare various routines
453 to have "canonical" flag
455 * utils/exportfs/exportfs.c (main) : redo logic for
456 "-au" to read in what is currently exported, but never even
457 look at what "should" be exported.
459 * utils/exportfs/exportfs.c (unexportall) : remove this
460 routine. Functionality is completely included in
463 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
464 flag to zero in calls to export_lookup and export_create.
467 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
468 Anne Milicia <milicia@missioncriticallinux.com>
470 * support/export/client.c (client_lookup) call gethostbyadd
471 to make sure that we have a canonical hostname, even for
473 * utils/exportfs/exportfs.c (exportfs) Likewise
475 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
477 * support/nfs/exports.c (putexportent): \octal quote any spaces
479 * support/nfs/xio.c (xgettok): recognise double-quote and
480 \octal quoting in path names
481 * utils/exportfs/exports.man: document quoting conventions
484 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
486 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
487 change from 2000-08-02: It causes problems if someone exports
488 to both a hostname and IP addresses. nfs-utils must be
489 consistant about the canonical name that it chooses.
491 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
492 H.J. Lu <hjl@lucon.org>
494 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
496 * utils/statd/statd.c (longopts): Add "name".
497 (usage): Add "-n/--name".
498 (main): Set MY_NAME with "-n/--name".
500 * utils/statd/state.c (change_state): Set MY_NAME only if it
503 * utils/statd/statd.man: Updated for "-n/--name".
505 2001-07-26 H.J. Lu <hjl@lucon.org>
507 * nfs-utils.spec (Release): Set to 8.
509 2001-07-25 H.J. Lu <hjl@lucon.org>
511 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
514 2001-06-27 H.J. Lu <hjl@lucon.org>
516 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
518 2001-06-27 H.J. Lu <hjl@lucon.org>
520 * utils/rquotad/rquota_server.c: Don't call statfs () for
521 the block size. Use BLOCK_SIZE instead.
523 2001-06-27 H.J. Lu <hjl@lucon.org>
525 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
526 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
528 * configure.in (enable_nfsv3): Set to yes by default.
529 (--enable-rquotad): Added
530 (AC_PROG_CXX): Removed.
531 (AC_OUTPUT): Add utils/Makefile.
532 (CC_FOR_BUILD): Renamed from BUILD_CC.
533 * configure: Regenerated.
535 * utils/Makefile: Removed.
537 * utils/Makefile.in: New.
539 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
541 (CC_FOR_BUILD): Renamed from BUILD_CC.
542 * nfs-utils.spec: Regenerated.
544 2001-06-15 Chip Salzenberg <chip@debian.org>
546 * debian/changelog: Version 0.3.2-2.
547 * debian/*.init: Minor fixes.
549 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
551 * etc/nodist/nfs-server: Fixed a bug where the script would
552 disable mounts from NFSv3 clients if NFSv3 is present.
554 2001-06-05 H.J. Lu <hjl@lucon.org>
556 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
557 (main): Support --descriptors/-o to set the limit of the number
558 of open file descriptors.
561 * utils/mountd/mountd.man: Updated for --descriptors/-o.
563 2001-06-04 H.J. Lu <hjl@lucon.org>
565 * nfs-utils.spec (Release): Set to 6.
567 2001-05-28 H.J. Lu <hjl@lucon.org>
569 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
570 * utils/mountd/mountd.c (main): Likewise.
571 * utils/nfsd/nfsd.c (main): Likewise.
572 * utils/rquotad/rquota_svc.c (main): Likewise.
574 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
576 * support/export/client.c (client_check): Check IP address
579 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
581 * support/export/client.c (client_gettype): Treat `*' as
584 2001-04-22 H.J. Lu <hjl@lucon.org>
586 * nfs-utils.spec.in: Fix a typo.
587 * nfs-utils.spec: Regenerated.
589 2001-04-21 H.J. Lu <hjl@lucon.org>
591 * nfs-utils.spec.in: Fix cross build.
592 * nfs-utils.spec: Regenerated.
595 2001-04-18 H.J. Lu <hjl@lucon.org>
597 * nfs-utils.spec.in: Support cross build.
598 * nfs-utils.spec: Regenerated.
604 * config.mk.in (BUILD_CC): New.
605 (CC): Set to $(BUILD_CC) if BUILD is defined.
608 (RANLIB): Set to @RANLIB@.
610 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
611 * configure: Regenerated.
613 * tools/rpcgen/Makefile (BUILD): Set to true.
615 2001-04-01 Chip Salzenberg <chip@valinux.com>
617 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
618 redundant, and sometimes broken, declaration of svc_fdset;
620 * support/nfs/rpcmisc.c (closedown): Likewise.
622 2001-03-21 H.J. Lu <hjl@lucon.org>
624 * nfs-utils.spec: Regenerated.
627 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
629 * utils/statd/statd.c (main): make sure file descriptors 0-2
630 are open to /dev/null.
632 2001-03-21 H.J. Lu <hjl@lucon.org>
634 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
635 * support/nfs/rpcmisc.c: Likewise.
636 * utils/rquotad/rquota_svc.c: Likewise.
637 * utils/rquotad/rquotad.man: Likewise.
638 * utils/statd/Makefile: Likewise.
639 * utils/statd/rmtcall.c: Likewise.
640 * utils/statd/simulate.c: Likewise.
641 * utils/statd/statd.c: Likewise.
642 * utils/statd/statd.man: Likewise.
644 2001-03-11 H.J. Lu <hjl@lucon.org>
646 * configure.in (RELEASE): New. Default to 1, set by
647 --with-release=XXX. Substitute nfs-utils.spec.
648 * nfs-utils.spec.in (Release): Set to @RELEASE@.
649 * configure: Regenerated.
650 * nfs-utils.spec: Likewise.
652 2001-03-11 H.J. Lu <hjl@lucon.org>
654 * utils/rquotad/rquotad.man: Fix a typo.
656 2001-03-11 H.J. Lu <hjl@lucon.org>
658 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
659 * support/nfs/rpcmisc.c: Likewise.
660 * utils/rquotad/rquota_svc.c: Likewise.
661 * utils/rquotad/rquotad.man: Likewise.
662 * utils/statd/Makefile: Likewise.
663 * utils/statd/rmtcall.c: Likewise.
664 * utils/statd/simulate.c: Likewise.
665 * utils/statd/statd.c: Likewise.
666 * utils/statd/statd.man: Likewise.
668 2001-03-10 H.J. Lu <hjl@lucon.org>
670 * configure.in (VERSION): Set to "0.3.2".
671 * configure: Regenerated.
672 * nfs-utils.spec: Likewise.
674 * README: Updated for 0.3.2.
676 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
678 * utils/rquotad/rquotad.man: Updated for -p.
679 * utils/statd/statd.man: Likewise.
681 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
683 * support/nfs/rpcmisc.c: export makesock()
685 * support/include/rpcmisc.h (makesock): Declared.
687 * utils/rquotad/rquota_svc.c: added longopts, added support for
688 specifying the port to bind to on the command line.
690 * utils/statd/statd.c: ditto, also specify port used for
691 outgoing connections.
692 (do_regist): Removed.
694 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
695 get_socket. Make it extern.
697 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
698 instead of do_regist.
700 * utils/statd/Makefile (LIBS): link with our own libnfs
702 2001-03-09 H.J. Lu <hjl@lucon.org>
704 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
705 * etc/nodist/nfs-client: Likewise.
707 2001-02-26 Chip Salzenberg <chip@valinux.com>
709 * debian/changelog: Version 0.3.1-1.
710 * Mention upstream source and license in copyright file.
711 * Add build-Depends for debhelper and libwrap0-dev.
713 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
715 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
716 * etc/nodist/nfs-client: Likewise.
718 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
720 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
723 2001-02-17 Patrick J. LoPresti <patl@curl.com>
725 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
728 2001-02-14 H.J. Lu <hjl@lucon.org>
730 * utils/statd/rmtcall.c: Include <time.h>.
731 * utils/statd/svc_run.c: Likewise.
733 2001-02-14 H.J. Lu <hjl@lucon.org>
735 * configure.in (VERSION): Set to "0.3.1".
736 * configure: Regenerated.
737 * nfs-utils.spec: Likewise.
739 * README: Updated for 0.3.1.
741 2001-02-14 H.J. Lu <hjl@lucon.org>
743 * support/nfs/rpcmisc.c: Include <time.h>.
745 2001-02-14 Chip Salzenberg <chip@valinux.com>
747 * debian/control: Change priority of nhfsstone package to 'extra'.
749 2001-02-12 Chip Salzenberg <chip@valinux.com>
751 * debian/changelog: Version 0.3-2.
753 2001-02-02 H.J. Lu <hjl@lucon.org>
755 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
757 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
758 out SO_SNDBUF/SO_RCVBUF.
759 (rpc_init): Remove bufsize and remove socksz in calls to
762 * utils/mountd/mountd.c (main): Remove bufsize in calls to
765 2001-01-28 Chip Salzenberg <chip@valinux.com>
767 * debian/changelog: Version 0.3-1.
769 2001-01-25 H.J. Lu <hjl@lucon.org>
771 * configure.in (VERSION): Set to "0.3".
772 * configure: Regenerated.
773 * nfs-utils.spec: Likewise.
775 * README: Updated for 0.3.
777 2001-01-25 H.J. Lu <hjl@lucon.org>
779 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
781 2001-01-20 Chip Salzenberg <chip@valinux.com>
783 * support/include/xio.h (xgetc): Declare to return int.
784 * support/nfs/xio.c (xgetc): Return int.
785 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
786 * utils/statd/statd.c (main): Use int for value of getopt.
787 * debian/changelog: Version 0.2.1-5.
789 2000-12-10 Chip Salzenberg <chip@valinux.com>
791 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
792 program and procedure numbers of kernel lockd's callback. Also,
793 besides the old (and broken) procedure #24, allow #16 per Trond.
795 2000-12-03 Chip Salzenberg <chip@valinux.com>
797 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
798 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
799 * debian/changelog: Version 0.2.1-4.
801 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
803 * utils/mountd/auth.c (auth_authenticate): Log the bad path
806 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
808 * support/nfs/exports.c (getexportent): Check for host name
809 without option, or options without hostname, and print a warning,
810 as this is most likely a typo.
812 2000-11-19 Chip Salzenberg <chip@valinux.com>
814 * debian/control: Add dependency on portmap.
815 * debian/changelog: Version 0.2.1-3.
817 2000-11-10 H.J. Lu <hjl@lucon.org>
819 * nfs-utils.spec.in: Don't use libtool.
820 Add ChangeLog and COPYING to doc.
821 * nfs-utils.spec: Rebuild.
823 2000-11-09 H.J. Lu <hjl@lucon.org>
825 * etc/redhat/nfs.init (start): Back out the last change.
827 2000-11-09 H.J. Lu <hjl@lucon.org>
829 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
830 TCP is not supported by kernel.
832 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
834 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
835 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
837 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
839 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
841 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
842 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
843 callbacks to local lockd.
845 2000-10-18 Scott McDermott <mcdermot@questra.com>
847 * utils/exportfs/exports.man: Updated for CIDR netmask.
849 2000-10-17 Scott McDermott <mcdermot@questra.com>
851 * support/export/client.c (client_init): Support CIDR netmask
854 2000-10-11 H.J. Lu <hjl@lucon.org>
856 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
857 * configure: Rebuilt.
859 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
861 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
862 "/var/lib/nfs/state".
864 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
866 * utils/statd/statd.h (run_mode): New global bitmask of runtime
867 behaviors: fg/bg, logging, etc.
868 * utils/statd/statd.c: New command line options: -V -h -? -d .
869 * utils/statd/statd.man: Update for changes to statd.
871 * utils/statd/log.h (log_init): Remove parameter of function; use
872 global variable "name_p" instead.
873 * utils/statd/log.c: Add support for logging to stderr.
875 * utils/statd/notlist.c: Partially rewrite notify list handling
876 functions. Eliminate run-off-end-of-list bug when calling
877 nlist_insert_timer. Add lots of comments.
879 2000-09-27 H.J. Lu <hjl@lucon.org>
881 * README: Updated for RedHat 7.0.
883 2000-09-27 H.J. Lu <hjl@lucon.org>
885 * nfs-utils.spec: Rebuild.
887 2000-09-27 H.J. Lu <hjl@lucon.org>
889 * README: Updated for 0.2.1.
891 2000-09-27 H.J. Lu <hjl@lucon.org>
893 * nfs-utils.spec.in: Updated to use rpm macros and support
896 2000-09-25 H.J. Lu <hjl@lucon.org>
898 * configure.in (VERSION): Set to "0.2.1".
899 * configure: Regenerated.
900 * nfs-utils.spec: Updated.
902 2000-09-25 H.J. Lu <hjl@lucon.org>
904 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
905 non-NULL hostent is always returned.
907 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
909 * etc/redhat/nfslock.init: don't kill lockd processes that do not
910 have an executable (i.e. kernel threads)
912 2000-09-01 H.J. Lu <hjl@lucon.org>
914 * README: Updated for 0.2.
916 2000-09-01 Jay Weber <jweber@valinux.com>
918 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
919 supporting version 3 of nfs if available, else it will fall back to
920 version 2 support only.
922 2000-08-30 H.J. Lu <hjl@lucon.org>
924 * configure.in (VERSION): Set to "0.2".
925 * configure: Regenerated.
926 * nfs-utils.spec: Updated.
928 2000-08-25 H.J. Lu <hjl@lucon.org>
930 * support/misc/tcpwrapper.c (logit): Modify the log output.
932 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
934 * utils/rquotad/rquotad.man, utils/statd/statd.man,
935 utils/mountd/mountd.man: updated
937 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
938 * utils/rquotad/Makefile: fix comment
940 * support/misc/tcpwrapper.c (logit): added comment about waiting
941 for the children after fork()
943 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
944 zombies behind (from logit()'s fork)
945 * utils/rquotad/rquota_svc.c (main): ditto
946 * utils/statd/statd.c (main): ditto
948 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
949 to check_default instead of 0, for prognum
951 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
952 to check_default instead of 0, for prognum
954 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
955 HAVE_TCP_WRAPPER is defined.
956 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
957 defined. Reject an RPC call if check_default () fails.
959 2000-08-25 H.J. Lu <hjl@lucon.org>
961 * support/include/tcpwrapper.h: New for the tcp wrapper
963 * support/misc/Makefile: Likewise.
964 * support/misc/from_local.c: Likewise.
965 * support/misc/tcpwrapper.c: Likewise.
967 * aclocal.m4 (AC_TCP_WRAPPER): New.
968 * configure.in: Use it. Substitute LIBWRAP.
969 * configure: Rebuilt.
971 * config.mk.in (LIBNSL): New.
974 * support/Makefile (SUBDIRS): Add misc.
976 * support/lib/Makefile (LIBS): Add libmisc.a.
978 * utils/rquotad/Makefile (LIBS): Add
980 -lmisc $(LIBWRAP) $(LIBNSL)
982 * utils/statd/Makefile (LIBS): Likewise.
984 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
985 HAVE_TCP_WRAPPER is defined.
986 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
987 defined. Reject an RPC call if check_default () fails.
989 * utils/statd/statd.c: Include "tcpwrapper.h" if
990 HAVE_TCP_WRAPPER is defined.
991 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
992 check_default () before calling sm_prog_1 (). Define it as
993 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
995 2000-08-25 Chip Salzenberg <chip@valinux.com>
997 * debian/*: Complete Debian build support.
998 * etc/debian/*: Remove.
1000 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1002 * support/export/client.c(client_check): removed the "dot+1" as a
1003 ypdomain argument to innetgr as this is entirely bogus.
1004 It should always be NULL.
1006 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1008 * support/export/xtab.c(xtab_read): introduce new mode for
1009 reading xtab. i.e. a list of exports that might be known to the
1010 kernel, or might not. These are flagged as m_exported == -1
1011 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1012 value "2" for xtab, meaning don't trust this too much.
1013 * support/include/exportfs.h(struct mexport): changed m_exported
1014 from one bit to an int so that it can hold new value
1015 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1016 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1017 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1020 * support/nfs/xio.c(xflock): added O_CREAT when getting
1021 a write lock so that missing files aren't fatal.
1023 * etc/debian/nfs-common: new file from "potato"
1024 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1026 2000-08-09 H.J. Lu <hjl@lucon.org>
1028 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1029 startup to ensure all existing clients work fine.
1031 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1032 to xtab_read () for reading _PATH_XTAB.
1034 2000-08-02 H.J. Lu <hjl@lucon.org>
1036 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1037 avoid the reverse name lookup.
1039 2000-07-04 H.J. Lu <hjl@lucon.org>
1041 * utils/statd/log.c: Include <stdlib.h> for exit ().
1043 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1046 2000-07-04 H.J. Lu <hjl@lucon.org>
1048 * configure.in (VERSION): Set to "0.1.9.1".
1049 * configure: Regenerated.
1050 * nfs-utils.spec: Updated.
1054 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1056 * support/export/hostname.c (hostent_dup): Handle the NULL
1059 2000-07-03 H.J. Lu <hjl@lucon.org>
1061 * README: Update the util-linux requirement.
1063 2000-07-03 H.J. Lu <hjl@lucon.org>
1065 * configure.in (VERSION): Set to "0.1.9".
1066 * configure: Regenerated.
1067 * nfs-utils.spec: Updated.
1071 2000-07-03 H.J. Lu <hjl@lucon.org>
1073 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1074 stop to ensure all clients can still access the server
1075 before it is shutdown.
1077 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1079 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1080 calls with format string.
1082 2000-06-28 Chip Salzenberg <chip@valinux.com>
1084 * utils/statd/log.c (log): Call syslog with format string.
1086 2000-06-27 H.J. Lu <hjl@lucon.org>
1088 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1089 instead of OPEN_MAX.
1091 2000-06-27 H.J. Lu <hjl@lucon.org>
1095 2000-06-27 H.J. Lu <hjl@lucon.org>
1097 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1098 startup to ensure all existing clients are exported.
1100 * configure.in (VERSION): Set to "0.1.8.2".
1101 * configure: Regenerated.
1102 * nfs-utils.spec: Updated.
1104 2000-06-06 H.J. Lu <hjl@lucon.org>
1106 * configure.in (VERSION): Set to "0.1.8.1".
1107 * configure: Regenerated.
1108 * nfs-utils.spec: Updated.
1110 2000-06-06 H.J. Lu <hjl@lucon.org>
1112 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1113 to "struct sockaddr_in *" for glibc 2.2.
1114 (mount_umnt_1_svc): Likewise.
1115 (mount_umntall_1_svc): Likewise.
1116 (mount_export_1_svc): Likewise.
1117 (mount_exportall_1_svc): Likewise.
1118 (mount_pathconf_2_svc): Likewise.
1119 (get_rootfh): Likewise.
1121 2000-06-04 H.J. Lu <hjl@lucon.org>
1123 * etc/redhat/nfs.init: Fix a typo in comment.
1125 2000-05-31 H.J. Lu <hjl@lucon.org>
1127 * configure.in (VERSION): Set to "0.1.8".
1128 * configure: Regenerated.
1129 * nfs-utils.spec: Updated.
1133 2000-05-31 H.J. Lu <hjl@lucon.org>
1135 * configure.in (VERSION): Set to "0.1.7.5".
1136 * configure: Regenerated.
1137 * nfs-utils.spec: Updated.
1139 * support/include/nfslib.h (exportent): Add a new field,
1140 r_count, to count the number of mounts from a client.
1141 (getrmtabent): Take a new argument for position in file.
1142 (putrmtabent): Likewise.
1143 (fgetrmtabent): Likewise.
1144 (fputrmtabent): Likewise.
1145 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1146 for position in file.
1147 (fgetrmtabent): Likewise.
1148 (putrmtabent): Likewise.
1149 (fputrmtabent): Likewise.
1151 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1154 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1155 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1156 and fputrmtabent ().
1157 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1158 (mountlist_del): Likewise.
1159 (mountlist_del_all): Likewise.
1160 (mountlist_list): Likewise.
1162 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1163 for the existing entry and initialize "r_count" to 1.
1164 (mountlist_del): Decrement "r_count".
1166 2000-05-18 H.J. Lu <hjl@lucon.org>
1168 * configure.in (VERSION): Set to "0.1.7.4".
1169 * configure: Regenerated.
1170 * nfs-utils.spec: Updated.
1172 2000-05-18 H.J. Lu <hjl@lucon.org>
1174 * etc/redhat/nfs.init (restart): Just do stop and start.
1176 2000-05-09 Jay Weber <jweber@valinux.com>
1178 * utils/rquotad/hasquota.c: added support for ext3 recognition
1180 * utils/rquotad/mntent.h: Likewise.
1182 2000-05-01 H.J. Lu <hjl@lucon.org>
1184 * configure.in (VERSION): Set to "0.1.7.3".
1185 * configure: Regenerated.
1186 * nfs-utils.spec: Updated.
1188 2000-05-01 H.J. Lu <hjl@lucon.org>
1190 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1191 mounting poins in /etc/fstab.
1193 2000-05-01 H.J. Lu <hjl@lucon.org>
1195 * configure.in (VERSION): Set to "0.1.7.2".
1196 * configure: Regenerated.
1197 * nfs-utils.spec: Updated.
1199 2000-05-01 H.J. Lu <hjl@lucon.org>
1201 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1202 to check for the mounting point.
1204 2000-04-29 Chip Salzenberg <chip@valinux.com>
1205 Neil Brown <neilb@cse.unsw.edu.au>
1207 * Really re-use RPC ports.
1208 (Fixes earlier patch. Sorry, Neil.)
1210 2000-04-26 H.J. Lu <hjl@lucon.org>
1212 * configure.in (VERSION): Set to "0.1.7.1".
1213 * configure: Regenerated.
1214 * nfs-utils.spec: Updated.
1216 2000-04-26 H.J. Lu <hjl@lucon.org>
1218 * etc/redhat/nfslock.init: Check if lockd exits before killing
1221 2000-04-25 H.J. Lu <hjl@lucon.org>
1223 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1225 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1227 * support/nfs/exports.c (parsesquash): Correctly set the
1230 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1232 * support/include/nfs/nfs.h: Removed knowledge of internals of
1233 kernel filehandles (which can change) and defined nfs_fh_size
1234 which has variable size
1236 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1237 get variable sized file handles, and change getfh{,old} to
1240 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1243 * tools/Makefile, tools/nlmtest/nlmtest.c
1244 nlmtest.c depended on internel format of file handles, so now
1248 2000-03-12 Chip Salzenberg <chip@valinux.com>
1249 Neil Brown <neilb@cse.unsw.edu.au>
1251 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1253 2000-03-13 H.J. Lu <hjl@lucon.org>
1255 * etc/redhat/nfsd.init: Updated.
1257 * etc/redhat/nfslock.init: Updated.
1259 * nfs-utils.spec.in: Updated.
1261 * configure.in (VERSION): Set to "0.1.7".
1262 * configure: Regenerated.
1263 * nfs-utils.spec: Updated.
1267 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1269 * utils/exportfs/exportfs.c (dump): Included printing of
1270 nohide, no_subtree_check, and insecure_locks
1272 2000-02-26 Chip Salzenberg <chip@valinux.com>
1274 * config.mk.in (INSTALLSUID): Strip ("-s").
1275 (INSTALLSCRIPT): Define.
1276 * utils/nhfsstone/Makefile: Use it.
1278 2000-02-26 Chip Salzenberg <chip@valinux.com>
1280 * utils/lockd/lockd.man: Create.
1281 * utils/lockd/Makefile: Install it.
1282 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1283 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1284 * utils/nhfsstone/Makefile: Install the helper scripts and
1286 * utils/exportfs/exports.man: Fix typo.
1288 2000-02-26 Chip Salzenberg <chip@valinux.com>
1290 * support/nfs/xio.c (xungetc): Decrement line number when
1291 character to unget is newline. Make first parameter int, so
1292 it can distinguish EOF from \377.
1293 * support/include/xio.h (xungetc): Adjust prototype.
1295 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1297 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1298 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1299 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1301 This is for supporting a new option introduced in 2.3.42
1303 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1305 * COPYING: Added. GPL.
1307 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1309 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1310 to get the block size.
1312 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1314 * nfs-utils.spec.in: Update ftp site.
1316 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1318 * README: Update hostnames.
1320 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1322 * configure.in (VERSION): Set to "0.1.6".
1323 * configure: Regenerated.
1324 * nfs-utils.spec: Updated.
1328 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1330 * utils/mountd/auth.c (auth_authenticate_internal): Call
1331 xstrdup for hostname before passing it to gethostbyname.
1333 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1336 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1338 * README: Update the mailing list address.
1340 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1342 * configure.in (VERSION): Set to "0.1.5".
1343 * configure: Regenerated.
1344 * nfs-utils.spec: Updated.
1348 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1350 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1353 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1355 * configure.in (VERSION): Set to "0.1.4".
1356 * configure: Regenerated.
1357 * nfs-utils.spec: Updated.
1361 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1363 * nfs-utils.spec.in: New file.
1365 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1367 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1369 1999-12-04 Chip Salzenberg <chip@valinux.com>
1371 * config.mk.in: Use $(CC) as set by configure.
1373 1999-12-04 Chip Salzenberg <chip@valinux.com>
1375 * rules.mk: Call $(MAKE) with $(MFLAGS).
1377 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1379 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1380 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1382 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1384 * nfs-utils.spec (Version): Set to 0.1.3.
1386 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1387 * configure: Regenerated.
1391 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1393 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1394 (_PATH_DEV_DSK): Likewise.
1395 (getquotainfo): Match the mounting point from /etc/mtab
1396 instead of calling nfsmount_to_devname ().
1398 1999-11-24 Chip Salzenberg <chip@valinux.com>
1400 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1401 to the new port 24 as well as the historical port 100021.
1403 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1405 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1406 stopping nfsd to stop spurious ESTALE on server shutdown.
1408 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1410 * support/nfs/exports.c (parseopts): make copy of opt string
1411 before 'nul'ing out commas so that
1413 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1415 applies both options to both exports.
1417 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1419 * README: Fix a few typos.
1421 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1423 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1424 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1425 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1426 (unsigned_dec): Likewise.
1427 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1428 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1430 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1432 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1433 (unsigned_dec): Likewise.
1434 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1435 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1436 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1438 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1440 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1441 * support/nfs/exports.c: added {no_,}subtree_check and changed
1443 * utils/exportfs/exports.man: added no_subtree_check and nohide
1444 and removed irrelevant stuff from unfsd.
1445 * support/export/rmtab.c: rmtab_read didn't quite do the right
1446 thing if a pathname from rmtab was a subdirectory of an export-point
1448 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1450 * README: Updated ftp site.
1452 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1454 * nfs-utils.spec (Version): Set to 0.1.2.
1456 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1457 * configure: Regenerated.
1461 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1463 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1464 (auth_authenticate_internal): Check for NULL return on forward
1466 (auth_authenticate): Handle "no_forward_dns".
1468 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1470 * Version 0.1.1 released.
1472 * nfs-utils.spec (Version): Set to 0.1.1.
1474 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1475 * configure: Regenerated.
1479 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1481 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1483 (Provides): Likewise.
1485 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1487 * Initial version 0.1 released.
1489 * configure.in (VERSION): Set to "nfs-utils 0.1".
1490 * configure: Regenerated.
1492 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1494 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1496 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1497 kernel only if the entry is exported to kernel.
1498 (unexportfs): Likewise.
1500 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1502 1/ utils/mountd/rmtab.c::mountlist_list
1504 This routine stats the rmtab file to see if it has changed. It
1505 if has, it cleans up it's old copy of the data. But it still
1506 always re-read the file, thus returning multiple copies of the
1507 data on consecutive calls without intervening changes.
1508 "Showmount -a" didn't show this as it appears to sort/unique the
1509 data, but 'strace showmount -a' showed that the size of the
1510 datagram that it received grew.
1512 I moved the getrmtabent loop inside the mtime test.
1514 2/ utils/exportfs/exportfs.c
1516 Many routines used the m_path field of m_export instead of
1518 According to the comment in nfslib.h, m_path should only
1519 be used when processing a mount request (i.e. in mountd)
1520 where the mountpoint may be a subdirectory of the export point.
1522 I changed all occurances of m_path to e_path
1525 3/ utils/exportfs/exportfs.c:main
1527 extra arguments are not meaningful with -a or -r, but
1528 exportfs accepted them and then ignored the -a/-r, expect that
1529 -r would still unexport everything first.
1531 I generate an error if there are extra args and f_all
1533 4/ utils/exportfs/exportfs.c:main
1534 extract dump out as a special case.
1536 5/ utils/exportfs/exportfs.c
1537 made f_reexport a local variable.
1540 6/ utils/exportfs/exportfs.c:main,exportall
1542 support/export/rmtab.c
1543 only mayexport on newly created entries, don't set xtabent at all
1545 7/ support/include/nfslib.h
1547 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1549 8/ support/export/xtab.c
1551 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1555 9/ support/export/xtab.c
1557 xtab_mount_read now sets m_exported, and NOT
1558 xtabent and mayexport
1560 removed the append arguement from xtab_write as it was
1563 added is_export flag to xtab_write similar to xtab_read
1564 if is_export, only write entries with m_xtabent or m_addxtab
1565 if !is_export, only write entries with m_exported
1567 10/ support/export/export.c::export_allowed_internal
1569 added test for exp->m_mayexport, as the export tree
1570 may have entries that are no longer allowed to be exported,
1571 and so shouldn't caused deduced exported by rmtab_read
1573 11/ utils/exportfs/exportfs.c::main
1574 error checking of flags.
1576 12/ utils/exportfs/exportfs.c
1578 total rewrite of export and unexport logic.
1580 - build an exportslist of valid exports, based on
1581 current etab file and arguments,
1582 - read rmtab to instantiate relevant wild card entries
1583 - read etab to find out what is currently exported
1584 - synchronise intention with reality
1585 - write out etab and xtab
1588 discard the m_addxtab flag
1589 add m_changed flag so we know what to report in exportfs
1591 14/ utils/mountd/auth.c:auth_authenticate
1593 the value returned by gethostbyaddr was trusted.
1595 It now follows this with a call to gethostbyname
1596 and checks that the address is in the list.
1598 15/ support/export/nfsctl.c::cltsetup,expsetup
1600 force client names to lowercase as kernel is
1603 16/ quietened a few compiler warnings
1605 17/ support/export/client:client_lookup
1607 look for pre-existing client with same name before creating
1610 18/ support/include/exportfs.h
1612 The ordering of the MCL_* enum was:
1613 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1615 I moved ANONYMOUS to the end.
1617 The ordering is significant when an export entry is being searched for to
1618 match a given address. There are two problems with ANONYMOUS being first.
1620 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1621 then the ro case will always be found first and the privileged hosts won't get
1623 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1624 export entry for the specific host, and writes it to xtab.
1625 When another request comes from the same host, the ANONYMOUS entry is found again,
1626 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1627 again. If causes bloat in xtab.
1629 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1631 19/ utils/exportfs/exportfs.man
1632 many updates to the man page to reflect changes to the code
1634 -----------------------
1640 - allow exportfs to modify rmtab file
1641 - make sure kernel never gets two clients with same IP address
1642 - possible kernel should reject
1643 - needs to be some way to lookup client in kernel by IP address
1644 - maybe get kernel to do case-insensitive comparisons on client names
1645 - remove unused clients from kernel
1647 - change etab to xtab and xtab to xtab.active
1649 - timestamp and/or statd-stamp in rmtab for removing old entries.
1651 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1653 * linux-nfs: New directory.
1654 * linux-nfs/ChangeLog: Moved from ..
1655 * linux-nfs/INSTALL: Likewise.
1656 * linux-nfs/KNOWNBUGS: Likewise.
1657 * linux-nfs/NEW: Likewise.
1658 * linux-nfs/README: Likewise.
1659 * linux-nfs/THANKS: Likewise.
1660 * linux-nfs/TODO: Likewise.
1662 * Starting from knfsd 1.4.7.