1 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
3 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
4 set number of threads by writing to there. This means it will
5 still work when the syscall interface goes away in 2.7.
7 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
8 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
10 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
11 so as to only export the wildcard exports that were asked for.
12 * support/export/export.c(export_allowed): changed to return the
13 nfs_export rather than a "struct exportent", as m_changed is
15 * support/export/rmtab.c(rmtab_read): modified to deal with
16 interface change for export_allowed(), and enhanced to preserve
17 m_changed flag when a wild-card export causes the creation of
18 a non-wildcard export.
20 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
21 Steve Dickson <SteveD@redhat.com>
23 * utils/mountd/mountd.man: Add valid kinds of debugging.
24 * utils/mountd/mountd.c(main): ignore SIGPIPE
25 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
26 we don't get warnings about unavailable stats that weren't asked
29 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
31 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
32 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
33 'forever', so things disappear out of the cache rather than just
36 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
38 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
41 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
43 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
44 etc/redhat/nfs.init: when checking if V3 is supported, make sure
45 nfs server 'knows' about 127.0.0.1 first.
47 2003-06-10 Chip Salzenberg <chip@pobox.com>
49 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
50 * debian/changelog: Version 1.0.3-2.
52 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
53 NeilBrown <neilb@cse.unsw.edu.au>
55 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
56 long long to avoid overflow when printing stats.
58 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
60 * support/export/export.c, support/include/nfslib.h,
61 support/nfs/export.c, utils/exportfs/exportfs.c,
62 utils/mountd/mountd.c: new export option "mountpoint"
63 If no path is given, then the export point must be a
64 mount point, or it won't be exported. If a path is
65 given (e.g. mountpoint=/path) then that path must be
66 a mountpoint or the exportpoint won't be exported.
67 * utils/exportfs/exportfs.man: document mountpoint option.
68 * support/misc/mountpoint.c: New file with is_mountpoint()
69 to determine if something is a mountpoint.
71 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
73 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
74 argument as we might not be getting the filehandle for the
76 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
78 * utils/mountd/mountd.c(get_rootfh): check export point and
79 requested directory are on the same filesystem, and complain if
82 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
84 * utils/mountd/auth.c(auth_authenticate_internal): make sure
85 portnumber is still checked when using new cache lookup.
87 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
89 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
90 Don't actually talk to kernel when new cache is in effect, except
92 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
93 * support/export/xtab.c: Only rename new xtab into place if it has
94 changed, thus preserving modify date for exportfs to use when
96 * support/nfs/cacheio.c: Add cache_flush
97 * support/export/xtab.c: Only rename new xtab into place if it has
98 changed, thus preserving modify date for exportfs to use when
101 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
103 * support/export/client.c: Add client_compose, client_member to
104 handle new composite client names
105 * support/include/exportfs.h: Declare above functions.
106 * utils/mountd/auth.c: use client_compose to determine calling
107 client if new cache is being used.
108 * utils/mountd/auth.c: call cache_export to export a filesystem if
109 new_cache, check if new cache is used, and call my_svc_run instead
111 * utils/mountd/svc_run.c: new file defining my_svc_run
112 * utils/mountd/cache.c: new file for handling cache upcalls.
113 * support/nfs/cacheio.c(check_new_cache): new function to check if
114 new cache should be used.
117 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
119 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
120 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
121 * utils/exportfs/exportfs.c(dump): ditto
123 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
125 * support/export/hostname.c(get_reliable_hostbyaddr): new function
126 to get host name from address with full checking of authenticity.
127 * support/include/misc.h: declare above function
128 * utils/mountd/auth.c(auth_authenticate_internal): remove all
129 logic for authenticating address.
130 * utils/mountd/auth.c(auth_authenticate): call new
131 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
134 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
136 * tools/rpcgen/rpc_main.c(find_cpp): removed
137 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
138 then try hard-coded paths.
140 2003-03-26 Chip Salzenberg <chip@pobox.com>
142 * debian/changelog: Version 1.0.3-1.
144 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
146 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
147 "const char*", not "char*".
149 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
151 * configure.in (VERSION): Set to "1.0.3".
152 * nfs-utils.spec: Likewise.
153 * configure: Regenerated.
155 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
157 * support/nfs/cacheio.c: New File - support for read/writing
158 to export cache in /proc/rpc/*/channel
159 * support/nfs/Makefile: compile cacheio.c
160 * support/include/nfslib.h: declare cacheio.c functions
161 * support/nfs/nfsexport.c: export and unexport through
162 /proc/rpc/*/channel if possible, as old syscall interface
163 may not survive into 2.6 on all architectures.
165 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
166 Ben Leslie <benno@sesgroup.net>
168 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
169 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
170 former would incorectly ignore defport if the application
171 explicitly set __rpcfdtype. The later is sufficient to avoid the
172 special handling in the case where stdin is an internet socket.
174 * utils/mountd/mountd.c(main): Add 'n' to option list in
175 getopt_long as this is a short form of --no-tcp which want being
178 2003-02-12 Chip Salzenberg <chip@pobox.com>
180 * debian/changelog: Version 1.0.2-2.
182 2002-11-27 Chip Salzenberg <chip@pobox.com>
184 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
185 overflow bug. Reformat per rest of source file.
187 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
189 * utils/exportfs/exports.man: Correct notes about whether the wild
190 card characters match a period. They do.
192 2002-10-15 Juan Gomez <juang@us.ibm.com>
194 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
196 (mountlist_add): Call slink_safe_rename instead of rename.
198 2002-10-11 H.J. Lu <hjl@lucon.org>
200 * support/include/exportfs.h (export_errno): New.
202 * support/nfs/exports.c: Include <errno.h>.
204 (getexportent): Set export_errno to EINVAL for bad option.
205 (parseopts): Likewise.
206 Report the location of the default sync/async option.
208 * utils/exportfs/exportfs.c (main): Initialize export_errno to
209 0. Return export_errno.
211 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
212 NeilBrown <neilb@cse.unsw.edu.au>
214 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
215 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
217 2002-09-16 Chip Salzenberg <chip@pobox.com>
219 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
221 2002-09-15 Chip Salzenberg <chip@pobox.com>
223 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
224 socket, as occurs when run from sshd.
225 * debian/changelog: Version 1.0.2-1.
227 2002-09-12 H.J. Lu <hjl@lucon.org>
229 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
232 2002-09-12 H.J. Lu <hjl@lucon.org>
234 * configure.in: Remove checking svctcp_socket and svcudp_socket.
235 * configure: Regenerated.
237 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
238 (HAVE_SVCUDP_SOCKET): Removed.
240 * support/include/nfslib.h: Undo the last change.
242 2002-09-12 H.J. Lu <hjl@lucon.org>
244 * support/include/nfslib.h (svctcp_socket): Protect it with
246 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
248 2002-09-12 H.J. Lu <hjl@lucon.org>
250 * configure.in (VERSION): Set to "1.0.2".
251 * configure: Regenerated.
252 * nfs-utils.spec: Likewise.
254 2002-09-12 H.J. Lu <hjl@lucon.org>
256 * configure.in: Check svctcp_socket and svcudp_socket.
257 * configure: Regenerated.
259 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
260 (HAVE_SVCUDP_SOCKET): New.
262 * support/include/nfslib.h (svctcp_socket): New.
263 (svcudp_socket): New.
265 * support/nfs/Makefile (OBJS): Add svc_socket.o.
267 * support/nfs/svc_socket.c: New.
269 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
270 svcudp_socket if port is unspecified.
272 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
274 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
275 (killer): New. Signal handler to unregister.
276 (main): Use killer. Call svcudp_socket to get the default
279 2002-09-02 Juan Gomez <juang@us.ibm.com>
280 NeilBrown <neilb@cse.unsw.edu.au>
282 Add -N option to statd to run in notify-only mode.
284 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
285 * utils/statd/statd.man: document -N
286 * utils/statd/statd.c: enabled -N, largely exists but needed to be
287 uncommented and completed
289 2002-09-02 Juan Gomez <juang@us.ibm.com>
290 NeilBrown <neilb@cse.unsw.edu.au>
292 statd to have " -P directory" arg to use that directory instead
293 of /var/lib/nfs. This is useful for fail-over clusters.
295 * utils/statd/statd.h: define SM_DIR etc as var, not const.
296 * utils/statd/statd.c: define "-P" option to set SM_*
298 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
300 * utils/statd/notify.c: ditto.
301 * utils/statd/statd.man: document -P option.
303 2002-08-26 Chip Salzenberg <chip@pobox.com>
305 * utils/nfsd/nfsd.man: Fix typo.
306 * debian/changelog: Version 1.0.1-1.
308 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
310 * let parseopts know if /etc/exports was being read or not,
311 and have it only print "no sync or async" warning in that case.
313 2002-05-06 Tom McNeal <trmcneal@attbi.com>
314 NeilBrown <neilb@cse.unsw.edu.au>
316 * utils/nfsstat/nfsstat.c: Handle differing format for
317 /proc/net/rpc/nfsd between pre and post 2.4.0
319 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
320 James Pearson <james-p@moving-picture.com>
322 * support/nfs/rmtab.c(fendrmtabent): sync changes to
323 storage before returning, as this is critical state
325 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
326 H.J. Lu <hjl@lucon.org>
328 * etc/redhat/nfs: New.
330 2002-04-08 H.J. Lu <hjl@lucon.org>
332 * etc/redhat/nfs.init: Updated.
334 * nfs-utils.spec.in: Updated.
335 * nfs-utils.spec: Regenerated.
337 * utils/mountd/mountd.c (longopts): Fix a typo.
339 * utils/mountd/mountd.man: Updated.
341 2002-04-07 H.J. Lu <hjl@lucon.org>
343 * etc/redhat/nfslock.init (restart): Just do stop and start.
345 * etc/redhat/nfs.init: Fix a typo.
347 2002-04-07 H.J. Lu <hjl@lucon.org>
349 * configure.in (VERSION): Set to "1.0.1".
350 * configure: Regenerated.
351 * nfs-utils.spec: Likewise.
353 * README: Updated for 1.0.1.
355 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
356 H.J. Lu <hjl@lucon.org>
358 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
360 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
361 NeilBrown <neilb@cse.unsw.edu.au>
363 Add support for fsid=nn export option so that device
364 numbers don't go in filehandles.
365 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
366 is set, pass the fsid in-place of the device number
367 * support/nfs/exports.c: parse and print fsid= option.
368 Also check if efname has been set, and use "command line"
369 instead in error messages.
370 Also, use strtol instead of atoi for anon[ug]id= so that
371 bad numbers cause errors.
373 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
374 NeilBrown <neilb@cse.unsw.edu.au>
376 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
377 flag so that "sync" becomes the default.
378 Check that either "sync" or "async" is given as an option
379 and warn if neither are present
380 * utils/exportfs/exports.man: change documentation for "sync"
381 to be documentation for "async".
382 * utils/exportfs/exportfs.man: note that "sync" is the default
386 2002-01-02 Chip Salzenberg <chip@pobox.com>
388 * support/export/nfsctl.c (expsetup): Don't export entries that
389 specify id mappings not supported by the kernel. No extant kernel
390 supports any significant mapping, only 'identity' (i.e. none).
391 When other mappings are supported, this code will need changing.
392 * debian/changelog: Version 1.0-2.
394 2001-12-26 Chip Salzenberg <chip@pobox.com>
396 * nfs-utils.spec (Version): Set to "1.0".
397 * configure.in (VERSION): Likewise.
398 * configure: Regenerated.
400 * debian/changelog: Version 1.0-1.
402 * utils/exportfs/exports.man: Emphasize the need for options to
403 immediately follow client names. Explain that wildcards don't
404 usually work on addresses, but may work when reverse DNS fails.
405 Comment out a leftover TP that was TPing our indentation.
406 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
407 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
408 * debian/changelog: Version 0.3.3-6.
410 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
412 * support/export/client.c(client_lookup): If a host has multiple
413 IP addresses, then we must always use the result of a
414 gethostbyname, not that of gethostbyaddr for exporting
416 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
418 * support/export/client.c (client_lookup): use strcasecmp when
420 * support/nfs/export.c (getexportent): add fromkernel arg and use
421 different defaults as kernels prior to 2.4.11 assume different
422 defaults in /proc/fs/nfs/exports
423 * support/include/nfslib.h, support/export/export.c,
424 support/export/xtab.c: support extra "fromkernel" arg for
427 2001-12-13 Chip Salzenberg <chip@pobox.com>
429 * debian/changelog: Version 0.3.3-5.
431 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
433 * support/nfs/xio.c (xskip): Call `xungetc' instead of
434 `ungetc' to keep x_line more properly.
436 2001-11-26 Chip Salzenberg <chip@pobox.com>
438 * utils/showmount/showmount.c (main): Don't assume that strings
439 starting with digits are IP addresses.
440 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
441 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
442 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
443 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
444 man pages: We check host names *and* addresses with tcpwrappers.
445 * debian/changelog: Version 0.3.3-4.
447 2001-11-21 Chip Salzenberg <chip@pobox.com>
449 * support/nfs/clients.c (cfname): Added: current clients file name.
450 (setnfsclntent): Set it.
451 ({get,end}nfsclntent, syntaxerr): Use it.
452 * support/nfs/exports.c (efname): Added: current exports file name.
453 (setnfsexportent): Set it.
454 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
455 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
456 * debian/changelog: Version 0.3.3-3.
458 2001-10-11 Chip Salzenberg <chip@pobox.com>
460 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
461 * debian/changelog: Version 0.3.3-2.
463 2001-10-08 Chip Salzenberg <chip@pobox.com>
465 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
466 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
467 * utils/mountd/mountd.man: Update paths to /var/lib.
468 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
470 2001-10-06 Preston Brown <pbrown@redhat.com>
472 * utils/nfsstat/nfsstat.man: Updated.
474 2001-09-24 H.J. Lu <hjl@lucon.org>
476 * configure.in (VERSION): Set to "0.3.3".
477 * configure: Regenerated.
478 * nfs-utils.spec: Likewise.
480 * README: Updated for 0.3.3.
482 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
484 Arrange that "exportfs -au" never does DNS lookup:
486 * support/export/client.c (client_lookup) : add "canonical"
487 flag which says that the hostname is known to be canonical, so
490 * support/export/export.c (export_create) : add "canonical"
491 flag to be passed down to client_lookup
492 * support/export/export.c (export_lookup) : Likewise
494 * support/export/xtab.c (xtab_read) : pass appropriate
495 "canonical" flag to export_lookup and export_create:
496 set if reading list of filesystems currently exports
499 * support/export/export.c (export_read) : pass 0 as
500 "canonical" flag to export_lookup and export_create
501 * support/export/rmtab.s (rmtab_read) : Likewise
503 * support/include/exportfs.h : redeclare various routines
504 to have "canonical" flag
506 * utils/exportfs/exportfs.c (main) : redo logic for
507 "-au" to read in what is currently exported, but never even
508 look at what "should" be exported.
510 * utils/exportfs/exportfs.c (unexportall) : remove this
511 routine. Functionality is completely included in
514 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
515 flag to zero in calls to export_lookup and export_create.
518 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
519 Anne Milicia <milicia@missioncriticallinux.com>
521 * support/export/client.c (client_lookup) call gethostbyadd
522 to make sure that we have a canonical hostname, even for
524 * utils/exportfs/exportfs.c (exportfs) Likewise
526 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
528 * support/nfs/exports.c (putexportent): \octal quote any spaces
530 * support/nfs/xio.c (xgettok): recognise double-quote and
531 \octal quoting in path names
532 * utils/exportfs/exports.man: document quoting conventions
535 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
537 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
538 change from 2000-08-02: It causes problems if someone exports
539 to both a hostname and IP addresses. nfs-utils must be
540 consistant about the canonical name that it chooses.
542 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
543 H.J. Lu <hjl@lucon.org>
545 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
547 * utils/statd/statd.c (longopts): Add "name".
548 (usage): Add "-n/--name".
549 (main): Set MY_NAME with "-n/--name".
551 * utils/statd/state.c (change_state): Set MY_NAME only if it
554 * utils/statd/statd.man: Updated for "-n/--name".
556 2001-07-26 H.J. Lu <hjl@lucon.org>
558 * nfs-utils.spec (Release): Set to 8.
560 2001-07-25 H.J. Lu <hjl@lucon.org>
562 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
565 2001-06-27 H.J. Lu <hjl@lucon.org>
567 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
569 2001-06-27 H.J. Lu <hjl@lucon.org>
571 * utils/rquotad/rquota_server.c: Don't call statfs () for
572 the block size. Use BLOCK_SIZE instead.
574 2001-06-27 H.J. Lu <hjl@lucon.org>
576 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
577 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
579 * configure.in (enable_nfsv3): Set to yes by default.
580 (--enable-rquotad): Added
581 (AC_PROG_CXX): Removed.
582 (AC_OUTPUT): Add utils/Makefile.
583 (CC_FOR_BUILD): Renamed from BUILD_CC.
584 * configure: Regenerated.
586 * utils/Makefile: Removed.
588 * utils/Makefile.in: New.
590 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
592 (CC_FOR_BUILD): Renamed from BUILD_CC.
593 * nfs-utils.spec: Regenerated.
595 2001-06-15 Chip Salzenberg <chip@debian.org>
597 * debian/changelog: Version 0.3.2-2.
598 * debian/*.init: Minor fixes.
600 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
602 * etc/nodist/nfs-server: Fixed a bug where the script would
603 disable mounts from NFSv3 clients if NFSv3 is present.
605 2001-06-05 H.J. Lu <hjl@lucon.org>
607 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
608 (main): Support --descriptors/-o to set the limit of the number
609 of open file descriptors.
612 * utils/mountd/mountd.man: Updated for --descriptors/-o.
614 2001-06-04 H.J. Lu <hjl@lucon.org>
616 * nfs-utils.spec (Release): Set to 6.
618 2001-05-28 H.J. Lu <hjl@lucon.org>
620 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
621 * utils/mountd/mountd.c (main): Likewise.
622 * utils/nfsd/nfsd.c (main): Likewise.
623 * utils/rquotad/rquota_svc.c (main): Likewise.
625 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
627 * support/export/client.c (client_check): Check IP address
630 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
632 * support/export/client.c (client_gettype): Treat `*' as
635 2001-04-22 H.J. Lu <hjl@lucon.org>
637 * nfs-utils.spec.in: Fix a typo.
638 * nfs-utils.spec: Regenerated.
640 2001-04-21 H.J. Lu <hjl@lucon.org>
642 * nfs-utils.spec.in: Fix cross build.
643 * nfs-utils.spec: Regenerated.
646 2001-04-18 H.J. Lu <hjl@lucon.org>
648 * nfs-utils.spec.in: Support cross build.
649 * nfs-utils.spec: Regenerated.
655 * config.mk.in (BUILD_CC): New.
656 (CC): Set to $(BUILD_CC) if BUILD is defined.
659 (RANLIB): Set to @RANLIB@.
661 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
662 * configure: Regenerated.
664 * tools/rpcgen/Makefile (BUILD): Set to true.
666 2001-04-01 Chip Salzenberg <chip@valinux.com>
668 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
669 redundant, and sometimes broken, declaration of svc_fdset;
671 * support/nfs/rpcmisc.c (closedown): Likewise.
673 2001-03-21 H.J. Lu <hjl@lucon.org>
675 * nfs-utils.spec: Regenerated.
678 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
680 * utils/statd/statd.c (main): make sure file descriptors 0-2
681 are open to /dev/null.
683 2001-03-21 H.J. Lu <hjl@lucon.org>
685 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
686 * support/nfs/rpcmisc.c: Likewise.
687 * utils/rquotad/rquota_svc.c: Likewise.
688 * utils/rquotad/rquotad.man: Likewise.
689 * utils/statd/Makefile: Likewise.
690 * utils/statd/rmtcall.c: Likewise.
691 * utils/statd/simulate.c: Likewise.
692 * utils/statd/statd.c: Likewise.
693 * utils/statd/statd.man: Likewise.
695 2001-03-11 H.J. Lu <hjl@lucon.org>
697 * configure.in (RELEASE): New. Default to 1, set by
698 --with-release=XXX. Substitute nfs-utils.spec.
699 * nfs-utils.spec.in (Release): Set to @RELEASE@.
700 * configure: Regenerated.
701 * nfs-utils.spec: Likewise.
703 2001-03-11 H.J. Lu <hjl@lucon.org>
705 * utils/rquotad/rquotad.man: Fix a typo.
707 2001-03-11 H.J. Lu <hjl@lucon.org>
709 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
710 * support/nfs/rpcmisc.c: Likewise.
711 * utils/rquotad/rquota_svc.c: Likewise.
712 * utils/rquotad/rquotad.man: Likewise.
713 * utils/statd/Makefile: Likewise.
714 * utils/statd/rmtcall.c: Likewise.
715 * utils/statd/simulate.c: Likewise.
716 * utils/statd/statd.c: Likewise.
717 * utils/statd/statd.man: Likewise.
719 2001-03-10 H.J. Lu <hjl@lucon.org>
721 * configure.in (VERSION): Set to "0.3.2".
722 * configure: Regenerated.
723 * nfs-utils.spec: Likewise.
725 * README: Updated for 0.3.2.
727 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
729 * utils/rquotad/rquotad.man: Updated for -p.
730 * utils/statd/statd.man: Likewise.
732 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
734 * support/nfs/rpcmisc.c: export makesock()
736 * support/include/rpcmisc.h (makesock): Declared.
738 * utils/rquotad/rquota_svc.c: added longopts, added support for
739 specifying the port to bind to on the command line.
741 * utils/statd/statd.c: ditto, also specify port used for
742 outgoing connections.
743 (do_regist): Removed.
745 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
746 get_socket. Make it extern.
748 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
749 instead of do_regist.
751 * utils/statd/Makefile (LIBS): link with our own libnfs
753 2001-03-09 H.J. Lu <hjl@lucon.org>
755 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
756 * etc/nodist/nfs-client: Likewise.
758 2001-02-26 Chip Salzenberg <chip@valinux.com>
760 * debian/changelog: Version 0.3.1-1.
761 * Mention upstream source and license in copyright file.
762 * Add build-Depends for debhelper and libwrap0-dev.
764 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
766 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
767 * etc/nodist/nfs-client: Likewise.
769 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
771 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
774 2001-02-17 Patrick J. LoPresti <patl@curl.com>
776 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
779 2001-02-14 H.J. Lu <hjl@lucon.org>
781 * utils/statd/rmtcall.c: Include <time.h>.
782 * utils/statd/svc_run.c: Likewise.
784 2001-02-14 H.J. Lu <hjl@lucon.org>
786 * configure.in (VERSION): Set to "0.3.1".
787 * configure: Regenerated.
788 * nfs-utils.spec: Likewise.
790 * README: Updated for 0.3.1.
792 2001-02-14 H.J. Lu <hjl@lucon.org>
794 * support/nfs/rpcmisc.c: Include <time.h>.
796 2001-02-14 Chip Salzenberg <chip@valinux.com>
798 * debian/control: Change priority of nhfsstone package to 'extra'.
800 2001-02-12 Chip Salzenberg <chip@valinux.com>
802 * debian/changelog: Version 0.3-2.
804 2001-02-02 H.J. Lu <hjl@lucon.org>
806 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
808 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
809 out SO_SNDBUF/SO_RCVBUF.
810 (rpc_init): Remove bufsize and remove socksz in calls to
813 * utils/mountd/mountd.c (main): Remove bufsize in calls to
816 2001-01-28 Chip Salzenberg <chip@valinux.com>
818 * debian/changelog: Version 0.3-1.
820 2001-01-25 H.J. Lu <hjl@lucon.org>
822 * configure.in (VERSION): Set to "0.3".
823 * configure: Regenerated.
824 * nfs-utils.spec: Likewise.
826 * README: Updated for 0.3.
828 2001-01-25 H.J. Lu <hjl@lucon.org>
830 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
832 2001-01-20 Chip Salzenberg <chip@valinux.com>
834 * support/include/xio.h (xgetc): Declare to return int.
835 * support/nfs/xio.c (xgetc): Return int.
836 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
837 * utils/statd/statd.c (main): Use int for value of getopt.
838 * debian/changelog: Version 0.2.1-5.
840 2000-12-10 Chip Salzenberg <chip@valinux.com>
842 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
843 program and procedure numbers of kernel lockd's callback. Also,
844 besides the old (and broken) procedure #24, allow #16 per Trond.
846 2000-12-03 Chip Salzenberg <chip@valinux.com>
848 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
849 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
850 * debian/changelog: Version 0.2.1-4.
852 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
854 * utils/mountd/auth.c (auth_authenticate): Log the bad path
857 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
859 * support/nfs/exports.c (getexportent): Check for host name
860 without option, or options without hostname, and print a warning,
861 as this is most likely a typo.
863 2000-11-19 Chip Salzenberg <chip@valinux.com>
865 * debian/control: Add dependency on portmap.
866 * debian/changelog: Version 0.2.1-3.
868 2000-11-10 H.J. Lu <hjl@lucon.org>
870 * nfs-utils.spec.in: Don't use libtool.
871 Add ChangeLog and COPYING to doc.
872 * nfs-utils.spec: Rebuild.
874 2000-11-09 H.J. Lu <hjl@lucon.org>
876 * etc/redhat/nfs.init (start): Back out the last change.
878 2000-11-09 H.J. Lu <hjl@lucon.org>
880 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
881 TCP is not supported by kernel.
883 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
885 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
886 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
888 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
890 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
892 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
893 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
894 callbacks to local lockd.
896 2000-10-18 Scott McDermott <mcdermot@questra.com>
898 * utils/exportfs/exports.man: Updated for CIDR netmask.
900 2000-10-17 Scott McDermott <mcdermot@questra.com>
902 * support/export/client.c (client_init): Support CIDR netmask
905 2000-10-11 H.J. Lu <hjl@lucon.org>
907 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
908 * configure: Rebuilt.
910 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
912 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
913 "/var/lib/nfs/state".
915 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
917 * utils/statd/statd.h (run_mode): New global bitmask of runtime
918 behaviors: fg/bg, logging, etc.
919 * utils/statd/statd.c: New command line options: -V -h -? -d .
920 * utils/statd/statd.man: Update for changes to statd.
922 * utils/statd/log.h (log_init): Remove parameter of function; use
923 global variable "name_p" instead.
924 * utils/statd/log.c: Add support for logging to stderr.
926 * utils/statd/notlist.c: Partially rewrite notify list handling
927 functions. Eliminate run-off-end-of-list bug when calling
928 nlist_insert_timer. Add lots of comments.
930 2000-09-27 H.J. Lu <hjl@lucon.org>
932 * README: Updated for RedHat 7.0.
934 2000-09-27 H.J. Lu <hjl@lucon.org>
936 * nfs-utils.spec: Rebuild.
938 2000-09-27 H.J. Lu <hjl@lucon.org>
940 * README: Updated for 0.2.1.
942 2000-09-27 H.J. Lu <hjl@lucon.org>
944 * nfs-utils.spec.in: Updated to use rpm macros and support
947 2000-09-25 H.J. Lu <hjl@lucon.org>
949 * configure.in (VERSION): Set to "0.2.1".
950 * configure: Regenerated.
951 * nfs-utils.spec: Updated.
953 2000-09-25 H.J. Lu <hjl@lucon.org>
955 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
956 non-NULL hostent is always returned.
958 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
960 * etc/redhat/nfslock.init: don't kill lockd processes that do not
961 have an executable (i.e. kernel threads)
963 2000-09-01 H.J. Lu <hjl@lucon.org>
965 * README: Updated for 0.2.
967 2000-09-01 Jay Weber <jweber@valinux.com>
969 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
970 supporting version 3 of nfs if available, else it will fall back to
971 version 2 support only.
973 2000-08-30 H.J. Lu <hjl@lucon.org>
975 * configure.in (VERSION): Set to "0.2".
976 * configure: Regenerated.
977 * nfs-utils.spec: Updated.
979 2000-08-25 H.J. Lu <hjl@lucon.org>
981 * support/misc/tcpwrapper.c (logit): Modify the log output.
983 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
985 * utils/rquotad/rquotad.man, utils/statd/statd.man,
986 utils/mountd/mountd.man: updated
988 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
989 * utils/rquotad/Makefile: fix comment
991 * support/misc/tcpwrapper.c (logit): added comment about waiting
992 for the children after fork()
994 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
995 zombies behind (from logit()'s fork)
996 * utils/rquotad/rquota_svc.c (main): ditto
997 * utils/statd/statd.c (main): ditto
999 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1000 to check_default instead of 0, for prognum
1002 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1003 to check_default instead of 0, for prognum
1005 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1006 HAVE_TCP_WRAPPER is defined.
1007 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1008 defined. Reject an RPC call if check_default () fails.
1010 2000-08-25 H.J. Lu <hjl@lucon.org>
1012 * support/include/tcpwrapper.h: New for the tcp wrapper
1014 * support/misc/Makefile: Likewise.
1015 * support/misc/from_local.c: Likewise.
1016 * support/misc/tcpwrapper.c: Likewise.
1018 * aclocal.m4 (AC_TCP_WRAPPER): New.
1019 * configure.in: Use it. Substitute LIBWRAP.
1020 * configure: Rebuilt.
1022 * config.mk.in (LIBNSL): New.
1023 (LIBWRAP): Likewise.
1025 * support/Makefile (SUBDIRS): Add misc.
1027 * support/lib/Makefile (LIBS): Add libmisc.a.
1029 * utils/rquotad/Makefile (LIBS): Add
1031 -lmisc $(LIBWRAP) $(LIBNSL)
1033 * utils/statd/Makefile (LIBS): Likewise.
1035 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1036 HAVE_TCP_WRAPPER is defined.
1037 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1038 defined. Reject an RPC call if check_default () fails.
1040 * utils/statd/statd.c: Include "tcpwrapper.h" if
1041 HAVE_TCP_WRAPPER is defined.
1042 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1043 check_default () before calling sm_prog_1 (). Define it as
1044 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1046 2000-08-25 Chip Salzenberg <chip@valinux.com>
1048 * debian/*: Complete Debian build support.
1049 * etc/debian/*: Remove.
1051 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1053 * support/export/client.c(client_check): removed the "dot+1" as a
1054 ypdomain argument to innetgr as this is entirely bogus.
1055 It should always be NULL.
1057 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1059 * support/export/xtab.c(xtab_read): introduce new mode for
1060 reading xtab. i.e. a list of exports that might be known to the
1061 kernel, or might not. These are flagged as m_exported == -1
1062 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1063 value "2" for xtab, meaning don't trust this too much.
1064 * support/include/exportfs.h(struct mexport): changed m_exported
1065 from one bit to an int so that it can hold new value
1066 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1067 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1068 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1071 * support/nfs/xio.c(xflock): added O_CREAT when getting
1072 a write lock so that missing files aren't fatal.
1074 * etc/debian/nfs-common: new file from "potato"
1075 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1077 2000-08-09 H.J. Lu <hjl@lucon.org>
1079 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1080 startup to ensure all existing clients work fine.
1082 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1083 to xtab_read () for reading _PATH_XTAB.
1085 2000-08-02 H.J. Lu <hjl@lucon.org>
1087 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1088 avoid the reverse name lookup.
1090 2000-07-04 H.J. Lu <hjl@lucon.org>
1092 * utils/statd/log.c: Include <stdlib.h> for exit ().
1094 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1097 2000-07-04 H.J. Lu <hjl@lucon.org>
1099 * configure.in (VERSION): Set to "0.1.9.1".
1100 * configure: Regenerated.
1101 * nfs-utils.spec: Updated.
1105 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1107 * support/export/hostname.c (hostent_dup): Handle the NULL
1110 2000-07-03 H.J. Lu <hjl@lucon.org>
1112 * README: Update the util-linux requirement.
1114 2000-07-03 H.J. Lu <hjl@lucon.org>
1116 * configure.in (VERSION): Set to "0.1.9".
1117 * configure: Regenerated.
1118 * nfs-utils.spec: Updated.
1122 2000-07-03 H.J. Lu <hjl@lucon.org>
1124 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1125 stop to ensure all clients can still access the server
1126 before it is shutdown.
1128 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1130 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1131 calls with format string.
1133 2000-06-28 Chip Salzenberg <chip@valinux.com>
1135 * utils/statd/log.c (log): Call syslog with format string.
1137 2000-06-27 H.J. Lu <hjl@lucon.org>
1139 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1140 instead of OPEN_MAX.
1142 2000-06-27 H.J. Lu <hjl@lucon.org>
1146 2000-06-27 H.J. Lu <hjl@lucon.org>
1148 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1149 startup to ensure all existing clients are exported.
1151 * configure.in (VERSION): Set to "0.1.8.2".
1152 * configure: Regenerated.
1153 * nfs-utils.spec: Updated.
1155 2000-06-06 H.J. Lu <hjl@lucon.org>
1157 * configure.in (VERSION): Set to "0.1.8.1".
1158 * configure: Regenerated.
1159 * nfs-utils.spec: Updated.
1161 2000-06-06 H.J. Lu <hjl@lucon.org>
1163 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1164 to "struct sockaddr_in *" for glibc 2.2.
1165 (mount_umnt_1_svc): Likewise.
1166 (mount_umntall_1_svc): Likewise.
1167 (mount_export_1_svc): Likewise.
1168 (mount_exportall_1_svc): Likewise.
1169 (mount_pathconf_2_svc): Likewise.
1170 (get_rootfh): Likewise.
1172 2000-06-04 H.J. Lu <hjl@lucon.org>
1174 * etc/redhat/nfs.init: Fix a typo in comment.
1176 2000-05-31 H.J. Lu <hjl@lucon.org>
1178 * configure.in (VERSION): Set to "0.1.8".
1179 * configure: Regenerated.
1180 * nfs-utils.spec: Updated.
1184 2000-05-31 H.J. Lu <hjl@lucon.org>
1186 * configure.in (VERSION): Set to "0.1.7.5".
1187 * configure: Regenerated.
1188 * nfs-utils.spec: Updated.
1190 * support/include/nfslib.h (exportent): Add a new field,
1191 r_count, to count the number of mounts from a client.
1192 (getrmtabent): Take a new argument for position in file.
1193 (putrmtabent): Likewise.
1194 (fgetrmtabent): Likewise.
1195 (fputrmtabent): Likewise.
1196 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1197 for position in file.
1198 (fgetrmtabent): Likewise.
1199 (putrmtabent): Likewise.
1200 (fputrmtabent): Likewise.
1202 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1205 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1206 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1207 and fputrmtabent ().
1208 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1209 (mountlist_del): Likewise.
1210 (mountlist_del_all): Likewise.
1211 (mountlist_list): Likewise.
1213 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1214 for the existing entry and initialize "r_count" to 1.
1215 (mountlist_del): Decrement "r_count".
1217 2000-05-18 H.J. Lu <hjl@lucon.org>
1219 * configure.in (VERSION): Set to "0.1.7.4".
1220 * configure: Regenerated.
1221 * nfs-utils.spec: Updated.
1223 2000-05-18 H.J. Lu <hjl@lucon.org>
1225 * etc/redhat/nfs.init (restart): Just do stop and start.
1227 2000-05-09 Jay Weber <jweber@valinux.com>
1229 * utils/rquotad/hasquota.c: added support for ext3 recognition
1231 * utils/rquotad/mntent.h: Likewise.
1233 2000-05-01 H.J. Lu <hjl@lucon.org>
1235 * configure.in (VERSION): Set to "0.1.7.3".
1236 * configure: Regenerated.
1237 * nfs-utils.spec: Updated.
1239 2000-05-01 H.J. Lu <hjl@lucon.org>
1241 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1242 mounting poins in /etc/fstab.
1244 2000-05-01 H.J. Lu <hjl@lucon.org>
1246 * configure.in (VERSION): Set to "0.1.7.2".
1247 * configure: Regenerated.
1248 * nfs-utils.spec: Updated.
1250 2000-05-01 H.J. Lu <hjl@lucon.org>
1252 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1253 to check for the mounting point.
1255 2000-04-29 Chip Salzenberg <chip@valinux.com>
1256 Neil Brown <neilb@cse.unsw.edu.au>
1258 * Really re-use RPC ports.
1259 (Fixes earlier patch. Sorry, Neil.)
1261 2000-04-26 H.J. Lu <hjl@lucon.org>
1263 * configure.in (VERSION): Set to "0.1.7.1".
1264 * configure: Regenerated.
1265 * nfs-utils.spec: Updated.
1267 2000-04-26 H.J. Lu <hjl@lucon.org>
1269 * etc/redhat/nfslock.init: Check if lockd exits before killing
1272 2000-04-25 H.J. Lu <hjl@lucon.org>
1274 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1276 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1278 * support/nfs/exports.c (parsesquash): Correctly set the
1281 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1283 * support/include/nfs/nfs.h: Removed knowledge of internals of
1284 kernel filehandles (which can change) and defined nfs_fh_size
1285 which has variable size
1287 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1288 get variable sized file handles, and change getfh{,old} to
1291 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1294 * tools/Makefile, tools/nlmtest/nlmtest.c
1295 nlmtest.c depended on internel format of file handles, so now
1299 2000-03-12 Chip Salzenberg <chip@valinux.com>
1300 Neil Brown <neilb@cse.unsw.edu.au>
1302 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1304 2000-03-13 H.J. Lu <hjl@lucon.org>
1306 * etc/redhat/nfsd.init: Updated.
1308 * etc/redhat/nfslock.init: Updated.
1310 * nfs-utils.spec.in: Updated.
1312 * configure.in (VERSION): Set to "0.1.7".
1313 * configure: Regenerated.
1314 * nfs-utils.spec: Updated.
1318 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1320 * utils/exportfs/exportfs.c (dump): Included printing of
1321 nohide, no_subtree_check, and insecure_locks
1323 2000-02-26 Chip Salzenberg <chip@valinux.com>
1325 * config.mk.in (INSTALLSUID): Strip ("-s").
1326 (INSTALLSCRIPT): Define.
1327 * utils/nhfsstone/Makefile: Use it.
1329 2000-02-26 Chip Salzenberg <chip@valinux.com>
1331 * utils/lockd/lockd.man: Create.
1332 * utils/lockd/Makefile: Install it.
1333 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1334 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1335 * utils/nhfsstone/Makefile: Install the helper scripts and
1337 * utils/exportfs/exports.man: Fix typo.
1339 2000-02-26 Chip Salzenberg <chip@valinux.com>
1341 * support/nfs/xio.c (xungetc): Decrement line number when
1342 character to unget is newline. Make first parameter int, so
1343 it can distinguish EOF from \377.
1344 * support/include/xio.h (xungetc): Adjust prototype.
1346 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1348 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1349 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1350 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1352 This is for supporting a new option introduced in 2.3.42
1354 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1356 * COPYING: Added. GPL.
1358 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1360 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1361 to get the block size.
1363 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1365 * nfs-utils.spec.in: Update ftp site.
1367 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1369 * README: Update hostnames.
1371 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1373 * configure.in (VERSION): Set to "0.1.6".
1374 * configure: Regenerated.
1375 * nfs-utils.spec: Updated.
1379 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1381 * utils/mountd/auth.c (auth_authenticate_internal): Call
1382 xstrdup for hostname before passing it to gethostbyname.
1384 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1387 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1389 * README: Update the mailing list address.
1391 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1393 * configure.in (VERSION): Set to "0.1.5".
1394 * configure: Regenerated.
1395 * nfs-utils.spec: Updated.
1399 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1401 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1404 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1406 * configure.in (VERSION): Set to "0.1.4".
1407 * configure: Regenerated.
1408 * nfs-utils.spec: Updated.
1412 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1414 * nfs-utils.spec.in: New file.
1416 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1418 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1420 1999-12-04 Chip Salzenberg <chip@valinux.com>
1422 * config.mk.in: Use $(CC) as set by configure.
1424 1999-12-04 Chip Salzenberg <chip@valinux.com>
1426 * rules.mk: Call $(MAKE) with $(MFLAGS).
1428 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1430 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1431 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1433 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1435 * nfs-utils.spec (Version): Set to 0.1.3.
1437 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1438 * configure: Regenerated.
1442 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1444 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1445 (_PATH_DEV_DSK): Likewise.
1446 (getquotainfo): Match the mounting point from /etc/mtab
1447 instead of calling nfsmount_to_devname ().
1449 1999-11-24 Chip Salzenberg <chip@valinux.com>
1451 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1452 to the new port 24 as well as the historical port 100021.
1454 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1456 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1457 stopping nfsd to stop spurious ESTALE on server shutdown.
1459 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1461 * support/nfs/exports.c (parseopts): make copy of opt string
1462 before 'nul'ing out commas so that
1464 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1466 applies both options to both exports.
1468 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1470 * README: Fix a few typos.
1472 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1474 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1475 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1476 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1477 (unsigned_dec): Likewise.
1478 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1479 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1481 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1483 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1484 (unsigned_dec): Likewise.
1485 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1486 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1487 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1489 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1491 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1492 * support/nfs/exports.c: added {no_,}subtree_check and changed
1494 * utils/exportfs/exports.man: added no_subtree_check and nohide
1495 and removed irrelevant stuff from unfsd.
1496 * support/export/rmtab.c: rmtab_read didn't quite do the right
1497 thing if a pathname from rmtab was a subdirectory of an export-point
1499 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1501 * README: Updated ftp site.
1503 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1505 * nfs-utils.spec (Version): Set to 0.1.2.
1507 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1508 * configure: Regenerated.
1512 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1514 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1515 (auth_authenticate_internal): Check for NULL return on forward
1517 (auth_authenticate): Handle "no_forward_dns".
1519 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1521 * Version 0.1.1 released.
1523 * nfs-utils.spec (Version): Set to 0.1.1.
1525 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1526 * configure: Regenerated.
1530 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1532 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1534 (Provides): Likewise.
1536 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1538 * Initial version 0.1 released.
1540 * configure.in (VERSION): Set to "nfs-utils 0.1".
1541 * configure: Regenerated.
1543 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1545 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1547 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1548 kernel only if the entry is exported to kernel.
1549 (unexportfs): Likewise.
1551 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1553 1/ utils/mountd/rmtab.c::mountlist_list
1555 This routine stats the rmtab file to see if it has changed. It
1556 if has, it cleans up it's old copy of the data. But it still
1557 always re-read the file, thus returning multiple copies of the
1558 data on consecutive calls without intervening changes.
1559 "Showmount -a" didn't show this as it appears to sort/unique the
1560 data, but 'strace showmount -a' showed that the size of the
1561 datagram that it received grew.
1563 I moved the getrmtabent loop inside the mtime test.
1565 2/ utils/exportfs/exportfs.c
1567 Many routines used the m_path field of m_export instead of
1569 According to the comment in nfslib.h, m_path should only
1570 be used when processing a mount request (i.e. in mountd)
1571 where the mountpoint may be a subdirectory of the export point.
1573 I changed all occurances of m_path to e_path
1576 3/ utils/exportfs/exportfs.c:main
1578 extra arguments are not meaningful with -a or -r, but
1579 exportfs accepted them and then ignored the -a/-r, expect that
1580 -r would still unexport everything first.
1582 I generate an error if there are extra args and f_all
1584 4/ utils/exportfs/exportfs.c:main
1585 extract dump out as a special case.
1587 5/ utils/exportfs/exportfs.c
1588 made f_reexport a local variable.
1591 6/ utils/exportfs/exportfs.c:main,exportall
1593 support/export/rmtab.c
1594 only mayexport on newly created entries, don't set xtabent at all
1596 7/ support/include/nfslib.h
1598 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1600 8/ support/export/xtab.c
1602 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1606 9/ support/export/xtab.c
1608 xtab_mount_read now sets m_exported, and NOT
1609 xtabent and mayexport
1611 removed the append arguement from xtab_write as it was
1614 added is_export flag to xtab_write similar to xtab_read
1615 if is_export, only write entries with m_xtabent or m_addxtab
1616 if !is_export, only write entries with m_exported
1618 10/ support/export/export.c::export_allowed_internal
1620 added test for exp->m_mayexport, as the export tree
1621 may have entries that are no longer allowed to be exported,
1622 and so shouldn't caused deduced exported by rmtab_read
1624 11/ utils/exportfs/exportfs.c::main
1625 error checking of flags.
1627 12/ utils/exportfs/exportfs.c
1629 total rewrite of export and unexport logic.
1631 - build an exportslist of valid exports, based on
1632 current etab file and arguments,
1633 - read rmtab to instantiate relevant wild card entries
1634 - read etab to find out what is currently exported
1635 - synchronise intention with reality
1636 - write out etab and xtab
1639 discard the m_addxtab flag
1640 add m_changed flag so we know what to report in exportfs
1642 14/ utils/mountd/auth.c:auth_authenticate
1644 the value returned by gethostbyaddr was trusted.
1646 It now follows this with a call to gethostbyname
1647 and checks that the address is in the list.
1649 15/ support/export/nfsctl.c::cltsetup,expsetup
1651 force client names to lowercase as kernel is
1654 16/ quietened a few compiler warnings
1656 17/ support/export/client:client_lookup
1658 look for pre-existing client with same name before creating
1661 18/ support/include/exportfs.h
1663 The ordering of the MCL_* enum was:
1664 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1666 I moved ANONYMOUS to the end.
1668 The ordering is significant when an export entry is being searched for to
1669 match a given address. There are two problems with ANONYMOUS being first.
1671 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1672 then the ro case will always be found first and the privileged hosts won't get
1674 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1675 export entry for the specific host, and writes it to xtab.
1676 When another request comes from the same host, the ANONYMOUS entry is found again,
1677 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1678 again. If causes bloat in xtab.
1680 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1682 19/ utils/exportfs/exportfs.man
1683 many updates to the man page to reflect changes to the code
1685 -----------------------
1691 - allow exportfs to modify rmtab file
1692 - make sure kernel never gets two clients with same IP address
1693 - possible kernel should reject
1694 - needs to be some way to lookup client in kernel by IP address
1695 - maybe get kernel to do case-insensitive comparisons on client names
1696 - remove unused clients from kernel
1698 - change etab to xtab and xtab to xtab.active
1700 - timestamp and/or statd-stamp in rmtab for removing old entries.
1702 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1704 * linux-nfs: New directory.
1705 * linux-nfs/ChangeLog: Moved from ..
1706 * linux-nfs/INSTALL: Likewise.
1707 * linux-nfs/KNOWNBUGS: Likewise.
1708 * linux-nfs/NEW: Likewise.
1709 * linux-nfs/README: Likewise.
1710 * linux-nfs/THANKS: Likewise.
1711 * linux-nfs/TODO: Likewise.
1713 * Starting from knfsd 1.4.7.