1 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
2 from "J. Bruce Fields" <bfields@fieldses.org>
4 * utils/mountd/cache.c: call auth_reload to make sure auth data is
5 current before responding to kernel upcall.
7 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
8 Based on patch from Greg Banks <gnb@melbourne.sgi.com>
10 * utils/exportfs/exports.man: Document fsid= option.
12 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
16 * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
17 support/include, and depend in "predep"
18 * support/export/Makefile, tools/rpcgen/Makefile,
19 utils/statd/Makefile: add "predep" rule so that "make dep" works.
20 * Makefile: allow a simple "make" to run ./configure and "make dep"
22 * configure.in, nfs-utils.spec: Update version to 1.0.6
25 2003-09-12 Chip Salzenberg <chip@pobox.com>
27 * debian/changelog: Version 1.0.6-1.
29 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
31 * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
33 * utils/statd/statd.c(main): Ditto.
35 michael <michael@newdream.net> discovered that svc_setreqsize
36 in glibc can segfault if RLIMIT_NOFILE is bigger than
37 FD_SETSIZE, so a simple solution is to impose a hard limit.
39 2003-09-09 Chip Salzenberg <chip@pobox.com>
41 * debian/changelog: Version 1.0.5-3.
42 * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
43 on invalid reverse DNS.
44 * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
45 * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
46 * tools/rpcgen/rpc_parse.c (def_union): Likewise.
48 2003-08-22 Chip Salzenberg <chip@pobox.com>
50 * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
51 N_*, to avoid conflict with ISO C built-in log() function.
52 * utils/statd/*.c: Use note().
54 2003-08-20 Chip Salzenberg <chip@pobox.com>
56 * debian/changelog: Version 1.0.5-2.
58 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
60 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
63 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
65 * support/include/nfs/export.h, support/nfs/exports.c,
66 utils/exportfs/exports.c, utils/mountd/mountd.c: change
67 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
68 meaning. Also remove meaningless
69 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
71 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
73 * support/export/xtab.c, support/include/nfslib.h,
74 support/nfs/cacheio.c, support/nfs/nfssvc.c,
75 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
76 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
77 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
78 (nfs-utils-1.0.5-post2)
80 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
82 * support/nfs/nfsexport.c: open channel file O_WRONLY when
84 * utils/mountd/cache.c: maintain mountlist when new_cache is
85 active. Also use O_WRONLY for channel files.
86 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
87 rather than an nfs_export.
88 * utils/mountd/rmtab.c: ditto.
89 (nfs-utils-1.5.0-post1)
91 2003-07-24 Chip Salzenberg <chip@pobox.com>
93 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
94 use Debian security team's cleaner approach.
95 * debian/changelog: Version 1.0.5-1.
96 * debian/nfs-kernel-server.init: Cosmetic changes.
98 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
101 1.0.4 was a bit of a brown-paper-bag-release because of the extra
102 'free' in auth.c. So I'm releasing this just a few days later.
104 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
106 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
107 check if new_cache is enabled, error if not, flush and exit if it
109 * utils/exportfs/exportfs.man: Explain -f option and explain the
110 two different modes that exportfs can work in.
111 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
113 * utils/mountd/mountd.man: Record the change if default behaviour
115 * configure.in, nfs-utils.spec: update version to 1.0.5 and
118 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
120 * utils/mountd/mountd.c(main): getopt string fix for 'o'
121 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
122 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
124 * support/include/nfs/export.h: Reserve a bit for possible ACL
127 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
129 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
130 assorted changed to cope with section 7 of the manual.
131 * configure.in, nfs-utils.spec: Update version to 1.0.4
134 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
135 baseline for 2.6 and 2.8. I.e. it should continue to work right
136 through the 2.8 (or 3.0) kernel series. Previous releases wont.
138 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
139 Steve Dickson <SteveD@redhat.com>
142 * utils/statd/statd.c: create a pidfile with pid of statd, and
143 truncate it when statd exists.
144 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
145 and warn if this is root.
146 * utils/statd/statd.c: when statd forks, connect child to parent
147 with a pipe, and send a byte down the pipe once the child is
149 * Makefile: create and chown sm, sm.bak, state when "make install"
150 * configure.in: add --with-statduser= option which defaults to
151 "rpcuser" or "nobody"
152 * config.mk.in: pass "statduser" through to Makefile
154 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
156 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
157 used as the size was changed somewhere in 2.5.60-2.5.70. Without
158 this nfs-utils compiles against 2.6 headers will not work on a
161 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
163 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
164 set number of threads by writing to there. This means it will
165 still work when the syscall interface goes away in 2.7.
167 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
168 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
170 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
171 so as to only export the wildcard exports that were asked for.
172 * support/export/export.c(export_allowed): changed to return the
173 nfs_export rather than a "struct exportent", as m_changed is
175 * support/export/rmtab.c(rmtab_read): modified to deal with
176 interface change for export_allowed(), and enhanced to preserve
177 m_changed flag when a wild-card export causes the creation of
178 a non-wildcard export.
180 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
181 Steve Dickson <SteveD@redhat.com>
183 * utils/mountd/mountd.man: Add valid kinds of debugging.
184 * utils/mountd/mountd.c(main): ignore SIGPIPE
185 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
186 we don't get warnings about unavailable stats that weren't asked
189 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
191 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
192 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
193 'forever', so things disappear out of the cache rather than just
196 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
198 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
201 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
203 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
204 etc/redhat/nfs.init: when checking if V3 is supported, make sure
205 nfs server 'knows' about 127.0.0.1 first.
207 2003-06-10 Chip Salzenberg <chip@pobox.com>
209 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
210 * debian/changelog: Version 1.0.3-2.
212 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
213 NeilBrown <neilb@cse.unsw.edu.au>
215 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
216 long long to avoid overflow when printing stats.
218 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
220 * support/export/export.c, support/include/nfslib.h,
221 support/nfs/export.c, utils/exportfs/exportfs.c,
222 utils/mountd/mountd.c: new export option "mountpoint"
223 If no path is given, then the export point must be a
224 mount point, or it won't be exported. If a path is
225 given (e.g. mountpoint=/path) then that path must be
226 a mountpoint or the exportpoint won't be exported.
227 * utils/exportfs/exportfs.man: document mountpoint option.
228 * support/misc/mountpoint.c: New file with is_mountpoint()
229 to determine if something is a mountpoint.
231 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
233 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
234 argument as we might not be getting the filehandle for the
236 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
237 cache_get_filehandle.
238 * utils/mountd/mountd.c(get_rootfh): check export point and
239 requested directory are on the same filesystem, and complain if
242 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
244 * utils/mountd/auth.c(auth_authenticate_internal): make sure
245 portnumber is still checked when using new cache lookup.
247 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
249 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
250 Don't actually talk to kernel when new cache is in effect, except
252 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
253 * support/export/xtab.c: Only rename new xtab into place if it has
254 changed, thus preserving modify date for exportfs to use when
256 * support/nfs/cacheio.c: Add cache_flush
257 * support/export/xtab.c: Only rename new xtab into place if it has
258 changed, thus preserving modify date for exportfs to use when
261 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
263 * support/export/client.c: Add client_compose, client_member to
264 handle new composite client names
265 * support/include/exportfs.h: Declare above functions.
266 * utils/mountd/auth.c: use client_compose to determine calling
267 client if new cache is being used.
268 * utils/mountd/auth.c: call cache_export to export a filesystem if
269 new_cache, check if new cache is used, and call my_svc_run instead
271 * utils/mountd/svc_run.c: new file defining my_svc_run
272 * utils/mountd/cache.c: new file for handling cache upcalls.
273 * support/nfs/cacheio.c(check_new_cache): new function to check if
274 new cache should be used.
277 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
279 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
280 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
281 * utils/exportfs/exportfs.c(dump): ditto
283 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
285 * support/export/hostname.c(get_reliable_hostbyaddr): new function
286 to get host name from address with full checking of authenticity.
287 * support/include/misc.h: declare above function
288 * utils/mountd/auth.c(auth_authenticate_internal): remove all
289 logic for authenticating address.
290 * utils/mountd/auth.c(auth_authenticate): call new
291 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
294 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
296 * tools/rpcgen/rpc_main.c(find_cpp): removed
297 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
298 then try hard-coded paths.
300 2003-03-26 Chip Salzenberg <chip@pobox.com>
302 * debian/changelog: Version 1.0.3-1.
304 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
306 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
307 "const char*", not "char*".
309 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
311 * configure.in (VERSION): Set to "1.0.3".
312 * nfs-utils.spec: Likewise.
313 * configure: Regenerated.
315 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
317 * support/nfs/cacheio.c: New File - support for read/writing
318 to export cache in /proc/rpc/*/channel
319 * support/nfs/Makefile: compile cacheio.c
320 * support/include/nfslib.h: declare cacheio.c functions
321 * support/nfs/nfsexport.c: export and unexport through
322 /proc/rpc/*/channel if possible, as old syscall interface
323 may not survive into 2.6 on all architectures.
325 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
326 Ben Leslie <benno@sesgroup.net>
328 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
329 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
330 former would incorectly ignore defport if the application
331 explicitly set __rpcfdtype. The later is sufficient to avoid the
332 special handling in the case where stdin is an internet socket.
334 * utils/mountd/mountd.c(main): Add 'n' to option list in
335 getopt_long as this is a short form of --no-tcp which want being
338 2003-02-12 Chip Salzenberg <chip@pobox.com>
340 * debian/changelog: Version 1.0.2-2.
342 2002-11-27 Chip Salzenberg <chip@pobox.com>
344 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
345 overflow bug. Reformat per rest of source file.
347 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
349 * utils/exportfs/exports.man: Correct notes about whether the wild
350 card characters match a period. They do.
352 2002-10-15 Juan Gomez <juang@us.ibm.com>
354 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
356 (mountlist_add): Call slink_safe_rename instead of rename.
358 2002-10-11 H.J. Lu <hjl@lucon.org>
360 * support/include/exportfs.h (export_errno): New.
362 * support/nfs/exports.c: Include <errno.h>.
364 (getexportent): Set export_errno to EINVAL for bad option.
365 (parseopts): Likewise.
366 Report the location of the default sync/async option.
368 * utils/exportfs/exportfs.c (main): Initialize export_errno to
369 0. Return export_errno.
371 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
372 NeilBrown <neilb@cse.unsw.edu.au>
374 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
375 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
377 2002-09-16 Chip Salzenberg <chip@pobox.com>
379 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
381 2002-09-15 Chip Salzenberg <chip@pobox.com>
383 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
384 socket, as occurs when run from sshd.
385 * debian/changelog: Version 1.0.2-1.
387 2002-09-12 H.J. Lu <hjl@lucon.org>
389 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
392 2002-09-12 H.J. Lu <hjl@lucon.org>
394 * configure.in: Remove checking svctcp_socket and svcudp_socket.
395 * configure: Regenerated.
397 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
398 (HAVE_SVCUDP_SOCKET): Removed.
400 * support/include/nfslib.h: Undo the last change.
402 2002-09-12 H.J. Lu <hjl@lucon.org>
404 * support/include/nfslib.h (svctcp_socket): Protect it with
406 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
408 2002-09-12 H.J. Lu <hjl@lucon.org>
410 * configure.in (VERSION): Set to "1.0.2".
411 * configure: Regenerated.
412 * nfs-utils.spec: Likewise.
414 2002-09-12 H.J. Lu <hjl@lucon.org>
416 * configure.in: Check svctcp_socket and svcudp_socket.
417 * configure: Regenerated.
419 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
420 (HAVE_SVCUDP_SOCKET): New.
422 * support/include/nfslib.h (svctcp_socket): New.
423 (svcudp_socket): New.
425 * support/nfs/Makefile (OBJS): Add svc_socket.o.
427 * support/nfs/svc_socket.c: New.
429 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
430 svcudp_socket if port is unspecified.
432 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
434 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
435 (killer): New. Signal handler to unregister.
436 (main): Use killer. Call svcudp_socket to get the default
439 2002-09-02 Juan Gomez <juang@us.ibm.com>
440 NeilBrown <neilb@cse.unsw.edu.au>
442 Add -N option to statd to run in notify-only mode.
444 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
445 * utils/statd/statd.man: document -N
446 * utils/statd/statd.c: enabled -N, largely exists but needed to be
447 uncommented and completed
449 2002-09-02 Juan Gomez <juang@us.ibm.com>
450 NeilBrown <neilb@cse.unsw.edu.au>
452 statd to have " -P directory" arg to use that directory instead
453 of /var/lib/nfs. This is useful for fail-over clusters.
455 * utils/statd/statd.h: define SM_DIR etc as var, not const.
456 * utils/statd/statd.c: define "-P" option to set SM_*
458 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
460 * utils/statd/notify.c: ditto.
461 * utils/statd/statd.man: document -P option.
463 2002-08-26 Chip Salzenberg <chip@pobox.com>
465 * utils/nfsd/nfsd.man: Fix typo.
466 * debian/changelog: Version 1.0.1-1.
468 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
470 * let parseopts know if /etc/exports was being read or not,
471 and have it only print "no sync or async" warning in that case.
473 2002-05-06 Tom McNeal <trmcneal@attbi.com>
474 NeilBrown <neilb@cse.unsw.edu.au>
476 * utils/nfsstat/nfsstat.c: Handle differing format for
477 /proc/net/rpc/nfsd between pre and post 2.4.0
479 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
480 James Pearson <james-p@moving-picture.com>
482 * support/nfs/rmtab.c(fendrmtabent): sync changes to
483 storage before returning, as this is critical state
485 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
486 H.J. Lu <hjl@lucon.org>
488 * etc/redhat/nfs: New.
490 2002-04-08 H.J. Lu <hjl@lucon.org>
492 * etc/redhat/nfs.init: Updated.
494 * nfs-utils.spec.in: Updated.
495 * nfs-utils.spec: Regenerated.
497 * utils/mountd/mountd.c (longopts): Fix a typo.
499 * utils/mountd/mountd.man: Updated.
501 2002-04-07 H.J. Lu <hjl@lucon.org>
503 * etc/redhat/nfslock.init (restart): Just do stop and start.
505 * etc/redhat/nfs.init: Fix a typo.
507 2002-04-07 H.J. Lu <hjl@lucon.org>
509 * configure.in (VERSION): Set to "1.0.1".
510 * configure: Regenerated.
511 * nfs-utils.spec: Likewise.
513 * README: Updated for 1.0.1.
515 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
516 H.J. Lu <hjl@lucon.org>
518 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
520 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
521 NeilBrown <neilb@cse.unsw.edu.au>
523 Add support for fsid=nn export option so that device
524 numbers don't go in filehandles.
525 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
526 is set, pass the fsid in-place of the device number
527 * support/nfs/exports.c: parse and print fsid= option.
528 Also check if efname has been set, and use "command line"
529 instead in error messages.
530 Also, use strtol instead of atoi for anon[ug]id= so that
531 bad numbers cause errors.
533 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
534 NeilBrown <neilb@cse.unsw.edu.au>
536 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
537 flag so that "sync" becomes the default.
538 Check that either "sync" or "async" is given as an option
539 and warn if neither are present
540 * utils/exportfs/exports.man: change documentation for "sync"
541 to be documentation for "async".
542 * utils/exportfs/exportfs.man: note that "sync" is the default
546 2002-01-02 Chip Salzenberg <chip@pobox.com>
548 * support/export/nfsctl.c (expsetup): Don't export entries that
549 specify id mappings not supported by the kernel. No extant kernel
550 supports any significant mapping, only 'identity' (i.e. none).
551 When other mappings are supported, this code will need changing.
552 * debian/changelog: Version 1.0-2.
554 2001-12-26 Chip Salzenberg <chip@pobox.com>
556 * nfs-utils.spec (Version): Set to "1.0".
557 * configure.in (VERSION): Likewise.
558 * configure: Regenerated.
560 * debian/changelog: Version 1.0-1.
562 * utils/exportfs/exports.man: Emphasize the need for options to
563 immediately follow client names. Explain that wildcards don't
564 usually work on addresses, but may work when reverse DNS fails.
565 Comment out a leftover TP that was TPing our indentation.
566 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
567 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
568 * debian/changelog: Version 0.3.3-6.
570 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
572 * support/export/client.c(client_lookup): If a host has multiple
573 IP addresses, then we must always use the result of a
574 gethostbyname, not that of gethostbyaddr for exporting
576 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
578 * support/export/client.c (client_lookup): use strcasecmp when
580 * support/nfs/export.c (getexportent): add fromkernel arg and use
581 different defaults as kernels prior to 2.4.11 assume different
582 defaults in /proc/fs/nfs/exports
583 * support/include/nfslib.h, support/export/export.c,
584 support/export/xtab.c: support extra "fromkernel" arg for
587 2001-12-13 Chip Salzenberg <chip@pobox.com>
589 * debian/changelog: Version 0.3.3-5.
591 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
593 * support/nfs/xio.c (xskip): Call `xungetc' instead of
594 `ungetc' to keep x_line more properly.
596 2001-11-26 Chip Salzenberg <chip@pobox.com>
598 * utils/showmount/showmount.c (main): Don't assume that strings
599 starting with digits are IP addresses.
600 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
601 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
602 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
603 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
604 man pages: We check host names *and* addresses with tcpwrappers.
605 * debian/changelog: Version 0.3.3-4.
607 2001-11-21 Chip Salzenberg <chip@pobox.com>
609 * support/nfs/clients.c (cfname): Added: current clients file name.
610 (setnfsclntent): Set it.
611 ({get,end}nfsclntent, syntaxerr): Use it.
612 * support/nfs/exports.c (efname): Added: current exports file name.
613 (setnfsexportent): Set it.
614 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
615 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
616 * debian/changelog: Version 0.3.3-3.
618 2001-10-11 Chip Salzenberg <chip@pobox.com>
620 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
621 * debian/changelog: Version 0.3.3-2.
623 2001-10-08 Chip Salzenberg <chip@pobox.com>
625 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
626 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
627 * utils/mountd/mountd.man: Update paths to /var/lib.
628 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
630 2001-10-06 Preston Brown <pbrown@redhat.com>
632 * utils/nfsstat/nfsstat.man: Updated.
634 2001-09-24 H.J. Lu <hjl@lucon.org>
636 * configure.in (VERSION): Set to "0.3.3".
637 * configure: Regenerated.
638 * nfs-utils.spec: Likewise.
640 * README: Updated for 0.3.3.
642 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
644 Arrange that "exportfs -au" never does DNS lookup:
646 * support/export/client.c (client_lookup) : add "canonical"
647 flag which says that the hostname is known to be canonical, so
650 * support/export/export.c (export_create) : add "canonical"
651 flag to be passed down to client_lookup
652 * support/export/export.c (export_lookup) : Likewise
654 * support/export/xtab.c (xtab_read) : pass appropriate
655 "canonical" flag to export_lookup and export_create:
656 set if reading list of filesystems currently exports
659 * support/export/export.c (export_read) : pass 0 as
660 "canonical" flag to export_lookup and export_create
661 * support/export/rmtab.s (rmtab_read) : Likewise
663 * support/include/exportfs.h : redeclare various routines
664 to have "canonical" flag
666 * utils/exportfs/exportfs.c (main) : redo logic for
667 "-au" to read in what is currently exported, but never even
668 look at what "should" be exported.
670 * utils/exportfs/exportfs.c (unexportall) : remove this
671 routine. Functionality is completely included in
674 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
675 flag to zero in calls to export_lookup and export_create.
678 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
679 Anne Milicia <milicia@missioncriticallinux.com>
681 * support/export/client.c (client_lookup) call gethostbyadd
682 to make sure that we have a canonical hostname, even for
684 * utils/exportfs/exportfs.c (exportfs) Likewise
686 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
688 * support/nfs/exports.c (putexportent): \octal quote any spaces
690 * support/nfs/xio.c (xgettok): recognise double-quote and
691 \octal quoting in path names
692 * utils/exportfs/exports.man: document quoting conventions
695 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
697 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
698 change from 2000-08-02: It causes problems if someone exports
699 to both a hostname and IP addresses. nfs-utils must be
700 consistant about the canonical name that it chooses.
702 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
703 H.J. Lu <hjl@lucon.org>
705 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
707 * utils/statd/statd.c (longopts): Add "name".
708 (usage): Add "-n/--name".
709 (main): Set MY_NAME with "-n/--name".
711 * utils/statd/state.c (change_state): Set MY_NAME only if it
714 * utils/statd/statd.man: Updated for "-n/--name".
716 2001-07-26 H.J. Lu <hjl@lucon.org>
718 * nfs-utils.spec (Release): Set to 8.
720 2001-07-25 H.J. Lu <hjl@lucon.org>
722 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
725 2001-06-27 H.J. Lu <hjl@lucon.org>
727 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
729 2001-06-27 H.J. Lu <hjl@lucon.org>
731 * utils/rquotad/rquota_server.c: Don't call statfs () for
732 the block size. Use BLOCK_SIZE instead.
734 2001-06-27 H.J. Lu <hjl@lucon.org>
736 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
737 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
739 * configure.in (enable_nfsv3): Set to yes by default.
740 (--enable-rquotad): Added
741 (AC_PROG_CXX): Removed.
742 (AC_OUTPUT): Add utils/Makefile.
743 (CC_FOR_BUILD): Renamed from BUILD_CC.
744 * configure: Regenerated.
746 * utils/Makefile: Removed.
748 * utils/Makefile.in: New.
750 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
752 (CC_FOR_BUILD): Renamed from BUILD_CC.
753 * nfs-utils.spec: Regenerated.
755 2001-06-15 Chip Salzenberg <chip@debian.org>
757 * debian/changelog: Version 0.3.2-2.
758 * debian/*.init: Minor fixes.
760 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
762 * etc/nodist/nfs-server: Fixed a bug where the script would
763 disable mounts from NFSv3 clients if NFSv3 is present.
765 2001-06-05 H.J. Lu <hjl@lucon.org>
767 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
768 (main): Support --descriptors/-o to set the limit of the number
769 of open file descriptors.
772 * utils/mountd/mountd.man: Updated for --descriptors/-o.
774 2001-06-04 H.J. Lu <hjl@lucon.org>
776 * nfs-utils.spec (Release): Set to 6.
778 2001-05-28 H.J. Lu <hjl@lucon.org>
780 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
781 * utils/mountd/mountd.c (main): Likewise.
782 * utils/nfsd/nfsd.c (main): Likewise.
783 * utils/rquotad/rquota_svc.c (main): Likewise.
785 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
787 * support/export/client.c (client_check): Check IP address
790 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
792 * support/export/client.c (client_gettype): Treat `*' as
795 2001-04-22 H.J. Lu <hjl@lucon.org>
797 * nfs-utils.spec.in: Fix a typo.
798 * nfs-utils.spec: Regenerated.
800 2001-04-21 H.J. Lu <hjl@lucon.org>
802 * nfs-utils.spec.in: Fix cross build.
803 * nfs-utils.spec: Regenerated.
806 2001-04-18 H.J. Lu <hjl@lucon.org>
808 * nfs-utils.spec.in: Support cross build.
809 * nfs-utils.spec: Regenerated.
815 * config.mk.in (BUILD_CC): New.
816 (CC): Set to $(BUILD_CC) if BUILD is defined.
819 (RANLIB): Set to @RANLIB@.
821 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
822 * configure: Regenerated.
824 * tools/rpcgen/Makefile (BUILD): Set to true.
826 2001-04-01 Chip Salzenberg <chip@valinux.com>
828 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
829 redundant, and sometimes broken, declaration of svc_fdset;
831 * support/nfs/rpcmisc.c (closedown): Likewise.
833 2001-03-21 H.J. Lu <hjl@lucon.org>
835 * nfs-utils.spec: Regenerated.
838 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
840 * utils/statd/statd.c (main): make sure file descriptors 0-2
841 are open to /dev/null.
843 2001-03-21 H.J. Lu <hjl@lucon.org>
845 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
846 * support/nfs/rpcmisc.c: Likewise.
847 * utils/rquotad/rquota_svc.c: Likewise.
848 * utils/rquotad/rquotad.man: Likewise.
849 * utils/statd/Makefile: Likewise.
850 * utils/statd/rmtcall.c: Likewise.
851 * utils/statd/simulate.c: Likewise.
852 * utils/statd/statd.c: Likewise.
853 * utils/statd/statd.man: Likewise.
855 2001-03-11 H.J. Lu <hjl@lucon.org>
857 * configure.in (RELEASE): New. Default to 1, set by
858 --with-release=XXX. Substitute nfs-utils.spec.
859 * nfs-utils.spec.in (Release): Set to @RELEASE@.
860 * configure: Regenerated.
861 * nfs-utils.spec: Likewise.
863 2001-03-11 H.J. Lu <hjl@lucon.org>
865 * utils/rquotad/rquotad.man: Fix a typo.
867 2001-03-11 H.J. Lu <hjl@lucon.org>
869 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
870 * support/nfs/rpcmisc.c: Likewise.
871 * utils/rquotad/rquota_svc.c: Likewise.
872 * utils/rquotad/rquotad.man: Likewise.
873 * utils/statd/Makefile: Likewise.
874 * utils/statd/rmtcall.c: Likewise.
875 * utils/statd/simulate.c: Likewise.
876 * utils/statd/statd.c: Likewise.
877 * utils/statd/statd.man: Likewise.
879 2001-03-10 H.J. Lu <hjl@lucon.org>
881 * configure.in (VERSION): Set to "0.3.2".
882 * configure: Regenerated.
883 * nfs-utils.spec: Likewise.
885 * README: Updated for 0.3.2.
887 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
889 * utils/rquotad/rquotad.man: Updated for -p.
890 * utils/statd/statd.man: Likewise.
892 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
894 * support/nfs/rpcmisc.c: export makesock()
896 * support/include/rpcmisc.h (makesock): Declared.
898 * utils/rquotad/rquota_svc.c: added longopts, added support for
899 specifying the port to bind to on the command line.
901 * utils/statd/statd.c: ditto, also specify port used for
902 outgoing connections.
903 (do_regist): Removed.
905 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
906 get_socket. Make it extern.
908 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
909 instead of do_regist.
911 * utils/statd/Makefile (LIBS): link with our own libnfs
913 2001-03-09 H.J. Lu <hjl@lucon.org>
915 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
916 * etc/nodist/nfs-client: Likewise.
918 2001-02-26 Chip Salzenberg <chip@valinux.com>
920 * debian/changelog: Version 0.3.1-1.
921 * Mention upstream source and license in copyright file.
922 * Add build-Depends for debhelper and libwrap0-dev.
924 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
926 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
927 * etc/nodist/nfs-client: Likewise.
929 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
931 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
934 2001-02-17 Patrick J. LoPresti <patl@curl.com>
936 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
939 2001-02-14 H.J. Lu <hjl@lucon.org>
941 * utils/statd/rmtcall.c: Include <time.h>.
942 * utils/statd/svc_run.c: Likewise.
944 2001-02-14 H.J. Lu <hjl@lucon.org>
946 * configure.in (VERSION): Set to "0.3.1".
947 * configure: Regenerated.
948 * nfs-utils.spec: Likewise.
950 * README: Updated for 0.3.1.
952 2001-02-14 H.J. Lu <hjl@lucon.org>
954 * support/nfs/rpcmisc.c: Include <time.h>.
956 2001-02-14 Chip Salzenberg <chip@valinux.com>
958 * debian/control: Change priority of nhfsstone package to 'extra'.
960 2001-02-12 Chip Salzenberg <chip@valinux.com>
962 * debian/changelog: Version 0.3-2.
964 2001-02-02 H.J. Lu <hjl@lucon.org>
966 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
968 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
969 out SO_SNDBUF/SO_RCVBUF.
970 (rpc_init): Remove bufsize and remove socksz in calls to
973 * utils/mountd/mountd.c (main): Remove bufsize in calls to
976 2001-01-28 Chip Salzenberg <chip@valinux.com>
978 * debian/changelog: Version 0.3-1.
980 2001-01-25 H.J. Lu <hjl@lucon.org>
982 * configure.in (VERSION): Set to "0.3".
983 * configure: Regenerated.
984 * nfs-utils.spec: Likewise.
986 * README: Updated for 0.3.
988 2001-01-25 H.J. Lu <hjl@lucon.org>
990 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
992 2001-01-20 Chip Salzenberg <chip@valinux.com>
994 * support/include/xio.h (xgetc): Declare to return int.
995 * support/nfs/xio.c (xgetc): Return int.
996 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
997 * utils/statd/statd.c (main): Use int for value of getopt.
998 * debian/changelog: Version 0.2.1-5.
1000 2000-12-10 Chip Salzenberg <chip@valinux.com>
1002 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
1003 program and procedure numbers of kernel lockd's callback. Also,
1004 besides the old (and broken) procedure #24, allow #16 per Trond.
1006 2000-12-03 Chip Salzenberg <chip@valinux.com>
1008 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
1009 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
1010 * debian/changelog: Version 0.2.1-4.
1012 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
1014 * utils/mountd/auth.c (auth_authenticate): Log the bad path
1017 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
1019 * support/nfs/exports.c (getexportent): Check for host name
1020 without option, or options without hostname, and print a warning,
1021 as this is most likely a typo.
1023 2000-11-19 Chip Salzenberg <chip@valinux.com>
1025 * debian/control: Add dependency on portmap.
1026 * debian/changelog: Version 0.2.1-3.
1028 2000-11-10 H.J. Lu <hjl@lucon.org>
1030 * nfs-utils.spec.in: Don't use libtool.
1031 Add ChangeLog and COPYING to doc.
1032 * nfs-utils.spec: Rebuild.
1034 2000-11-09 H.J. Lu <hjl@lucon.org>
1036 * etc/redhat/nfs.init (start): Back out the last change.
1038 2000-11-09 H.J. Lu <hjl@lucon.org>
1040 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
1041 TCP is not supported by kernel.
1043 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
1045 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
1046 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
1048 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
1050 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
1052 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
1053 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
1054 callbacks to local lockd.
1056 2000-10-18 Scott McDermott <mcdermot@questra.com>
1058 * utils/exportfs/exports.man: Updated for CIDR netmask.
1060 2000-10-17 Scott McDermott <mcdermot@questra.com>
1062 * support/export/client.c (client_init): Support CIDR netmask
1065 2000-10-11 H.J. Lu <hjl@lucon.org>
1067 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1068 * configure: Rebuilt.
1070 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
1072 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1073 "/var/lib/nfs/state".
1075 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
1077 * utils/statd/statd.h (run_mode): New global bitmask of runtime
1078 behaviors: fg/bg, logging, etc.
1079 * utils/statd/statd.c: New command line options: -V -h -? -d .
1080 * utils/statd/statd.man: Update for changes to statd.
1082 * utils/statd/log.h (log_init): Remove parameter of function; use
1083 global variable "name_p" instead.
1084 * utils/statd/log.c: Add support for logging to stderr.
1086 * utils/statd/notlist.c: Partially rewrite notify list handling
1087 functions. Eliminate run-off-end-of-list bug when calling
1088 nlist_insert_timer. Add lots of comments.
1090 2000-09-27 H.J. Lu <hjl@lucon.org>
1092 * README: Updated for RedHat 7.0.
1094 2000-09-27 H.J. Lu <hjl@lucon.org>
1096 * nfs-utils.spec: Rebuild.
1098 2000-09-27 H.J. Lu <hjl@lucon.org>
1100 * README: Updated for 0.2.1.
1102 2000-09-27 H.J. Lu <hjl@lucon.org>
1104 * nfs-utils.spec.in: Updated to use rpm macros and support
1107 2000-09-25 H.J. Lu <hjl@lucon.org>
1109 * configure.in (VERSION): Set to "0.2.1".
1110 * configure: Regenerated.
1111 * nfs-utils.spec: Updated.
1113 2000-09-25 H.J. Lu <hjl@lucon.org>
1115 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1116 non-NULL hostent is always returned.
1118 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1120 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1121 have an executable (i.e. kernel threads)
1123 2000-09-01 H.J. Lu <hjl@lucon.org>
1125 * README: Updated for 0.2.
1127 2000-09-01 Jay Weber <jweber@valinux.com>
1129 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1130 supporting version 3 of nfs if available, else it will fall back to
1131 version 2 support only.
1133 2000-08-30 H.J. Lu <hjl@lucon.org>
1135 * configure.in (VERSION): Set to "0.2".
1136 * configure: Regenerated.
1137 * nfs-utils.spec: Updated.
1139 2000-08-25 H.J. Lu <hjl@lucon.org>
1141 * support/misc/tcpwrapper.c (logit): Modify the log output.
1143 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1145 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1146 utils/mountd/mountd.man: updated
1148 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1149 * utils/rquotad/Makefile: fix comment
1151 * support/misc/tcpwrapper.c (logit): added comment about waiting
1152 for the children after fork()
1154 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1155 zombies behind (from logit()'s fork)
1156 * utils/rquotad/rquota_svc.c (main): ditto
1157 * utils/statd/statd.c (main): ditto
1159 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1160 to check_default instead of 0, for prognum
1162 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1163 to check_default instead of 0, for prognum
1165 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1166 HAVE_TCP_WRAPPER is defined.
1167 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1168 defined. Reject an RPC call if check_default () fails.
1170 2000-08-25 H.J. Lu <hjl@lucon.org>
1172 * support/include/tcpwrapper.h: New for the tcp wrapper
1174 * support/misc/Makefile: Likewise.
1175 * support/misc/from_local.c: Likewise.
1176 * support/misc/tcpwrapper.c: Likewise.
1178 * aclocal.m4 (AC_TCP_WRAPPER): New.
1179 * configure.in: Use it. Substitute LIBWRAP.
1180 * configure: Rebuilt.
1182 * config.mk.in (LIBNSL): New.
1183 (LIBWRAP): Likewise.
1185 * support/Makefile (SUBDIRS): Add misc.
1187 * support/lib/Makefile (LIBS): Add libmisc.a.
1189 * utils/rquotad/Makefile (LIBS): Add
1191 -lmisc $(LIBWRAP) $(LIBNSL)
1193 * utils/statd/Makefile (LIBS): Likewise.
1195 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1196 HAVE_TCP_WRAPPER is defined.
1197 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1198 defined. Reject an RPC call if check_default () fails.
1200 * utils/statd/statd.c: Include "tcpwrapper.h" if
1201 HAVE_TCP_WRAPPER is defined.
1202 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1203 check_default () before calling sm_prog_1 (). Define it as
1204 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1206 2000-08-25 Chip Salzenberg <chip@valinux.com>
1208 * debian/*: Complete Debian build support.
1209 * etc/debian/*: Remove.
1211 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1213 * support/export/client.c(client_check): removed the "dot+1" as a
1214 ypdomain argument to innetgr as this is entirely bogus.
1215 It should always be NULL.
1217 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1219 * support/export/xtab.c(xtab_read): introduce new mode for
1220 reading xtab. i.e. a list of exports that might be known to the
1221 kernel, or might not. These are flagged as m_exported == -1
1222 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1223 value "2" for xtab, meaning don't trust this too much.
1224 * support/include/exportfs.h(struct mexport): changed m_exported
1225 from one bit to an int so that it can hold new value
1226 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1227 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1228 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1231 * support/nfs/xio.c(xflock): added O_CREAT when getting
1232 a write lock so that missing files aren't fatal.
1234 * etc/debian/nfs-common: new file from "potato"
1235 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1237 2000-08-09 H.J. Lu <hjl@lucon.org>
1239 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1240 startup to ensure all existing clients work fine.
1242 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1243 to xtab_read () for reading _PATH_XTAB.
1245 2000-08-02 H.J. Lu <hjl@lucon.org>
1247 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1248 avoid the reverse name lookup.
1250 2000-07-04 H.J. Lu <hjl@lucon.org>
1252 * utils/statd/log.c: Include <stdlib.h> for exit ().
1254 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1257 2000-07-04 H.J. Lu <hjl@lucon.org>
1259 * configure.in (VERSION): Set to "0.1.9.1".
1260 * configure: Regenerated.
1261 * nfs-utils.spec: Updated.
1265 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1267 * support/export/hostname.c (hostent_dup): Handle the NULL
1270 2000-07-03 H.J. Lu <hjl@lucon.org>
1272 * README: Update the util-linux requirement.
1274 2000-07-03 H.J. Lu <hjl@lucon.org>
1276 * configure.in (VERSION): Set to "0.1.9".
1277 * configure: Regenerated.
1278 * nfs-utils.spec: Updated.
1282 2000-07-03 H.J. Lu <hjl@lucon.org>
1284 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1285 stop to ensure all clients can still access the server
1286 before it is shutdown.
1288 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1290 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1291 calls with format string.
1293 2000-06-28 Chip Salzenberg <chip@valinux.com>
1295 * utils/statd/log.c (log): Call syslog with format string.
1297 2000-06-27 H.J. Lu <hjl@lucon.org>
1299 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1300 instead of OPEN_MAX.
1302 2000-06-27 H.J. Lu <hjl@lucon.org>
1306 2000-06-27 H.J. Lu <hjl@lucon.org>
1308 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1309 startup to ensure all existing clients are exported.
1311 * configure.in (VERSION): Set to "0.1.8.2".
1312 * configure: Regenerated.
1313 * nfs-utils.spec: Updated.
1315 2000-06-06 H.J. Lu <hjl@lucon.org>
1317 * configure.in (VERSION): Set to "0.1.8.1".
1318 * configure: Regenerated.
1319 * nfs-utils.spec: Updated.
1321 2000-06-06 H.J. Lu <hjl@lucon.org>
1323 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1324 to "struct sockaddr_in *" for glibc 2.2.
1325 (mount_umnt_1_svc): Likewise.
1326 (mount_umntall_1_svc): Likewise.
1327 (mount_export_1_svc): Likewise.
1328 (mount_exportall_1_svc): Likewise.
1329 (mount_pathconf_2_svc): Likewise.
1330 (get_rootfh): Likewise.
1332 2000-06-04 H.J. Lu <hjl@lucon.org>
1334 * etc/redhat/nfs.init: Fix a typo in comment.
1336 2000-05-31 H.J. Lu <hjl@lucon.org>
1338 * configure.in (VERSION): Set to "0.1.8".
1339 * configure: Regenerated.
1340 * nfs-utils.spec: Updated.
1344 2000-05-31 H.J. Lu <hjl@lucon.org>
1346 * configure.in (VERSION): Set to "0.1.7.5".
1347 * configure: Regenerated.
1348 * nfs-utils.spec: Updated.
1350 * support/include/nfslib.h (exportent): Add a new field,
1351 r_count, to count the number of mounts from a client.
1352 (getrmtabent): Take a new argument for position in file.
1353 (putrmtabent): Likewise.
1354 (fgetrmtabent): Likewise.
1355 (fputrmtabent): Likewise.
1356 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1357 for position in file.
1358 (fgetrmtabent): Likewise.
1359 (putrmtabent): Likewise.
1360 (fputrmtabent): Likewise.
1362 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1365 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1366 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1367 and fputrmtabent ().
1368 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1369 (mountlist_del): Likewise.
1370 (mountlist_del_all): Likewise.
1371 (mountlist_list): Likewise.
1373 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1374 for the existing entry and initialize "r_count" to 1.
1375 (mountlist_del): Decrement "r_count".
1377 2000-05-18 H.J. Lu <hjl@lucon.org>
1379 * configure.in (VERSION): Set to "0.1.7.4".
1380 * configure: Regenerated.
1381 * nfs-utils.spec: Updated.
1383 2000-05-18 H.J. Lu <hjl@lucon.org>
1385 * etc/redhat/nfs.init (restart): Just do stop and start.
1387 2000-05-09 Jay Weber <jweber@valinux.com>
1389 * utils/rquotad/hasquota.c: added support for ext3 recognition
1391 * utils/rquotad/mntent.h: Likewise.
1393 2000-05-01 H.J. Lu <hjl@lucon.org>
1395 * configure.in (VERSION): Set to "0.1.7.3".
1396 * configure: Regenerated.
1397 * nfs-utils.spec: Updated.
1399 2000-05-01 H.J. Lu <hjl@lucon.org>
1401 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1402 mounting poins in /etc/fstab.
1404 2000-05-01 H.J. Lu <hjl@lucon.org>
1406 * configure.in (VERSION): Set to "0.1.7.2".
1407 * configure: Regenerated.
1408 * nfs-utils.spec: Updated.
1410 2000-05-01 H.J. Lu <hjl@lucon.org>
1412 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1413 to check for the mounting point.
1415 2000-04-29 Chip Salzenberg <chip@valinux.com>
1416 Neil Brown <neilb@cse.unsw.edu.au>
1418 * Really re-use RPC ports.
1419 (Fixes earlier patch. Sorry, Neil.)
1421 2000-04-26 H.J. Lu <hjl@lucon.org>
1423 * configure.in (VERSION): Set to "0.1.7.1".
1424 * configure: Regenerated.
1425 * nfs-utils.spec: Updated.
1427 2000-04-26 H.J. Lu <hjl@lucon.org>
1429 * etc/redhat/nfslock.init: Check if lockd exits before killing
1432 2000-04-25 H.J. Lu <hjl@lucon.org>
1434 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1436 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1438 * support/nfs/exports.c (parsesquash): Correctly set the
1441 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1443 * support/include/nfs/nfs.h: Removed knowledge of internals of
1444 kernel filehandles (which can change) and defined nfs_fh_size
1445 which has variable size
1447 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1448 get variable sized file handles, and change getfh{,old} to
1451 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1454 * tools/Makefile, tools/nlmtest/nlmtest.c
1455 nlmtest.c depended on internel format of file handles, so now
1459 2000-03-12 Chip Salzenberg <chip@valinux.com>
1460 Neil Brown <neilb@cse.unsw.edu.au>
1462 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1464 2000-03-13 H.J. Lu <hjl@lucon.org>
1466 * etc/redhat/nfsd.init: Updated.
1468 * etc/redhat/nfslock.init: Updated.
1470 * nfs-utils.spec.in: Updated.
1472 * configure.in (VERSION): Set to "0.1.7".
1473 * configure: Regenerated.
1474 * nfs-utils.spec: Updated.
1478 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1480 * utils/exportfs/exportfs.c (dump): Included printing of
1481 nohide, no_subtree_check, and insecure_locks
1483 2000-02-26 Chip Salzenberg <chip@valinux.com>
1485 * config.mk.in (INSTALLSUID): Strip ("-s").
1486 (INSTALLSCRIPT): Define.
1487 * utils/nhfsstone/Makefile: Use it.
1489 2000-02-26 Chip Salzenberg <chip@valinux.com>
1491 * utils/lockd/lockd.man: Create.
1492 * utils/lockd/Makefile: Install it.
1493 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1494 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1495 * utils/nhfsstone/Makefile: Install the helper scripts and
1497 * utils/exportfs/exports.man: Fix typo.
1499 2000-02-26 Chip Salzenberg <chip@valinux.com>
1501 * support/nfs/xio.c (xungetc): Decrement line number when
1502 character to unget is newline. Make first parameter int, so
1503 it can distinguish EOF from \377.
1504 * support/include/xio.h (xungetc): Adjust prototype.
1506 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1508 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1509 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1510 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1512 This is for supporting a new option introduced in 2.3.42
1514 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1516 * COPYING: Added. GPL.
1518 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1520 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1521 to get the block size.
1523 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1525 * nfs-utils.spec.in: Update ftp site.
1527 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1529 * README: Update hostnames.
1531 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1533 * configure.in (VERSION): Set to "0.1.6".
1534 * configure: Regenerated.
1535 * nfs-utils.spec: Updated.
1539 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1541 * utils/mountd/auth.c (auth_authenticate_internal): Call
1542 xstrdup for hostname before passing it to gethostbyname.
1544 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1547 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1549 * README: Update the mailing list address.
1551 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1553 * configure.in (VERSION): Set to "0.1.5".
1554 * configure: Regenerated.
1555 * nfs-utils.spec: Updated.
1559 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1561 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1564 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1566 * configure.in (VERSION): Set to "0.1.4".
1567 * configure: Regenerated.
1568 * nfs-utils.spec: Updated.
1572 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1574 * nfs-utils.spec.in: New file.
1576 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1578 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1580 1999-12-04 Chip Salzenberg <chip@valinux.com>
1582 * config.mk.in: Use $(CC) as set by configure.
1584 1999-12-04 Chip Salzenberg <chip@valinux.com>
1586 * rules.mk: Call $(MAKE) with $(MFLAGS).
1588 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1590 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1591 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1593 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1595 * nfs-utils.spec (Version): Set to 0.1.3.
1597 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1598 * configure: Regenerated.
1602 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1604 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1605 (_PATH_DEV_DSK): Likewise.
1606 (getquotainfo): Match the mounting point from /etc/mtab
1607 instead of calling nfsmount_to_devname ().
1609 1999-11-24 Chip Salzenberg <chip@valinux.com>
1611 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1612 to the new port 24 as well as the historical port 100021.
1614 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1616 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1617 stopping nfsd to stop spurious ESTALE on server shutdown.
1619 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1621 * support/nfs/exports.c (parseopts): make copy of opt string
1622 before 'nul'ing out commas so that
1624 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1626 applies both options to both exports.
1628 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1630 * README: Fix a few typos.
1632 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1634 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1635 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1636 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1637 (unsigned_dec): Likewise.
1638 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1639 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1641 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1643 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1644 (unsigned_dec): Likewise.
1645 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1646 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1647 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1649 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1651 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1652 * support/nfs/exports.c: added {no_,}subtree_check and changed
1654 * utils/exportfs/exports.man: added no_subtree_check and nohide
1655 and removed irrelevant stuff from unfsd.
1656 * support/export/rmtab.c: rmtab_read didn't quite do the right
1657 thing if a pathname from rmtab was a subdirectory of an export-point
1659 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1661 * README: Updated ftp site.
1663 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1665 * nfs-utils.spec (Version): Set to 0.1.2.
1667 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1668 * configure: Regenerated.
1672 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1674 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1675 (auth_authenticate_internal): Check for NULL return on forward
1677 (auth_authenticate): Handle "no_forward_dns".
1679 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1681 * Version 0.1.1 released.
1683 * nfs-utils.spec (Version): Set to 0.1.1.
1685 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1686 * configure: Regenerated.
1690 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1692 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1694 (Provides): Likewise.
1696 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1698 * Initial version 0.1 released.
1700 * configure.in (VERSION): Set to "nfs-utils 0.1".
1701 * configure: Regenerated.
1703 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1705 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1707 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1708 kernel only if the entry is exported to kernel.
1709 (unexportfs): Likewise.
1711 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1713 1/ utils/mountd/rmtab.c::mountlist_list
1715 This routine stats the rmtab file to see if it has changed. It
1716 if has, it cleans up it's old copy of the data. But it still
1717 always re-read the file, thus returning multiple copies of the
1718 data on consecutive calls without intervening changes.
1719 "Showmount -a" didn't show this as it appears to sort/unique the
1720 data, but 'strace showmount -a' showed that the size of the
1721 datagram that it received grew.
1723 I moved the getrmtabent loop inside the mtime test.
1725 2/ utils/exportfs/exportfs.c
1727 Many routines used the m_path field of m_export instead of
1729 According to the comment in nfslib.h, m_path should only
1730 be used when processing a mount request (i.e. in mountd)
1731 where the mountpoint may be a subdirectory of the export point.
1733 I changed all occurances of m_path to e_path
1736 3/ utils/exportfs/exportfs.c:main
1738 extra arguments are not meaningful with -a or -r, but
1739 exportfs accepted them and then ignored the -a/-r, expect that
1740 -r would still unexport everything first.
1742 I generate an error if there are extra args and f_all
1744 4/ utils/exportfs/exportfs.c:main
1745 extract dump out as a special case.
1747 5/ utils/exportfs/exportfs.c
1748 made f_reexport a local variable.
1751 6/ utils/exportfs/exportfs.c:main,exportall
1753 support/export/rmtab.c
1754 only mayexport on newly created entries, don't set xtabent at all
1756 7/ support/include/nfslib.h
1758 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1760 8/ support/export/xtab.c
1762 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1766 9/ support/export/xtab.c
1768 xtab_mount_read now sets m_exported, and NOT
1769 xtabent and mayexport
1771 removed the append arguement from xtab_write as it was
1774 added is_export flag to xtab_write similar to xtab_read
1775 if is_export, only write entries with m_xtabent or m_addxtab
1776 if !is_export, only write entries with m_exported
1778 10/ support/export/export.c::export_allowed_internal
1780 added test for exp->m_mayexport, as the export tree
1781 may have entries that are no longer allowed to be exported,
1782 and so shouldn't caused deduced exported by rmtab_read
1784 11/ utils/exportfs/exportfs.c::main
1785 error checking of flags.
1787 12/ utils/exportfs/exportfs.c
1789 total rewrite of export and unexport logic.
1791 - build an exportslist of valid exports, based on
1792 current etab file and arguments,
1793 - read rmtab to instantiate relevant wild card entries
1794 - read etab to find out what is currently exported
1795 - synchronise intention with reality
1796 - write out etab and xtab
1799 discard the m_addxtab flag
1800 add m_changed flag so we know what to report in exportfs
1802 14/ utils/mountd/auth.c:auth_authenticate
1804 the value returned by gethostbyaddr was trusted.
1806 It now follows this with a call to gethostbyname
1807 and checks that the address is in the list.
1809 15/ support/export/nfsctl.c::cltsetup,expsetup
1811 force client names to lowercase as kernel is
1814 16/ quietened a few compiler warnings
1816 17/ support/export/client:client_lookup
1818 look for pre-existing client with same name before creating
1821 18/ support/include/exportfs.h
1823 The ordering of the MCL_* enum was:
1824 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1826 I moved ANONYMOUS to the end.
1828 The ordering is significant when an export entry is being searched for to
1829 match a given address. There are two problems with ANONYMOUS being first.
1831 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1832 then the ro case will always be found first and the privileged hosts won't get
1834 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1835 export entry for the specific host, and writes it to xtab.
1836 When another request comes from the same host, the ANONYMOUS entry is found again,
1837 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1838 again. If causes bloat in xtab.
1840 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1842 19/ utils/exportfs/exportfs.man
1843 many updates to the man page to reflect changes to the code
1845 -----------------------
1851 - allow exportfs to modify rmtab file
1852 - make sure kernel never gets two clients with same IP address
1853 - possible kernel should reject
1854 - needs to be some way to lookup client in kernel by IP address
1855 - maybe get kernel to do case-insensitive comparisons on client names
1856 - remove unused clients from kernel
1858 - change etab to xtab and xtab to xtab.active
1860 - timestamp and/or statd-stamp in rmtab for removing old entries.
1862 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1864 * linux-nfs: New directory.
1865 * linux-nfs/ChangeLog: Moved from ..
1866 * linux-nfs/INSTALL: Likewise.
1867 * linux-nfs/KNOWNBUGS: Likewise.
1868 * linux-nfs/NEW: Likewise.
1869 * linux-nfs/README: Likewise.
1870 * linux-nfs/THANKS: Likewise.
1871 * linux-nfs/TODO: Likewise.
1873 * Starting from knfsd 1.4.7.