1 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
3 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
6 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
8 * support/include/nfs/export.h, support/nfs/exports.c,
9 utils/exportfs/exports.c, utils/mountd/mountd.c: change
10 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
11 meaning. Also remove meaningless
12 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
14 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
16 * support/export/xtab.c, support/include/nfslib.h,
17 support/nfs/cacheio.c, support/nfs/nfssvc.c,
18 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
19 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
20 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
21 (nfs-utils-1.0.5-post2)
23 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
25 * support/nfs/nfsexport.c: open channel file O_WRONLY when
27 * utils/mountd/cache.c: maintain mountlist when new_cache is
28 active. Also use O_WRONLY for channel files.
29 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
30 rather than an nfs_export.
31 * utils/mountd/rmtab.c: ditto.
32 (nfs-utils-1.5.0-post1)
34 2003-07-24 Chip Salzenberg <chip@pobox.com>
36 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
37 use Debian security team's cleaner approach.
38 * debian/changelog: Version 1.0.5-1.
39 * debian/nfs-kernel-server.init: Cosmetic changes.
41 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
44 1.0.4 was a bit of a brown-paper-bag-release because of the extra
45 'free' in auth.c. So I'm releasing this just a few days later.
47 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
49 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
50 check if new_cache is enabled, error if not, flush and exit if it
52 * utils/exportfs/exportfs.man: Explain -f option and explain the
53 two different modes that exportfs can work in.
54 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
56 * utils/mountd/mountd.man: Record the change if default behaviour
58 * configure.in, nfs-utils.spec: update version to 1.0.5 and
61 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
63 * utils/mountd/mountd.c(main): getopt string fix for 'o'
64 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
65 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
67 * support/include/nfs/export.h: Reserve a bit for possible ACL
70 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
72 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
73 assorted changed to cope with section 7 of the manual.
74 * configure.in, nfs-utils.spec: Update version to 1.0.4
77 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
78 baseline for 2.6 and 2.8. I.e. it should continue to work right
79 through the 2.8 (or 3.0) kernel series. Previous releases wont.
81 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
82 Steve Dickson <SteveD@redhat.com>
85 * utils/statd/statd.c: create a pidfile with pid of statd, and
86 truncate it when statd exists.
87 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
88 and warn if this is root.
89 * utils/statd/statd.c: when statd forks, connect child to parent
90 with a pipe, and send a byte down the pipe once the child is
92 * Makefile: create and chown sm, sm.bak, state when "make install"
93 * configure.in: add --with-statduser= option which defaults to
95 * config.mk.in: pass "statduser" through to Makefile
97 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
99 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
100 used as the size was changed somewhere in 2.5.60-2.5.70. Without
101 this nfs-utils compiles against 2.6 headers will not work on a
104 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
106 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
107 set number of threads by writing to there. This means it will
108 still work when the syscall interface goes away in 2.7.
110 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
111 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
113 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
114 so as to only export the wildcard exports that were asked for.
115 * support/export/export.c(export_allowed): changed to return the
116 nfs_export rather than a "struct exportent", as m_changed is
118 * support/export/rmtab.c(rmtab_read): modified to deal with
119 interface change for export_allowed(), and enhanced to preserve
120 m_changed flag when a wild-card export causes the creation of
121 a non-wildcard export.
123 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
124 Steve Dickson <SteveD@redhat.com>
126 * utils/mountd/mountd.man: Add valid kinds of debugging.
127 * utils/mountd/mountd.c(main): ignore SIGPIPE
128 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
129 we don't get warnings about unavailable stats that weren't asked
132 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
134 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
135 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
136 'forever', so things disappear out of the cache rather than just
139 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
141 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
144 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
146 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
147 etc/redhat/nfs.init: when checking if V3 is supported, make sure
148 nfs server 'knows' about 127.0.0.1 first.
150 2003-06-10 Chip Salzenberg <chip@pobox.com>
152 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
153 * debian/changelog: Version 1.0.3-2.
155 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
156 NeilBrown <neilb@cse.unsw.edu.au>
158 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
159 long long to avoid overflow when printing stats.
161 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
163 * support/export/export.c, support/include/nfslib.h,
164 support/nfs/export.c, utils/exportfs/exportfs.c,
165 utils/mountd/mountd.c: new export option "mountpoint"
166 If no path is given, then the export point must be a
167 mount point, or it won't be exported. If a path is
168 given (e.g. mountpoint=/path) then that path must be
169 a mountpoint or the exportpoint won't be exported.
170 * utils/exportfs/exportfs.man: document mountpoint option.
171 * support/misc/mountpoint.c: New file with is_mountpoint()
172 to determine if something is a mountpoint.
174 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
176 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
177 argument as we might not be getting the filehandle for the
179 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
180 cache_get_filehandle.
181 * utils/mountd/mountd.c(get_rootfh): check export point and
182 requested directory are on the same filesystem, and complain if
185 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
187 * utils/mountd/auth.c(auth_authenticate_internal): make sure
188 portnumber is still checked when using new cache lookup.
190 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
192 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
193 Don't actually talk to kernel when new cache is in effect, except
195 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
196 * support/export/xtab.c: Only rename new xtab into place if it has
197 changed, thus preserving modify date for exportfs to use when
199 * support/nfs/cacheio.c: Add cache_flush
200 * support/export/xtab.c: Only rename new xtab into place if it has
201 changed, thus preserving modify date for exportfs to use when
204 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
206 * support/export/client.c: Add client_compose, client_member to
207 handle new composite client names
208 * support/include/exportfs.h: Declare above functions.
209 * utils/mountd/auth.c: use client_compose to determine calling
210 client if new cache is being used.
211 * utils/mountd/auth.c: call cache_export to export a filesystem if
212 new_cache, check if new cache is used, and call my_svc_run instead
214 * utils/mountd/svc_run.c: new file defining my_svc_run
215 * utils/mountd/cache.c: new file for handling cache upcalls.
216 * support/nfs/cacheio.c(check_new_cache): new function to check if
217 new cache should be used.
220 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
222 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
223 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
224 * utils/exportfs/exportfs.c(dump): ditto
226 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
228 * support/export/hostname.c(get_reliable_hostbyaddr): new function
229 to get host name from address with full checking of authenticity.
230 * support/include/misc.h: declare above function
231 * utils/mountd/auth.c(auth_authenticate_internal): remove all
232 logic for authenticating address.
233 * utils/mountd/auth.c(auth_authenticate): call new
234 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
237 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
239 * tools/rpcgen/rpc_main.c(find_cpp): removed
240 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
241 then try hard-coded paths.
243 2003-03-26 Chip Salzenberg <chip@pobox.com>
245 * debian/changelog: Version 1.0.3-1.
247 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
249 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
250 "const char*", not "char*".
252 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
254 * configure.in (VERSION): Set to "1.0.3".
255 * nfs-utils.spec: Likewise.
256 * configure: Regenerated.
258 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
260 * support/nfs/cacheio.c: New File - support for read/writing
261 to export cache in /proc/rpc/*/channel
262 * support/nfs/Makefile: compile cacheio.c
263 * support/include/nfslib.h: declare cacheio.c functions
264 * support/nfs/nfsexport.c: export and unexport through
265 /proc/rpc/*/channel if possible, as old syscall interface
266 may not survive into 2.6 on all architectures.
268 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
269 Ben Leslie <benno@sesgroup.net>
271 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
272 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
273 former would incorectly ignore defport if the application
274 explicitly set __rpcfdtype. The later is sufficient to avoid the
275 special handling in the case where stdin is an internet socket.
277 * utils/mountd/mountd.c(main): Add 'n' to option list in
278 getopt_long as this is a short form of --no-tcp which want being
281 2003-02-12 Chip Salzenberg <chip@pobox.com>
283 * debian/changelog: Version 1.0.2-2.
285 2002-11-27 Chip Salzenberg <chip@pobox.com>
287 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
288 overflow bug. Reformat per rest of source file.
290 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
292 * utils/exportfs/exports.man: Correct notes about whether the wild
293 card characters match a period. They do.
295 2002-10-15 Juan Gomez <juang@us.ibm.com>
297 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
299 (mountlist_add): Call slink_safe_rename instead of rename.
301 2002-10-11 H.J. Lu <hjl@lucon.org>
303 * support/include/exportfs.h (export_errno): New.
305 * support/nfs/exports.c: Include <errno.h>.
307 (getexportent): Set export_errno to EINVAL for bad option.
308 (parseopts): Likewise.
309 Report the location of the default sync/async option.
311 * utils/exportfs/exportfs.c (main): Initialize export_errno to
312 0. Return export_errno.
314 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
315 NeilBrown <neilb@cse.unsw.edu.au>
317 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
318 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
320 2002-09-16 Chip Salzenberg <chip@pobox.com>
322 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
324 2002-09-15 Chip Salzenberg <chip@pobox.com>
326 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
327 socket, as occurs when run from sshd.
328 * debian/changelog: Version 1.0.2-1.
330 2002-09-12 H.J. Lu <hjl@lucon.org>
332 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
335 2002-09-12 H.J. Lu <hjl@lucon.org>
337 * configure.in: Remove checking svctcp_socket and svcudp_socket.
338 * configure: Regenerated.
340 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
341 (HAVE_SVCUDP_SOCKET): Removed.
343 * support/include/nfslib.h: Undo the last change.
345 2002-09-12 H.J. Lu <hjl@lucon.org>
347 * support/include/nfslib.h (svctcp_socket): Protect it with
349 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
351 2002-09-12 H.J. Lu <hjl@lucon.org>
353 * configure.in (VERSION): Set to "1.0.2".
354 * configure: Regenerated.
355 * nfs-utils.spec: Likewise.
357 2002-09-12 H.J. Lu <hjl@lucon.org>
359 * configure.in: Check svctcp_socket and svcudp_socket.
360 * configure: Regenerated.
362 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
363 (HAVE_SVCUDP_SOCKET): New.
365 * support/include/nfslib.h (svctcp_socket): New.
366 (svcudp_socket): New.
368 * support/nfs/Makefile (OBJS): Add svc_socket.o.
370 * support/nfs/svc_socket.c: New.
372 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
373 svcudp_socket if port is unspecified.
375 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
377 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
378 (killer): New. Signal handler to unregister.
379 (main): Use killer. Call svcudp_socket to get the default
382 2002-09-02 Juan Gomez <juang@us.ibm.com>
383 NeilBrown <neilb@cse.unsw.edu.au>
385 Add -N option to statd to run in notify-only mode.
387 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
388 * utils/statd/statd.man: document -N
389 * utils/statd/statd.c: enabled -N, largely exists but needed to be
390 uncommented and completed
392 2002-09-02 Juan Gomez <juang@us.ibm.com>
393 NeilBrown <neilb@cse.unsw.edu.au>
395 statd to have " -P directory" arg to use that directory instead
396 of /var/lib/nfs. This is useful for fail-over clusters.
398 * utils/statd/statd.h: define SM_DIR etc as var, not const.
399 * utils/statd/statd.c: define "-P" option to set SM_*
401 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
403 * utils/statd/notify.c: ditto.
404 * utils/statd/statd.man: document -P option.
406 2002-08-26 Chip Salzenberg <chip@pobox.com>
408 * utils/nfsd/nfsd.man: Fix typo.
409 * debian/changelog: Version 1.0.1-1.
411 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
413 * let parseopts know if /etc/exports was being read or not,
414 and have it only print "no sync or async" warning in that case.
416 2002-05-06 Tom McNeal <trmcneal@attbi.com>
417 NeilBrown <neilb@cse.unsw.edu.au>
419 * utils/nfsstat/nfsstat.c: Handle differing format for
420 /proc/net/rpc/nfsd between pre and post 2.4.0
422 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
423 James Pearson <james-p@moving-picture.com>
425 * support/nfs/rmtab.c(fendrmtabent): sync changes to
426 storage before returning, as this is critical state
428 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
429 H.J. Lu <hjl@lucon.org>
431 * etc/redhat/nfs: New.
433 2002-04-08 H.J. Lu <hjl@lucon.org>
435 * etc/redhat/nfs.init: Updated.
437 * nfs-utils.spec.in: Updated.
438 * nfs-utils.spec: Regenerated.
440 * utils/mountd/mountd.c (longopts): Fix a typo.
442 * utils/mountd/mountd.man: Updated.
444 2002-04-07 H.J. Lu <hjl@lucon.org>
446 * etc/redhat/nfslock.init (restart): Just do stop and start.
448 * etc/redhat/nfs.init: Fix a typo.
450 2002-04-07 H.J. Lu <hjl@lucon.org>
452 * configure.in (VERSION): Set to "1.0.1".
453 * configure: Regenerated.
454 * nfs-utils.spec: Likewise.
456 * README: Updated for 1.0.1.
458 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
459 H.J. Lu <hjl@lucon.org>
461 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
463 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
464 NeilBrown <neilb@cse.unsw.edu.au>
466 Add support for fsid=nn export option so that device
467 numbers don't go in filehandles.
468 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
469 is set, pass the fsid in-place of the device number
470 * support/nfs/exports.c: parse and print fsid= option.
471 Also check if efname has been set, and use "command line"
472 instead in error messages.
473 Also, use strtol instead of atoi for anon[ug]id= so that
474 bad numbers cause errors.
476 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
477 NeilBrown <neilb@cse.unsw.edu.au>
479 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
480 flag so that "sync" becomes the default.
481 Check that either "sync" or "async" is given as an option
482 and warn if neither are present
483 * utils/exportfs/exports.man: change documentation for "sync"
484 to be documentation for "async".
485 * utils/exportfs/exportfs.man: note that "sync" is the default
489 2002-01-02 Chip Salzenberg <chip@pobox.com>
491 * support/export/nfsctl.c (expsetup): Don't export entries that
492 specify id mappings not supported by the kernel. No extant kernel
493 supports any significant mapping, only 'identity' (i.e. none).
494 When other mappings are supported, this code will need changing.
495 * debian/changelog: Version 1.0-2.
497 2001-12-26 Chip Salzenberg <chip@pobox.com>
499 * nfs-utils.spec (Version): Set to "1.0".
500 * configure.in (VERSION): Likewise.
501 * configure: Regenerated.
503 * debian/changelog: Version 1.0-1.
505 * utils/exportfs/exports.man: Emphasize the need for options to
506 immediately follow client names. Explain that wildcards don't
507 usually work on addresses, but may work when reverse DNS fails.
508 Comment out a leftover TP that was TPing our indentation.
509 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
510 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
511 * debian/changelog: Version 0.3.3-6.
513 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
515 * support/export/client.c(client_lookup): If a host has multiple
516 IP addresses, then we must always use the result of a
517 gethostbyname, not that of gethostbyaddr for exporting
519 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
521 * support/export/client.c (client_lookup): use strcasecmp when
523 * support/nfs/export.c (getexportent): add fromkernel arg and use
524 different defaults as kernels prior to 2.4.11 assume different
525 defaults in /proc/fs/nfs/exports
526 * support/include/nfslib.h, support/export/export.c,
527 support/export/xtab.c: support extra "fromkernel" arg for
530 2001-12-13 Chip Salzenberg <chip@pobox.com>
532 * debian/changelog: Version 0.3.3-5.
534 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
536 * support/nfs/xio.c (xskip): Call `xungetc' instead of
537 `ungetc' to keep x_line more properly.
539 2001-11-26 Chip Salzenberg <chip@pobox.com>
541 * utils/showmount/showmount.c (main): Don't assume that strings
542 starting with digits are IP addresses.
543 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
544 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
545 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
546 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
547 man pages: We check host names *and* addresses with tcpwrappers.
548 * debian/changelog: Version 0.3.3-4.
550 2001-11-21 Chip Salzenberg <chip@pobox.com>
552 * support/nfs/clients.c (cfname): Added: current clients file name.
553 (setnfsclntent): Set it.
554 ({get,end}nfsclntent, syntaxerr): Use it.
555 * support/nfs/exports.c (efname): Added: current exports file name.
556 (setnfsexportent): Set it.
557 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
558 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
559 * debian/changelog: Version 0.3.3-3.
561 2001-10-11 Chip Salzenberg <chip@pobox.com>
563 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
564 * debian/changelog: Version 0.3.3-2.
566 2001-10-08 Chip Salzenberg <chip@pobox.com>
568 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
569 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
570 * utils/mountd/mountd.man: Update paths to /var/lib.
571 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
573 2001-10-06 Preston Brown <pbrown@redhat.com>
575 * utils/nfsstat/nfsstat.man: Updated.
577 2001-09-24 H.J. Lu <hjl@lucon.org>
579 * configure.in (VERSION): Set to "0.3.3".
580 * configure: Regenerated.
581 * nfs-utils.spec: Likewise.
583 * README: Updated for 0.3.3.
585 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
587 Arrange that "exportfs -au" never does DNS lookup:
589 * support/export/client.c (client_lookup) : add "canonical"
590 flag which says that the hostname is known to be canonical, so
593 * support/export/export.c (export_create) : add "canonical"
594 flag to be passed down to client_lookup
595 * support/export/export.c (export_lookup) : Likewise
597 * support/export/xtab.c (xtab_read) : pass appropriate
598 "canonical" flag to export_lookup and export_create:
599 set if reading list of filesystems currently exports
602 * support/export/export.c (export_read) : pass 0 as
603 "canonical" flag to export_lookup and export_create
604 * support/export/rmtab.s (rmtab_read) : Likewise
606 * support/include/exportfs.h : redeclare various routines
607 to have "canonical" flag
609 * utils/exportfs/exportfs.c (main) : redo logic for
610 "-au" to read in what is currently exported, but never even
611 look at what "should" be exported.
613 * utils/exportfs/exportfs.c (unexportall) : remove this
614 routine. Functionality is completely included in
617 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
618 flag to zero in calls to export_lookup and export_create.
621 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
622 Anne Milicia <milicia@missioncriticallinux.com>
624 * support/export/client.c (client_lookup) call gethostbyadd
625 to make sure that we have a canonical hostname, even for
627 * utils/exportfs/exportfs.c (exportfs) Likewise
629 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
631 * support/nfs/exports.c (putexportent): \octal quote any spaces
633 * support/nfs/xio.c (xgettok): recognise double-quote and
634 \octal quoting in path names
635 * utils/exportfs/exports.man: document quoting conventions
638 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
640 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
641 change from 2000-08-02: It causes problems if someone exports
642 to both a hostname and IP addresses. nfs-utils must be
643 consistant about the canonical name that it chooses.
645 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
646 H.J. Lu <hjl@lucon.org>
648 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
650 * utils/statd/statd.c (longopts): Add "name".
651 (usage): Add "-n/--name".
652 (main): Set MY_NAME with "-n/--name".
654 * utils/statd/state.c (change_state): Set MY_NAME only if it
657 * utils/statd/statd.man: Updated for "-n/--name".
659 2001-07-26 H.J. Lu <hjl@lucon.org>
661 * nfs-utils.spec (Release): Set to 8.
663 2001-07-25 H.J. Lu <hjl@lucon.org>
665 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
668 2001-06-27 H.J. Lu <hjl@lucon.org>
670 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
672 2001-06-27 H.J. Lu <hjl@lucon.org>
674 * utils/rquotad/rquota_server.c: Don't call statfs () for
675 the block size. Use BLOCK_SIZE instead.
677 2001-06-27 H.J. Lu <hjl@lucon.org>
679 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
680 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
682 * configure.in (enable_nfsv3): Set to yes by default.
683 (--enable-rquotad): Added
684 (AC_PROG_CXX): Removed.
685 (AC_OUTPUT): Add utils/Makefile.
686 (CC_FOR_BUILD): Renamed from BUILD_CC.
687 * configure: Regenerated.
689 * utils/Makefile: Removed.
691 * utils/Makefile.in: New.
693 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
695 (CC_FOR_BUILD): Renamed from BUILD_CC.
696 * nfs-utils.spec: Regenerated.
698 2001-06-15 Chip Salzenberg <chip@debian.org>
700 * debian/changelog: Version 0.3.2-2.
701 * debian/*.init: Minor fixes.
703 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
705 * etc/nodist/nfs-server: Fixed a bug where the script would
706 disable mounts from NFSv3 clients if NFSv3 is present.
708 2001-06-05 H.J. Lu <hjl@lucon.org>
710 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
711 (main): Support --descriptors/-o to set the limit of the number
712 of open file descriptors.
715 * utils/mountd/mountd.man: Updated for --descriptors/-o.
717 2001-06-04 H.J. Lu <hjl@lucon.org>
719 * nfs-utils.spec (Release): Set to 6.
721 2001-05-28 H.J. Lu <hjl@lucon.org>
723 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
724 * utils/mountd/mountd.c (main): Likewise.
725 * utils/nfsd/nfsd.c (main): Likewise.
726 * utils/rquotad/rquota_svc.c (main): Likewise.
728 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
730 * support/export/client.c (client_check): Check IP address
733 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
735 * support/export/client.c (client_gettype): Treat `*' as
738 2001-04-22 H.J. Lu <hjl@lucon.org>
740 * nfs-utils.spec.in: Fix a typo.
741 * nfs-utils.spec: Regenerated.
743 2001-04-21 H.J. Lu <hjl@lucon.org>
745 * nfs-utils.spec.in: Fix cross build.
746 * nfs-utils.spec: Regenerated.
749 2001-04-18 H.J. Lu <hjl@lucon.org>
751 * nfs-utils.spec.in: Support cross build.
752 * nfs-utils.spec: Regenerated.
758 * config.mk.in (BUILD_CC): New.
759 (CC): Set to $(BUILD_CC) if BUILD is defined.
762 (RANLIB): Set to @RANLIB@.
764 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
765 * configure: Regenerated.
767 * tools/rpcgen/Makefile (BUILD): Set to true.
769 2001-04-01 Chip Salzenberg <chip@valinux.com>
771 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
772 redundant, and sometimes broken, declaration of svc_fdset;
774 * support/nfs/rpcmisc.c (closedown): Likewise.
776 2001-03-21 H.J. Lu <hjl@lucon.org>
778 * nfs-utils.spec: Regenerated.
781 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
783 * utils/statd/statd.c (main): make sure file descriptors 0-2
784 are open to /dev/null.
786 2001-03-21 H.J. Lu <hjl@lucon.org>
788 * support/nfs/rpcmisc.c: Restore 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-11 H.J. Lu <hjl@lucon.org>
800 * configure.in (RELEASE): New. Default to 1, set by
801 --with-release=XXX. Substitute nfs-utils.spec.
802 * nfs-utils.spec.in (Release): Set to @RELEASE@.
803 * configure: Regenerated.
804 * nfs-utils.spec: Likewise.
806 2001-03-11 H.J. Lu <hjl@lucon.org>
808 * utils/rquotad/rquotad.man: Fix a typo.
810 2001-03-11 H.J. Lu <hjl@lucon.org>
812 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
813 * support/nfs/rpcmisc.c: Likewise.
814 * utils/rquotad/rquota_svc.c: Likewise.
815 * utils/rquotad/rquotad.man: Likewise.
816 * utils/statd/Makefile: Likewise.
817 * utils/statd/rmtcall.c: Likewise.
818 * utils/statd/simulate.c: Likewise.
819 * utils/statd/statd.c: Likewise.
820 * utils/statd/statd.man: Likewise.
822 2001-03-10 H.J. Lu <hjl@lucon.org>
824 * configure.in (VERSION): Set to "0.3.2".
825 * configure: Regenerated.
826 * nfs-utils.spec: Likewise.
828 * README: Updated for 0.3.2.
830 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
832 * utils/rquotad/rquotad.man: Updated for -p.
833 * utils/statd/statd.man: Likewise.
835 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
837 * support/nfs/rpcmisc.c: export makesock()
839 * support/include/rpcmisc.h (makesock): Declared.
841 * utils/rquotad/rquota_svc.c: added longopts, added support for
842 specifying the port to bind to on the command line.
844 * utils/statd/statd.c: ditto, also specify port used for
845 outgoing connections.
846 (do_regist): Removed.
848 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
849 get_socket. Make it extern.
851 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
852 instead of do_regist.
854 * utils/statd/Makefile (LIBS): link with our own libnfs
856 2001-03-09 H.J. Lu <hjl@lucon.org>
858 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
859 * etc/nodist/nfs-client: Likewise.
861 2001-02-26 Chip Salzenberg <chip@valinux.com>
863 * debian/changelog: Version 0.3.1-1.
864 * Mention upstream source and license in copyright file.
865 * Add build-Depends for debhelper and libwrap0-dev.
867 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
869 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
870 * etc/nodist/nfs-client: Likewise.
872 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
874 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
877 2001-02-17 Patrick J. LoPresti <patl@curl.com>
879 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
882 2001-02-14 H.J. Lu <hjl@lucon.org>
884 * utils/statd/rmtcall.c: Include <time.h>.
885 * utils/statd/svc_run.c: Likewise.
887 2001-02-14 H.J. Lu <hjl@lucon.org>
889 * configure.in (VERSION): Set to "0.3.1".
890 * configure: Regenerated.
891 * nfs-utils.spec: Likewise.
893 * README: Updated for 0.3.1.
895 2001-02-14 H.J. Lu <hjl@lucon.org>
897 * support/nfs/rpcmisc.c: Include <time.h>.
899 2001-02-14 Chip Salzenberg <chip@valinux.com>
901 * debian/control: Change priority of nhfsstone package to 'extra'.
903 2001-02-12 Chip Salzenberg <chip@valinux.com>
905 * debian/changelog: Version 0.3-2.
907 2001-02-02 H.J. Lu <hjl@lucon.org>
909 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
911 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
912 out SO_SNDBUF/SO_RCVBUF.
913 (rpc_init): Remove bufsize and remove socksz in calls to
916 * utils/mountd/mountd.c (main): Remove bufsize in calls to
919 2001-01-28 Chip Salzenberg <chip@valinux.com>
921 * debian/changelog: Version 0.3-1.
923 2001-01-25 H.J. Lu <hjl@lucon.org>
925 * configure.in (VERSION): Set to "0.3".
926 * configure: Regenerated.
927 * nfs-utils.spec: Likewise.
929 * README: Updated for 0.3.
931 2001-01-25 H.J. Lu <hjl@lucon.org>
933 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
935 2001-01-20 Chip Salzenberg <chip@valinux.com>
937 * support/include/xio.h (xgetc): Declare to return int.
938 * support/nfs/xio.c (xgetc): Return int.
939 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
940 * utils/statd/statd.c (main): Use int for value of getopt.
941 * debian/changelog: Version 0.2.1-5.
943 2000-12-10 Chip Salzenberg <chip@valinux.com>
945 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
946 program and procedure numbers of kernel lockd's callback. Also,
947 besides the old (and broken) procedure #24, allow #16 per Trond.
949 2000-12-03 Chip Salzenberg <chip@valinux.com>
951 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
952 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
953 * debian/changelog: Version 0.2.1-4.
955 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
957 * utils/mountd/auth.c (auth_authenticate): Log the bad path
960 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
962 * support/nfs/exports.c (getexportent): Check for host name
963 without option, or options without hostname, and print a warning,
964 as this is most likely a typo.
966 2000-11-19 Chip Salzenberg <chip@valinux.com>
968 * debian/control: Add dependency on portmap.
969 * debian/changelog: Version 0.2.1-3.
971 2000-11-10 H.J. Lu <hjl@lucon.org>
973 * nfs-utils.spec.in: Don't use libtool.
974 Add ChangeLog and COPYING to doc.
975 * nfs-utils.spec: Rebuild.
977 2000-11-09 H.J. Lu <hjl@lucon.org>
979 * etc/redhat/nfs.init (start): Back out the last change.
981 2000-11-09 H.J. Lu <hjl@lucon.org>
983 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
984 TCP is not supported by kernel.
986 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
988 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
989 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
991 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
993 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
995 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
996 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
997 callbacks to local lockd.
999 2000-10-18 Scott McDermott <mcdermot@questra.com>
1001 * utils/exportfs/exports.man: Updated for CIDR netmask.
1003 2000-10-17 Scott McDermott <mcdermot@questra.com>
1005 * support/export/client.c (client_init): Support CIDR netmask
1008 2000-10-11 H.J. Lu <hjl@lucon.org>
1010 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1011 * configure: Rebuilt.
1013 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
1015 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1016 "/var/lib/nfs/state".
1018 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
1020 * utils/statd/statd.h (run_mode): New global bitmask of runtime
1021 behaviors: fg/bg, logging, etc.
1022 * utils/statd/statd.c: New command line options: -V -h -? -d .
1023 * utils/statd/statd.man: Update for changes to statd.
1025 * utils/statd/log.h (log_init): Remove parameter of function; use
1026 global variable "name_p" instead.
1027 * utils/statd/log.c: Add support for logging to stderr.
1029 * utils/statd/notlist.c: Partially rewrite notify list handling
1030 functions. Eliminate run-off-end-of-list bug when calling
1031 nlist_insert_timer. Add lots of comments.
1033 2000-09-27 H.J. Lu <hjl@lucon.org>
1035 * README: Updated for RedHat 7.0.
1037 2000-09-27 H.J. Lu <hjl@lucon.org>
1039 * nfs-utils.spec: Rebuild.
1041 2000-09-27 H.J. Lu <hjl@lucon.org>
1043 * README: Updated for 0.2.1.
1045 2000-09-27 H.J. Lu <hjl@lucon.org>
1047 * nfs-utils.spec.in: Updated to use rpm macros and support
1050 2000-09-25 H.J. Lu <hjl@lucon.org>
1052 * configure.in (VERSION): Set to "0.2.1".
1053 * configure: Regenerated.
1054 * nfs-utils.spec: Updated.
1056 2000-09-25 H.J. Lu <hjl@lucon.org>
1058 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1059 non-NULL hostent is always returned.
1061 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1063 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1064 have an executable (i.e. kernel threads)
1066 2000-09-01 H.J. Lu <hjl@lucon.org>
1068 * README: Updated for 0.2.
1070 2000-09-01 Jay Weber <jweber@valinux.com>
1072 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1073 supporting version 3 of nfs if available, else it will fall back to
1074 version 2 support only.
1076 2000-08-30 H.J. Lu <hjl@lucon.org>
1078 * configure.in (VERSION): Set to "0.2".
1079 * configure: Regenerated.
1080 * nfs-utils.spec: Updated.
1082 2000-08-25 H.J. Lu <hjl@lucon.org>
1084 * support/misc/tcpwrapper.c (logit): Modify the log output.
1086 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1088 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1089 utils/mountd/mountd.man: updated
1091 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1092 * utils/rquotad/Makefile: fix comment
1094 * support/misc/tcpwrapper.c (logit): added comment about waiting
1095 for the children after fork()
1097 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1098 zombies behind (from logit()'s fork)
1099 * utils/rquotad/rquota_svc.c (main): ditto
1100 * utils/statd/statd.c (main): ditto
1102 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1103 to check_default instead of 0, for prognum
1105 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1106 to check_default instead of 0, for prognum
1108 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1109 HAVE_TCP_WRAPPER is defined.
1110 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1111 defined. Reject an RPC call if check_default () fails.
1113 2000-08-25 H.J. Lu <hjl@lucon.org>
1115 * support/include/tcpwrapper.h: New for the tcp wrapper
1117 * support/misc/Makefile: Likewise.
1118 * support/misc/from_local.c: Likewise.
1119 * support/misc/tcpwrapper.c: Likewise.
1121 * aclocal.m4 (AC_TCP_WRAPPER): New.
1122 * configure.in: Use it. Substitute LIBWRAP.
1123 * configure: Rebuilt.
1125 * config.mk.in (LIBNSL): New.
1126 (LIBWRAP): Likewise.
1128 * support/Makefile (SUBDIRS): Add misc.
1130 * support/lib/Makefile (LIBS): Add libmisc.a.
1132 * utils/rquotad/Makefile (LIBS): Add
1134 -lmisc $(LIBWRAP) $(LIBNSL)
1136 * utils/statd/Makefile (LIBS): Likewise.
1138 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1139 HAVE_TCP_WRAPPER is defined.
1140 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1141 defined. Reject an RPC call if check_default () fails.
1143 * utils/statd/statd.c: Include "tcpwrapper.h" if
1144 HAVE_TCP_WRAPPER is defined.
1145 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1146 check_default () before calling sm_prog_1 (). Define it as
1147 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1149 2000-08-25 Chip Salzenberg <chip@valinux.com>
1151 * debian/*: Complete Debian build support.
1152 * etc/debian/*: Remove.
1154 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1156 * support/export/client.c(client_check): removed the "dot+1" as a
1157 ypdomain argument to innetgr as this is entirely bogus.
1158 It should always be NULL.
1160 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1162 * support/export/xtab.c(xtab_read): introduce new mode for
1163 reading xtab. i.e. a list of exports that might be known to the
1164 kernel, or might not. These are flagged as m_exported == -1
1165 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1166 value "2" for xtab, meaning don't trust this too much.
1167 * support/include/exportfs.h(struct mexport): changed m_exported
1168 from one bit to an int so that it can hold new value
1169 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1170 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1171 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1174 * support/nfs/xio.c(xflock): added O_CREAT when getting
1175 a write lock so that missing files aren't fatal.
1177 * etc/debian/nfs-common: new file from "potato"
1178 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1180 2000-08-09 H.J. Lu <hjl@lucon.org>
1182 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1183 startup to ensure all existing clients work fine.
1185 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1186 to xtab_read () for reading _PATH_XTAB.
1188 2000-08-02 H.J. Lu <hjl@lucon.org>
1190 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1191 avoid the reverse name lookup.
1193 2000-07-04 H.J. Lu <hjl@lucon.org>
1195 * utils/statd/log.c: Include <stdlib.h> for exit ().
1197 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1200 2000-07-04 H.J. Lu <hjl@lucon.org>
1202 * configure.in (VERSION): Set to "0.1.9.1".
1203 * configure: Regenerated.
1204 * nfs-utils.spec: Updated.
1208 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1210 * support/export/hostname.c (hostent_dup): Handle the NULL
1213 2000-07-03 H.J. Lu <hjl@lucon.org>
1215 * README: Update the util-linux requirement.
1217 2000-07-03 H.J. Lu <hjl@lucon.org>
1219 * configure.in (VERSION): Set to "0.1.9".
1220 * configure: Regenerated.
1221 * nfs-utils.spec: Updated.
1225 2000-07-03 H.J. Lu <hjl@lucon.org>
1227 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1228 stop to ensure all clients can still access the server
1229 before it is shutdown.
1231 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1233 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1234 calls with format string.
1236 2000-06-28 Chip Salzenberg <chip@valinux.com>
1238 * utils/statd/log.c (log): Call syslog with format string.
1240 2000-06-27 H.J. Lu <hjl@lucon.org>
1242 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1243 instead of OPEN_MAX.
1245 2000-06-27 H.J. Lu <hjl@lucon.org>
1249 2000-06-27 H.J. Lu <hjl@lucon.org>
1251 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1252 startup to ensure all existing clients are exported.
1254 * configure.in (VERSION): Set to "0.1.8.2".
1255 * configure: Regenerated.
1256 * nfs-utils.spec: Updated.
1258 2000-06-06 H.J. Lu <hjl@lucon.org>
1260 * configure.in (VERSION): Set to "0.1.8.1".
1261 * configure: Regenerated.
1262 * nfs-utils.spec: Updated.
1264 2000-06-06 H.J. Lu <hjl@lucon.org>
1266 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1267 to "struct sockaddr_in *" for glibc 2.2.
1268 (mount_umnt_1_svc): Likewise.
1269 (mount_umntall_1_svc): Likewise.
1270 (mount_export_1_svc): Likewise.
1271 (mount_exportall_1_svc): Likewise.
1272 (mount_pathconf_2_svc): Likewise.
1273 (get_rootfh): Likewise.
1275 2000-06-04 H.J. Lu <hjl@lucon.org>
1277 * etc/redhat/nfs.init: Fix a typo in comment.
1279 2000-05-31 H.J. Lu <hjl@lucon.org>
1281 * configure.in (VERSION): Set to "0.1.8".
1282 * configure: Regenerated.
1283 * nfs-utils.spec: Updated.
1287 2000-05-31 H.J. Lu <hjl@lucon.org>
1289 * configure.in (VERSION): Set to "0.1.7.5".
1290 * configure: Regenerated.
1291 * nfs-utils.spec: Updated.
1293 * support/include/nfslib.h (exportent): Add a new field,
1294 r_count, to count the number of mounts from a client.
1295 (getrmtabent): Take a new argument for position in file.
1296 (putrmtabent): Likewise.
1297 (fgetrmtabent): Likewise.
1298 (fputrmtabent): Likewise.
1299 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1300 for position in file.
1301 (fgetrmtabent): Likewise.
1302 (putrmtabent): Likewise.
1303 (fputrmtabent): Likewise.
1305 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1308 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1309 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1310 and fputrmtabent ().
1311 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1312 (mountlist_del): Likewise.
1313 (mountlist_del_all): Likewise.
1314 (mountlist_list): Likewise.
1316 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1317 for the existing entry and initialize "r_count" to 1.
1318 (mountlist_del): Decrement "r_count".
1320 2000-05-18 H.J. Lu <hjl@lucon.org>
1322 * configure.in (VERSION): Set to "0.1.7.4".
1323 * configure: Regenerated.
1324 * nfs-utils.spec: Updated.
1326 2000-05-18 H.J. Lu <hjl@lucon.org>
1328 * etc/redhat/nfs.init (restart): Just do stop and start.
1330 2000-05-09 Jay Weber <jweber@valinux.com>
1332 * utils/rquotad/hasquota.c: added support for ext3 recognition
1334 * utils/rquotad/mntent.h: Likewise.
1336 2000-05-01 H.J. Lu <hjl@lucon.org>
1338 * configure.in (VERSION): Set to "0.1.7.3".
1339 * configure: Regenerated.
1340 * nfs-utils.spec: Updated.
1342 2000-05-01 H.J. Lu <hjl@lucon.org>
1344 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1345 mounting poins in /etc/fstab.
1347 2000-05-01 H.J. Lu <hjl@lucon.org>
1349 * configure.in (VERSION): Set to "0.1.7.2".
1350 * configure: Regenerated.
1351 * nfs-utils.spec: Updated.
1353 2000-05-01 H.J. Lu <hjl@lucon.org>
1355 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1356 to check for the mounting point.
1358 2000-04-29 Chip Salzenberg <chip@valinux.com>
1359 Neil Brown <neilb@cse.unsw.edu.au>
1361 * Really re-use RPC ports.
1362 (Fixes earlier patch. Sorry, Neil.)
1364 2000-04-26 H.J. Lu <hjl@lucon.org>
1366 * configure.in (VERSION): Set to "0.1.7.1".
1367 * configure: Regenerated.
1368 * nfs-utils.spec: Updated.
1370 2000-04-26 H.J. Lu <hjl@lucon.org>
1372 * etc/redhat/nfslock.init: Check if lockd exits before killing
1375 2000-04-25 H.J. Lu <hjl@lucon.org>
1377 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1379 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1381 * support/nfs/exports.c (parsesquash): Correctly set the
1384 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1386 * support/include/nfs/nfs.h: Removed knowledge of internals of
1387 kernel filehandles (which can change) and defined nfs_fh_size
1388 which has variable size
1390 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1391 get variable sized file handles, and change getfh{,old} to
1394 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1397 * tools/Makefile, tools/nlmtest/nlmtest.c
1398 nlmtest.c depended on internel format of file handles, so now
1402 2000-03-12 Chip Salzenberg <chip@valinux.com>
1403 Neil Brown <neilb@cse.unsw.edu.au>
1405 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1407 2000-03-13 H.J. Lu <hjl@lucon.org>
1409 * etc/redhat/nfsd.init: Updated.
1411 * etc/redhat/nfslock.init: Updated.
1413 * nfs-utils.spec.in: Updated.
1415 * configure.in (VERSION): Set to "0.1.7".
1416 * configure: Regenerated.
1417 * nfs-utils.spec: Updated.
1421 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1423 * utils/exportfs/exportfs.c (dump): Included printing of
1424 nohide, no_subtree_check, and insecure_locks
1426 2000-02-26 Chip Salzenberg <chip@valinux.com>
1428 * config.mk.in (INSTALLSUID): Strip ("-s").
1429 (INSTALLSCRIPT): Define.
1430 * utils/nhfsstone/Makefile: Use it.
1432 2000-02-26 Chip Salzenberg <chip@valinux.com>
1434 * utils/lockd/lockd.man: Create.
1435 * utils/lockd/Makefile: Install it.
1436 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1437 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1438 * utils/nhfsstone/Makefile: Install the helper scripts and
1440 * utils/exportfs/exports.man: Fix typo.
1442 2000-02-26 Chip Salzenberg <chip@valinux.com>
1444 * support/nfs/xio.c (xungetc): Decrement line number when
1445 character to unget is newline. Make first parameter int, so
1446 it can distinguish EOF from \377.
1447 * support/include/xio.h (xungetc): Adjust prototype.
1449 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1451 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1452 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1453 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1455 This is for supporting a new option introduced in 2.3.42
1457 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1459 * COPYING: Added. GPL.
1461 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1463 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1464 to get the block size.
1466 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1468 * nfs-utils.spec.in: Update ftp site.
1470 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1472 * README: Update hostnames.
1474 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1476 * configure.in (VERSION): Set to "0.1.6".
1477 * configure: Regenerated.
1478 * nfs-utils.spec: Updated.
1482 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1484 * utils/mountd/auth.c (auth_authenticate_internal): Call
1485 xstrdup for hostname before passing it to gethostbyname.
1487 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1490 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1492 * README: Update the mailing list address.
1494 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1496 * configure.in (VERSION): Set to "0.1.5".
1497 * configure: Regenerated.
1498 * nfs-utils.spec: Updated.
1502 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1504 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1507 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1509 * configure.in (VERSION): Set to "0.1.4".
1510 * configure: Regenerated.
1511 * nfs-utils.spec: Updated.
1515 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1517 * nfs-utils.spec.in: New file.
1519 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1521 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1523 1999-12-04 Chip Salzenberg <chip@valinux.com>
1525 * config.mk.in: Use $(CC) as set by configure.
1527 1999-12-04 Chip Salzenberg <chip@valinux.com>
1529 * rules.mk: Call $(MAKE) with $(MFLAGS).
1531 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1533 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1534 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1536 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1538 * nfs-utils.spec (Version): Set to 0.1.3.
1540 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1541 * configure: Regenerated.
1545 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1547 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1548 (_PATH_DEV_DSK): Likewise.
1549 (getquotainfo): Match the mounting point from /etc/mtab
1550 instead of calling nfsmount_to_devname ().
1552 1999-11-24 Chip Salzenberg <chip@valinux.com>
1554 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1555 to the new port 24 as well as the historical port 100021.
1557 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1559 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1560 stopping nfsd to stop spurious ESTALE on server shutdown.
1562 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1564 * support/nfs/exports.c (parseopts): make copy of opt string
1565 before 'nul'ing out commas so that
1567 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1569 applies both options to both exports.
1571 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1573 * README: Fix a few typos.
1575 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1577 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1578 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1579 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1580 (unsigned_dec): Likewise.
1581 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1582 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1584 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1586 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1587 (unsigned_dec): Likewise.
1588 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1589 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1590 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1592 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1594 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1595 * support/nfs/exports.c: added {no_,}subtree_check and changed
1597 * utils/exportfs/exports.man: added no_subtree_check and nohide
1598 and removed irrelevant stuff from unfsd.
1599 * support/export/rmtab.c: rmtab_read didn't quite do the right
1600 thing if a pathname from rmtab was a subdirectory of an export-point
1602 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1604 * README: Updated ftp site.
1606 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1608 * nfs-utils.spec (Version): Set to 0.1.2.
1610 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1611 * configure: Regenerated.
1615 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1617 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1618 (auth_authenticate_internal): Check for NULL return on forward
1620 (auth_authenticate): Handle "no_forward_dns".
1622 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1624 * Version 0.1.1 released.
1626 * nfs-utils.spec (Version): Set to 0.1.1.
1628 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1629 * configure: Regenerated.
1633 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1635 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1637 (Provides): Likewise.
1639 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1641 * Initial version 0.1 released.
1643 * configure.in (VERSION): Set to "nfs-utils 0.1".
1644 * configure: Regenerated.
1646 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1648 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1650 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1651 kernel only if the entry is exported to kernel.
1652 (unexportfs): Likewise.
1654 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1656 1/ utils/mountd/rmtab.c::mountlist_list
1658 This routine stats the rmtab file to see if it has changed. It
1659 if has, it cleans up it's old copy of the data. But it still
1660 always re-read the file, thus returning multiple copies of the
1661 data on consecutive calls without intervening changes.
1662 "Showmount -a" didn't show this as it appears to sort/unique the
1663 data, but 'strace showmount -a' showed that the size of the
1664 datagram that it received grew.
1666 I moved the getrmtabent loop inside the mtime test.
1668 2/ utils/exportfs/exportfs.c
1670 Many routines used the m_path field of m_export instead of
1672 According to the comment in nfslib.h, m_path should only
1673 be used when processing a mount request (i.e. in mountd)
1674 where the mountpoint may be a subdirectory of the export point.
1676 I changed all occurances of m_path to e_path
1679 3/ utils/exportfs/exportfs.c:main
1681 extra arguments are not meaningful with -a or -r, but
1682 exportfs accepted them and then ignored the -a/-r, expect that
1683 -r would still unexport everything first.
1685 I generate an error if there are extra args and f_all
1687 4/ utils/exportfs/exportfs.c:main
1688 extract dump out as a special case.
1690 5/ utils/exportfs/exportfs.c
1691 made f_reexport a local variable.
1694 6/ utils/exportfs/exportfs.c:main,exportall
1696 support/export/rmtab.c
1697 only mayexport on newly created entries, don't set xtabent at all
1699 7/ support/include/nfslib.h
1701 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1703 8/ support/export/xtab.c
1705 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1709 9/ support/export/xtab.c
1711 xtab_mount_read now sets m_exported, and NOT
1712 xtabent and mayexport
1714 removed the append arguement from xtab_write as it was
1717 added is_export flag to xtab_write similar to xtab_read
1718 if is_export, only write entries with m_xtabent or m_addxtab
1719 if !is_export, only write entries with m_exported
1721 10/ support/export/export.c::export_allowed_internal
1723 added test for exp->m_mayexport, as the export tree
1724 may have entries that are no longer allowed to be exported,
1725 and so shouldn't caused deduced exported by rmtab_read
1727 11/ utils/exportfs/exportfs.c::main
1728 error checking of flags.
1730 12/ utils/exportfs/exportfs.c
1732 total rewrite of export and unexport logic.
1734 - build an exportslist of valid exports, based on
1735 current etab file and arguments,
1736 - read rmtab to instantiate relevant wild card entries
1737 - read etab to find out what is currently exported
1738 - synchronise intention with reality
1739 - write out etab and xtab
1742 discard the m_addxtab flag
1743 add m_changed flag so we know what to report in exportfs
1745 14/ utils/mountd/auth.c:auth_authenticate
1747 the value returned by gethostbyaddr was trusted.
1749 It now follows this with a call to gethostbyname
1750 and checks that the address is in the list.
1752 15/ support/export/nfsctl.c::cltsetup,expsetup
1754 force client names to lowercase as kernel is
1757 16/ quietened a few compiler warnings
1759 17/ support/export/client:client_lookup
1761 look for pre-existing client with same name before creating
1764 18/ support/include/exportfs.h
1766 The ordering of the MCL_* enum was:
1767 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1769 I moved ANONYMOUS to the end.
1771 The ordering is significant when an export entry is being searched for to
1772 match a given address. There are two problems with ANONYMOUS being first.
1774 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1775 then the ro case will always be found first and the privileged hosts won't get
1777 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1778 export entry for the specific host, and writes it to xtab.
1779 When another request comes from the same host, the ANONYMOUS entry is found again,
1780 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1781 again. If causes bloat in xtab.
1783 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1785 19/ utils/exportfs/exportfs.man
1786 many updates to the man page to reflect changes to the code
1788 -----------------------
1794 - allow exportfs to modify rmtab file
1795 - make sure kernel never gets two clients with same IP address
1796 - possible kernel should reject
1797 - needs to be some way to lookup client in kernel by IP address
1798 - maybe get kernel to do case-insensitive comparisons on client names
1799 - remove unused clients from kernel
1801 - change etab to xtab and xtab to xtab.active
1803 - timestamp and/or statd-stamp in rmtab for removing old entries.
1805 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1807 * linux-nfs: New directory.
1808 * linux-nfs/ChangeLog: Moved from ..
1809 * linux-nfs/INSTALL: Likewise.
1810 * linux-nfs/KNOWNBUGS: Likewise.
1811 * linux-nfs/NEW: Likewise.
1812 * linux-nfs/README: Likewise.
1813 * linux-nfs/THANKS: Likewise.
1814 * linux-nfs/TODO: Likewise.
1816 * Starting from knfsd 1.4.7.