1 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
4 1.0.4 was a bit of a brown-paper-bag-release because of the extra
5 'free' in auth.c. So I'm releasing this just a few days later.
7 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
9 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
10 check if new_cache is enabled, error if not, flush and exit if it
12 * utils/exportfs/exportfs.man: Explain -f option and explain the
13 two different modes that exportfs can work in.
14 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
16 * utils/mountd/mountd.man: Record the change if default behaviour
18 * configure.in, nfs-utils.spec: update version to 1.0.5 and
21 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
23 * utils/mountd/mountd.c(main): getopt string fix for 'o'
24 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
25 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
27 * support/include/nfs/export.h: Reserve a bit for possible ACL
30 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
32 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
33 assorted changed to cope with section 7 of the manual.
34 * configure.in, nfs-utils.spec: Update version to 1.0.4
37 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
38 baseline for 2.6 and 2.8. I.e. it should continue to work right
39 through the 2.8 (or 3.0) kernel series. Previous releases wont.
41 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
42 Steve Dickson <SteveD@redhat.com>
45 * utils/statd/statd.c: create a pidfile with pid of statd, and
46 truncate it when statd exists.
47 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
48 and warn if this is root.
49 * utils/statd/statd.c: when statd forks, connect child to parent
50 with a pipe, and send a byte down the pipe once the child is
52 * Makefile: create and chown sm, sm.bak, state when "make install"
53 * configure.in: add --with-statduser= option which defaults to
55 * config.mk.in: pass "statduser" through to Makefile
57 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
59 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
60 used as the size was changed somewhere in 2.5.60-2.5.70. Without
61 this nfs-utils compiles against 2.6 headers will not work on a
64 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
66 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
67 set number of threads by writing to there. This means it will
68 still work when the syscall interface goes away in 2.7.
70 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
71 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
73 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
74 so as to only export the wildcard exports that were asked for.
75 * support/export/export.c(export_allowed): changed to return the
76 nfs_export rather than a "struct exportent", as m_changed is
78 * support/export/rmtab.c(rmtab_read): modified to deal with
79 interface change for export_allowed(), and enhanced to preserve
80 m_changed flag when a wild-card export causes the creation of
81 a non-wildcard export.
83 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
84 Steve Dickson <SteveD@redhat.com>
86 * utils/mountd/mountd.man: Add valid kinds of debugging.
87 * utils/mountd/mountd.c(main): ignore SIGPIPE
88 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
89 we don't get warnings about unavailable stats that weren't asked
92 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
94 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
95 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
96 'forever', so things disappear out of the cache rather than just
99 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
101 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
104 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
106 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
107 etc/redhat/nfs.init: when checking if V3 is supported, make sure
108 nfs server 'knows' about 127.0.0.1 first.
110 2003-06-10 Chip Salzenberg <chip@pobox.com>
112 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
113 * debian/changelog: Version 1.0.3-2.
115 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
116 NeilBrown <neilb@cse.unsw.edu.au>
118 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
119 long long to avoid overflow when printing stats.
121 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
123 * support/export/export.c, support/include/nfslib.h,
124 support/nfs/export.c, utils/exportfs/exportfs.c,
125 utils/mountd/mountd.c: new export option "mountpoint"
126 If no path is given, then the export point must be a
127 mount point, or it won't be exported. If a path is
128 given (e.g. mountpoint=/path) then that path must be
129 a mountpoint or the exportpoint won't be exported.
130 * utils/exportfs/exportfs.man: document mountpoint option.
131 * support/misc/mountpoint.c: New file with is_mountpoint()
132 to determine if something is a mountpoint.
134 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
136 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
137 argument as we might not be getting the filehandle for the
139 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
140 cache_get_filehandle.
141 * utils/mountd/mountd.c(get_rootfh): check export point and
142 requested directory are on the same filesystem, and complain if
145 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
147 * utils/mountd/auth.c(auth_authenticate_internal): make sure
148 portnumber is still checked when using new cache lookup.
150 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
152 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
153 Don't actually talk to kernel when new cache is in effect, except
155 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
156 * support/export/xtab.c: Only rename new xtab into place if it has
157 changed, thus preserving modify date for exportfs to use when
159 * support/nfs/cacheio.c: Add cache_flush
160 * support/export/xtab.c: Only rename new xtab into place if it has
161 changed, thus preserving modify date for exportfs to use when
164 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
166 * support/export/client.c: Add client_compose, client_member to
167 handle new composite client names
168 * support/include/exportfs.h: Declare above functions.
169 * utils/mountd/auth.c: use client_compose to determine calling
170 client if new cache is being used.
171 * utils/mountd/auth.c: call cache_export to export a filesystem if
172 new_cache, check if new cache is used, and call my_svc_run instead
174 * utils/mountd/svc_run.c: new file defining my_svc_run
175 * utils/mountd/cache.c: new file for handling cache upcalls.
176 * support/nfs/cacheio.c(check_new_cache): new function to check if
177 new cache should be used.
180 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
182 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
183 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
184 * utils/exportfs/exportfs.c(dump): ditto
186 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
188 * support/export/hostname.c(get_reliable_hostbyaddr): new function
189 to get host name from address with full checking of authenticity.
190 * support/include/misc.h: declare above function
191 * utils/mountd/auth.c(auth_authenticate_internal): remove all
192 logic for authenticating address.
193 * utils/mountd/auth.c(auth_authenticate): call new
194 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
197 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
199 * tools/rpcgen/rpc_main.c(find_cpp): removed
200 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
201 then try hard-coded paths.
203 2003-03-26 Chip Salzenberg <chip@pobox.com>
205 * debian/changelog: Version 1.0.3-1.
207 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
209 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
210 "const char*", not "char*".
212 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
214 * configure.in (VERSION): Set to "1.0.3".
215 * nfs-utils.spec: Likewise.
216 * configure: Regenerated.
218 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
220 * support/nfs/cacheio.c: New File - support for read/writing
221 to export cache in /proc/rpc/*/channel
222 * support/nfs/Makefile: compile cacheio.c
223 * support/include/nfslib.h: declare cacheio.c functions
224 * support/nfs/nfsexport.c: export and unexport through
225 /proc/rpc/*/channel if possible, as old syscall interface
226 may not survive into 2.6 on all architectures.
228 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
229 Ben Leslie <benno@sesgroup.net>
231 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
232 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
233 former would incorectly ignore defport if the application
234 explicitly set __rpcfdtype. The later is sufficient to avoid the
235 special handling in the case where stdin is an internet socket.
237 * utils/mountd/mountd.c(main): Add 'n' to option list in
238 getopt_long as this is a short form of --no-tcp which want being
241 2003-02-12 Chip Salzenberg <chip@pobox.com>
243 * debian/changelog: Version 1.0.2-2.
245 2002-11-27 Chip Salzenberg <chip@pobox.com>
247 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
248 overflow bug. Reformat per rest of source file.
250 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
252 * utils/exportfs/exports.man: Correct notes about whether the wild
253 card characters match a period. They do.
255 2002-10-15 Juan Gomez <juang@us.ibm.com>
257 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
259 (mountlist_add): Call slink_safe_rename instead of rename.
261 2002-10-11 H.J. Lu <hjl@lucon.org>
263 * support/include/exportfs.h (export_errno): New.
265 * support/nfs/exports.c: Include <errno.h>.
267 (getexportent): Set export_errno to EINVAL for bad option.
268 (parseopts): Likewise.
269 Report the location of the default sync/async option.
271 * utils/exportfs/exportfs.c (main): Initialize export_errno to
272 0. Return export_errno.
274 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
275 NeilBrown <neilb@cse.unsw.edu.au>
277 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
278 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
280 2002-09-16 Chip Salzenberg <chip@pobox.com>
282 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
284 2002-09-15 Chip Salzenberg <chip@pobox.com>
286 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
287 socket, as occurs when run from sshd.
288 * debian/changelog: Version 1.0.2-1.
290 2002-09-12 H.J. Lu <hjl@lucon.org>
292 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
295 2002-09-12 H.J. Lu <hjl@lucon.org>
297 * configure.in: Remove checking svctcp_socket and svcudp_socket.
298 * configure: Regenerated.
300 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
301 (HAVE_SVCUDP_SOCKET): Removed.
303 * support/include/nfslib.h: Undo the last change.
305 2002-09-12 H.J. Lu <hjl@lucon.org>
307 * support/include/nfslib.h (svctcp_socket): Protect it with
309 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
311 2002-09-12 H.J. Lu <hjl@lucon.org>
313 * configure.in (VERSION): Set to "1.0.2".
314 * configure: Regenerated.
315 * nfs-utils.spec: Likewise.
317 2002-09-12 H.J. Lu <hjl@lucon.org>
319 * configure.in: Check svctcp_socket and svcudp_socket.
320 * configure: Regenerated.
322 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
323 (HAVE_SVCUDP_SOCKET): New.
325 * support/include/nfslib.h (svctcp_socket): New.
326 (svcudp_socket): New.
328 * support/nfs/Makefile (OBJS): Add svc_socket.o.
330 * support/nfs/svc_socket.c: New.
332 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
333 svcudp_socket if port is unspecified.
335 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
337 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
338 (killer): New. Signal handler to unregister.
339 (main): Use killer. Call svcudp_socket to get the default
342 2002-09-02 Juan Gomez <juang@us.ibm.com>
343 NeilBrown <neilb@cse.unsw.edu.au>
345 Add -N option to statd to run in notify-only mode.
347 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
348 * utils/statd/statd.man: document -N
349 * utils/statd/statd.c: enabled -N, largely exists but needed to be
350 uncommented and completed
352 2002-09-02 Juan Gomez <juang@us.ibm.com>
353 NeilBrown <neilb@cse.unsw.edu.au>
355 statd to have " -P directory" arg to use that directory instead
356 of /var/lib/nfs. This is useful for fail-over clusters.
358 * utils/statd/statd.h: define SM_DIR etc as var, not const.
359 * utils/statd/statd.c: define "-P" option to set SM_*
361 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
363 * utils/statd/notify.c: ditto.
364 * utils/statd/statd.man: document -P option.
366 2002-08-26 Chip Salzenberg <chip@pobox.com>
368 * utils/nfsd/nfsd.man: Fix typo.
369 * debian/changelog: Version 1.0.1-1.
371 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
373 * let parseopts know if /etc/exports was being read or not,
374 and have it only print "no sync or async" warning in that case.
376 2002-05-06 Tom McNeal <trmcneal@attbi.com>
377 NeilBrown <neilb@cse.unsw.edu.au>
379 * utils/nfsstat/nfsstat.c: Handle differing format for
380 /proc/net/rpc/nfsd between pre and post 2.4.0
382 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
383 James Pearson <james-p@moving-picture.com>
385 * support/nfs/rmtab.c(fendrmtabent): sync changes to
386 storage before returning, as this is critical state
388 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
389 H.J. Lu <hjl@lucon.org>
391 * etc/redhat/nfs: New.
393 2002-04-08 H.J. Lu <hjl@lucon.org>
395 * etc/redhat/nfs.init: Updated.
397 * nfs-utils.spec.in: Updated.
398 * nfs-utils.spec: Regenerated.
400 * utils/mountd/mountd.c (longopts): Fix a typo.
402 * utils/mountd/mountd.man: Updated.
404 2002-04-07 H.J. Lu <hjl@lucon.org>
406 * etc/redhat/nfslock.init (restart): Just do stop and start.
408 * etc/redhat/nfs.init: Fix a typo.
410 2002-04-07 H.J. Lu <hjl@lucon.org>
412 * configure.in (VERSION): Set to "1.0.1".
413 * configure: Regenerated.
414 * nfs-utils.spec: Likewise.
416 * README: Updated for 1.0.1.
418 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
419 H.J. Lu <hjl@lucon.org>
421 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
423 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
424 NeilBrown <neilb@cse.unsw.edu.au>
426 Add support for fsid=nn export option so that device
427 numbers don't go in filehandles.
428 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
429 is set, pass the fsid in-place of the device number
430 * support/nfs/exports.c: parse and print fsid= option.
431 Also check if efname has been set, and use "command line"
432 instead in error messages.
433 Also, use strtol instead of atoi for anon[ug]id= so that
434 bad numbers cause errors.
436 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
437 NeilBrown <neilb@cse.unsw.edu.au>
439 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
440 flag so that "sync" becomes the default.
441 Check that either "sync" or "async" is given as an option
442 and warn if neither are present
443 * utils/exportfs/exports.man: change documentation for "sync"
444 to be documentation for "async".
445 * utils/exportfs/exportfs.man: note that "sync" is the default
449 2002-01-02 Chip Salzenberg <chip@pobox.com>
451 * support/export/nfsctl.c (expsetup): Don't export entries that
452 specify id mappings not supported by the kernel. No extant kernel
453 supports any significant mapping, only 'identity' (i.e. none).
454 When other mappings are supported, this code will need changing.
455 * debian/changelog: Version 1.0-2.
457 2001-12-26 Chip Salzenberg <chip@pobox.com>
459 * nfs-utils.spec (Version): Set to "1.0".
460 * configure.in (VERSION): Likewise.
461 * configure: Regenerated.
463 * debian/changelog: Version 1.0-1.
465 * utils/exportfs/exports.man: Emphasize the need for options to
466 immediately follow client names. Explain that wildcards don't
467 usually work on addresses, but may work when reverse DNS fails.
468 Comment out a leftover TP that was TPing our indentation.
469 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
470 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
471 * debian/changelog: Version 0.3.3-6.
473 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
475 * support/export/client.c(client_lookup): If a host has multiple
476 IP addresses, then we must always use the result of a
477 gethostbyname, not that of gethostbyaddr for exporting
479 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
481 * support/export/client.c (client_lookup): use strcasecmp when
483 * support/nfs/export.c (getexportent): add fromkernel arg and use
484 different defaults as kernels prior to 2.4.11 assume different
485 defaults in /proc/fs/nfs/exports
486 * support/include/nfslib.h, support/export/export.c,
487 support/export/xtab.c: support extra "fromkernel" arg for
490 2001-12-13 Chip Salzenberg <chip@pobox.com>
492 * debian/changelog: Version 0.3.3-5.
494 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
496 * support/nfs/xio.c (xskip): Call `xungetc' instead of
497 `ungetc' to keep x_line more properly.
499 2001-11-26 Chip Salzenberg <chip@pobox.com>
501 * utils/showmount/showmount.c (main): Don't assume that strings
502 starting with digits are IP addresses.
503 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
504 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
505 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
506 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
507 man pages: We check host names *and* addresses with tcpwrappers.
508 * debian/changelog: Version 0.3.3-4.
510 2001-11-21 Chip Salzenberg <chip@pobox.com>
512 * support/nfs/clients.c (cfname): Added: current clients file name.
513 (setnfsclntent): Set it.
514 ({get,end}nfsclntent, syntaxerr): Use it.
515 * support/nfs/exports.c (efname): Added: current exports file name.
516 (setnfsexportent): Set it.
517 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
518 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
519 * debian/changelog: Version 0.3.3-3.
521 2001-10-11 Chip Salzenberg <chip@pobox.com>
523 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
524 * debian/changelog: Version 0.3.3-2.
526 2001-10-08 Chip Salzenberg <chip@pobox.com>
528 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
529 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
530 * utils/mountd/mountd.man: Update paths to /var/lib.
531 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
533 2001-10-06 Preston Brown <pbrown@redhat.com>
535 * utils/nfsstat/nfsstat.man: Updated.
537 2001-09-24 H.J. Lu <hjl@lucon.org>
539 * configure.in (VERSION): Set to "0.3.3".
540 * configure: Regenerated.
541 * nfs-utils.spec: Likewise.
543 * README: Updated for 0.3.3.
545 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
547 Arrange that "exportfs -au" never does DNS lookup:
549 * support/export/client.c (client_lookup) : add "canonical"
550 flag which says that the hostname is known to be canonical, so
553 * support/export/export.c (export_create) : add "canonical"
554 flag to be passed down to client_lookup
555 * support/export/export.c (export_lookup) : Likewise
557 * support/export/xtab.c (xtab_read) : pass appropriate
558 "canonical" flag to export_lookup and export_create:
559 set if reading list of filesystems currently exports
562 * support/export/export.c (export_read) : pass 0 as
563 "canonical" flag to export_lookup and export_create
564 * support/export/rmtab.s (rmtab_read) : Likewise
566 * support/include/exportfs.h : redeclare various routines
567 to have "canonical" flag
569 * utils/exportfs/exportfs.c (main) : redo logic for
570 "-au" to read in what is currently exported, but never even
571 look at what "should" be exported.
573 * utils/exportfs/exportfs.c (unexportall) : remove this
574 routine. Functionality is completely included in
577 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
578 flag to zero in calls to export_lookup and export_create.
581 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
582 Anne Milicia <milicia@missioncriticallinux.com>
584 * support/export/client.c (client_lookup) call gethostbyadd
585 to make sure that we have a canonical hostname, even for
587 * utils/exportfs/exportfs.c (exportfs) Likewise
589 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
591 * support/nfs/exports.c (putexportent): \octal quote any spaces
593 * support/nfs/xio.c (xgettok): recognise double-quote and
594 \octal quoting in path names
595 * utils/exportfs/exports.man: document quoting conventions
598 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
600 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
601 change from 2000-08-02: It causes problems if someone exports
602 to both a hostname and IP addresses. nfs-utils must be
603 consistant about the canonical name that it chooses.
605 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
606 H.J. Lu <hjl@lucon.org>
608 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
610 * utils/statd/statd.c (longopts): Add "name".
611 (usage): Add "-n/--name".
612 (main): Set MY_NAME with "-n/--name".
614 * utils/statd/state.c (change_state): Set MY_NAME only if it
617 * utils/statd/statd.man: Updated for "-n/--name".
619 2001-07-26 H.J. Lu <hjl@lucon.org>
621 * nfs-utils.spec (Release): Set to 8.
623 2001-07-25 H.J. Lu <hjl@lucon.org>
625 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
628 2001-06-27 H.J. Lu <hjl@lucon.org>
630 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
632 2001-06-27 H.J. Lu <hjl@lucon.org>
634 * utils/rquotad/rquota_server.c: Don't call statfs () for
635 the block size. Use BLOCK_SIZE instead.
637 2001-06-27 H.J. Lu <hjl@lucon.org>
639 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
640 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
642 * configure.in (enable_nfsv3): Set to yes by default.
643 (--enable-rquotad): Added
644 (AC_PROG_CXX): Removed.
645 (AC_OUTPUT): Add utils/Makefile.
646 (CC_FOR_BUILD): Renamed from BUILD_CC.
647 * configure: Regenerated.
649 * utils/Makefile: Removed.
651 * utils/Makefile.in: New.
653 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
655 (CC_FOR_BUILD): Renamed from BUILD_CC.
656 * nfs-utils.spec: Regenerated.
658 2001-06-15 Chip Salzenberg <chip@debian.org>
660 * debian/changelog: Version 0.3.2-2.
661 * debian/*.init: Minor fixes.
663 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
665 * etc/nodist/nfs-server: Fixed a bug where the script would
666 disable mounts from NFSv3 clients if NFSv3 is present.
668 2001-06-05 H.J. Lu <hjl@lucon.org>
670 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
671 (main): Support --descriptors/-o to set the limit of the number
672 of open file descriptors.
675 * utils/mountd/mountd.man: Updated for --descriptors/-o.
677 2001-06-04 H.J. Lu <hjl@lucon.org>
679 * nfs-utils.spec (Release): Set to 6.
681 2001-05-28 H.J. Lu <hjl@lucon.org>
683 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
684 * utils/mountd/mountd.c (main): Likewise.
685 * utils/nfsd/nfsd.c (main): Likewise.
686 * utils/rquotad/rquota_svc.c (main): Likewise.
688 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
690 * support/export/client.c (client_check): Check IP address
693 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
695 * support/export/client.c (client_gettype): Treat `*' as
698 2001-04-22 H.J. Lu <hjl@lucon.org>
700 * nfs-utils.spec.in: Fix a typo.
701 * nfs-utils.spec: Regenerated.
703 2001-04-21 H.J. Lu <hjl@lucon.org>
705 * nfs-utils.spec.in: Fix cross build.
706 * nfs-utils.spec: Regenerated.
709 2001-04-18 H.J. Lu <hjl@lucon.org>
711 * nfs-utils.spec.in: Support cross build.
712 * nfs-utils.spec: Regenerated.
718 * config.mk.in (BUILD_CC): New.
719 (CC): Set to $(BUILD_CC) if BUILD is defined.
722 (RANLIB): Set to @RANLIB@.
724 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
725 * configure: Regenerated.
727 * tools/rpcgen/Makefile (BUILD): Set to true.
729 2001-04-01 Chip Salzenberg <chip@valinux.com>
731 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
732 redundant, and sometimes broken, declaration of svc_fdset;
734 * support/nfs/rpcmisc.c (closedown): Likewise.
736 2001-03-21 H.J. Lu <hjl@lucon.org>
738 * nfs-utils.spec: Regenerated.
741 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
743 * utils/statd/statd.c (main): make sure file descriptors 0-2
744 are open to /dev/null.
746 2001-03-21 H.J. Lu <hjl@lucon.org>
748 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
749 * support/nfs/rpcmisc.c: Likewise.
750 * utils/rquotad/rquota_svc.c: Likewise.
751 * utils/rquotad/rquotad.man: Likewise.
752 * utils/statd/Makefile: Likewise.
753 * utils/statd/rmtcall.c: Likewise.
754 * utils/statd/simulate.c: Likewise.
755 * utils/statd/statd.c: Likewise.
756 * utils/statd/statd.man: Likewise.
758 2001-03-11 H.J. Lu <hjl@lucon.org>
760 * configure.in (RELEASE): New. Default to 1, set by
761 --with-release=XXX. Substitute nfs-utils.spec.
762 * nfs-utils.spec.in (Release): Set to @RELEASE@.
763 * configure: Regenerated.
764 * nfs-utils.spec: Likewise.
766 2001-03-11 H.J. Lu <hjl@lucon.org>
768 * utils/rquotad/rquotad.man: Fix a typo.
770 2001-03-11 H.J. Lu <hjl@lucon.org>
772 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
773 * support/nfs/rpcmisc.c: Likewise.
774 * utils/rquotad/rquota_svc.c: Likewise.
775 * utils/rquotad/rquotad.man: Likewise.
776 * utils/statd/Makefile: Likewise.
777 * utils/statd/rmtcall.c: Likewise.
778 * utils/statd/simulate.c: Likewise.
779 * utils/statd/statd.c: Likewise.
780 * utils/statd/statd.man: Likewise.
782 2001-03-10 H.J. Lu <hjl@lucon.org>
784 * configure.in (VERSION): Set to "0.3.2".
785 * configure: Regenerated.
786 * nfs-utils.spec: Likewise.
788 * README: Updated for 0.3.2.
790 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
792 * utils/rquotad/rquotad.man: Updated for -p.
793 * utils/statd/statd.man: Likewise.
795 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
797 * support/nfs/rpcmisc.c: export makesock()
799 * support/include/rpcmisc.h (makesock): Declared.
801 * utils/rquotad/rquota_svc.c: added longopts, added support for
802 specifying the port to bind to on the command line.
804 * utils/statd/statd.c: ditto, also specify port used for
805 outgoing connections.
806 (do_regist): Removed.
808 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
809 get_socket. Make it extern.
811 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
812 instead of do_regist.
814 * utils/statd/Makefile (LIBS): link with our own libnfs
816 2001-03-09 H.J. Lu <hjl@lucon.org>
818 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
819 * etc/nodist/nfs-client: Likewise.
821 2001-02-26 Chip Salzenberg <chip@valinux.com>
823 * debian/changelog: Version 0.3.1-1.
824 * Mention upstream source and license in copyright file.
825 * Add build-Depends for debhelper and libwrap0-dev.
827 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
829 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
830 * etc/nodist/nfs-client: Likewise.
832 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
834 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
837 2001-02-17 Patrick J. LoPresti <patl@curl.com>
839 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
842 2001-02-14 H.J. Lu <hjl@lucon.org>
844 * utils/statd/rmtcall.c: Include <time.h>.
845 * utils/statd/svc_run.c: Likewise.
847 2001-02-14 H.J. Lu <hjl@lucon.org>
849 * configure.in (VERSION): Set to "0.3.1".
850 * configure: Regenerated.
851 * nfs-utils.spec: Likewise.
853 * README: Updated for 0.3.1.
855 2001-02-14 H.J. Lu <hjl@lucon.org>
857 * support/nfs/rpcmisc.c: Include <time.h>.
859 2001-02-14 Chip Salzenberg <chip@valinux.com>
861 * debian/control: Change priority of nhfsstone package to 'extra'.
863 2001-02-12 Chip Salzenberg <chip@valinux.com>
865 * debian/changelog: Version 0.3-2.
867 2001-02-02 H.J. Lu <hjl@lucon.org>
869 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
871 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
872 out SO_SNDBUF/SO_RCVBUF.
873 (rpc_init): Remove bufsize and remove socksz in calls to
876 * utils/mountd/mountd.c (main): Remove bufsize in calls to
879 2001-01-28 Chip Salzenberg <chip@valinux.com>
881 * debian/changelog: Version 0.3-1.
883 2001-01-25 H.J. Lu <hjl@lucon.org>
885 * configure.in (VERSION): Set to "0.3".
886 * configure: Regenerated.
887 * nfs-utils.spec: Likewise.
889 * README: Updated for 0.3.
891 2001-01-25 H.J. Lu <hjl@lucon.org>
893 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
895 2001-01-20 Chip Salzenberg <chip@valinux.com>
897 * support/include/xio.h (xgetc): Declare to return int.
898 * support/nfs/xio.c (xgetc): Return int.
899 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
900 * utils/statd/statd.c (main): Use int for value of getopt.
901 * debian/changelog: Version 0.2.1-5.
903 2000-12-10 Chip Salzenberg <chip@valinux.com>
905 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
906 program and procedure numbers of kernel lockd's callback. Also,
907 besides the old (and broken) procedure #24, allow #16 per Trond.
909 2000-12-03 Chip Salzenberg <chip@valinux.com>
911 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
912 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
913 * debian/changelog: Version 0.2.1-4.
915 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
917 * utils/mountd/auth.c (auth_authenticate): Log the bad path
920 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
922 * support/nfs/exports.c (getexportent): Check for host name
923 without option, or options without hostname, and print a warning,
924 as this is most likely a typo.
926 2000-11-19 Chip Salzenberg <chip@valinux.com>
928 * debian/control: Add dependency on portmap.
929 * debian/changelog: Version 0.2.1-3.
931 2000-11-10 H.J. Lu <hjl@lucon.org>
933 * nfs-utils.spec.in: Don't use libtool.
934 Add ChangeLog and COPYING to doc.
935 * nfs-utils.spec: Rebuild.
937 2000-11-09 H.J. Lu <hjl@lucon.org>
939 * etc/redhat/nfs.init (start): Back out the last change.
941 2000-11-09 H.J. Lu <hjl@lucon.org>
943 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
944 TCP is not supported by kernel.
946 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
948 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
949 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
951 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
953 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
955 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
956 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
957 callbacks to local lockd.
959 2000-10-18 Scott McDermott <mcdermot@questra.com>
961 * utils/exportfs/exports.man: Updated for CIDR netmask.
963 2000-10-17 Scott McDermott <mcdermot@questra.com>
965 * support/export/client.c (client_init): Support CIDR netmask
968 2000-10-11 H.J. Lu <hjl@lucon.org>
970 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
971 * configure: Rebuilt.
973 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
975 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
976 "/var/lib/nfs/state".
978 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
980 * utils/statd/statd.h (run_mode): New global bitmask of runtime
981 behaviors: fg/bg, logging, etc.
982 * utils/statd/statd.c: New command line options: -V -h -? -d .
983 * utils/statd/statd.man: Update for changes to statd.
985 * utils/statd/log.h (log_init): Remove parameter of function; use
986 global variable "name_p" instead.
987 * utils/statd/log.c: Add support for logging to stderr.
989 * utils/statd/notlist.c: Partially rewrite notify list handling
990 functions. Eliminate run-off-end-of-list bug when calling
991 nlist_insert_timer. Add lots of comments.
993 2000-09-27 H.J. Lu <hjl@lucon.org>
995 * README: Updated for RedHat 7.0.
997 2000-09-27 H.J. Lu <hjl@lucon.org>
999 * nfs-utils.spec: Rebuild.
1001 2000-09-27 H.J. Lu <hjl@lucon.org>
1003 * README: Updated for 0.2.1.
1005 2000-09-27 H.J. Lu <hjl@lucon.org>
1007 * nfs-utils.spec.in: Updated to use rpm macros and support
1010 2000-09-25 H.J. Lu <hjl@lucon.org>
1012 * configure.in (VERSION): Set to "0.2.1".
1013 * configure: Regenerated.
1014 * nfs-utils.spec: Updated.
1016 2000-09-25 H.J. Lu <hjl@lucon.org>
1018 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1019 non-NULL hostent is always returned.
1021 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1023 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1024 have an executable (i.e. kernel threads)
1026 2000-09-01 H.J. Lu <hjl@lucon.org>
1028 * README: Updated for 0.2.
1030 2000-09-01 Jay Weber <jweber@valinux.com>
1032 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1033 supporting version 3 of nfs if available, else it will fall back to
1034 version 2 support only.
1036 2000-08-30 H.J. Lu <hjl@lucon.org>
1038 * configure.in (VERSION): Set to "0.2".
1039 * configure: Regenerated.
1040 * nfs-utils.spec: Updated.
1042 2000-08-25 H.J. Lu <hjl@lucon.org>
1044 * support/misc/tcpwrapper.c (logit): Modify the log output.
1046 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1048 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1049 utils/mountd/mountd.man: updated
1051 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1052 * utils/rquotad/Makefile: fix comment
1054 * support/misc/tcpwrapper.c (logit): added comment about waiting
1055 for the children after fork()
1057 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1058 zombies behind (from logit()'s fork)
1059 * utils/rquotad/rquota_svc.c (main): ditto
1060 * utils/statd/statd.c (main): ditto
1062 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1063 to check_default instead of 0, for prognum
1065 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1066 to check_default instead of 0, for prognum
1068 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1069 HAVE_TCP_WRAPPER is defined.
1070 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1071 defined. Reject an RPC call if check_default () fails.
1073 2000-08-25 H.J. Lu <hjl@lucon.org>
1075 * support/include/tcpwrapper.h: New for the tcp wrapper
1077 * support/misc/Makefile: Likewise.
1078 * support/misc/from_local.c: Likewise.
1079 * support/misc/tcpwrapper.c: Likewise.
1081 * aclocal.m4 (AC_TCP_WRAPPER): New.
1082 * configure.in: Use it. Substitute LIBWRAP.
1083 * configure: Rebuilt.
1085 * config.mk.in (LIBNSL): New.
1086 (LIBWRAP): Likewise.
1088 * support/Makefile (SUBDIRS): Add misc.
1090 * support/lib/Makefile (LIBS): Add libmisc.a.
1092 * utils/rquotad/Makefile (LIBS): Add
1094 -lmisc $(LIBWRAP) $(LIBNSL)
1096 * utils/statd/Makefile (LIBS): Likewise.
1098 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1099 HAVE_TCP_WRAPPER is defined.
1100 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1101 defined. Reject an RPC call if check_default () fails.
1103 * utils/statd/statd.c: Include "tcpwrapper.h" if
1104 HAVE_TCP_WRAPPER is defined.
1105 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1106 check_default () before calling sm_prog_1 (). Define it as
1107 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1109 2000-08-25 Chip Salzenberg <chip@valinux.com>
1111 * debian/*: Complete Debian build support.
1112 * etc/debian/*: Remove.
1114 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1116 * support/export/client.c(client_check): removed the "dot+1" as a
1117 ypdomain argument to innetgr as this is entirely bogus.
1118 It should always be NULL.
1120 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1122 * support/export/xtab.c(xtab_read): introduce new mode for
1123 reading xtab. i.e. a list of exports that might be known to the
1124 kernel, or might not. These are flagged as m_exported == -1
1125 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1126 value "2" for xtab, meaning don't trust this too much.
1127 * support/include/exportfs.h(struct mexport): changed m_exported
1128 from one bit to an int so that it can hold new value
1129 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1130 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1131 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1134 * support/nfs/xio.c(xflock): added O_CREAT when getting
1135 a write lock so that missing files aren't fatal.
1137 * etc/debian/nfs-common: new file from "potato"
1138 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1140 2000-08-09 H.J. Lu <hjl@lucon.org>
1142 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1143 startup to ensure all existing clients work fine.
1145 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1146 to xtab_read () for reading _PATH_XTAB.
1148 2000-08-02 H.J. Lu <hjl@lucon.org>
1150 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1151 avoid the reverse name lookup.
1153 2000-07-04 H.J. Lu <hjl@lucon.org>
1155 * utils/statd/log.c: Include <stdlib.h> for exit ().
1157 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1160 2000-07-04 H.J. Lu <hjl@lucon.org>
1162 * configure.in (VERSION): Set to "0.1.9.1".
1163 * configure: Regenerated.
1164 * nfs-utils.spec: Updated.
1168 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1170 * support/export/hostname.c (hostent_dup): Handle the NULL
1173 2000-07-03 H.J. Lu <hjl@lucon.org>
1175 * README: Update the util-linux requirement.
1177 2000-07-03 H.J. Lu <hjl@lucon.org>
1179 * configure.in (VERSION): Set to "0.1.9".
1180 * configure: Regenerated.
1181 * nfs-utils.spec: Updated.
1185 2000-07-03 H.J. Lu <hjl@lucon.org>
1187 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1188 stop to ensure all clients can still access the server
1189 before it is shutdown.
1191 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1193 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1194 calls with format string.
1196 2000-06-28 Chip Salzenberg <chip@valinux.com>
1198 * utils/statd/log.c (log): Call syslog with format string.
1200 2000-06-27 H.J. Lu <hjl@lucon.org>
1202 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1203 instead of OPEN_MAX.
1205 2000-06-27 H.J. Lu <hjl@lucon.org>
1209 2000-06-27 H.J. Lu <hjl@lucon.org>
1211 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1212 startup to ensure all existing clients are exported.
1214 * configure.in (VERSION): Set to "0.1.8.2".
1215 * configure: Regenerated.
1216 * nfs-utils.spec: Updated.
1218 2000-06-06 H.J. Lu <hjl@lucon.org>
1220 * configure.in (VERSION): Set to "0.1.8.1".
1221 * configure: Regenerated.
1222 * nfs-utils.spec: Updated.
1224 2000-06-06 H.J. Lu <hjl@lucon.org>
1226 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1227 to "struct sockaddr_in *" for glibc 2.2.
1228 (mount_umnt_1_svc): Likewise.
1229 (mount_umntall_1_svc): Likewise.
1230 (mount_export_1_svc): Likewise.
1231 (mount_exportall_1_svc): Likewise.
1232 (mount_pathconf_2_svc): Likewise.
1233 (get_rootfh): Likewise.
1235 2000-06-04 H.J. Lu <hjl@lucon.org>
1237 * etc/redhat/nfs.init: Fix a typo in comment.
1239 2000-05-31 H.J. Lu <hjl@lucon.org>
1241 * configure.in (VERSION): Set to "0.1.8".
1242 * configure: Regenerated.
1243 * nfs-utils.spec: Updated.
1247 2000-05-31 H.J. Lu <hjl@lucon.org>
1249 * configure.in (VERSION): Set to "0.1.7.5".
1250 * configure: Regenerated.
1251 * nfs-utils.spec: Updated.
1253 * support/include/nfslib.h (exportent): Add a new field,
1254 r_count, to count the number of mounts from a client.
1255 (getrmtabent): Take a new argument for position in file.
1256 (putrmtabent): Likewise.
1257 (fgetrmtabent): Likewise.
1258 (fputrmtabent): Likewise.
1259 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1260 for position in file.
1261 (fgetrmtabent): Likewise.
1262 (putrmtabent): Likewise.
1263 (fputrmtabent): Likewise.
1265 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1268 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1269 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1270 and fputrmtabent ().
1271 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1272 (mountlist_del): Likewise.
1273 (mountlist_del_all): Likewise.
1274 (mountlist_list): Likewise.
1276 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1277 for the existing entry and initialize "r_count" to 1.
1278 (mountlist_del): Decrement "r_count".
1280 2000-05-18 H.J. Lu <hjl@lucon.org>
1282 * configure.in (VERSION): Set to "0.1.7.4".
1283 * configure: Regenerated.
1284 * nfs-utils.spec: Updated.
1286 2000-05-18 H.J. Lu <hjl@lucon.org>
1288 * etc/redhat/nfs.init (restart): Just do stop and start.
1290 2000-05-09 Jay Weber <jweber@valinux.com>
1292 * utils/rquotad/hasquota.c: added support for ext3 recognition
1294 * utils/rquotad/mntent.h: Likewise.
1296 2000-05-01 H.J. Lu <hjl@lucon.org>
1298 * configure.in (VERSION): Set to "0.1.7.3".
1299 * configure: Regenerated.
1300 * nfs-utils.spec: Updated.
1302 2000-05-01 H.J. Lu <hjl@lucon.org>
1304 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1305 mounting poins in /etc/fstab.
1307 2000-05-01 H.J. Lu <hjl@lucon.org>
1309 * configure.in (VERSION): Set to "0.1.7.2".
1310 * configure: Regenerated.
1311 * nfs-utils.spec: Updated.
1313 2000-05-01 H.J. Lu <hjl@lucon.org>
1315 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1316 to check for the mounting point.
1318 2000-04-29 Chip Salzenberg <chip@valinux.com>
1319 Neil Brown <neilb@cse.unsw.edu.au>
1321 * Really re-use RPC ports.
1322 (Fixes earlier patch. Sorry, Neil.)
1324 2000-04-26 H.J. Lu <hjl@lucon.org>
1326 * configure.in (VERSION): Set to "0.1.7.1".
1327 * configure: Regenerated.
1328 * nfs-utils.spec: Updated.
1330 2000-04-26 H.J. Lu <hjl@lucon.org>
1332 * etc/redhat/nfslock.init: Check if lockd exits before killing
1335 2000-04-25 H.J. Lu <hjl@lucon.org>
1337 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1339 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1341 * support/nfs/exports.c (parsesquash): Correctly set the
1344 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1346 * support/include/nfs/nfs.h: Removed knowledge of internals of
1347 kernel filehandles (which can change) and defined nfs_fh_size
1348 which has variable size
1350 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1351 get variable sized file handles, and change getfh{,old} to
1354 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1357 * tools/Makefile, tools/nlmtest/nlmtest.c
1358 nlmtest.c depended on internel format of file handles, so now
1362 2000-03-12 Chip Salzenberg <chip@valinux.com>
1363 Neil Brown <neilb@cse.unsw.edu.au>
1365 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1367 2000-03-13 H.J. Lu <hjl@lucon.org>
1369 * etc/redhat/nfsd.init: Updated.
1371 * etc/redhat/nfslock.init: Updated.
1373 * nfs-utils.spec.in: Updated.
1375 * configure.in (VERSION): Set to "0.1.7".
1376 * configure: Regenerated.
1377 * nfs-utils.spec: Updated.
1381 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1383 * utils/exportfs/exportfs.c (dump): Included printing of
1384 nohide, no_subtree_check, and insecure_locks
1386 2000-02-26 Chip Salzenberg <chip@valinux.com>
1388 * config.mk.in (INSTALLSUID): Strip ("-s").
1389 (INSTALLSCRIPT): Define.
1390 * utils/nhfsstone/Makefile: Use it.
1392 2000-02-26 Chip Salzenberg <chip@valinux.com>
1394 * utils/lockd/lockd.man: Create.
1395 * utils/lockd/Makefile: Install it.
1396 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1397 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1398 * utils/nhfsstone/Makefile: Install the helper scripts and
1400 * utils/exportfs/exports.man: Fix typo.
1402 2000-02-26 Chip Salzenberg <chip@valinux.com>
1404 * support/nfs/xio.c (xungetc): Decrement line number when
1405 character to unget is newline. Make first parameter int, so
1406 it can distinguish EOF from \377.
1407 * support/include/xio.h (xungetc): Adjust prototype.
1409 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1411 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1412 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1413 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1415 This is for supporting a new option introduced in 2.3.42
1417 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1419 * COPYING: Added. GPL.
1421 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1423 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1424 to get the block size.
1426 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1428 * nfs-utils.spec.in: Update ftp site.
1430 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1432 * README: Update hostnames.
1434 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1436 * configure.in (VERSION): Set to "0.1.6".
1437 * configure: Regenerated.
1438 * nfs-utils.spec: Updated.
1442 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1444 * utils/mountd/auth.c (auth_authenticate_internal): Call
1445 xstrdup for hostname before passing it to gethostbyname.
1447 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1450 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1452 * README: Update the mailing list address.
1454 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1456 * configure.in (VERSION): Set to "0.1.5".
1457 * configure: Regenerated.
1458 * nfs-utils.spec: Updated.
1462 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1464 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1467 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1469 * configure.in (VERSION): Set to "0.1.4".
1470 * configure: Regenerated.
1471 * nfs-utils.spec: Updated.
1475 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1477 * nfs-utils.spec.in: New file.
1479 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1481 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1483 1999-12-04 Chip Salzenberg <chip@valinux.com>
1485 * config.mk.in: Use $(CC) as set by configure.
1487 1999-12-04 Chip Salzenberg <chip@valinux.com>
1489 * rules.mk: Call $(MAKE) with $(MFLAGS).
1491 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1493 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1494 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1496 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1498 * nfs-utils.spec (Version): Set to 0.1.3.
1500 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1501 * configure: Regenerated.
1505 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1507 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1508 (_PATH_DEV_DSK): Likewise.
1509 (getquotainfo): Match the mounting point from /etc/mtab
1510 instead of calling nfsmount_to_devname ().
1512 1999-11-24 Chip Salzenberg <chip@valinux.com>
1514 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1515 to the new port 24 as well as the historical port 100021.
1517 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1519 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1520 stopping nfsd to stop spurious ESTALE on server shutdown.
1522 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1524 * support/nfs/exports.c (parseopts): make copy of opt string
1525 before 'nul'ing out commas so that
1527 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1529 applies both options to both exports.
1531 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1533 * README: Fix a few typos.
1535 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1537 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1538 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1539 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1540 (unsigned_dec): Likewise.
1541 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1542 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1544 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1546 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1547 (unsigned_dec): Likewise.
1548 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1549 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1550 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1552 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1554 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1555 * support/nfs/exports.c: added {no_,}subtree_check and changed
1557 * utils/exportfs/exports.man: added no_subtree_check and nohide
1558 and removed irrelevant stuff from unfsd.
1559 * support/export/rmtab.c: rmtab_read didn't quite do the right
1560 thing if a pathname from rmtab was a subdirectory of an export-point
1562 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1564 * README: Updated ftp site.
1566 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1568 * nfs-utils.spec (Version): Set to 0.1.2.
1570 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1571 * configure: Regenerated.
1575 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1577 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1578 (auth_authenticate_internal): Check for NULL return on forward
1580 (auth_authenticate): Handle "no_forward_dns".
1582 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1584 * Version 0.1.1 released.
1586 * nfs-utils.spec (Version): Set to 0.1.1.
1588 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1589 * configure: Regenerated.
1593 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1595 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1597 (Provides): Likewise.
1599 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1601 * Initial version 0.1 released.
1603 * configure.in (VERSION): Set to "nfs-utils 0.1".
1604 * configure: Regenerated.
1606 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1608 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1610 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1611 kernel only if the entry is exported to kernel.
1612 (unexportfs): Likewise.
1614 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1616 1/ utils/mountd/rmtab.c::mountlist_list
1618 This routine stats the rmtab file to see if it has changed. It
1619 if has, it cleans up it's old copy of the data. But it still
1620 always re-read the file, thus returning multiple copies of the
1621 data on consecutive calls without intervening changes.
1622 "Showmount -a" didn't show this as it appears to sort/unique the
1623 data, but 'strace showmount -a' showed that the size of the
1624 datagram that it received grew.
1626 I moved the getrmtabent loop inside the mtime test.
1628 2/ utils/exportfs/exportfs.c
1630 Many routines used the m_path field of m_export instead of
1632 According to the comment in nfslib.h, m_path should only
1633 be used when processing a mount request (i.e. in mountd)
1634 where the mountpoint may be a subdirectory of the export point.
1636 I changed all occurances of m_path to e_path
1639 3/ utils/exportfs/exportfs.c:main
1641 extra arguments are not meaningful with -a or -r, but
1642 exportfs accepted them and then ignored the -a/-r, expect that
1643 -r would still unexport everything first.
1645 I generate an error if there are extra args and f_all
1647 4/ utils/exportfs/exportfs.c:main
1648 extract dump out as a special case.
1650 5/ utils/exportfs/exportfs.c
1651 made f_reexport a local variable.
1654 6/ utils/exportfs/exportfs.c:main,exportall
1656 support/export/rmtab.c
1657 only mayexport on newly created entries, don't set xtabent at all
1659 7/ support/include/nfslib.h
1661 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1663 8/ support/export/xtab.c
1665 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1669 9/ support/export/xtab.c
1671 xtab_mount_read now sets m_exported, and NOT
1672 xtabent and mayexport
1674 removed the append arguement from xtab_write as it was
1677 added is_export flag to xtab_write similar to xtab_read
1678 if is_export, only write entries with m_xtabent or m_addxtab
1679 if !is_export, only write entries with m_exported
1681 10/ support/export/export.c::export_allowed_internal
1683 added test for exp->m_mayexport, as the export tree
1684 may have entries that are no longer allowed to be exported,
1685 and so shouldn't caused deduced exported by rmtab_read
1687 11/ utils/exportfs/exportfs.c::main
1688 error checking of flags.
1690 12/ utils/exportfs/exportfs.c
1692 total rewrite of export and unexport logic.
1694 - build an exportslist of valid exports, based on
1695 current etab file and arguments,
1696 - read rmtab to instantiate relevant wild card entries
1697 - read etab to find out what is currently exported
1698 - synchronise intention with reality
1699 - write out etab and xtab
1702 discard the m_addxtab flag
1703 add m_changed flag so we know what to report in exportfs
1705 14/ utils/mountd/auth.c:auth_authenticate
1707 the value returned by gethostbyaddr was trusted.
1709 It now follows this with a call to gethostbyname
1710 and checks that the address is in the list.
1712 15/ support/export/nfsctl.c::cltsetup,expsetup
1714 force client names to lowercase as kernel is
1717 16/ quietened a few compiler warnings
1719 17/ support/export/client:client_lookup
1721 look for pre-existing client with same name before creating
1724 18/ support/include/exportfs.h
1726 The ordering of the MCL_* enum was:
1727 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1729 I moved ANONYMOUS to the end.
1731 The ordering is significant when an export entry is being searched for to
1732 match a given address. There are two problems with ANONYMOUS being first.
1734 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1735 then the ro case will always be found first and the privileged hosts won't get
1737 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1738 export entry for the specific host, and writes it to xtab.
1739 When another request comes from the same host, the ANONYMOUS entry is found again,
1740 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1741 again. If causes bloat in xtab.
1743 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1745 19/ utils/exportfs/exportfs.man
1746 many updates to the man page to reflect changes to the code
1748 -----------------------
1754 - allow exportfs to modify rmtab file
1755 - make sure kernel never gets two clients with same IP address
1756 - possible kernel should reject
1757 - needs to be some way to lookup client in kernel by IP address
1758 - maybe get kernel to do case-insensitive comparisons on client names
1759 - remove unused clients from kernel
1761 - change etab to xtab and xtab to xtab.active
1763 - timestamp and/or statd-stamp in rmtab for removing old entries.
1765 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1767 * linux-nfs: New directory.
1768 * linux-nfs/ChangeLog: Moved from ..
1769 * linux-nfs/INSTALL: Likewise.
1770 * linux-nfs/KNOWNBUGS: Likewise.
1771 * linux-nfs/NEW: Likewise.
1772 * linux-nfs/README: Likewise.
1773 * linux-nfs/THANKS: Likewise.
1774 * linux-nfs/TODO: Likewise.
1776 * Starting from knfsd 1.4.7.