1 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
2 * support/nfs/nfsexport.c: open channel file O_WRONLY when
4 * utils/mountd/cache.c: maintain mountlist when new_cache is
5 active. Also use O_WRONLY for channel files.
6 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
7 rather than an nfs_export.
8 * utils/mountd/rmtab.c: ditto.
10 2003-07-24 Chip Salzenberg <chip@pobox.com>
12 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
13 use Debian security team's cleaner approach.
14 * debian/changelog: Version 1.0.5-1.
15 * debian/nfs-kernel-server.init: Cosmetic changes.
17 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
20 1.0.4 was a bit of a brown-paper-bag-release because of the extra
21 'free' in auth.c. So I'm releasing this just a few days later.
23 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
25 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
26 check if new_cache is enabled, error if not, flush and exit if it
28 * utils/exportfs/exportfs.man: Explain -f option and explain the
29 two different modes that exportfs can work in.
30 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
32 * utils/mountd/mountd.man: Record the change if default behaviour
34 * configure.in, nfs-utils.spec: update version to 1.0.5 and
37 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
39 * utils/mountd/mountd.c(main): getopt string fix for 'o'
40 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
41 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
43 * support/include/nfs/export.h: Reserve a bit for possible ACL
46 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
48 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
49 assorted changed to cope with section 7 of the manual.
50 * configure.in, nfs-utils.spec: Update version to 1.0.4
53 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
54 baseline for 2.6 and 2.8. I.e. it should continue to work right
55 through the 2.8 (or 3.0) kernel series. Previous releases wont.
57 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
58 Steve Dickson <SteveD@redhat.com>
61 * utils/statd/statd.c: create a pidfile with pid of statd, and
62 truncate it when statd exists.
63 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
64 and warn if this is root.
65 * utils/statd/statd.c: when statd forks, connect child to parent
66 with a pipe, and send a byte down the pipe once the child is
68 * Makefile: create and chown sm, sm.bak, state when "make install"
69 * configure.in: add --with-statduser= option which defaults to
71 * config.mk.in: pass "statduser" through to Makefile
73 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
75 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
76 used as the size was changed somewhere in 2.5.60-2.5.70. Without
77 this nfs-utils compiles against 2.6 headers will not work on a
80 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
82 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
83 set number of threads by writing to there. This means it will
84 still work when the syscall interface goes away in 2.7.
86 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
87 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
89 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
90 so as to only export the wildcard exports that were asked for.
91 * support/export/export.c(export_allowed): changed to return the
92 nfs_export rather than a "struct exportent", as m_changed is
94 * support/export/rmtab.c(rmtab_read): modified to deal with
95 interface change for export_allowed(), and enhanced to preserve
96 m_changed flag when a wild-card export causes the creation of
97 a non-wildcard export.
99 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
100 Steve Dickson <SteveD@redhat.com>
102 * utils/mountd/mountd.man: Add valid kinds of debugging.
103 * utils/mountd/mountd.c(main): ignore SIGPIPE
104 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
105 we don't get warnings about unavailable stats that weren't asked
108 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
110 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
111 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
112 'forever', so things disappear out of the cache rather than just
115 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
117 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
120 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
122 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
123 etc/redhat/nfs.init: when checking if V3 is supported, make sure
124 nfs server 'knows' about 127.0.0.1 first.
126 2003-06-10 Chip Salzenberg <chip@pobox.com>
128 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
129 * debian/changelog: Version 1.0.3-2.
131 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
132 NeilBrown <neilb@cse.unsw.edu.au>
134 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
135 long long to avoid overflow when printing stats.
137 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
139 * support/export/export.c, support/include/nfslib.h,
140 support/nfs/export.c, utils/exportfs/exportfs.c,
141 utils/mountd/mountd.c: new export option "mountpoint"
142 If no path is given, then the export point must be a
143 mount point, or it won't be exported. If a path is
144 given (e.g. mountpoint=/path) then that path must be
145 a mountpoint or the exportpoint won't be exported.
146 * utils/exportfs/exportfs.man: document mountpoint option.
147 * support/misc/mountpoint.c: New file with is_mountpoint()
148 to determine if something is a mountpoint.
150 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
152 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
153 argument as we might not be getting the filehandle for the
155 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
156 cache_get_filehandle.
157 * utils/mountd/mountd.c(get_rootfh): check export point and
158 requested directory are on the same filesystem, and complain if
161 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
163 * utils/mountd/auth.c(auth_authenticate_internal): make sure
164 portnumber is still checked when using new cache lookup.
166 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
168 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
169 Don't actually talk to kernel when new cache is in effect, except
171 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
172 * support/export/xtab.c: Only rename new xtab into place if it has
173 changed, thus preserving modify date for exportfs to use when
175 * support/nfs/cacheio.c: Add cache_flush
176 * support/export/xtab.c: Only rename new xtab into place if it has
177 changed, thus preserving modify date for exportfs to use when
180 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
182 * support/export/client.c: Add client_compose, client_member to
183 handle new composite client names
184 * support/include/exportfs.h: Declare above functions.
185 * utils/mountd/auth.c: use client_compose to determine calling
186 client if new cache is being used.
187 * utils/mountd/auth.c: call cache_export to export a filesystem if
188 new_cache, check if new cache is used, and call my_svc_run instead
190 * utils/mountd/svc_run.c: new file defining my_svc_run
191 * utils/mountd/cache.c: new file for handling cache upcalls.
192 * support/nfs/cacheio.c(check_new_cache): new function to check if
193 new cache should be used.
196 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
198 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
199 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
200 * utils/exportfs/exportfs.c(dump): ditto
202 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
204 * support/export/hostname.c(get_reliable_hostbyaddr): new function
205 to get host name from address with full checking of authenticity.
206 * support/include/misc.h: declare above function
207 * utils/mountd/auth.c(auth_authenticate_internal): remove all
208 logic for authenticating address.
209 * utils/mountd/auth.c(auth_authenticate): call new
210 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
213 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
215 * tools/rpcgen/rpc_main.c(find_cpp): removed
216 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
217 then try hard-coded paths.
219 2003-03-26 Chip Salzenberg <chip@pobox.com>
221 * debian/changelog: Version 1.0.3-1.
223 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
225 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
226 "const char*", not "char*".
228 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
230 * configure.in (VERSION): Set to "1.0.3".
231 * nfs-utils.spec: Likewise.
232 * configure: Regenerated.
234 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
236 * support/nfs/cacheio.c: New File - support for read/writing
237 to export cache in /proc/rpc/*/channel
238 * support/nfs/Makefile: compile cacheio.c
239 * support/include/nfslib.h: declare cacheio.c functions
240 * support/nfs/nfsexport.c: export and unexport through
241 /proc/rpc/*/channel if possible, as old syscall interface
242 may not survive into 2.6 on all architectures.
244 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
245 Ben Leslie <benno@sesgroup.net>
247 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
248 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
249 former would incorectly ignore defport if the application
250 explicitly set __rpcfdtype. The later is sufficient to avoid the
251 special handling in the case where stdin is an internet socket.
253 * utils/mountd/mountd.c(main): Add 'n' to option list in
254 getopt_long as this is a short form of --no-tcp which want being
257 2003-02-12 Chip Salzenberg <chip@pobox.com>
259 * debian/changelog: Version 1.0.2-2.
261 2002-11-27 Chip Salzenberg <chip@pobox.com>
263 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
264 overflow bug. Reformat per rest of source file.
266 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
268 * utils/exportfs/exports.man: Correct notes about whether the wild
269 card characters match a period. They do.
271 2002-10-15 Juan Gomez <juang@us.ibm.com>
273 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
275 (mountlist_add): Call slink_safe_rename instead of rename.
277 2002-10-11 H.J. Lu <hjl@lucon.org>
279 * support/include/exportfs.h (export_errno): New.
281 * support/nfs/exports.c: Include <errno.h>.
283 (getexportent): Set export_errno to EINVAL for bad option.
284 (parseopts): Likewise.
285 Report the location of the default sync/async option.
287 * utils/exportfs/exportfs.c (main): Initialize export_errno to
288 0. Return export_errno.
290 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
291 NeilBrown <neilb@cse.unsw.edu.au>
293 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
294 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
296 2002-09-16 Chip Salzenberg <chip@pobox.com>
298 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
300 2002-09-15 Chip Salzenberg <chip@pobox.com>
302 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
303 socket, as occurs when run from sshd.
304 * debian/changelog: Version 1.0.2-1.
306 2002-09-12 H.J. Lu <hjl@lucon.org>
308 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
311 2002-09-12 H.J. Lu <hjl@lucon.org>
313 * configure.in: Remove checking svctcp_socket and svcudp_socket.
314 * configure: Regenerated.
316 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
317 (HAVE_SVCUDP_SOCKET): Removed.
319 * support/include/nfslib.h: Undo the last change.
321 2002-09-12 H.J. Lu <hjl@lucon.org>
323 * support/include/nfslib.h (svctcp_socket): Protect it with
325 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
327 2002-09-12 H.J. Lu <hjl@lucon.org>
329 * configure.in (VERSION): Set to "1.0.2".
330 * configure: Regenerated.
331 * nfs-utils.spec: Likewise.
333 2002-09-12 H.J. Lu <hjl@lucon.org>
335 * configure.in: Check svctcp_socket and svcudp_socket.
336 * configure: Regenerated.
338 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
339 (HAVE_SVCUDP_SOCKET): New.
341 * support/include/nfslib.h (svctcp_socket): New.
342 (svcudp_socket): New.
344 * support/nfs/Makefile (OBJS): Add svc_socket.o.
346 * support/nfs/svc_socket.c: New.
348 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
349 svcudp_socket if port is unspecified.
351 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
353 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
354 (killer): New. Signal handler to unregister.
355 (main): Use killer. Call svcudp_socket to get the default
358 2002-09-02 Juan Gomez <juang@us.ibm.com>
359 NeilBrown <neilb@cse.unsw.edu.au>
361 Add -N option to statd to run in notify-only mode.
363 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
364 * utils/statd/statd.man: document -N
365 * utils/statd/statd.c: enabled -N, largely exists but needed to be
366 uncommented and completed
368 2002-09-02 Juan Gomez <juang@us.ibm.com>
369 NeilBrown <neilb@cse.unsw.edu.au>
371 statd to have " -P directory" arg to use that directory instead
372 of /var/lib/nfs. This is useful for fail-over clusters.
374 * utils/statd/statd.h: define SM_DIR etc as var, not const.
375 * utils/statd/statd.c: define "-P" option to set SM_*
377 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
379 * utils/statd/notify.c: ditto.
380 * utils/statd/statd.man: document -P option.
382 2002-08-26 Chip Salzenberg <chip@pobox.com>
384 * utils/nfsd/nfsd.man: Fix typo.
385 * debian/changelog: Version 1.0.1-1.
387 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
389 * let parseopts know if /etc/exports was being read or not,
390 and have it only print "no sync or async" warning in that case.
392 2002-05-06 Tom McNeal <trmcneal@attbi.com>
393 NeilBrown <neilb@cse.unsw.edu.au>
395 * utils/nfsstat/nfsstat.c: Handle differing format for
396 /proc/net/rpc/nfsd between pre and post 2.4.0
398 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
399 James Pearson <james-p@moving-picture.com>
401 * support/nfs/rmtab.c(fendrmtabent): sync changes to
402 storage before returning, as this is critical state
404 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
405 H.J. Lu <hjl@lucon.org>
407 * etc/redhat/nfs: New.
409 2002-04-08 H.J. Lu <hjl@lucon.org>
411 * etc/redhat/nfs.init: Updated.
413 * nfs-utils.spec.in: Updated.
414 * nfs-utils.spec: Regenerated.
416 * utils/mountd/mountd.c (longopts): Fix a typo.
418 * utils/mountd/mountd.man: Updated.
420 2002-04-07 H.J. Lu <hjl@lucon.org>
422 * etc/redhat/nfslock.init (restart): Just do stop and start.
424 * etc/redhat/nfs.init: Fix a typo.
426 2002-04-07 H.J. Lu <hjl@lucon.org>
428 * configure.in (VERSION): Set to "1.0.1".
429 * configure: Regenerated.
430 * nfs-utils.spec: Likewise.
432 * README: Updated for 1.0.1.
434 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
435 H.J. Lu <hjl@lucon.org>
437 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
439 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
440 NeilBrown <neilb@cse.unsw.edu.au>
442 Add support for fsid=nn export option so that device
443 numbers don't go in filehandles.
444 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
445 is set, pass the fsid in-place of the device number
446 * support/nfs/exports.c: parse and print fsid= option.
447 Also check if efname has been set, and use "command line"
448 instead in error messages.
449 Also, use strtol instead of atoi for anon[ug]id= so that
450 bad numbers cause errors.
452 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
453 NeilBrown <neilb@cse.unsw.edu.au>
455 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
456 flag so that "sync" becomes the default.
457 Check that either "sync" or "async" is given as an option
458 and warn if neither are present
459 * utils/exportfs/exports.man: change documentation for "sync"
460 to be documentation for "async".
461 * utils/exportfs/exportfs.man: note that "sync" is the default
465 2002-01-02 Chip Salzenberg <chip@pobox.com>
467 * support/export/nfsctl.c (expsetup): Don't export entries that
468 specify id mappings not supported by the kernel. No extant kernel
469 supports any significant mapping, only 'identity' (i.e. none).
470 When other mappings are supported, this code will need changing.
471 * debian/changelog: Version 1.0-2.
473 2001-12-26 Chip Salzenberg <chip@pobox.com>
475 * nfs-utils.spec (Version): Set to "1.0".
476 * configure.in (VERSION): Likewise.
477 * configure: Regenerated.
479 * debian/changelog: Version 1.0-1.
481 * utils/exportfs/exports.man: Emphasize the need for options to
482 immediately follow client names. Explain that wildcards don't
483 usually work on addresses, but may work when reverse DNS fails.
484 Comment out a leftover TP that was TPing our indentation.
485 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
486 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
487 * debian/changelog: Version 0.3.3-6.
489 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
491 * support/export/client.c(client_lookup): If a host has multiple
492 IP addresses, then we must always use the result of a
493 gethostbyname, not that of gethostbyaddr for exporting
495 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
497 * support/export/client.c (client_lookup): use strcasecmp when
499 * support/nfs/export.c (getexportent): add fromkernel arg and use
500 different defaults as kernels prior to 2.4.11 assume different
501 defaults in /proc/fs/nfs/exports
502 * support/include/nfslib.h, support/export/export.c,
503 support/export/xtab.c: support extra "fromkernel" arg for
506 2001-12-13 Chip Salzenberg <chip@pobox.com>
508 * debian/changelog: Version 0.3.3-5.
510 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
512 * support/nfs/xio.c (xskip): Call `xungetc' instead of
513 `ungetc' to keep x_line more properly.
515 2001-11-26 Chip Salzenberg <chip@pobox.com>
517 * utils/showmount/showmount.c (main): Don't assume that strings
518 starting with digits are IP addresses.
519 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
520 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
521 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
522 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
523 man pages: We check host names *and* addresses with tcpwrappers.
524 * debian/changelog: Version 0.3.3-4.
526 2001-11-21 Chip Salzenberg <chip@pobox.com>
528 * support/nfs/clients.c (cfname): Added: current clients file name.
529 (setnfsclntent): Set it.
530 ({get,end}nfsclntent, syntaxerr): Use it.
531 * support/nfs/exports.c (efname): Added: current exports file name.
532 (setnfsexportent): Set it.
533 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
534 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
535 * debian/changelog: Version 0.3.3-3.
537 2001-10-11 Chip Salzenberg <chip@pobox.com>
539 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
540 * debian/changelog: Version 0.3.3-2.
542 2001-10-08 Chip Salzenberg <chip@pobox.com>
544 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
545 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
546 * utils/mountd/mountd.man: Update paths to /var/lib.
547 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
549 2001-10-06 Preston Brown <pbrown@redhat.com>
551 * utils/nfsstat/nfsstat.man: Updated.
553 2001-09-24 H.J. Lu <hjl@lucon.org>
555 * configure.in (VERSION): Set to "0.3.3".
556 * configure: Regenerated.
557 * nfs-utils.spec: Likewise.
559 * README: Updated for 0.3.3.
561 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
563 Arrange that "exportfs -au" never does DNS lookup:
565 * support/export/client.c (client_lookup) : add "canonical"
566 flag which says that the hostname is known to be canonical, so
569 * support/export/export.c (export_create) : add "canonical"
570 flag to be passed down to client_lookup
571 * support/export/export.c (export_lookup) : Likewise
573 * support/export/xtab.c (xtab_read) : pass appropriate
574 "canonical" flag to export_lookup and export_create:
575 set if reading list of filesystems currently exports
578 * support/export/export.c (export_read) : pass 0 as
579 "canonical" flag to export_lookup and export_create
580 * support/export/rmtab.s (rmtab_read) : Likewise
582 * support/include/exportfs.h : redeclare various routines
583 to have "canonical" flag
585 * utils/exportfs/exportfs.c (main) : redo logic for
586 "-au" to read in what is currently exported, but never even
587 look at what "should" be exported.
589 * utils/exportfs/exportfs.c (unexportall) : remove this
590 routine. Functionality is completely included in
593 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
594 flag to zero in calls to export_lookup and export_create.
597 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
598 Anne Milicia <milicia@missioncriticallinux.com>
600 * support/export/client.c (client_lookup) call gethostbyadd
601 to make sure that we have a canonical hostname, even for
603 * utils/exportfs/exportfs.c (exportfs) Likewise
605 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
607 * support/nfs/exports.c (putexportent): \octal quote any spaces
609 * support/nfs/xio.c (xgettok): recognise double-quote and
610 \octal quoting in path names
611 * utils/exportfs/exports.man: document quoting conventions
614 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
616 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
617 change from 2000-08-02: It causes problems if someone exports
618 to both a hostname and IP addresses. nfs-utils must be
619 consistant about the canonical name that it chooses.
621 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
622 H.J. Lu <hjl@lucon.org>
624 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
626 * utils/statd/statd.c (longopts): Add "name".
627 (usage): Add "-n/--name".
628 (main): Set MY_NAME with "-n/--name".
630 * utils/statd/state.c (change_state): Set MY_NAME only if it
633 * utils/statd/statd.man: Updated for "-n/--name".
635 2001-07-26 H.J. Lu <hjl@lucon.org>
637 * nfs-utils.spec (Release): Set to 8.
639 2001-07-25 H.J. Lu <hjl@lucon.org>
641 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
644 2001-06-27 H.J. Lu <hjl@lucon.org>
646 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
648 2001-06-27 H.J. Lu <hjl@lucon.org>
650 * utils/rquotad/rquota_server.c: Don't call statfs () for
651 the block size. Use BLOCK_SIZE instead.
653 2001-06-27 H.J. Lu <hjl@lucon.org>
655 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
656 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
658 * configure.in (enable_nfsv3): Set to yes by default.
659 (--enable-rquotad): Added
660 (AC_PROG_CXX): Removed.
661 (AC_OUTPUT): Add utils/Makefile.
662 (CC_FOR_BUILD): Renamed from BUILD_CC.
663 * configure: Regenerated.
665 * utils/Makefile: Removed.
667 * utils/Makefile.in: New.
669 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
671 (CC_FOR_BUILD): Renamed from BUILD_CC.
672 * nfs-utils.spec: Regenerated.
674 2001-06-15 Chip Salzenberg <chip@debian.org>
676 * debian/changelog: Version 0.3.2-2.
677 * debian/*.init: Minor fixes.
679 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
681 * etc/nodist/nfs-server: Fixed a bug where the script would
682 disable mounts from NFSv3 clients if NFSv3 is present.
684 2001-06-05 H.J. Lu <hjl@lucon.org>
686 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
687 (main): Support --descriptors/-o to set the limit of the number
688 of open file descriptors.
691 * utils/mountd/mountd.man: Updated for --descriptors/-o.
693 2001-06-04 H.J. Lu <hjl@lucon.org>
695 * nfs-utils.spec (Release): Set to 6.
697 2001-05-28 H.J. Lu <hjl@lucon.org>
699 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
700 * utils/mountd/mountd.c (main): Likewise.
701 * utils/nfsd/nfsd.c (main): Likewise.
702 * utils/rquotad/rquota_svc.c (main): Likewise.
704 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
706 * support/export/client.c (client_check): Check IP address
709 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
711 * support/export/client.c (client_gettype): Treat `*' as
714 2001-04-22 H.J. Lu <hjl@lucon.org>
716 * nfs-utils.spec.in: Fix a typo.
717 * nfs-utils.spec: Regenerated.
719 2001-04-21 H.J. Lu <hjl@lucon.org>
721 * nfs-utils.spec.in: Fix cross build.
722 * nfs-utils.spec: Regenerated.
725 2001-04-18 H.J. Lu <hjl@lucon.org>
727 * nfs-utils.spec.in: Support cross build.
728 * nfs-utils.spec: Regenerated.
734 * config.mk.in (BUILD_CC): New.
735 (CC): Set to $(BUILD_CC) if BUILD is defined.
738 (RANLIB): Set to @RANLIB@.
740 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
741 * configure: Regenerated.
743 * tools/rpcgen/Makefile (BUILD): Set to true.
745 2001-04-01 Chip Salzenberg <chip@valinux.com>
747 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
748 redundant, and sometimes broken, declaration of svc_fdset;
750 * support/nfs/rpcmisc.c (closedown): Likewise.
752 2001-03-21 H.J. Lu <hjl@lucon.org>
754 * nfs-utils.spec: Regenerated.
757 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
759 * utils/statd/statd.c (main): make sure file descriptors 0-2
760 are open to /dev/null.
762 2001-03-21 H.J. Lu <hjl@lucon.org>
764 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
765 * support/nfs/rpcmisc.c: Likewise.
766 * utils/rquotad/rquota_svc.c: Likewise.
767 * utils/rquotad/rquotad.man: Likewise.
768 * utils/statd/Makefile: Likewise.
769 * utils/statd/rmtcall.c: Likewise.
770 * utils/statd/simulate.c: Likewise.
771 * utils/statd/statd.c: Likewise.
772 * utils/statd/statd.man: Likewise.
774 2001-03-11 H.J. Lu <hjl@lucon.org>
776 * configure.in (RELEASE): New. Default to 1, set by
777 --with-release=XXX. Substitute nfs-utils.spec.
778 * nfs-utils.spec.in (Release): Set to @RELEASE@.
779 * configure: Regenerated.
780 * nfs-utils.spec: Likewise.
782 2001-03-11 H.J. Lu <hjl@lucon.org>
784 * utils/rquotad/rquotad.man: Fix a typo.
786 2001-03-11 H.J. Lu <hjl@lucon.org>
788 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
789 * support/nfs/rpcmisc.c: Likewise.
790 * utils/rquotad/rquota_svc.c: Likewise.
791 * utils/rquotad/rquotad.man: Likewise.
792 * utils/statd/Makefile: Likewise.
793 * utils/statd/rmtcall.c: Likewise.
794 * utils/statd/simulate.c: Likewise.
795 * utils/statd/statd.c: Likewise.
796 * utils/statd/statd.man: Likewise.
798 2001-03-10 H.J. Lu <hjl@lucon.org>
800 * configure.in (VERSION): Set to "0.3.2".
801 * configure: Regenerated.
802 * nfs-utils.spec: Likewise.
804 * README: Updated for 0.3.2.
806 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
808 * utils/rquotad/rquotad.man: Updated for -p.
809 * utils/statd/statd.man: Likewise.
811 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
813 * support/nfs/rpcmisc.c: export makesock()
815 * support/include/rpcmisc.h (makesock): Declared.
817 * utils/rquotad/rquota_svc.c: added longopts, added support for
818 specifying the port to bind to on the command line.
820 * utils/statd/statd.c: ditto, also specify port used for
821 outgoing connections.
822 (do_regist): Removed.
824 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
825 get_socket. Make it extern.
827 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
828 instead of do_regist.
830 * utils/statd/Makefile (LIBS): link with our own libnfs
832 2001-03-09 H.J. Lu <hjl@lucon.org>
834 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
835 * etc/nodist/nfs-client: Likewise.
837 2001-02-26 Chip Salzenberg <chip@valinux.com>
839 * debian/changelog: Version 0.3.1-1.
840 * Mention upstream source and license in copyright file.
841 * Add build-Depends for debhelper and libwrap0-dev.
843 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
845 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
846 * etc/nodist/nfs-client: Likewise.
848 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
850 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
853 2001-02-17 Patrick J. LoPresti <patl@curl.com>
855 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
858 2001-02-14 H.J. Lu <hjl@lucon.org>
860 * utils/statd/rmtcall.c: Include <time.h>.
861 * utils/statd/svc_run.c: Likewise.
863 2001-02-14 H.J. Lu <hjl@lucon.org>
865 * configure.in (VERSION): Set to "0.3.1".
866 * configure: Regenerated.
867 * nfs-utils.spec: Likewise.
869 * README: Updated for 0.3.1.
871 2001-02-14 H.J. Lu <hjl@lucon.org>
873 * support/nfs/rpcmisc.c: Include <time.h>.
875 2001-02-14 Chip Salzenberg <chip@valinux.com>
877 * debian/control: Change priority of nhfsstone package to 'extra'.
879 2001-02-12 Chip Salzenberg <chip@valinux.com>
881 * debian/changelog: Version 0.3-2.
883 2001-02-02 H.J. Lu <hjl@lucon.org>
885 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
887 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
888 out SO_SNDBUF/SO_RCVBUF.
889 (rpc_init): Remove bufsize and remove socksz in calls to
892 * utils/mountd/mountd.c (main): Remove bufsize in calls to
895 2001-01-28 Chip Salzenberg <chip@valinux.com>
897 * debian/changelog: Version 0.3-1.
899 2001-01-25 H.J. Lu <hjl@lucon.org>
901 * configure.in (VERSION): Set to "0.3".
902 * configure: Regenerated.
903 * nfs-utils.spec: Likewise.
905 * README: Updated for 0.3.
907 2001-01-25 H.J. Lu <hjl@lucon.org>
909 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
911 2001-01-20 Chip Salzenberg <chip@valinux.com>
913 * support/include/xio.h (xgetc): Declare to return int.
914 * support/nfs/xio.c (xgetc): Return int.
915 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
916 * utils/statd/statd.c (main): Use int for value of getopt.
917 * debian/changelog: Version 0.2.1-5.
919 2000-12-10 Chip Salzenberg <chip@valinux.com>
921 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
922 program and procedure numbers of kernel lockd's callback. Also,
923 besides the old (and broken) procedure #24, allow #16 per Trond.
925 2000-12-03 Chip Salzenberg <chip@valinux.com>
927 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
928 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
929 * debian/changelog: Version 0.2.1-4.
931 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
933 * utils/mountd/auth.c (auth_authenticate): Log the bad path
936 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
938 * support/nfs/exports.c (getexportent): Check for host name
939 without option, or options without hostname, and print a warning,
940 as this is most likely a typo.
942 2000-11-19 Chip Salzenberg <chip@valinux.com>
944 * debian/control: Add dependency on portmap.
945 * debian/changelog: Version 0.2.1-3.
947 2000-11-10 H.J. Lu <hjl@lucon.org>
949 * nfs-utils.spec.in: Don't use libtool.
950 Add ChangeLog and COPYING to doc.
951 * nfs-utils.spec: Rebuild.
953 2000-11-09 H.J. Lu <hjl@lucon.org>
955 * etc/redhat/nfs.init (start): Back out the last change.
957 2000-11-09 H.J. Lu <hjl@lucon.org>
959 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
960 TCP is not supported by kernel.
962 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
964 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
965 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
967 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
969 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
971 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
972 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
973 callbacks to local lockd.
975 2000-10-18 Scott McDermott <mcdermot@questra.com>
977 * utils/exportfs/exports.man: Updated for CIDR netmask.
979 2000-10-17 Scott McDermott <mcdermot@questra.com>
981 * support/export/client.c (client_init): Support CIDR netmask
984 2000-10-11 H.J. Lu <hjl@lucon.org>
986 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
987 * configure: Rebuilt.
989 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
991 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
992 "/var/lib/nfs/state".
994 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
996 * utils/statd/statd.h (run_mode): New global bitmask of runtime
997 behaviors: fg/bg, logging, etc.
998 * utils/statd/statd.c: New command line options: -V -h -? -d .
999 * utils/statd/statd.man: Update for changes to statd.
1001 * utils/statd/log.h (log_init): Remove parameter of function; use
1002 global variable "name_p" instead.
1003 * utils/statd/log.c: Add support for logging to stderr.
1005 * utils/statd/notlist.c: Partially rewrite notify list handling
1006 functions. Eliminate run-off-end-of-list bug when calling
1007 nlist_insert_timer. Add lots of comments.
1009 2000-09-27 H.J. Lu <hjl@lucon.org>
1011 * README: Updated for RedHat 7.0.
1013 2000-09-27 H.J. Lu <hjl@lucon.org>
1015 * nfs-utils.spec: Rebuild.
1017 2000-09-27 H.J. Lu <hjl@lucon.org>
1019 * README: Updated for 0.2.1.
1021 2000-09-27 H.J. Lu <hjl@lucon.org>
1023 * nfs-utils.spec.in: Updated to use rpm macros and support
1026 2000-09-25 H.J. Lu <hjl@lucon.org>
1028 * configure.in (VERSION): Set to "0.2.1".
1029 * configure: Regenerated.
1030 * nfs-utils.spec: Updated.
1032 2000-09-25 H.J. Lu <hjl@lucon.org>
1034 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1035 non-NULL hostent is always returned.
1037 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1039 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1040 have an executable (i.e. kernel threads)
1042 2000-09-01 H.J. Lu <hjl@lucon.org>
1044 * README: Updated for 0.2.
1046 2000-09-01 Jay Weber <jweber@valinux.com>
1048 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1049 supporting version 3 of nfs if available, else it will fall back to
1050 version 2 support only.
1052 2000-08-30 H.J. Lu <hjl@lucon.org>
1054 * configure.in (VERSION): Set to "0.2".
1055 * configure: Regenerated.
1056 * nfs-utils.spec: Updated.
1058 2000-08-25 H.J. Lu <hjl@lucon.org>
1060 * support/misc/tcpwrapper.c (logit): Modify the log output.
1062 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1064 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1065 utils/mountd/mountd.man: updated
1067 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1068 * utils/rquotad/Makefile: fix comment
1070 * support/misc/tcpwrapper.c (logit): added comment about waiting
1071 for the children after fork()
1073 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1074 zombies behind (from logit()'s fork)
1075 * utils/rquotad/rquota_svc.c (main): ditto
1076 * utils/statd/statd.c (main): ditto
1078 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1079 to check_default instead of 0, for prognum
1081 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1082 to check_default instead of 0, for prognum
1084 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1085 HAVE_TCP_WRAPPER is defined.
1086 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1087 defined. Reject an RPC call if check_default () fails.
1089 2000-08-25 H.J. Lu <hjl@lucon.org>
1091 * support/include/tcpwrapper.h: New for the tcp wrapper
1093 * support/misc/Makefile: Likewise.
1094 * support/misc/from_local.c: Likewise.
1095 * support/misc/tcpwrapper.c: Likewise.
1097 * aclocal.m4 (AC_TCP_WRAPPER): New.
1098 * configure.in: Use it. Substitute LIBWRAP.
1099 * configure: Rebuilt.
1101 * config.mk.in (LIBNSL): New.
1102 (LIBWRAP): Likewise.
1104 * support/Makefile (SUBDIRS): Add misc.
1106 * support/lib/Makefile (LIBS): Add libmisc.a.
1108 * utils/rquotad/Makefile (LIBS): Add
1110 -lmisc $(LIBWRAP) $(LIBNSL)
1112 * utils/statd/Makefile (LIBS): Likewise.
1114 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1115 HAVE_TCP_WRAPPER is defined.
1116 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1117 defined. Reject an RPC call if check_default () fails.
1119 * utils/statd/statd.c: Include "tcpwrapper.h" if
1120 HAVE_TCP_WRAPPER is defined.
1121 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1122 check_default () before calling sm_prog_1 (). Define it as
1123 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1125 2000-08-25 Chip Salzenberg <chip@valinux.com>
1127 * debian/*: Complete Debian build support.
1128 * etc/debian/*: Remove.
1130 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1132 * support/export/client.c(client_check): removed the "dot+1" as a
1133 ypdomain argument to innetgr as this is entirely bogus.
1134 It should always be NULL.
1136 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1138 * support/export/xtab.c(xtab_read): introduce new mode for
1139 reading xtab. i.e. a list of exports that might be known to the
1140 kernel, or might not. These are flagged as m_exported == -1
1141 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1142 value "2" for xtab, meaning don't trust this too much.
1143 * support/include/exportfs.h(struct mexport): changed m_exported
1144 from one bit to an int so that it can hold new value
1145 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1146 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1147 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1150 * support/nfs/xio.c(xflock): added O_CREAT when getting
1151 a write lock so that missing files aren't fatal.
1153 * etc/debian/nfs-common: new file from "potato"
1154 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1156 2000-08-09 H.J. Lu <hjl@lucon.org>
1158 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1159 startup to ensure all existing clients work fine.
1161 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1162 to xtab_read () for reading _PATH_XTAB.
1164 2000-08-02 H.J. Lu <hjl@lucon.org>
1166 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1167 avoid the reverse name lookup.
1169 2000-07-04 H.J. Lu <hjl@lucon.org>
1171 * utils/statd/log.c: Include <stdlib.h> for exit ().
1173 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1176 2000-07-04 H.J. Lu <hjl@lucon.org>
1178 * configure.in (VERSION): Set to "0.1.9.1".
1179 * configure: Regenerated.
1180 * nfs-utils.spec: Updated.
1184 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1186 * support/export/hostname.c (hostent_dup): Handle the NULL
1189 2000-07-03 H.J. Lu <hjl@lucon.org>
1191 * README: Update the util-linux requirement.
1193 2000-07-03 H.J. Lu <hjl@lucon.org>
1195 * configure.in (VERSION): Set to "0.1.9".
1196 * configure: Regenerated.
1197 * nfs-utils.spec: Updated.
1201 2000-07-03 H.J. Lu <hjl@lucon.org>
1203 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1204 stop to ensure all clients can still access the server
1205 before it is shutdown.
1207 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1209 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1210 calls with format string.
1212 2000-06-28 Chip Salzenberg <chip@valinux.com>
1214 * utils/statd/log.c (log): Call syslog with format string.
1216 2000-06-27 H.J. Lu <hjl@lucon.org>
1218 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1219 instead of OPEN_MAX.
1221 2000-06-27 H.J. Lu <hjl@lucon.org>
1225 2000-06-27 H.J. Lu <hjl@lucon.org>
1227 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1228 startup to ensure all existing clients are exported.
1230 * configure.in (VERSION): Set to "0.1.8.2".
1231 * configure: Regenerated.
1232 * nfs-utils.spec: Updated.
1234 2000-06-06 H.J. Lu <hjl@lucon.org>
1236 * configure.in (VERSION): Set to "0.1.8.1".
1237 * configure: Regenerated.
1238 * nfs-utils.spec: Updated.
1240 2000-06-06 H.J. Lu <hjl@lucon.org>
1242 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1243 to "struct sockaddr_in *" for glibc 2.2.
1244 (mount_umnt_1_svc): Likewise.
1245 (mount_umntall_1_svc): Likewise.
1246 (mount_export_1_svc): Likewise.
1247 (mount_exportall_1_svc): Likewise.
1248 (mount_pathconf_2_svc): Likewise.
1249 (get_rootfh): Likewise.
1251 2000-06-04 H.J. Lu <hjl@lucon.org>
1253 * etc/redhat/nfs.init: Fix a typo in comment.
1255 2000-05-31 H.J. Lu <hjl@lucon.org>
1257 * configure.in (VERSION): Set to "0.1.8".
1258 * configure: Regenerated.
1259 * nfs-utils.spec: Updated.
1263 2000-05-31 H.J. Lu <hjl@lucon.org>
1265 * configure.in (VERSION): Set to "0.1.7.5".
1266 * configure: Regenerated.
1267 * nfs-utils.spec: Updated.
1269 * support/include/nfslib.h (exportent): Add a new field,
1270 r_count, to count the number of mounts from a client.
1271 (getrmtabent): Take a new argument for position in file.
1272 (putrmtabent): Likewise.
1273 (fgetrmtabent): Likewise.
1274 (fputrmtabent): Likewise.
1275 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1276 for position in file.
1277 (fgetrmtabent): Likewise.
1278 (putrmtabent): Likewise.
1279 (fputrmtabent): Likewise.
1281 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1284 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1285 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1286 and fputrmtabent ().
1287 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1288 (mountlist_del): Likewise.
1289 (mountlist_del_all): Likewise.
1290 (mountlist_list): Likewise.
1292 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1293 for the existing entry and initialize "r_count" to 1.
1294 (mountlist_del): Decrement "r_count".
1296 2000-05-18 H.J. Lu <hjl@lucon.org>
1298 * configure.in (VERSION): Set to "0.1.7.4".
1299 * configure: Regenerated.
1300 * nfs-utils.spec: Updated.
1302 2000-05-18 H.J. Lu <hjl@lucon.org>
1304 * etc/redhat/nfs.init (restart): Just do stop and start.
1306 2000-05-09 Jay Weber <jweber@valinux.com>
1308 * utils/rquotad/hasquota.c: added support for ext3 recognition
1310 * utils/rquotad/mntent.h: Likewise.
1312 2000-05-01 H.J. Lu <hjl@lucon.org>
1314 * configure.in (VERSION): Set to "0.1.7.3".
1315 * configure: Regenerated.
1316 * nfs-utils.spec: Updated.
1318 2000-05-01 H.J. Lu <hjl@lucon.org>
1320 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1321 mounting poins in /etc/fstab.
1323 2000-05-01 H.J. Lu <hjl@lucon.org>
1325 * configure.in (VERSION): Set to "0.1.7.2".
1326 * configure: Regenerated.
1327 * nfs-utils.spec: Updated.
1329 2000-05-01 H.J. Lu <hjl@lucon.org>
1331 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1332 to check for the mounting point.
1334 2000-04-29 Chip Salzenberg <chip@valinux.com>
1335 Neil Brown <neilb@cse.unsw.edu.au>
1337 * Really re-use RPC ports.
1338 (Fixes earlier patch. Sorry, Neil.)
1340 2000-04-26 H.J. Lu <hjl@lucon.org>
1342 * configure.in (VERSION): Set to "0.1.7.1".
1343 * configure: Regenerated.
1344 * nfs-utils.spec: Updated.
1346 2000-04-26 H.J. Lu <hjl@lucon.org>
1348 * etc/redhat/nfslock.init: Check if lockd exits before killing
1351 2000-04-25 H.J. Lu <hjl@lucon.org>
1353 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1355 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1357 * support/nfs/exports.c (parsesquash): Correctly set the
1360 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1362 * support/include/nfs/nfs.h: Removed knowledge of internals of
1363 kernel filehandles (which can change) and defined nfs_fh_size
1364 which has variable size
1366 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1367 get variable sized file handles, and change getfh{,old} to
1370 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1373 * tools/Makefile, tools/nlmtest/nlmtest.c
1374 nlmtest.c depended on internel format of file handles, so now
1378 2000-03-12 Chip Salzenberg <chip@valinux.com>
1379 Neil Brown <neilb@cse.unsw.edu.au>
1381 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1383 2000-03-13 H.J. Lu <hjl@lucon.org>
1385 * etc/redhat/nfsd.init: Updated.
1387 * etc/redhat/nfslock.init: Updated.
1389 * nfs-utils.spec.in: Updated.
1391 * configure.in (VERSION): Set to "0.1.7".
1392 * configure: Regenerated.
1393 * nfs-utils.spec: Updated.
1397 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1399 * utils/exportfs/exportfs.c (dump): Included printing of
1400 nohide, no_subtree_check, and insecure_locks
1402 2000-02-26 Chip Salzenberg <chip@valinux.com>
1404 * config.mk.in (INSTALLSUID): Strip ("-s").
1405 (INSTALLSCRIPT): Define.
1406 * utils/nhfsstone/Makefile: Use it.
1408 2000-02-26 Chip Salzenberg <chip@valinux.com>
1410 * utils/lockd/lockd.man: Create.
1411 * utils/lockd/Makefile: Install it.
1412 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1413 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1414 * utils/nhfsstone/Makefile: Install the helper scripts and
1416 * utils/exportfs/exports.man: Fix typo.
1418 2000-02-26 Chip Salzenberg <chip@valinux.com>
1420 * support/nfs/xio.c (xungetc): Decrement line number when
1421 character to unget is newline. Make first parameter int, so
1422 it can distinguish EOF from \377.
1423 * support/include/xio.h (xungetc): Adjust prototype.
1425 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1427 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1428 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1429 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1431 This is for supporting a new option introduced in 2.3.42
1433 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1435 * COPYING: Added. GPL.
1437 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1439 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1440 to get the block size.
1442 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1444 * nfs-utils.spec.in: Update ftp site.
1446 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1448 * README: Update hostnames.
1450 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1452 * configure.in (VERSION): Set to "0.1.6".
1453 * configure: Regenerated.
1454 * nfs-utils.spec: Updated.
1458 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1460 * utils/mountd/auth.c (auth_authenticate_internal): Call
1461 xstrdup for hostname before passing it to gethostbyname.
1463 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1466 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1468 * README: Update the mailing list address.
1470 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1472 * configure.in (VERSION): Set to "0.1.5".
1473 * configure: Regenerated.
1474 * nfs-utils.spec: Updated.
1478 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1480 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1483 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1485 * configure.in (VERSION): Set to "0.1.4".
1486 * configure: Regenerated.
1487 * nfs-utils.spec: Updated.
1491 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1493 * nfs-utils.spec.in: New file.
1495 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1497 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1499 1999-12-04 Chip Salzenberg <chip@valinux.com>
1501 * config.mk.in: Use $(CC) as set by configure.
1503 1999-12-04 Chip Salzenberg <chip@valinux.com>
1505 * rules.mk: Call $(MAKE) with $(MFLAGS).
1507 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1509 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1510 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1512 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1514 * nfs-utils.spec (Version): Set to 0.1.3.
1516 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1517 * configure: Regenerated.
1521 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1523 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1524 (_PATH_DEV_DSK): Likewise.
1525 (getquotainfo): Match the mounting point from /etc/mtab
1526 instead of calling nfsmount_to_devname ().
1528 1999-11-24 Chip Salzenberg <chip@valinux.com>
1530 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1531 to the new port 24 as well as the historical port 100021.
1533 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1535 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1536 stopping nfsd to stop spurious ESTALE on server shutdown.
1538 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1540 * support/nfs/exports.c (parseopts): make copy of opt string
1541 before 'nul'ing out commas so that
1543 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1545 applies both options to both exports.
1547 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1549 * README: Fix a few typos.
1551 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1553 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1554 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
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_util.c (tokstrings): Likewise.
1560 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1562 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1563 (unsigned_dec): Likewise.
1564 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1565 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1566 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1568 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1570 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1571 * support/nfs/exports.c: added {no_,}subtree_check and changed
1573 * utils/exportfs/exports.man: added no_subtree_check and nohide
1574 and removed irrelevant stuff from unfsd.
1575 * support/export/rmtab.c: rmtab_read didn't quite do the right
1576 thing if a pathname from rmtab was a subdirectory of an export-point
1578 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1580 * README: Updated ftp site.
1582 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1584 * nfs-utils.spec (Version): Set to 0.1.2.
1586 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1587 * configure: Regenerated.
1591 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1593 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1594 (auth_authenticate_internal): Check for NULL return on forward
1596 (auth_authenticate): Handle "no_forward_dns".
1598 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1600 * Version 0.1.1 released.
1602 * nfs-utils.spec (Version): Set to 0.1.1.
1604 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1605 * configure: Regenerated.
1609 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1611 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1613 (Provides): Likewise.
1615 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1617 * Initial version 0.1 released.
1619 * configure.in (VERSION): Set to "nfs-utils 0.1".
1620 * configure: Regenerated.
1622 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1624 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1626 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1627 kernel only if the entry is exported to kernel.
1628 (unexportfs): Likewise.
1630 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1632 1/ utils/mountd/rmtab.c::mountlist_list
1634 This routine stats the rmtab file to see if it has changed. It
1635 if has, it cleans up it's old copy of the data. But it still
1636 always re-read the file, thus returning multiple copies of the
1637 data on consecutive calls without intervening changes.
1638 "Showmount -a" didn't show this as it appears to sort/unique the
1639 data, but 'strace showmount -a' showed that the size of the
1640 datagram that it received grew.
1642 I moved the getrmtabent loop inside the mtime test.
1644 2/ utils/exportfs/exportfs.c
1646 Many routines used the m_path field of m_export instead of
1648 According to the comment in nfslib.h, m_path should only
1649 be used when processing a mount request (i.e. in mountd)
1650 where the mountpoint may be a subdirectory of the export point.
1652 I changed all occurances of m_path to e_path
1655 3/ utils/exportfs/exportfs.c:main
1657 extra arguments are not meaningful with -a or -r, but
1658 exportfs accepted them and then ignored the -a/-r, expect that
1659 -r would still unexport everything first.
1661 I generate an error if there are extra args and f_all
1663 4/ utils/exportfs/exportfs.c:main
1664 extract dump out as a special case.
1666 5/ utils/exportfs/exportfs.c
1667 made f_reexport a local variable.
1670 6/ utils/exportfs/exportfs.c:main,exportall
1672 support/export/rmtab.c
1673 only mayexport on newly created entries, don't set xtabent at all
1675 7/ support/include/nfslib.h
1677 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1679 8/ support/export/xtab.c
1681 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1685 9/ support/export/xtab.c
1687 xtab_mount_read now sets m_exported, and NOT
1688 xtabent and mayexport
1690 removed the append arguement from xtab_write as it was
1693 added is_export flag to xtab_write similar to xtab_read
1694 if is_export, only write entries with m_xtabent or m_addxtab
1695 if !is_export, only write entries with m_exported
1697 10/ support/export/export.c::export_allowed_internal
1699 added test for exp->m_mayexport, as the export tree
1700 may have entries that are no longer allowed to be exported,
1701 and so shouldn't caused deduced exported by rmtab_read
1703 11/ utils/exportfs/exportfs.c::main
1704 error checking of flags.
1706 12/ utils/exportfs/exportfs.c
1708 total rewrite of export and unexport logic.
1710 - build an exportslist of valid exports, based on
1711 current etab file and arguments,
1712 - read rmtab to instantiate relevant wild card entries
1713 - read etab to find out what is currently exported
1714 - synchronise intention with reality
1715 - write out etab and xtab
1718 discard the m_addxtab flag
1719 add m_changed flag so we know what to report in exportfs
1721 14/ utils/mountd/auth.c:auth_authenticate
1723 the value returned by gethostbyaddr was trusted.
1725 It now follows this with a call to gethostbyname
1726 and checks that the address is in the list.
1728 15/ support/export/nfsctl.c::cltsetup,expsetup
1730 force client names to lowercase as kernel is
1733 16/ quietened a few compiler warnings
1735 17/ support/export/client:client_lookup
1737 look for pre-existing client with same name before creating
1740 18/ support/include/exportfs.h
1742 The ordering of the MCL_* enum was:
1743 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1745 I moved ANONYMOUS to the end.
1747 The ordering is significant when an export entry is being searched for to
1748 match a given address. There are two problems with ANONYMOUS being first.
1750 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1751 then the ro case will always be found first and the privileged hosts won't get
1753 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1754 export entry for the specific host, and writes it to xtab.
1755 When another request comes from the same host, the ANONYMOUS entry is found again,
1756 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1757 again. If causes bloat in xtab.
1759 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1761 19/ utils/exportfs/exportfs.man
1762 many updates to the man page to reflect changes to the code
1764 -----------------------
1770 - allow exportfs to modify rmtab file
1771 - make sure kernel never gets two clients with same IP address
1772 - possible kernel should reject
1773 - needs to be some way to lookup client in kernel by IP address
1774 - maybe get kernel to do case-insensitive comparisons on client names
1775 - remove unused clients from kernel
1777 - change etab to xtab and xtab to xtab.active
1779 - timestamp and/or statd-stamp in rmtab for removing old entries.
1781 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1783 * linux-nfs: New directory.
1784 * linux-nfs/ChangeLog: Moved from ..
1785 * linux-nfs/INSTALL: Likewise.
1786 * linux-nfs/KNOWNBUGS: Likewise.
1787 * linux-nfs/NEW: Likewise.
1788 * linux-nfs/README: Likewise.
1789 * linux-nfs/THANKS: Likewise.
1790 * linux-nfs/TODO: Likewise.
1792 * Starting from knfsd 1.4.7.