1 2003-07-24 Chip Salzenberg <chip@pobox.com>
3 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
4 use Debian security team's cleaner approach.
5 * debian/control, debian/*.templates, debian/po/*: Upgrade to
6 po-debconf system for translations of debconf messages.
7 * debian/changelog: Version 1.0.5-1.
8 * debian/nfs-kernel-server.init: Cosmetic changes.
10 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
13 1.0.4 was a bit of a brown-paper-bag-release because of the extra
14 'free' in auth.c. So I'm releasing this just a few days later.
16 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
18 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
19 check if new_cache is enabled, error if not, flush and exit if it
21 * utils/exportfs/exportfs.man: Explain -f option and explain the
22 two different modes that exportfs can work in.
23 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
25 * utils/mountd/mountd.man: Record the change if default behaviour
27 * configure.in, nfs-utils.spec: update version to 1.0.5 and
30 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
32 * utils/mountd/mountd.c(main): getopt string fix for 'o'
33 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
34 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
36 * support/include/nfs/export.h: Reserve a bit for possible ACL
39 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
41 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
42 assorted changed to cope with section 7 of the manual.
43 * configure.in, nfs-utils.spec: Update version to 1.0.4
46 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
47 baseline for 2.6 and 2.8. I.e. it should continue to work right
48 through the 2.8 (or 3.0) kernel series. Previous releases wont.
50 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
51 Steve Dickson <SteveD@redhat.com>
54 * utils/statd/statd.c: create a pidfile with pid of statd, and
55 truncate it when statd exists.
56 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
57 and warn if this is root.
58 * utils/statd/statd.c: when statd forks, connect child to parent
59 with a pipe, and send a byte down the pipe once the child is
61 * Makefile: create and chown sm, sm.bak, state when "make install"
62 * configure.in: add --with-statduser= option which defaults to
64 * config.mk.in: pass "statduser" through to Makefile
66 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
68 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
69 used as the size was changed somewhere in 2.5.60-2.5.70. Without
70 this nfs-utils compiles against 2.6 headers will not work on a
73 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
75 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
76 set number of threads by writing to there. This means it will
77 still work when the syscall interface goes away in 2.7.
79 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
80 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
82 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
83 so as to only export the wildcard exports that were asked for.
84 * support/export/export.c(export_allowed): changed to return the
85 nfs_export rather than a "struct exportent", as m_changed is
87 * support/export/rmtab.c(rmtab_read): modified to deal with
88 interface change for export_allowed(), and enhanced to preserve
89 m_changed flag when a wild-card export causes the creation of
90 a non-wildcard export.
92 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
93 Steve Dickson <SteveD@redhat.com>
95 * utils/mountd/mountd.man: Add valid kinds of debugging.
96 * utils/mountd/mountd.c(main): ignore SIGPIPE
97 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
98 we don't get warnings about unavailable stats that weren't asked
101 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
103 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
104 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
105 'forever', so things disappear out of the cache rather than just
108 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
110 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
113 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
115 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
116 etc/redhat/nfs.init: when checking if V3 is supported, make sure
117 nfs server 'knows' about 127.0.0.1 first.
119 2003-06-10 Chip Salzenberg <chip@pobox.com>
121 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
122 * debian/changelog: Version 1.0.3-2.
124 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
125 NeilBrown <neilb@cse.unsw.edu.au>
127 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
128 long long to avoid overflow when printing stats.
130 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
132 * support/export/export.c, support/include/nfslib.h,
133 support/nfs/export.c, utils/exportfs/exportfs.c,
134 utils/mountd/mountd.c: new export option "mountpoint"
135 If no path is given, then the export point must be a
136 mount point, or it won't be exported. If a path is
137 given (e.g. mountpoint=/path) then that path must be
138 a mountpoint or the exportpoint won't be exported.
139 * utils/exportfs/exportfs.man: document mountpoint option.
140 * support/misc/mountpoint.c: New file with is_mountpoint()
141 to determine if something is a mountpoint.
143 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
145 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
146 argument as we might not be getting the filehandle for the
148 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
149 cache_get_filehandle.
150 * utils/mountd/mountd.c(get_rootfh): check export point and
151 requested directory are on the same filesystem, and complain if
154 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
156 * utils/mountd/auth.c(auth_authenticate_internal): make sure
157 portnumber is still checked when using new cache lookup.
159 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
161 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
162 Don't actually talk to kernel when new cache is in effect, except
164 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
165 * support/export/xtab.c: Only rename new xtab into place if it has
166 changed, thus preserving modify date for exportfs to use when
168 * support/nfs/cacheio.c: Add cache_flush
169 * support/export/xtab.c: Only rename new xtab into place if it has
170 changed, thus preserving modify date for exportfs to use when
173 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
175 * support/export/client.c: Add client_compose, client_member to
176 handle new composite client names
177 * support/include/exportfs.h: Declare above functions.
178 * utils/mountd/auth.c: use client_compose to determine calling
179 client if new cache is being used.
180 * utils/mountd/auth.c: call cache_export to export a filesystem if
181 new_cache, check if new cache is used, and call my_svc_run instead
183 * utils/mountd/svc_run.c: new file defining my_svc_run
184 * utils/mountd/cache.c: new file for handling cache upcalls.
185 * support/nfs/cacheio.c(check_new_cache): new function to check if
186 new cache should be used.
189 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
191 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
192 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
193 * utils/exportfs/exportfs.c(dump): ditto
195 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
197 * support/export/hostname.c(get_reliable_hostbyaddr): new function
198 to get host name from address with full checking of authenticity.
199 * support/include/misc.h: declare above function
200 * utils/mountd/auth.c(auth_authenticate_internal): remove all
201 logic for authenticating address.
202 * utils/mountd/auth.c(auth_authenticate): call new
203 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
206 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
208 * tools/rpcgen/rpc_main.c(find_cpp): removed
209 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
210 then try hard-coded paths.
212 2003-03-26 Chip Salzenberg <chip@pobox.com>
214 * debian/changelog: Version 1.0.3-1.
216 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
218 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
219 "const char*", not "char*".
221 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
223 * configure.in (VERSION): Set to "1.0.3".
224 * nfs-utils.spec: Likewise.
225 * configure: Regenerated.
227 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
229 * support/nfs/cacheio.c: New File - support for read/writing
230 to export cache in /proc/rpc/*/channel
231 * support/nfs/Makefile: compile cacheio.c
232 * support/include/nfslib.h: declare cacheio.c functions
233 * support/nfs/nfsexport.c: export and unexport through
234 /proc/rpc/*/channel if possible, as old syscall interface
235 may not survive into 2.6 on all architectures.
237 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
238 Ben Leslie <benno@sesgroup.net>
240 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
241 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
242 former would incorectly ignore defport if the application
243 explicitly set __rpcfdtype. The later is sufficient to avoid the
244 special handling in the case where stdin is an internet socket.
246 * utils/mountd/mountd.c(main): Add 'n' to option list in
247 getopt_long as this is a short form of --no-tcp which want being
250 2003-02-12 Chip Salzenberg <chip@pobox.com>
252 * debian/changelog: Version 1.0.2-2.
254 2002-11-27 Chip Salzenberg <chip@pobox.com>
256 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
257 overflow bug. Reformat per rest of source file.
259 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
261 * utils/exportfs/exports.man: Correct notes about whether the wild
262 card characters match a period. They do.
264 2002-10-15 Juan Gomez <juang@us.ibm.com>
266 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
268 (mountlist_add): Call slink_safe_rename instead of rename.
270 2002-10-11 H.J. Lu <hjl@lucon.org>
272 * support/include/exportfs.h (export_errno): New.
274 * support/nfs/exports.c: Include <errno.h>.
276 (getexportent): Set export_errno to EINVAL for bad option.
277 (parseopts): Likewise.
278 Report the location of the default sync/async option.
280 * utils/exportfs/exportfs.c (main): Initialize export_errno to
281 0. Return export_errno.
283 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
284 NeilBrown <neilb@cse.unsw.edu.au>
286 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
287 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
289 2002-09-16 Chip Salzenberg <chip@pobox.com>
291 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
293 2002-09-15 Chip Salzenberg <chip@pobox.com>
295 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
296 socket, as occurs when run from sshd.
297 * debian/changelog: Version 1.0.2-1.
299 2002-09-12 H.J. Lu <hjl@lucon.org>
301 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
304 2002-09-12 H.J. Lu <hjl@lucon.org>
306 * configure.in: Remove checking svctcp_socket and svcudp_socket.
307 * configure: Regenerated.
309 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
310 (HAVE_SVCUDP_SOCKET): Removed.
312 * support/include/nfslib.h: Undo the last change.
314 2002-09-12 H.J. Lu <hjl@lucon.org>
316 * support/include/nfslib.h (svctcp_socket): Protect it with
318 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
320 2002-09-12 H.J. Lu <hjl@lucon.org>
322 * configure.in (VERSION): Set to "1.0.2".
323 * configure: Regenerated.
324 * nfs-utils.spec: Likewise.
326 2002-09-12 H.J. Lu <hjl@lucon.org>
328 * configure.in: Check svctcp_socket and svcudp_socket.
329 * configure: Regenerated.
331 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
332 (HAVE_SVCUDP_SOCKET): New.
334 * support/include/nfslib.h (svctcp_socket): New.
335 (svcudp_socket): New.
337 * support/nfs/Makefile (OBJS): Add svc_socket.o.
339 * support/nfs/svc_socket.c: New.
341 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
342 svcudp_socket if port is unspecified.
344 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
346 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
347 (killer): New. Signal handler to unregister.
348 (main): Use killer. Call svcudp_socket to get the default
351 2002-09-02 Juan Gomez <juang@us.ibm.com>
352 NeilBrown <neilb@cse.unsw.edu.au>
354 Add -N option to statd to run in notify-only mode.
356 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
357 * utils/statd/statd.man: document -N
358 * utils/statd/statd.c: enabled -N, largely exists but needed to be
359 uncommented and completed
361 2002-09-02 Juan Gomez <juang@us.ibm.com>
362 NeilBrown <neilb@cse.unsw.edu.au>
364 statd to have " -P directory" arg to use that directory instead
365 of /var/lib/nfs. This is useful for fail-over clusters.
367 * utils/statd/statd.h: define SM_DIR etc as var, not const.
368 * utils/statd/statd.c: define "-P" option to set SM_*
370 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
372 * utils/statd/notify.c: ditto.
373 * utils/statd/statd.man: document -P option.
375 2002-08-26 Chip Salzenberg <chip@pobox.com>
377 * utils/nfsd/nfsd.man: Fix typo.
378 * debian/changelog: Version 1.0.1-1.
380 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
382 * let parseopts know if /etc/exports was being read or not,
383 and have it only print "no sync or async" warning in that case.
385 2002-05-06 Tom McNeal <trmcneal@attbi.com>
386 NeilBrown <neilb@cse.unsw.edu.au>
388 * utils/nfsstat/nfsstat.c: Handle differing format for
389 /proc/net/rpc/nfsd between pre and post 2.4.0
391 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
392 James Pearson <james-p@moving-picture.com>
394 * support/nfs/rmtab.c(fendrmtabent): sync changes to
395 storage before returning, as this is critical state
397 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
398 H.J. Lu <hjl@lucon.org>
400 * etc/redhat/nfs: New.
402 2002-04-08 H.J. Lu <hjl@lucon.org>
404 * etc/redhat/nfs.init: Updated.
406 * nfs-utils.spec.in: Updated.
407 * nfs-utils.spec: Regenerated.
409 * utils/mountd/mountd.c (longopts): Fix a typo.
411 * utils/mountd/mountd.man: Updated.
413 2002-04-07 H.J. Lu <hjl@lucon.org>
415 * etc/redhat/nfslock.init (restart): Just do stop and start.
417 * etc/redhat/nfs.init: Fix a typo.
419 2002-04-07 H.J. Lu <hjl@lucon.org>
421 * configure.in (VERSION): Set to "1.0.1".
422 * configure: Regenerated.
423 * nfs-utils.spec: Likewise.
425 * README: Updated for 1.0.1.
427 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
428 H.J. Lu <hjl@lucon.org>
430 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
432 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
433 NeilBrown <neilb@cse.unsw.edu.au>
435 Add support for fsid=nn export option so that device
436 numbers don't go in filehandles.
437 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
438 is set, pass the fsid in-place of the device number
439 * support/nfs/exports.c: parse and print fsid= option.
440 Also check if efname has been set, and use "command line"
441 instead in error messages.
442 Also, use strtol instead of atoi for anon[ug]id= so that
443 bad numbers cause errors.
445 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
446 NeilBrown <neilb@cse.unsw.edu.au>
448 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
449 flag so that "sync" becomes the default.
450 Check that either "sync" or "async" is given as an option
451 and warn if neither are present
452 * utils/exportfs/exports.man: change documentation for "sync"
453 to be documentation for "async".
454 * utils/exportfs/exportfs.man: note that "sync" is the default
458 2002-01-02 Chip Salzenberg <chip@pobox.com>
460 * support/export/nfsctl.c (expsetup): Don't export entries that
461 specify id mappings not supported by the kernel. No extant kernel
462 supports any significant mapping, only 'identity' (i.e. none).
463 When other mappings are supported, this code will need changing.
464 * debian/changelog: Version 1.0-2.
466 2001-12-26 Chip Salzenberg <chip@pobox.com>
468 * nfs-utils.spec (Version): Set to "1.0".
469 * configure.in (VERSION): Likewise.
470 * configure: Regenerated.
472 * debian/changelog: Version 1.0-1.
474 * utils/exportfs/exports.man: Emphasize the need for options to
475 immediately follow client names. Explain that wildcards don't
476 usually work on addresses, but may work when reverse DNS fails.
477 Comment out a leftover TP that was TPing our indentation.
478 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
479 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
480 * debian/changelog: Version 0.3.3-6.
482 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
484 * support/export/client.c(client_lookup): If a host has multiple
485 IP addresses, then we must always use the result of a
486 gethostbyname, not that of gethostbyaddr for exporting
488 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
490 * support/export/client.c (client_lookup): use strcasecmp when
492 * support/nfs/export.c (getexportent): add fromkernel arg and use
493 different defaults as kernels prior to 2.4.11 assume different
494 defaults in /proc/fs/nfs/exports
495 * support/include/nfslib.h, support/export/export.c,
496 support/export/xtab.c: support extra "fromkernel" arg for
499 2001-12-13 Chip Salzenberg <chip@pobox.com>
501 * debian/changelog: Version 0.3.3-5.
503 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
505 * support/nfs/xio.c (xskip): Call `xungetc' instead of
506 `ungetc' to keep x_line more properly.
508 2001-11-26 Chip Salzenberg <chip@pobox.com>
510 * utils/showmount/showmount.c (main): Don't assume that strings
511 starting with digits are IP addresses.
512 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
513 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
514 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
515 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
516 man pages: We check host names *and* addresses with tcpwrappers.
517 * debian/changelog: Version 0.3.3-4.
519 2001-11-21 Chip Salzenberg <chip@pobox.com>
521 * support/nfs/clients.c (cfname): Added: current clients file name.
522 (setnfsclntent): Set it.
523 ({get,end}nfsclntent, syntaxerr): Use it.
524 * support/nfs/exports.c (efname): Added: current exports file name.
525 (setnfsexportent): Set it.
526 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
527 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
528 * debian/changelog: Version 0.3.3-3.
530 2001-10-11 Chip Salzenberg <chip@pobox.com>
532 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
533 * debian/changelog: Version 0.3.3-2.
535 2001-10-08 Chip Salzenberg <chip@pobox.com>
537 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
538 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
539 * utils/mountd/mountd.man: Update paths to /var/lib.
540 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
542 2001-10-06 Preston Brown <pbrown@redhat.com>
544 * utils/nfsstat/nfsstat.man: Updated.
546 2001-09-24 H.J. Lu <hjl@lucon.org>
548 * configure.in (VERSION): Set to "0.3.3".
549 * configure: Regenerated.
550 * nfs-utils.spec: Likewise.
552 * README: Updated for 0.3.3.
554 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
556 Arrange that "exportfs -au" never does DNS lookup:
558 * support/export/client.c (client_lookup) : add "canonical"
559 flag which says that the hostname is known to be canonical, so
562 * support/export/export.c (export_create) : add "canonical"
563 flag to be passed down to client_lookup
564 * support/export/export.c (export_lookup) : Likewise
566 * support/export/xtab.c (xtab_read) : pass appropriate
567 "canonical" flag to export_lookup and export_create:
568 set if reading list of filesystems currently exports
571 * support/export/export.c (export_read) : pass 0 as
572 "canonical" flag to export_lookup and export_create
573 * support/export/rmtab.s (rmtab_read) : Likewise
575 * support/include/exportfs.h : redeclare various routines
576 to have "canonical" flag
578 * utils/exportfs/exportfs.c (main) : redo logic for
579 "-au" to read in what is currently exported, but never even
580 look at what "should" be exported.
582 * utils/exportfs/exportfs.c (unexportall) : remove this
583 routine. Functionality is completely included in
586 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
587 flag to zero in calls to export_lookup and export_create.
590 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
591 Anne Milicia <milicia@missioncriticallinux.com>
593 * support/export/client.c (client_lookup) call gethostbyadd
594 to make sure that we have a canonical hostname, even for
596 * utils/exportfs/exportfs.c (exportfs) Likewise
598 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
600 * support/nfs/exports.c (putexportent): \octal quote any spaces
602 * support/nfs/xio.c (xgettok): recognise double-quote and
603 \octal quoting in path names
604 * utils/exportfs/exports.man: document quoting conventions
607 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
609 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
610 change from 2000-08-02: It causes problems if someone exports
611 to both a hostname and IP addresses. nfs-utils must be
612 consistant about the canonical name that it chooses.
614 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
615 H.J. Lu <hjl@lucon.org>
617 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
619 * utils/statd/statd.c (longopts): Add "name".
620 (usage): Add "-n/--name".
621 (main): Set MY_NAME with "-n/--name".
623 * utils/statd/state.c (change_state): Set MY_NAME only if it
626 * utils/statd/statd.man: Updated for "-n/--name".
628 2001-07-26 H.J. Lu <hjl@lucon.org>
630 * nfs-utils.spec (Release): Set to 8.
632 2001-07-25 H.J. Lu <hjl@lucon.org>
634 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
637 2001-06-27 H.J. Lu <hjl@lucon.org>
639 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
641 2001-06-27 H.J. Lu <hjl@lucon.org>
643 * utils/rquotad/rquota_server.c: Don't call statfs () for
644 the block size. Use BLOCK_SIZE instead.
646 2001-06-27 H.J. Lu <hjl@lucon.org>
648 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
649 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
651 * configure.in (enable_nfsv3): Set to yes by default.
652 (--enable-rquotad): Added
653 (AC_PROG_CXX): Removed.
654 (AC_OUTPUT): Add utils/Makefile.
655 (CC_FOR_BUILD): Renamed from BUILD_CC.
656 * configure: Regenerated.
658 * utils/Makefile: Removed.
660 * utils/Makefile.in: New.
662 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
664 (CC_FOR_BUILD): Renamed from BUILD_CC.
665 * nfs-utils.spec: Regenerated.
667 2001-06-15 Chip Salzenberg <chip@debian.org>
669 * debian/changelog: Version 0.3.2-2.
670 * debian/*.init: Minor fixes.
672 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
674 * etc/nodist/nfs-server: Fixed a bug where the script would
675 disable mounts from NFSv3 clients if NFSv3 is present.
677 2001-06-05 H.J. Lu <hjl@lucon.org>
679 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
680 (main): Support --descriptors/-o to set the limit of the number
681 of open file descriptors.
684 * utils/mountd/mountd.man: Updated for --descriptors/-o.
686 2001-06-04 H.J. Lu <hjl@lucon.org>
688 * nfs-utils.spec (Release): Set to 6.
690 2001-05-28 H.J. Lu <hjl@lucon.org>
692 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
693 * utils/mountd/mountd.c (main): Likewise.
694 * utils/nfsd/nfsd.c (main): Likewise.
695 * utils/rquotad/rquota_svc.c (main): Likewise.
697 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
699 * support/export/client.c (client_check): Check IP address
702 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
704 * support/export/client.c (client_gettype): Treat `*' as
707 2001-04-22 H.J. Lu <hjl@lucon.org>
709 * nfs-utils.spec.in: Fix a typo.
710 * nfs-utils.spec: Regenerated.
712 2001-04-21 H.J. Lu <hjl@lucon.org>
714 * nfs-utils.spec.in: Fix cross build.
715 * nfs-utils.spec: Regenerated.
718 2001-04-18 H.J. Lu <hjl@lucon.org>
720 * nfs-utils.spec.in: Support cross build.
721 * nfs-utils.spec: Regenerated.
727 * config.mk.in (BUILD_CC): New.
728 (CC): Set to $(BUILD_CC) if BUILD is defined.
731 (RANLIB): Set to @RANLIB@.
733 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
734 * configure: Regenerated.
736 * tools/rpcgen/Makefile (BUILD): Set to true.
738 2001-04-01 Chip Salzenberg <chip@valinux.com>
740 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
741 redundant, and sometimes broken, declaration of svc_fdset;
743 * support/nfs/rpcmisc.c (closedown): Likewise.
745 2001-03-21 H.J. Lu <hjl@lucon.org>
747 * nfs-utils.spec: Regenerated.
750 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
752 * utils/statd/statd.c (main): make sure file descriptors 0-2
753 are open to /dev/null.
755 2001-03-21 H.J. Lu <hjl@lucon.org>
757 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
758 * support/nfs/rpcmisc.c: Likewise.
759 * utils/rquotad/rquota_svc.c: Likewise.
760 * utils/rquotad/rquotad.man: Likewise.
761 * utils/statd/Makefile: Likewise.
762 * utils/statd/rmtcall.c: Likewise.
763 * utils/statd/simulate.c: Likewise.
764 * utils/statd/statd.c: Likewise.
765 * utils/statd/statd.man: Likewise.
767 2001-03-11 H.J. Lu <hjl@lucon.org>
769 * configure.in (RELEASE): New. Default to 1, set by
770 --with-release=XXX. Substitute nfs-utils.spec.
771 * nfs-utils.spec.in (Release): Set to @RELEASE@.
772 * configure: Regenerated.
773 * nfs-utils.spec: Likewise.
775 2001-03-11 H.J. Lu <hjl@lucon.org>
777 * utils/rquotad/rquotad.man: Fix a typo.
779 2001-03-11 H.J. Lu <hjl@lucon.org>
781 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
782 * support/nfs/rpcmisc.c: Likewise.
783 * utils/rquotad/rquota_svc.c: Likewise.
784 * utils/rquotad/rquotad.man: Likewise.
785 * utils/statd/Makefile: Likewise.
786 * utils/statd/rmtcall.c: Likewise.
787 * utils/statd/simulate.c: Likewise.
788 * utils/statd/statd.c: Likewise.
789 * utils/statd/statd.man: Likewise.
791 2001-03-10 H.J. Lu <hjl@lucon.org>
793 * configure.in (VERSION): Set to "0.3.2".
794 * configure: Regenerated.
795 * nfs-utils.spec: Likewise.
797 * README: Updated for 0.3.2.
799 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
801 * utils/rquotad/rquotad.man: Updated for -p.
802 * utils/statd/statd.man: Likewise.
804 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
806 * support/nfs/rpcmisc.c: export makesock()
808 * support/include/rpcmisc.h (makesock): Declared.
810 * utils/rquotad/rquota_svc.c: added longopts, added support for
811 specifying the port to bind to on the command line.
813 * utils/statd/statd.c: ditto, also specify port used for
814 outgoing connections.
815 (do_regist): Removed.
817 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
818 get_socket. Make it extern.
820 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
821 instead of do_regist.
823 * utils/statd/Makefile (LIBS): link with our own libnfs
825 2001-03-09 H.J. Lu <hjl@lucon.org>
827 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
828 * etc/nodist/nfs-client: Likewise.
830 2001-02-26 Chip Salzenberg <chip@valinux.com>
832 * debian/changelog: Version 0.3.1-1.
833 * Mention upstream source and license in copyright file.
834 * Add build-Depends for debhelper and libwrap0-dev.
836 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
838 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
839 * etc/nodist/nfs-client: Likewise.
841 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
843 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
846 2001-02-17 Patrick J. LoPresti <patl@curl.com>
848 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
851 2001-02-14 H.J. Lu <hjl@lucon.org>
853 * utils/statd/rmtcall.c: Include <time.h>.
854 * utils/statd/svc_run.c: Likewise.
856 2001-02-14 H.J. Lu <hjl@lucon.org>
858 * configure.in (VERSION): Set to "0.3.1".
859 * configure: Regenerated.
860 * nfs-utils.spec: Likewise.
862 * README: Updated for 0.3.1.
864 2001-02-14 H.J. Lu <hjl@lucon.org>
866 * support/nfs/rpcmisc.c: Include <time.h>.
868 2001-02-14 Chip Salzenberg <chip@valinux.com>
870 * debian/control: Change priority of nhfsstone package to 'extra'.
872 2001-02-12 Chip Salzenberg <chip@valinux.com>
874 * debian/changelog: Version 0.3-2.
876 2001-02-02 H.J. Lu <hjl@lucon.org>
878 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
880 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
881 out SO_SNDBUF/SO_RCVBUF.
882 (rpc_init): Remove bufsize and remove socksz in calls to
885 * utils/mountd/mountd.c (main): Remove bufsize in calls to
888 2001-01-28 Chip Salzenberg <chip@valinux.com>
890 * debian/changelog: Version 0.3-1.
892 2001-01-25 H.J. Lu <hjl@lucon.org>
894 * configure.in (VERSION): Set to "0.3".
895 * configure: Regenerated.
896 * nfs-utils.spec: Likewise.
898 * README: Updated for 0.3.
900 2001-01-25 H.J. Lu <hjl@lucon.org>
902 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
904 2001-01-20 Chip Salzenberg <chip@valinux.com>
906 * support/include/xio.h (xgetc): Declare to return int.
907 * support/nfs/xio.c (xgetc): Return int.
908 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
909 * utils/statd/statd.c (main): Use int for value of getopt.
910 * debian/changelog: Version 0.2.1-5.
912 2000-12-10 Chip Salzenberg <chip@valinux.com>
914 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
915 program and procedure numbers of kernel lockd's callback. Also,
916 besides the old (and broken) procedure #24, allow #16 per Trond.
918 2000-12-03 Chip Salzenberg <chip@valinux.com>
920 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
921 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
922 * debian/changelog: Version 0.2.1-4.
924 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
926 * utils/mountd/auth.c (auth_authenticate): Log the bad path
929 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
931 * support/nfs/exports.c (getexportent): Check for host name
932 without option, or options without hostname, and print a warning,
933 as this is most likely a typo.
935 2000-11-19 Chip Salzenberg <chip@valinux.com>
937 * debian/control: Add dependency on portmap.
938 * debian/changelog: Version 0.2.1-3.
940 2000-11-10 H.J. Lu <hjl@lucon.org>
942 * nfs-utils.spec.in: Don't use libtool.
943 Add ChangeLog and COPYING to doc.
944 * nfs-utils.spec: Rebuild.
946 2000-11-09 H.J. Lu <hjl@lucon.org>
948 * etc/redhat/nfs.init (start): Back out the last change.
950 2000-11-09 H.J. Lu <hjl@lucon.org>
952 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
953 TCP is not supported by kernel.
955 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
957 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
958 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
960 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
962 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
964 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
965 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
966 callbacks to local lockd.
968 2000-10-18 Scott McDermott <mcdermot@questra.com>
970 * utils/exportfs/exports.man: Updated for CIDR netmask.
972 2000-10-17 Scott McDermott <mcdermot@questra.com>
974 * support/export/client.c (client_init): Support CIDR netmask
977 2000-10-11 H.J. Lu <hjl@lucon.org>
979 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
980 * configure: Rebuilt.
982 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
984 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
985 "/var/lib/nfs/state".
987 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
989 * utils/statd/statd.h (run_mode): New global bitmask of runtime
990 behaviors: fg/bg, logging, etc.
991 * utils/statd/statd.c: New command line options: -V -h -? -d .
992 * utils/statd/statd.man: Update for changes to statd.
994 * utils/statd/log.h (log_init): Remove parameter of function; use
995 global variable "name_p" instead.
996 * utils/statd/log.c: Add support for logging to stderr.
998 * utils/statd/notlist.c: Partially rewrite notify list handling
999 functions. Eliminate run-off-end-of-list bug when calling
1000 nlist_insert_timer. Add lots of comments.
1002 2000-09-27 H.J. Lu <hjl@lucon.org>
1004 * README: Updated for RedHat 7.0.
1006 2000-09-27 H.J. Lu <hjl@lucon.org>
1008 * nfs-utils.spec: Rebuild.
1010 2000-09-27 H.J. Lu <hjl@lucon.org>
1012 * README: Updated for 0.2.1.
1014 2000-09-27 H.J. Lu <hjl@lucon.org>
1016 * nfs-utils.spec.in: Updated to use rpm macros and support
1019 2000-09-25 H.J. Lu <hjl@lucon.org>
1021 * configure.in (VERSION): Set to "0.2.1".
1022 * configure: Regenerated.
1023 * nfs-utils.spec: Updated.
1025 2000-09-25 H.J. Lu <hjl@lucon.org>
1027 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1028 non-NULL hostent is always returned.
1030 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1032 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1033 have an executable (i.e. kernel threads)
1035 2000-09-01 H.J. Lu <hjl@lucon.org>
1037 * README: Updated for 0.2.
1039 2000-09-01 Jay Weber <jweber@valinux.com>
1041 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1042 supporting version 3 of nfs if available, else it will fall back to
1043 version 2 support only.
1045 2000-08-30 H.J. Lu <hjl@lucon.org>
1047 * configure.in (VERSION): Set to "0.2".
1048 * configure: Regenerated.
1049 * nfs-utils.spec: Updated.
1051 2000-08-25 H.J. Lu <hjl@lucon.org>
1053 * support/misc/tcpwrapper.c (logit): Modify the log output.
1055 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1057 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1058 utils/mountd/mountd.man: updated
1060 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1061 * utils/rquotad/Makefile: fix comment
1063 * support/misc/tcpwrapper.c (logit): added comment about waiting
1064 for the children after fork()
1066 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1067 zombies behind (from logit()'s fork)
1068 * utils/rquotad/rquota_svc.c (main): ditto
1069 * utils/statd/statd.c (main): ditto
1071 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1072 to check_default instead of 0, for prognum
1074 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1075 to check_default instead of 0, for prognum
1077 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1078 HAVE_TCP_WRAPPER is defined.
1079 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1080 defined. Reject an RPC call if check_default () fails.
1082 2000-08-25 H.J. Lu <hjl@lucon.org>
1084 * support/include/tcpwrapper.h: New for the tcp wrapper
1086 * support/misc/Makefile: Likewise.
1087 * support/misc/from_local.c: Likewise.
1088 * support/misc/tcpwrapper.c: Likewise.
1090 * aclocal.m4 (AC_TCP_WRAPPER): New.
1091 * configure.in: Use it. Substitute LIBWRAP.
1092 * configure: Rebuilt.
1094 * config.mk.in (LIBNSL): New.
1095 (LIBWRAP): Likewise.
1097 * support/Makefile (SUBDIRS): Add misc.
1099 * support/lib/Makefile (LIBS): Add libmisc.a.
1101 * utils/rquotad/Makefile (LIBS): Add
1103 -lmisc $(LIBWRAP) $(LIBNSL)
1105 * utils/statd/Makefile (LIBS): Likewise.
1107 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1108 HAVE_TCP_WRAPPER is defined.
1109 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1110 defined. Reject an RPC call if check_default () fails.
1112 * utils/statd/statd.c: Include "tcpwrapper.h" if
1113 HAVE_TCP_WRAPPER is defined.
1114 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1115 check_default () before calling sm_prog_1 (). Define it as
1116 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1118 2000-08-25 Chip Salzenberg <chip@valinux.com>
1120 * debian/*: Complete Debian build support.
1121 * etc/debian/*: Remove.
1123 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1125 * support/export/client.c(client_check): removed the "dot+1" as a
1126 ypdomain argument to innetgr as this is entirely bogus.
1127 It should always be NULL.
1129 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1131 * support/export/xtab.c(xtab_read): introduce new mode for
1132 reading xtab. i.e. a list of exports that might be known to the
1133 kernel, or might not. These are flagged as m_exported == -1
1134 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1135 value "2" for xtab, meaning don't trust this too much.
1136 * support/include/exportfs.h(struct mexport): changed m_exported
1137 from one bit to an int so that it can hold new value
1138 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1139 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1140 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1143 * support/nfs/xio.c(xflock): added O_CREAT when getting
1144 a write lock so that missing files aren't fatal.
1146 * etc/debian/nfs-common: new file from "potato"
1147 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1149 2000-08-09 H.J. Lu <hjl@lucon.org>
1151 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1152 startup to ensure all existing clients work fine.
1154 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1155 to xtab_read () for reading _PATH_XTAB.
1157 2000-08-02 H.J. Lu <hjl@lucon.org>
1159 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1160 avoid the reverse name lookup.
1162 2000-07-04 H.J. Lu <hjl@lucon.org>
1164 * utils/statd/log.c: Include <stdlib.h> for exit ().
1166 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1169 2000-07-04 H.J. Lu <hjl@lucon.org>
1171 * configure.in (VERSION): Set to "0.1.9.1".
1172 * configure: Regenerated.
1173 * nfs-utils.spec: Updated.
1177 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1179 * support/export/hostname.c (hostent_dup): Handle the NULL
1182 2000-07-03 H.J. Lu <hjl@lucon.org>
1184 * README: Update the util-linux requirement.
1186 2000-07-03 H.J. Lu <hjl@lucon.org>
1188 * configure.in (VERSION): Set to "0.1.9".
1189 * configure: Regenerated.
1190 * nfs-utils.spec: Updated.
1194 2000-07-03 H.J. Lu <hjl@lucon.org>
1196 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1197 stop to ensure all clients can still access the server
1198 before it is shutdown.
1200 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1202 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1203 calls with format string.
1205 2000-06-28 Chip Salzenberg <chip@valinux.com>
1207 * utils/statd/log.c (log): Call syslog with format string.
1209 2000-06-27 H.J. Lu <hjl@lucon.org>
1211 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1212 instead of OPEN_MAX.
1214 2000-06-27 H.J. Lu <hjl@lucon.org>
1218 2000-06-27 H.J. Lu <hjl@lucon.org>
1220 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1221 startup to ensure all existing clients are exported.
1223 * configure.in (VERSION): Set to "0.1.8.2".
1224 * configure: Regenerated.
1225 * nfs-utils.spec: Updated.
1227 2000-06-06 H.J. Lu <hjl@lucon.org>
1229 * configure.in (VERSION): Set to "0.1.8.1".
1230 * configure: Regenerated.
1231 * nfs-utils.spec: Updated.
1233 2000-06-06 H.J. Lu <hjl@lucon.org>
1235 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1236 to "struct sockaddr_in *" for glibc 2.2.
1237 (mount_umnt_1_svc): Likewise.
1238 (mount_umntall_1_svc): Likewise.
1239 (mount_export_1_svc): Likewise.
1240 (mount_exportall_1_svc): Likewise.
1241 (mount_pathconf_2_svc): Likewise.
1242 (get_rootfh): Likewise.
1244 2000-06-04 H.J. Lu <hjl@lucon.org>
1246 * etc/redhat/nfs.init: Fix a typo in comment.
1248 2000-05-31 H.J. Lu <hjl@lucon.org>
1250 * configure.in (VERSION): Set to "0.1.8".
1251 * configure: Regenerated.
1252 * nfs-utils.spec: Updated.
1256 2000-05-31 H.J. Lu <hjl@lucon.org>
1258 * configure.in (VERSION): Set to "0.1.7.5".
1259 * configure: Regenerated.
1260 * nfs-utils.spec: Updated.
1262 * support/include/nfslib.h (exportent): Add a new field,
1263 r_count, to count the number of mounts from a client.
1264 (getrmtabent): Take a new argument for position in file.
1265 (putrmtabent): Likewise.
1266 (fgetrmtabent): Likewise.
1267 (fputrmtabent): Likewise.
1268 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1269 for position in file.
1270 (fgetrmtabent): Likewise.
1271 (putrmtabent): Likewise.
1272 (fputrmtabent): Likewise.
1274 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1277 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1278 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1279 and fputrmtabent ().
1280 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1281 (mountlist_del): Likewise.
1282 (mountlist_del_all): Likewise.
1283 (mountlist_list): Likewise.
1285 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1286 for the existing entry and initialize "r_count" to 1.
1287 (mountlist_del): Decrement "r_count".
1289 2000-05-18 H.J. Lu <hjl@lucon.org>
1291 * configure.in (VERSION): Set to "0.1.7.4".
1292 * configure: Regenerated.
1293 * nfs-utils.spec: Updated.
1295 2000-05-18 H.J. Lu <hjl@lucon.org>
1297 * etc/redhat/nfs.init (restart): Just do stop and start.
1299 2000-05-09 Jay Weber <jweber@valinux.com>
1301 * utils/rquotad/hasquota.c: added support for ext3 recognition
1303 * utils/rquotad/mntent.h: Likewise.
1305 2000-05-01 H.J. Lu <hjl@lucon.org>
1307 * configure.in (VERSION): Set to "0.1.7.3".
1308 * configure: Regenerated.
1309 * nfs-utils.spec: Updated.
1311 2000-05-01 H.J. Lu <hjl@lucon.org>
1313 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1314 mounting poins in /etc/fstab.
1316 2000-05-01 H.J. Lu <hjl@lucon.org>
1318 * configure.in (VERSION): Set to "0.1.7.2".
1319 * configure: Regenerated.
1320 * nfs-utils.spec: Updated.
1322 2000-05-01 H.J. Lu <hjl@lucon.org>
1324 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1325 to check for the mounting point.
1327 2000-04-29 Chip Salzenberg <chip@valinux.com>
1328 Neil Brown <neilb@cse.unsw.edu.au>
1330 * Really re-use RPC ports.
1331 (Fixes earlier patch. Sorry, Neil.)
1333 2000-04-26 H.J. Lu <hjl@lucon.org>
1335 * configure.in (VERSION): Set to "0.1.7.1".
1336 * configure: Regenerated.
1337 * nfs-utils.spec: Updated.
1339 2000-04-26 H.J. Lu <hjl@lucon.org>
1341 * etc/redhat/nfslock.init: Check if lockd exits before killing
1344 2000-04-25 H.J. Lu <hjl@lucon.org>
1346 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1348 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1350 * support/nfs/exports.c (parsesquash): Correctly set the
1353 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1355 * support/include/nfs/nfs.h: Removed knowledge of internals of
1356 kernel filehandles (which can change) and defined nfs_fh_size
1357 which has variable size
1359 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1360 get variable sized file handles, and change getfh{,old} to
1363 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1366 * tools/Makefile, tools/nlmtest/nlmtest.c
1367 nlmtest.c depended on internel format of file handles, so now
1371 2000-03-12 Chip Salzenberg <chip@valinux.com>
1372 Neil Brown <neilb@cse.unsw.edu.au>
1374 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1376 2000-03-13 H.J. Lu <hjl@lucon.org>
1378 * etc/redhat/nfsd.init: Updated.
1380 * etc/redhat/nfslock.init: Updated.
1382 * nfs-utils.spec.in: Updated.
1384 * configure.in (VERSION): Set to "0.1.7".
1385 * configure: Regenerated.
1386 * nfs-utils.spec: Updated.
1390 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1392 * utils/exportfs/exportfs.c (dump): Included printing of
1393 nohide, no_subtree_check, and insecure_locks
1395 2000-02-26 Chip Salzenberg <chip@valinux.com>
1397 * config.mk.in (INSTALLSUID): Strip ("-s").
1398 (INSTALLSCRIPT): Define.
1399 * utils/nhfsstone/Makefile: Use it.
1401 2000-02-26 Chip Salzenberg <chip@valinux.com>
1403 * utils/lockd/lockd.man: Create.
1404 * utils/lockd/Makefile: Install it.
1405 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1406 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1407 * utils/nhfsstone/Makefile: Install the helper scripts and
1409 * utils/exportfs/exports.man: Fix typo.
1411 2000-02-26 Chip Salzenberg <chip@valinux.com>
1413 * support/nfs/xio.c (xungetc): Decrement line number when
1414 character to unget is newline. Make first parameter int, so
1415 it can distinguish EOF from \377.
1416 * support/include/xio.h (xungetc): Adjust prototype.
1418 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1420 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1421 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1422 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1424 This is for supporting a new option introduced in 2.3.42
1426 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1428 * COPYING: Added. GPL.
1430 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1432 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1433 to get the block size.
1435 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1437 * nfs-utils.spec.in: Update ftp site.
1439 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1441 * README: Update hostnames.
1443 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1445 * configure.in (VERSION): Set to "0.1.6".
1446 * configure: Regenerated.
1447 * nfs-utils.spec: Updated.
1451 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1453 * utils/mountd/auth.c (auth_authenticate_internal): Call
1454 xstrdup for hostname before passing it to gethostbyname.
1456 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1459 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1461 * README: Update the mailing list address.
1463 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1465 * configure.in (VERSION): Set to "0.1.5".
1466 * configure: Regenerated.
1467 * nfs-utils.spec: Updated.
1471 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1473 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1476 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1478 * configure.in (VERSION): Set to "0.1.4".
1479 * configure: Regenerated.
1480 * nfs-utils.spec: Updated.
1484 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1486 * nfs-utils.spec.in: New file.
1488 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1490 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1492 1999-12-04 Chip Salzenberg <chip@valinux.com>
1494 * config.mk.in: Use $(CC) as set by configure.
1496 1999-12-04 Chip Salzenberg <chip@valinux.com>
1498 * rules.mk: Call $(MAKE) with $(MFLAGS).
1500 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1502 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1503 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1505 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1507 * nfs-utils.spec (Version): Set to 0.1.3.
1509 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1510 * configure: Regenerated.
1514 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1516 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1517 (_PATH_DEV_DSK): Likewise.
1518 (getquotainfo): Match the mounting point from /etc/mtab
1519 instead of calling nfsmount_to_devname ().
1521 1999-11-24 Chip Salzenberg <chip@valinux.com>
1523 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1524 to the new port 24 as well as the historical port 100021.
1526 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1528 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1529 stopping nfsd to stop spurious ESTALE on server shutdown.
1531 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1533 * support/nfs/exports.c (parseopts): make copy of opt string
1534 before 'nul'ing out commas so that
1536 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1538 applies both options to both exports.
1540 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1542 * README: Fix a few typos.
1544 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1546 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1547 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1548 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1549 (unsigned_dec): Likewise.
1550 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1551 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1553 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1555 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1556 (unsigned_dec): Likewise.
1557 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1558 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1559 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1561 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1563 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1564 * support/nfs/exports.c: added {no_,}subtree_check and changed
1566 * utils/exportfs/exports.man: added no_subtree_check and nohide
1567 and removed irrelevant stuff from unfsd.
1568 * support/export/rmtab.c: rmtab_read didn't quite do the right
1569 thing if a pathname from rmtab was a subdirectory of an export-point
1571 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1573 * README: Updated ftp site.
1575 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1577 * nfs-utils.spec (Version): Set to 0.1.2.
1579 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1580 * configure: Regenerated.
1584 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1586 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1587 (auth_authenticate_internal): Check for NULL return on forward
1589 (auth_authenticate): Handle "no_forward_dns".
1591 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1593 * Version 0.1.1 released.
1595 * nfs-utils.spec (Version): Set to 0.1.1.
1597 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1598 * configure: Regenerated.
1602 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1604 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1606 (Provides): Likewise.
1608 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1610 * Initial version 0.1 released.
1612 * configure.in (VERSION): Set to "nfs-utils 0.1".
1613 * configure: Regenerated.
1615 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1617 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1619 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1620 kernel only if the entry is exported to kernel.
1621 (unexportfs): Likewise.
1623 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1625 1/ utils/mountd/rmtab.c::mountlist_list
1627 This routine stats the rmtab file to see if it has changed. It
1628 if has, it cleans up it's old copy of the data. But it still
1629 always re-read the file, thus returning multiple copies of the
1630 data on consecutive calls without intervening changes.
1631 "Showmount -a" didn't show this as it appears to sort/unique the
1632 data, but 'strace showmount -a' showed that the size of the
1633 datagram that it received grew.
1635 I moved the getrmtabent loop inside the mtime test.
1637 2/ utils/exportfs/exportfs.c
1639 Many routines used the m_path field of m_export instead of
1641 According to the comment in nfslib.h, m_path should only
1642 be used when processing a mount request (i.e. in mountd)
1643 where the mountpoint may be a subdirectory of the export point.
1645 I changed all occurances of m_path to e_path
1648 3/ utils/exportfs/exportfs.c:main
1650 extra arguments are not meaningful with -a or -r, but
1651 exportfs accepted them and then ignored the -a/-r, expect that
1652 -r would still unexport everything first.
1654 I generate an error if there are extra args and f_all
1656 4/ utils/exportfs/exportfs.c:main
1657 extract dump out as a special case.
1659 5/ utils/exportfs/exportfs.c
1660 made f_reexport a local variable.
1663 6/ utils/exportfs/exportfs.c:main,exportall
1665 support/export/rmtab.c
1666 only mayexport on newly created entries, don't set xtabent at all
1668 7/ support/include/nfslib.h
1670 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1672 8/ support/export/xtab.c
1674 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1678 9/ support/export/xtab.c
1680 xtab_mount_read now sets m_exported, and NOT
1681 xtabent and mayexport
1683 removed the append arguement from xtab_write as it was
1686 added is_export flag to xtab_write similar to xtab_read
1687 if is_export, only write entries with m_xtabent or m_addxtab
1688 if !is_export, only write entries with m_exported
1690 10/ support/export/export.c::export_allowed_internal
1692 added test for exp->m_mayexport, as the export tree
1693 may have entries that are no longer allowed to be exported,
1694 and so shouldn't caused deduced exported by rmtab_read
1696 11/ utils/exportfs/exportfs.c::main
1697 error checking of flags.
1699 12/ utils/exportfs/exportfs.c
1701 total rewrite of export and unexport logic.
1703 - build an exportslist of valid exports, based on
1704 current etab file and arguments,
1705 - read rmtab to instantiate relevant wild card entries
1706 - read etab to find out what is currently exported
1707 - synchronise intention with reality
1708 - write out etab and xtab
1711 discard the m_addxtab flag
1712 add m_changed flag so we know what to report in exportfs
1714 14/ utils/mountd/auth.c:auth_authenticate
1716 the value returned by gethostbyaddr was trusted.
1718 It now follows this with a call to gethostbyname
1719 and checks that the address is in the list.
1721 15/ support/export/nfsctl.c::cltsetup,expsetup
1723 force client names to lowercase as kernel is
1726 16/ quietened a few compiler warnings
1728 17/ support/export/client:client_lookup
1730 look for pre-existing client with same name before creating
1733 18/ support/include/exportfs.h
1735 The ordering of the MCL_* enum was:
1736 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1738 I moved ANONYMOUS to the end.
1740 The ordering is significant when an export entry is being searched for to
1741 match a given address. There are two problems with ANONYMOUS being first.
1743 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1744 then the ro case will always be found first and the privileged hosts won't get
1746 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1747 export entry for the specific host, and writes it to xtab.
1748 When another request comes from the same host, the ANONYMOUS entry is found again,
1749 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1750 again. If causes bloat in xtab.
1752 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1754 19/ utils/exportfs/exportfs.man
1755 many updates to the man page to reflect changes to the code
1757 -----------------------
1763 - allow exportfs to modify rmtab file
1764 - make sure kernel never gets two clients with same IP address
1765 - possible kernel should reject
1766 - needs to be some way to lookup client in kernel by IP address
1767 - maybe get kernel to do case-insensitive comparisons on client names
1768 - remove unused clients from kernel
1770 - change etab to xtab and xtab to xtab.active
1772 - timestamp and/or statd-stamp in rmtab for removing old entries.
1774 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1776 * linux-nfs: New directory.
1777 * linux-nfs/ChangeLog: Moved from ..
1778 * linux-nfs/INSTALL: Likewise.
1779 * linux-nfs/KNOWNBUGS: Likewise.
1780 * linux-nfs/NEW: Likewise.
1781 * linux-nfs/README: Likewise.
1782 * linux-nfs/THANKS: Likewise.
1783 * linux-nfs/TODO: Likewise.
1785 * Starting from knfsd 1.4.7.