1 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
2 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
5 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
6 * support/include/nfs/export.h, support/nfs/exports.c,
7 utils/exportfs/exports.c, utils/mountd/mountd.c: change
8 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
9 meaning. Also remove meaningless
10 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
12 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
13 * support/export/xtab.c, support/include/nfslib.h,
14 support/nfs/cacheio.c, support/nfs/nfssvc.c,
15 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
16 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
17 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
18 (nfs-utils-1.0.5-post2)
20 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
21 * support/nfs/nfsexport.c: open channel file O_WRONLY when
23 * utils/mountd/cache.c: maintain mountlist when new_cache is
24 active. Also use O_WRONLY for channel files.
25 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
26 rather than an nfs_export.
27 * utils/mountd/rmtab.c: ditto.
28 (nfs-utils-1.5.0-post1)
30 2003-07-24 Chip Salzenberg <chip@pobox.com>
32 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
33 use Debian security team's cleaner approach.
34 * debian/changelog: Version 1.0.5-1.
35 * debian/nfs-kernel-server.init: Cosmetic changes.
37 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
40 1.0.4 was a bit of a brown-paper-bag-release because of the extra
41 'free' in auth.c. So I'm releasing this just a few days later.
43 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
45 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
46 check if new_cache is enabled, error if not, flush and exit if it
48 * utils/exportfs/exportfs.man: Explain -f option and explain the
49 two different modes that exportfs can work in.
50 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
52 * utils/mountd/mountd.man: Record the change if default behaviour
54 * configure.in, nfs-utils.spec: update version to 1.0.5 and
57 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
59 * utils/mountd/mountd.c(main): getopt string fix for 'o'
60 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
61 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
63 * support/include/nfs/export.h: Reserve a bit for possible ACL
66 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
68 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
69 assorted changed to cope with section 7 of the manual.
70 * configure.in, nfs-utils.spec: Update version to 1.0.4
73 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
74 baseline for 2.6 and 2.8. I.e. it should continue to work right
75 through the 2.8 (or 3.0) kernel series. Previous releases wont.
77 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
78 Steve Dickson <SteveD@redhat.com>
81 * utils/statd/statd.c: create a pidfile with pid of statd, and
82 truncate it when statd exists.
83 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
84 and warn if this is root.
85 * utils/statd/statd.c: when statd forks, connect child to parent
86 with a pipe, and send a byte down the pipe once the child is
88 * Makefile: create and chown sm, sm.bak, state when "make install"
89 * configure.in: add --with-statduser= option which defaults to
91 * config.mk.in: pass "statduser" through to Makefile
93 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
95 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
96 used as the size was changed somewhere in 2.5.60-2.5.70. Without
97 this nfs-utils compiles against 2.6 headers will not work on a
100 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
102 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
103 set number of threads by writing to there. This means it will
104 still work when the syscall interface goes away in 2.7.
106 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
107 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
109 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
110 so as to only export the wildcard exports that were asked for.
111 * support/export/export.c(export_allowed): changed to return the
112 nfs_export rather than a "struct exportent", as m_changed is
114 * support/export/rmtab.c(rmtab_read): modified to deal with
115 interface change for export_allowed(), and enhanced to preserve
116 m_changed flag when a wild-card export causes the creation of
117 a non-wildcard export.
119 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
120 Steve Dickson <SteveD@redhat.com>
122 * utils/mountd/mountd.man: Add valid kinds of debugging.
123 * utils/mountd/mountd.c(main): ignore SIGPIPE
124 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
125 we don't get warnings about unavailable stats that weren't asked
128 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
130 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
131 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
132 'forever', so things disappear out of the cache rather than just
135 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
137 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
140 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
142 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
143 etc/redhat/nfs.init: when checking if V3 is supported, make sure
144 nfs server 'knows' about 127.0.0.1 first.
146 2003-06-10 Chip Salzenberg <chip@pobox.com>
148 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
149 * debian/changelog: Version 1.0.3-2.
151 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
152 NeilBrown <neilb@cse.unsw.edu.au>
154 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
155 long long to avoid overflow when printing stats.
157 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
159 * support/export/export.c, support/include/nfslib.h,
160 support/nfs/export.c, utils/exportfs/exportfs.c,
161 utils/mountd/mountd.c: new export option "mountpoint"
162 If no path is given, then the export point must be a
163 mount point, or it won't be exported. If a path is
164 given (e.g. mountpoint=/path) then that path must be
165 a mountpoint or the exportpoint won't be exported.
166 * utils/exportfs/exportfs.man: document mountpoint option.
167 * support/misc/mountpoint.c: New file with is_mountpoint()
168 to determine if something is a mountpoint.
170 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
172 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
173 argument as we might not be getting the filehandle for the
175 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
176 cache_get_filehandle.
177 * utils/mountd/mountd.c(get_rootfh): check export point and
178 requested directory are on the same filesystem, and complain if
181 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
183 * utils/mountd/auth.c(auth_authenticate_internal): make sure
184 portnumber is still checked when using new cache lookup.
186 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
188 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
189 Don't actually talk to kernel when new cache is in effect, except
191 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
192 * support/export/xtab.c: Only rename new xtab into place if it has
193 changed, thus preserving modify date for exportfs to use when
195 * support/nfs/cacheio.c: Add cache_flush
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
200 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
202 * support/export/client.c: Add client_compose, client_member to
203 handle new composite client names
204 * support/include/exportfs.h: Declare above functions.
205 * utils/mountd/auth.c: use client_compose to determine calling
206 client if new cache is being used.
207 * utils/mountd/auth.c: call cache_export to export a filesystem if
208 new_cache, check if new cache is used, and call my_svc_run instead
210 * utils/mountd/svc_run.c: new file defining my_svc_run
211 * utils/mountd/cache.c: new file for handling cache upcalls.
212 * support/nfs/cacheio.c(check_new_cache): new function to check if
213 new cache should be used.
216 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
218 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
219 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
220 * utils/exportfs/exportfs.c(dump): ditto
222 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
224 * support/export/hostname.c(get_reliable_hostbyaddr): new function
225 to get host name from address with full checking of authenticity.
226 * support/include/misc.h: declare above function
227 * utils/mountd/auth.c(auth_authenticate_internal): remove all
228 logic for authenticating address.
229 * utils/mountd/auth.c(auth_authenticate): call new
230 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
233 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
235 * tools/rpcgen/rpc_main.c(find_cpp): removed
236 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
237 then try hard-coded paths.
239 2003-03-26 Chip Salzenberg <chip@pobox.com>
241 * debian/changelog: Version 1.0.3-1.
243 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
245 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
246 "const char*", not "char*".
248 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
250 * configure.in (VERSION): Set to "1.0.3".
251 * nfs-utils.spec: Likewise.
252 * configure: Regenerated.
254 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
256 * support/nfs/cacheio.c: New File - support for read/writing
257 to export cache in /proc/rpc/*/channel
258 * support/nfs/Makefile: compile cacheio.c
259 * support/include/nfslib.h: declare cacheio.c functions
260 * support/nfs/nfsexport.c: export and unexport through
261 /proc/rpc/*/channel if possible, as old syscall interface
262 may not survive into 2.6 on all architectures.
264 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
265 Ben Leslie <benno@sesgroup.net>
267 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
268 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
269 former would incorectly ignore defport if the application
270 explicitly set __rpcfdtype. The later is sufficient to avoid the
271 special handling in the case where stdin is an internet socket.
273 * utils/mountd/mountd.c(main): Add 'n' to option list in
274 getopt_long as this is a short form of --no-tcp which want being
277 2003-02-12 Chip Salzenberg <chip@pobox.com>
279 * debian/changelog: Version 1.0.2-2.
281 2002-11-27 Chip Salzenberg <chip@pobox.com>
283 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
284 overflow bug. Reformat per rest of source file.
286 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
288 * utils/exportfs/exports.man: Correct notes about whether the wild
289 card characters match a period. They do.
291 2002-10-15 Juan Gomez <juang@us.ibm.com>
293 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
295 (mountlist_add): Call slink_safe_rename instead of rename.
297 2002-10-11 H.J. Lu <hjl@lucon.org>
299 * support/include/exportfs.h (export_errno): New.
301 * support/nfs/exports.c: Include <errno.h>.
303 (getexportent): Set export_errno to EINVAL for bad option.
304 (parseopts): Likewise.
305 Report the location of the default sync/async option.
307 * utils/exportfs/exportfs.c (main): Initialize export_errno to
308 0. Return export_errno.
310 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
311 NeilBrown <neilb@cse.unsw.edu.au>
313 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
314 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
316 2002-09-16 Chip Salzenberg <chip@pobox.com>
318 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
320 2002-09-15 Chip Salzenberg <chip@pobox.com>
322 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
323 socket, as occurs when run from sshd.
324 * debian/changelog: Version 1.0.2-1.
326 2002-09-12 H.J. Lu <hjl@lucon.org>
328 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
331 2002-09-12 H.J. Lu <hjl@lucon.org>
333 * configure.in: Remove checking svctcp_socket and svcudp_socket.
334 * configure: Regenerated.
336 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
337 (HAVE_SVCUDP_SOCKET): Removed.
339 * support/include/nfslib.h: Undo the last change.
341 2002-09-12 H.J. Lu <hjl@lucon.org>
343 * support/include/nfslib.h (svctcp_socket): Protect it with
345 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
347 2002-09-12 H.J. Lu <hjl@lucon.org>
349 * configure.in (VERSION): Set to "1.0.2".
350 * configure: Regenerated.
351 * nfs-utils.spec: Likewise.
353 2002-09-12 H.J. Lu <hjl@lucon.org>
355 * configure.in: Check svctcp_socket and svcudp_socket.
356 * configure: Regenerated.
358 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
359 (HAVE_SVCUDP_SOCKET): New.
361 * support/include/nfslib.h (svctcp_socket): New.
362 (svcudp_socket): New.
364 * support/nfs/Makefile (OBJS): Add svc_socket.o.
366 * support/nfs/svc_socket.c: New.
368 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
369 svcudp_socket if port is unspecified.
371 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
373 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
374 (killer): New. Signal handler to unregister.
375 (main): Use killer. Call svcudp_socket to get the default
378 2002-09-02 Juan Gomez <juang@us.ibm.com>
379 NeilBrown <neilb@cse.unsw.edu.au>
381 Add -N option to statd to run in notify-only mode.
383 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
384 * utils/statd/statd.man: document -N
385 * utils/statd/statd.c: enabled -N, largely exists but needed to be
386 uncommented and completed
388 2002-09-02 Juan Gomez <juang@us.ibm.com>
389 NeilBrown <neilb@cse.unsw.edu.au>
391 statd to have " -P directory" arg to use that directory instead
392 of /var/lib/nfs. This is useful for fail-over clusters.
394 * utils/statd/statd.h: define SM_DIR etc as var, not const.
395 * utils/statd/statd.c: define "-P" option to set SM_*
397 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
399 * utils/statd/notify.c: ditto.
400 * utils/statd/statd.man: document -P option.
402 2002-08-26 Chip Salzenberg <chip@pobox.com>
404 * utils/nfsd/nfsd.man: Fix typo.
405 * debian/changelog: Version 1.0.1-1.
407 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
409 * let parseopts know if /etc/exports was being read or not,
410 and have it only print "no sync or async" warning in that case.
412 2002-05-06 Tom McNeal <trmcneal@attbi.com>
413 NeilBrown <neilb@cse.unsw.edu.au>
415 * utils/nfsstat/nfsstat.c: Handle differing format for
416 /proc/net/rpc/nfsd between pre and post 2.4.0
418 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
419 James Pearson <james-p@moving-picture.com>
421 * support/nfs/rmtab.c(fendrmtabent): sync changes to
422 storage before returning, as this is critical state
424 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
425 H.J. Lu <hjl@lucon.org>
427 * etc/redhat/nfs: New.
429 2002-04-08 H.J. Lu <hjl@lucon.org>
431 * etc/redhat/nfs.init: Updated.
433 * nfs-utils.spec.in: Updated.
434 * nfs-utils.spec: Regenerated.
436 * utils/mountd/mountd.c (longopts): Fix a typo.
438 * utils/mountd/mountd.man: Updated.
440 2002-04-07 H.J. Lu <hjl@lucon.org>
442 * etc/redhat/nfslock.init (restart): Just do stop and start.
444 * etc/redhat/nfs.init: Fix a typo.
446 2002-04-07 H.J. Lu <hjl@lucon.org>
448 * configure.in (VERSION): Set to "1.0.1".
449 * configure: Regenerated.
450 * nfs-utils.spec: Likewise.
452 * README: Updated for 1.0.1.
454 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
455 H.J. Lu <hjl@lucon.org>
457 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
459 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
460 NeilBrown <neilb@cse.unsw.edu.au>
462 Add support for fsid=nn export option so that device
463 numbers don't go in filehandles.
464 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
465 is set, pass the fsid in-place of the device number
466 * support/nfs/exports.c: parse and print fsid= option.
467 Also check if efname has been set, and use "command line"
468 instead in error messages.
469 Also, use strtol instead of atoi for anon[ug]id= so that
470 bad numbers cause errors.
472 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
473 NeilBrown <neilb@cse.unsw.edu.au>
475 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
476 flag so that "sync" becomes the default.
477 Check that either "sync" or "async" is given as an option
478 and warn if neither are present
479 * utils/exportfs/exports.man: change documentation for "sync"
480 to be documentation for "async".
481 * utils/exportfs/exportfs.man: note that "sync" is the default
485 2002-01-02 Chip Salzenberg <chip@pobox.com>
487 * support/export/nfsctl.c (expsetup): Don't export entries that
488 specify id mappings not supported by the kernel. No extant kernel
489 supports any significant mapping, only 'identity' (i.e. none).
490 When other mappings are supported, this code will need changing.
491 * debian/changelog: Version 1.0-2.
493 2001-12-26 Chip Salzenberg <chip@pobox.com>
495 * nfs-utils.spec (Version): Set to "1.0".
496 * configure.in (VERSION): Likewise.
497 * configure: Regenerated.
499 * debian/changelog: Version 1.0-1.
501 * utils/exportfs/exports.man: Emphasize the need for options to
502 immediately follow client names. Explain that wildcards don't
503 usually work on addresses, but may work when reverse DNS fails.
504 Comment out a leftover TP that was TPing our indentation.
505 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
506 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
507 * debian/changelog: Version 0.3.3-6.
509 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
511 * support/export/client.c(client_lookup): If a host has multiple
512 IP addresses, then we must always use the result of a
513 gethostbyname, not that of gethostbyaddr for exporting
515 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
517 * support/export/client.c (client_lookup): use strcasecmp when
519 * support/nfs/export.c (getexportent): add fromkernel arg and use
520 different defaults as kernels prior to 2.4.11 assume different
521 defaults in /proc/fs/nfs/exports
522 * support/include/nfslib.h, support/export/export.c,
523 support/export/xtab.c: support extra "fromkernel" arg for
526 2001-12-13 Chip Salzenberg <chip@pobox.com>
528 * debian/changelog: Version 0.3.3-5.
530 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
532 * support/nfs/xio.c (xskip): Call `xungetc' instead of
533 `ungetc' to keep x_line more properly.
535 2001-11-26 Chip Salzenberg <chip@pobox.com>
537 * utils/showmount/showmount.c (main): Don't assume that strings
538 starting with digits are IP addresses.
539 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
540 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
541 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
542 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
543 man pages: We check host names *and* addresses with tcpwrappers.
544 * debian/changelog: Version 0.3.3-4.
546 2001-11-21 Chip Salzenberg <chip@pobox.com>
548 * support/nfs/clients.c (cfname): Added: current clients file name.
549 (setnfsclntent): Set it.
550 ({get,end}nfsclntent, syntaxerr): Use it.
551 * support/nfs/exports.c (efname): Added: current exports file name.
552 (setnfsexportent): Set it.
553 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
554 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
555 * debian/changelog: Version 0.3.3-3.
557 2001-10-11 Chip Salzenberg <chip@pobox.com>
559 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
560 * debian/changelog: Version 0.3.3-2.
562 2001-10-08 Chip Salzenberg <chip@pobox.com>
564 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
565 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
566 * utils/mountd/mountd.man: Update paths to /var/lib.
567 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
569 2001-10-06 Preston Brown <pbrown@redhat.com>
571 * utils/nfsstat/nfsstat.man: Updated.
573 2001-09-24 H.J. Lu <hjl@lucon.org>
575 * configure.in (VERSION): Set to "0.3.3".
576 * configure: Regenerated.
577 * nfs-utils.spec: Likewise.
579 * README: Updated for 0.3.3.
581 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
583 Arrange that "exportfs -au" never does DNS lookup:
585 * support/export/client.c (client_lookup) : add "canonical"
586 flag which says that the hostname is known to be canonical, so
589 * support/export/export.c (export_create) : add "canonical"
590 flag to be passed down to client_lookup
591 * support/export/export.c (export_lookup) : Likewise
593 * support/export/xtab.c (xtab_read) : pass appropriate
594 "canonical" flag to export_lookup and export_create:
595 set if reading list of filesystems currently exports
598 * support/export/export.c (export_read) : pass 0 as
599 "canonical" flag to export_lookup and export_create
600 * support/export/rmtab.s (rmtab_read) : Likewise
602 * support/include/exportfs.h : redeclare various routines
603 to have "canonical" flag
605 * utils/exportfs/exportfs.c (main) : redo logic for
606 "-au" to read in what is currently exported, but never even
607 look at what "should" be exported.
609 * utils/exportfs/exportfs.c (unexportall) : remove this
610 routine. Functionality is completely included in
613 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
614 flag to zero in calls to export_lookup and export_create.
617 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
618 Anne Milicia <milicia@missioncriticallinux.com>
620 * support/export/client.c (client_lookup) call gethostbyadd
621 to make sure that we have a canonical hostname, even for
623 * utils/exportfs/exportfs.c (exportfs) Likewise
625 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
627 * support/nfs/exports.c (putexportent): \octal quote any spaces
629 * support/nfs/xio.c (xgettok): recognise double-quote and
630 \octal quoting in path names
631 * utils/exportfs/exports.man: document quoting conventions
634 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
636 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
637 change from 2000-08-02: It causes problems if someone exports
638 to both a hostname and IP addresses. nfs-utils must be
639 consistant about the canonical name that it chooses.
641 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
642 H.J. Lu <hjl@lucon.org>
644 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
646 * utils/statd/statd.c (longopts): Add "name".
647 (usage): Add "-n/--name".
648 (main): Set MY_NAME with "-n/--name".
650 * utils/statd/state.c (change_state): Set MY_NAME only if it
653 * utils/statd/statd.man: Updated for "-n/--name".
655 2001-07-26 H.J. Lu <hjl@lucon.org>
657 * nfs-utils.spec (Release): Set to 8.
659 2001-07-25 H.J. Lu <hjl@lucon.org>
661 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
664 2001-06-27 H.J. Lu <hjl@lucon.org>
666 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
668 2001-06-27 H.J. Lu <hjl@lucon.org>
670 * utils/rquotad/rquota_server.c: Don't call statfs () for
671 the block size. Use BLOCK_SIZE instead.
673 2001-06-27 H.J. Lu <hjl@lucon.org>
675 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
676 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
678 * configure.in (enable_nfsv3): Set to yes by default.
679 (--enable-rquotad): Added
680 (AC_PROG_CXX): Removed.
681 (AC_OUTPUT): Add utils/Makefile.
682 (CC_FOR_BUILD): Renamed from BUILD_CC.
683 * configure: Regenerated.
685 * utils/Makefile: Removed.
687 * utils/Makefile.in: New.
689 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
691 (CC_FOR_BUILD): Renamed from BUILD_CC.
692 * nfs-utils.spec: Regenerated.
694 2001-06-15 Chip Salzenberg <chip@debian.org>
696 * debian/changelog: Version 0.3.2-2.
697 * debian/*.init: Minor fixes.
699 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
701 * etc/nodist/nfs-server: Fixed a bug where the script would
702 disable mounts from NFSv3 clients if NFSv3 is present.
704 2001-06-05 H.J. Lu <hjl@lucon.org>
706 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
707 (main): Support --descriptors/-o to set the limit of the number
708 of open file descriptors.
711 * utils/mountd/mountd.man: Updated for --descriptors/-o.
713 2001-06-04 H.J. Lu <hjl@lucon.org>
715 * nfs-utils.spec (Release): Set to 6.
717 2001-05-28 H.J. Lu <hjl@lucon.org>
719 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
720 * utils/mountd/mountd.c (main): Likewise.
721 * utils/nfsd/nfsd.c (main): Likewise.
722 * utils/rquotad/rquota_svc.c (main): Likewise.
724 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
726 * support/export/client.c (client_check): Check IP address
729 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
731 * support/export/client.c (client_gettype): Treat `*' as
734 2001-04-22 H.J. Lu <hjl@lucon.org>
736 * nfs-utils.spec.in: Fix a typo.
737 * nfs-utils.spec: Regenerated.
739 2001-04-21 H.J. Lu <hjl@lucon.org>
741 * nfs-utils.spec.in: Fix cross build.
742 * nfs-utils.spec: Regenerated.
745 2001-04-18 H.J. Lu <hjl@lucon.org>
747 * nfs-utils.spec.in: Support cross build.
748 * nfs-utils.spec: Regenerated.
754 * config.mk.in (BUILD_CC): New.
755 (CC): Set to $(BUILD_CC) if BUILD is defined.
758 (RANLIB): Set to @RANLIB@.
760 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
761 * configure: Regenerated.
763 * tools/rpcgen/Makefile (BUILD): Set to true.
765 2001-04-01 Chip Salzenberg <chip@valinux.com>
767 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
768 redundant, and sometimes broken, declaration of svc_fdset;
770 * support/nfs/rpcmisc.c (closedown): Likewise.
772 2001-03-21 H.J. Lu <hjl@lucon.org>
774 * nfs-utils.spec: Regenerated.
777 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
779 * utils/statd/statd.c (main): make sure file descriptors 0-2
780 are open to /dev/null.
782 2001-03-21 H.J. Lu <hjl@lucon.org>
784 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
785 * support/nfs/rpcmisc.c: Likewise.
786 * utils/rquotad/rquota_svc.c: Likewise.
787 * utils/rquotad/rquotad.man: Likewise.
788 * utils/statd/Makefile: Likewise.
789 * utils/statd/rmtcall.c: Likewise.
790 * utils/statd/simulate.c: Likewise.
791 * utils/statd/statd.c: Likewise.
792 * utils/statd/statd.man: Likewise.
794 2001-03-11 H.J. Lu <hjl@lucon.org>
796 * configure.in (RELEASE): New. Default to 1, set by
797 --with-release=XXX. Substitute nfs-utils.spec.
798 * nfs-utils.spec.in (Release): Set to @RELEASE@.
799 * configure: Regenerated.
800 * nfs-utils.spec: Likewise.
802 2001-03-11 H.J. Lu <hjl@lucon.org>
804 * utils/rquotad/rquotad.man: Fix a typo.
806 2001-03-11 H.J. Lu <hjl@lucon.org>
808 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
809 * support/nfs/rpcmisc.c: Likewise.
810 * utils/rquotad/rquota_svc.c: Likewise.
811 * utils/rquotad/rquotad.man: Likewise.
812 * utils/statd/Makefile: Likewise.
813 * utils/statd/rmtcall.c: Likewise.
814 * utils/statd/simulate.c: Likewise.
815 * utils/statd/statd.c: Likewise.
816 * utils/statd/statd.man: Likewise.
818 2001-03-10 H.J. Lu <hjl@lucon.org>
820 * configure.in (VERSION): Set to "0.3.2".
821 * configure: Regenerated.
822 * nfs-utils.spec: Likewise.
824 * README: Updated for 0.3.2.
826 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
828 * utils/rquotad/rquotad.man: Updated for -p.
829 * utils/statd/statd.man: Likewise.
831 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
833 * support/nfs/rpcmisc.c: export makesock()
835 * support/include/rpcmisc.h (makesock): Declared.
837 * utils/rquotad/rquota_svc.c: added longopts, added support for
838 specifying the port to bind to on the command line.
840 * utils/statd/statd.c: ditto, also specify port used for
841 outgoing connections.
842 (do_regist): Removed.
844 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
845 get_socket. Make it extern.
847 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
848 instead of do_regist.
850 * utils/statd/Makefile (LIBS): link with our own libnfs
852 2001-03-09 H.J. Lu <hjl@lucon.org>
854 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
855 * etc/nodist/nfs-client: Likewise.
857 2001-02-26 Chip Salzenberg <chip@valinux.com>
859 * debian/changelog: Version 0.3.1-1.
860 * Mention upstream source and license in copyright file.
861 * Add build-Depends for debhelper and libwrap0-dev.
863 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
865 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
866 * etc/nodist/nfs-client: Likewise.
868 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
870 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
873 2001-02-17 Patrick J. LoPresti <patl@curl.com>
875 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
878 2001-02-14 H.J. Lu <hjl@lucon.org>
880 * utils/statd/rmtcall.c: Include <time.h>.
881 * utils/statd/svc_run.c: Likewise.
883 2001-02-14 H.J. Lu <hjl@lucon.org>
885 * configure.in (VERSION): Set to "0.3.1".
886 * configure: Regenerated.
887 * nfs-utils.spec: Likewise.
889 * README: Updated for 0.3.1.
891 2001-02-14 H.J. Lu <hjl@lucon.org>
893 * support/nfs/rpcmisc.c: Include <time.h>.
895 2001-02-14 Chip Salzenberg <chip@valinux.com>
897 * debian/control: Change priority of nhfsstone package to 'extra'.
899 2001-02-12 Chip Salzenberg <chip@valinux.com>
901 * debian/changelog: Version 0.3-2.
903 2001-02-02 H.J. Lu <hjl@lucon.org>
905 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
907 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
908 out SO_SNDBUF/SO_RCVBUF.
909 (rpc_init): Remove bufsize and remove socksz in calls to
912 * utils/mountd/mountd.c (main): Remove bufsize in calls to
915 2001-01-28 Chip Salzenberg <chip@valinux.com>
917 * debian/changelog: Version 0.3-1.
919 2001-01-25 H.J. Lu <hjl@lucon.org>
921 * configure.in (VERSION): Set to "0.3".
922 * configure: Regenerated.
923 * nfs-utils.spec: Likewise.
925 * README: Updated for 0.3.
927 2001-01-25 H.J. Lu <hjl@lucon.org>
929 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
931 2001-01-20 Chip Salzenberg <chip@valinux.com>
933 * support/include/xio.h (xgetc): Declare to return int.
934 * support/nfs/xio.c (xgetc): Return int.
935 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
936 * utils/statd/statd.c (main): Use int for value of getopt.
937 * debian/changelog: Version 0.2.1-5.
939 2000-12-10 Chip Salzenberg <chip@valinux.com>
941 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
942 program and procedure numbers of kernel lockd's callback. Also,
943 besides the old (and broken) procedure #24, allow #16 per Trond.
945 2000-12-03 Chip Salzenberg <chip@valinux.com>
947 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
948 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
949 * debian/changelog: Version 0.2.1-4.
951 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
953 * utils/mountd/auth.c (auth_authenticate): Log the bad path
956 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
958 * support/nfs/exports.c (getexportent): Check for host name
959 without option, or options without hostname, and print a warning,
960 as this is most likely a typo.
962 2000-11-19 Chip Salzenberg <chip@valinux.com>
964 * debian/control: Add dependency on portmap.
965 * debian/changelog: Version 0.2.1-3.
967 2000-11-10 H.J. Lu <hjl@lucon.org>
969 * nfs-utils.spec.in: Don't use libtool.
970 Add ChangeLog and COPYING to doc.
971 * nfs-utils.spec: Rebuild.
973 2000-11-09 H.J. Lu <hjl@lucon.org>
975 * etc/redhat/nfs.init (start): Back out the last change.
977 2000-11-09 H.J. Lu <hjl@lucon.org>
979 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
980 TCP is not supported by kernel.
982 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
984 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
985 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
987 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
989 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
991 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
992 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
993 callbacks to local lockd.
995 2000-10-18 Scott McDermott <mcdermot@questra.com>
997 * utils/exportfs/exports.man: Updated for CIDR netmask.
999 2000-10-17 Scott McDermott <mcdermot@questra.com>
1001 * support/export/client.c (client_init): Support CIDR netmask
1004 2000-10-11 H.J. Lu <hjl@lucon.org>
1006 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1007 * configure: Rebuilt.
1009 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
1011 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1012 "/var/lib/nfs/state".
1014 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
1016 * utils/statd/statd.h (run_mode): New global bitmask of runtime
1017 behaviors: fg/bg, logging, etc.
1018 * utils/statd/statd.c: New command line options: -V -h -? -d .
1019 * utils/statd/statd.man: Update for changes to statd.
1021 * utils/statd/log.h (log_init): Remove parameter of function; use
1022 global variable "name_p" instead.
1023 * utils/statd/log.c: Add support for logging to stderr.
1025 * utils/statd/notlist.c: Partially rewrite notify list handling
1026 functions. Eliminate run-off-end-of-list bug when calling
1027 nlist_insert_timer. Add lots of comments.
1029 2000-09-27 H.J. Lu <hjl@lucon.org>
1031 * README: Updated for RedHat 7.0.
1033 2000-09-27 H.J. Lu <hjl@lucon.org>
1035 * nfs-utils.spec: Rebuild.
1037 2000-09-27 H.J. Lu <hjl@lucon.org>
1039 * README: Updated for 0.2.1.
1041 2000-09-27 H.J. Lu <hjl@lucon.org>
1043 * nfs-utils.spec.in: Updated to use rpm macros and support
1046 2000-09-25 H.J. Lu <hjl@lucon.org>
1048 * configure.in (VERSION): Set to "0.2.1".
1049 * configure: Regenerated.
1050 * nfs-utils.spec: Updated.
1052 2000-09-25 H.J. Lu <hjl@lucon.org>
1054 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1055 non-NULL hostent is always returned.
1057 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1059 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1060 have an executable (i.e. kernel threads)
1062 2000-09-01 H.J. Lu <hjl@lucon.org>
1064 * README: Updated for 0.2.
1066 2000-09-01 Jay Weber <jweber@valinux.com>
1068 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1069 supporting version 3 of nfs if available, else it will fall back to
1070 version 2 support only.
1072 2000-08-30 H.J. Lu <hjl@lucon.org>
1074 * configure.in (VERSION): Set to "0.2".
1075 * configure: Regenerated.
1076 * nfs-utils.spec: Updated.
1078 2000-08-25 H.J. Lu <hjl@lucon.org>
1080 * support/misc/tcpwrapper.c (logit): Modify the log output.
1082 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1084 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1085 utils/mountd/mountd.man: updated
1087 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1088 * utils/rquotad/Makefile: fix comment
1090 * support/misc/tcpwrapper.c (logit): added comment about waiting
1091 for the children after fork()
1093 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1094 zombies behind (from logit()'s fork)
1095 * utils/rquotad/rquota_svc.c (main): ditto
1096 * utils/statd/statd.c (main): ditto
1098 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1099 to check_default instead of 0, for prognum
1101 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1102 to check_default instead of 0, for prognum
1104 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1105 HAVE_TCP_WRAPPER is defined.
1106 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1107 defined. Reject an RPC call if check_default () fails.
1109 2000-08-25 H.J. Lu <hjl@lucon.org>
1111 * support/include/tcpwrapper.h: New for the tcp wrapper
1113 * support/misc/Makefile: Likewise.
1114 * support/misc/from_local.c: Likewise.
1115 * support/misc/tcpwrapper.c: Likewise.
1117 * aclocal.m4 (AC_TCP_WRAPPER): New.
1118 * configure.in: Use it. Substitute LIBWRAP.
1119 * configure: Rebuilt.
1121 * config.mk.in (LIBNSL): New.
1122 (LIBWRAP): Likewise.
1124 * support/Makefile (SUBDIRS): Add misc.
1126 * support/lib/Makefile (LIBS): Add libmisc.a.
1128 * utils/rquotad/Makefile (LIBS): Add
1130 -lmisc $(LIBWRAP) $(LIBNSL)
1132 * utils/statd/Makefile (LIBS): Likewise.
1134 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1135 HAVE_TCP_WRAPPER is defined.
1136 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1137 defined. Reject an RPC call if check_default () fails.
1139 * utils/statd/statd.c: Include "tcpwrapper.h" if
1140 HAVE_TCP_WRAPPER is defined.
1141 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1142 check_default () before calling sm_prog_1 (). Define it as
1143 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1145 2000-08-25 Chip Salzenberg <chip@valinux.com>
1147 * debian/*: Complete Debian build support.
1148 * etc/debian/*: Remove.
1150 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1152 * support/export/client.c(client_check): removed the "dot+1" as a
1153 ypdomain argument to innetgr as this is entirely bogus.
1154 It should always be NULL.
1156 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1158 * support/export/xtab.c(xtab_read): introduce new mode for
1159 reading xtab. i.e. a list of exports that might be known to the
1160 kernel, or might not. These are flagged as m_exported == -1
1161 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1162 value "2" for xtab, meaning don't trust this too much.
1163 * support/include/exportfs.h(struct mexport): changed m_exported
1164 from one bit to an int so that it can hold new value
1165 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1166 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1167 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1170 * support/nfs/xio.c(xflock): added O_CREAT when getting
1171 a write lock so that missing files aren't fatal.
1173 * etc/debian/nfs-common: new file from "potato"
1174 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1176 2000-08-09 H.J. Lu <hjl@lucon.org>
1178 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1179 startup to ensure all existing clients work fine.
1181 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1182 to xtab_read () for reading _PATH_XTAB.
1184 2000-08-02 H.J. Lu <hjl@lucon.org>
1186 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1187 avoid the reverse name lookup.
1189 2000-07-04 H.J. Lu <hjl@lucon.org>
1191 * utils/statd/log.c: Include <stdlib.h> for exit ().
1193 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1196 2000-07-04 H.J. Lu <hjl@lucon.org>
1198 * configure.in (VERSION): Set to "0.1.9.1".
1199 * configure: Regenerated.
1200 * nfs-utils.spec: Updated.
1204 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1206 * support/export/hostname.c (hostent_dup): Handle the NULL
1209 2000-07-03 H.J. Lu <hjl@lucon.org>
1211 * README: Update the util-linux requirement.
1213 2000-07-03 H.J. Lu <hjl@lucon.org>
1215 * configure.in (VERSION): Set to "0.1.9".
1216 * configure: Regenerated.
1217 * nfs-utils.spec: Updated.
1221 2000-07-03 H.J. Lu <hjl@lucon.org>
1223 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1224 stop to ensure all clients can still access the server
1225 before it is shutdown.
1227 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1229 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1230 calls with format string.
1232 2000-06-28 Chip Salzenberg <chip@valinux.com>
1234 * utils/statd/log.c (log): Call syslog with format string.
1236 2000-06-27 H.J. Lu <hjl@lucon.org>
1238 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1239 instead of OPEN_MAX.
1241 2000-06-27 H.J. Lu <hjl@lucon.org>
1245 2000-06-27 H.J. Lu <hjl@lucon.org>
1247 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1248 startup to ensure all existing clients are exported.
1250 * configure.in (VERSION): Set to "0.1.8.2".
1251 * configure: Regenerated.
1252 * nfs-utils.spec: Updated.
1254 2000-06-06 H.J. Lu <hjl@lucon.org>
1256 * configure.in (VERSION): Set to "0.1.8.1".
1257 * configure: Regenerated.
1258 * nfs-utils.spec: Updated.
1260 2000-06-06 H.J. Lu <hjl@lucon.org>
1262 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1263 to "struct sockaddr_in *" for glibc 2.2.
1264 (mount_umnt_1_svc): Likewise.
1265 (mount_umntall_1_svc): Likewise.
1266 (mount_export_1_svc): Likewise.
1267 (mount_exportall_1_svc): Likewise.
1268 (mount_pathconf_2_svc): Likewise.
1269 (get_rootfh): Likewise.
1271 2000-06-04 H.J. Lu <hjl@lucon.org>
1273 * etc/redhat/nfs.init: Fix a typo in comment.
1275 2000-05-31 H.J. Lu <hjl@lucon.org>
1277 * configure.in (VERSION): Set to "0.1.8".
1278 * configure: Regenerated.
1279 * nfs-utils.spec: Updated.
1283 2000-05-31 H.J. Lu <hjl@lucon.org>
1285 * configure.in (VERSION): Set to "0.1.7.5".
1286 * configure: Regenerated.
1287 * nfs-utils.spec: Updated.
1289 * support/include/nfslib.h (exportent): Add a new field,
1290 r_count, to count the number of mounts from a client.
1291 (getrmtabent): Take a new argument for position in file.
1292 (putrmtabent): Likewise.
1293 (fgetrmtabent): Likewise.
1294 (fputrmtabent): Likewise.
1295 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1296 for position in file.
1297 (fgetrmtabent): Likewise.
1298 (putrmtabent): Likewise.
1299 (fputrmtabent): Likewise.
1301 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1304 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1305 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1306 and fputrmtabent ().
1307 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1308 (mountlist_del): Likewise.
1309 (mountlist_del_all): Likewise.
1310 (mountlist_list): Likewise.
1312 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1313 for the existing entry and initialize "r_count" to 1.
1314 (mountlist_del): Decrement "r_count".
1316 2000-05-18 H.J. Lu <hjl@lucon.org>
1318 * configure.in (VERSION): Set to "0.1.7.4".
1319 * configure: Regenerated.
1320 * nfs-utils.spec: Updated.
1322 2000-05-18 H.J. Lu <hjl@lucon.org>
1324 * etc/redhat/nfs.init (restart): Just do stop and start.
1326 2000-05-09 Jay Weber <jweber@valinux.com>
1328 * utils/rquotad/hasquota.c: added support for ext3 recognition
1330 * utils/rquotad/mntent.h: Likewise.
1332 2000-05-01 H.J. Lu <hjl@lucon.org>
1334 * configure.in (VERSION): Set to "0.1.7.3".
1335 * configure: Regenerated.
1336 * nfs-utils.spec: Updated.
1338 2000-05-01 H.J. Lu <hjl@lucon.org>
1340 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1341 mounting poins in /etc/fstab.
1343 2000-05-01 H.J. Lu <hjl@lucon.org>
1345 * configure.in (VERSION): Set to "0.1.7.2".
1346 * configure: Regenerated.
1347 * nfs-utils.spec: Updated.
1349 2000-05-01 H.J. Lu <hjl@lucon.org>
1351 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1352 to check for the mounting point.
1354 2000-04-29 Chip Salzenberg <chip@valinux.com>
1355 Neil Brown <neilb@cse.unsw.edu.au>
1357 * Really re-use RPC ports.
1358 (Fixes earlier patch. Sorry, Neil.)
1360 2000-04-26 H.J. Lu <hjl@lucon.org>
1362 * configure.in (VERSION): Set to "0.1.7.1".
1363 * configure: Regenerated.
1364 * nfs-utils.spec: Updated.
1366 2000-04-26 H.J. Lu <hjl@lucon.org>
1368 * etc/redhat/nfslock.init: Check if lockd exits before killing
1371 2000-04-25 H.J. Lu <hjl@lucon.org>
1373 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1375 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1377 * support/nfs/exports.c (parsesquash): Correctly set the
1380 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1382 * support/include/nfs/nfs.h: Removed knowledge of internals of
1383 kernel filehandles (which can change) and defined nfs_fh_size
1384 which has variable size
1386 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1387 get variable sized file handles, and change getfh{,old} to
1390 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1393 * tools/Makefile, tools/nlmtest/nlmtest.c
1394 nlmtest.c depended on internel format of file handles, so now
1398 2000-03-12 Chip Salzenberg <chip@valinux.com>
1399 Neil Brown <neilb@cse.unsw.edu.au>
1401 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1403 2000-03-13 H.J. Lu <hjl@lucon.org>
1405 * etc/redhat/nfsd.init: Updated.
1407 * etc/redhat/nfslock.init: Updated.
1409 * nfs-utils.spec.in: Updated.
1411 * configure.in (VERSION): Set to "0.1.7".
1412 * configure: Regenerated.
1413 * nfs-utils.spec: Updated.
1417 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1419 * utils/exportfs/exportfs.c (dump): Included printing of
1420 nohide, no_subtree_check, and insecure_locks
1422 2000-02-26 Chip Salzenberg <chip@valinux.com>
1424 * config.mk.in (INSTALLSUID): Strip ("-s").
1425 (INSTALLSCRIPT): Define.
1426 * utils/nhfsstone/Makefile: Use it.
1428 2000-02-26 Chip Salzenberg <chip@valinux.com>
1430 * utils/lockd/lockd.man: Create.
1431 * utils/lockd/Makefile: Install it.
1432 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1433 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1434 * utils/nhfsstone/Makefile: Install the helper scripts and
1436 * utils/exportfs/exports.man: Fix typo.
1438 2000-02-26 Chip Salzenberg <chip@valinux.com>
1440 * support/nfs/xio.c (xungetc): Decrement line number when
1441 character to unget is newline. Make first parameter int, so
1442 it can distinguish EOF from \377.
1443 * support/include/xio.h (xungetc): Adjust prototype.
1445 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1447 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1448 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1449 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1451 This is for supporting a new option introduced in 2.3.42
1453 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1455 * COPYING: Added. GPL.
1457 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1459 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1460 to get the block size.
1462 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1464 * nfs-utils.spec.in: Update ftp site.
1466 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1468 * README: Update hostnames.
1470 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1472 * configure.in (VERSION): Set to "0.1.6".
1473 * configure: Regenerated.
1474 * nfs-utils.spec: Updated.
1478 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1480 * utils/mountd/auth.c (auth_authenticate_internal): Call
1481 xstrdup for hostname before passing it to gethostbyname.
1483 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1486 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1488 * README: Update the mailing list address.
1490 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1492 * configure.in (VERSION): Set to "0.1.5".
1493 * configure: Regenerated.
1494 * nfs-utils.spec: Updated.
1498 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1500 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1503 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1505 * configure.in (VERSION): Set to "0.1.4".
1506 * configure: Regenerated.
1507 * nfs-utils.spec: Updated.
1511 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1513 * nfs-utils.spec.in: New file.
1515 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1517 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1519 1999-12-04 Chip Salzenberg <chip@valinux.com>
1521 * config.mk.in: Use $(CC) as set by configure.
1523 1999-12-04 Chip Salzenberg <chip@valinux.com>
1525 * rules.mk: Call $(MAKE) with $(MFLAGS).
1527 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1529 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1530 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1532 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1534 * nfs-utils.spec (Version): Set to 0.1.3.
1536 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1537 * configure: Regenerated.
1541 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1543 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1544 (_PATH_DEV_DSK): Likewise.
1545 (getquotainfo): Match the mounting point from /etc/mtab
1546 instead of calling nfsmount_to_devname ().
1548 1999-11-24 Chip Salzenberg <chip@valinux.com>
1550 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1551 to the new port 24 as well as the historical port 100021.
1553 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1555 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1556 stopping nfsd to stop spurious ESTALE on server shutdown.
1558 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1560 * support/nfs/exports.c (parseopts): make copy of opt string
1561 before 'nul'ing out commas so that
1563 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1565 applies both options to both exports.
1567 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1569 * README: Fix a few typos.
1571 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1573 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1574 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1575 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1576 (unsigned_dec): Likewise.
1577 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1578 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1580 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1582 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1583 (unsigned_dec): Likewise.
1584 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1585 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1586 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1588 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1590 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1591 * support/nfs/exports.c: added {no_,}subtree_check and changed
1593 * utils/exportfs/exports.man: added no_subtree_check and nohide
1594 and removed irrelevant stuff from unfsd.
1595 * support/export/rmtab.c: rmtab_read didn't quite do the right
1596 thing if a pathname from rmtab was a subdirectory of an export-point
1598 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1600 * README: Updated ftp site.
1602 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1604 * nfs-utils.spec (Version): Set to 0.1.2.
1606 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1607 * configure: Regenerated.
1611 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1613 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1614 (auth_authenticate_internal): Check for NULL return on forward
1616 (auth_authenticate): Handle "no_forward_dns".
1618 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1620 * Version 0.1.1 released.
1622 * nfs-utils.spec (Version): Set to 0.1.1.
1624 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1625 * configure: Regenerated.
1629 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1631 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1633 (Provides): Likewise.
1635 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1637 * Initial version 0.1 released.
1639 * configure.in (VERSION): Set to "nfs-utils 0.1".
1640 * configure: Regenerated.
1642 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1644 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1646 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1647 kernel only if the entry is exported to kernel.
1648 (unexportfs): Likewise.
1650 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1652 1/ utils/mountd/rmtab.c::mountlist_list
1654 This routine stats the rmtab file to see if it has changed. It
1655 if has, it cleans up it's old copy of the data. But it still
1656 always re-read the file, thus returning multiple copies of the
1657 data on consecutive calls without intervening changes.
1658 "Showmount -a" didn't show this as it appears to sort/unique the
1659 data, but 'strace showmount -a' showed that the size of the
1660 datagram that it received grew.
1662 I moved the getrmtabent loop inside the mtime test.
1664 2/ utils/exportfs/exportfs.c
1666 Many routines used the m_path field of m_export instead of
1668 According to the comment in nfslib.h, m_path should only
1669 be used when processing a mount request (i.e. in mountd)
1670 where the mountpoint may be a subdirectory of the export point.
1672 I changed all occurances of m_path to e_path
1675 3/ utils/exportfs/exportfs.c:main
1677 extra arguments are not meaningful with -a or -r, but
1678 exportfs accepted them and then ignored the -a/-r, expect that
1679 -r would still unexport everything first.
1681 I generate an error if there are extra args and f_all
1683 4/ utils/exportfs/exportfs.c:main
1684 extract dump out as a special case.
1686 5/ utils/exportfs/exportfs.c
1687 made f_reexport a local variable.
1690 6/ utils/exportfs/exportfs.c:main,exportall
1692 support/export/rmtab.c
1693 only mayexport on newly created entries, don't set xtabent at all
1695 7/ support/include/nfslib.h
1697 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1699 8/ support/export/xtab.c
1701 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1705 9/ support/export/xtab.c
1707 xtab_mount_read now sets m_exported, and NOT
1708 xtabent and mayexport
1710 removed the append arguement from xtab_write as it was
1713 added is_export flag to xtab_write similar to xtab_read
1714 if is_export, only write entries with m_xtabent or m_addxtab
1715 if !is_export, only write entries with m_exported
1717 10/ support/export/export.c::export_allowed_internal
1719 added test for exp->m_mayexport, as the export tree
1720 may have entries that are no longer allowed to be exported,
1721 and so shouldn't caused deduced exported by rmtab_read
1723 11/ utils/exportfs/exportfs.c::main
1724 error checking of flags.
1726 12/ utils/exportfs/exportfs.c
1728 total rewrite of export and unexport logic.
1730 - build an exportslist of valid exports, based on
1731 current etab file and arguments,
1732 - read rmtab to instantiate relevant wild card entries
1733 - read etab to find out what is currently exported
1734 - synchronise intention with reality
1735 - write out etab and xtab
1738 discard the m_addxtab flag
1739 add m_changed flag so we know what to report in exportfs
1741 14/ utils/mountd/auth.c:auth_authenticate
1743 the value returned by gethostbyaddr was trusted.
1745 It now follows this with a call to gethostbyname
1746 and checks that the address is in the list.
1748 15/ support/export/nfsctl.c::cltsetup,expsetup
1750 force client names to lowercase as kernel is
1753 16/ quietened a few compiler warnings
1755 17/ support/export/client:client_lookup
1757 look for pre-existing client with same name before creating
1760 18/ support/include/exportfs.h
1762 The ordering of the MCL_* enum was:
1763 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1765 I moved ANONYMOUS to the end.
1767 The ordering is significant when an export entry is being searched for to
1768 match a given address. There are two problems with ANONYMOUS being first.
1770 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1771 then the ro case will always be found first and the privileged hosts won't get
1773 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1774 export entry for the specific host, and writes it to xtab.
1775 When another request comes from the same host, the ANONYMOUS entry is found again,
1776 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1777 again. If causes bloat in xtab.
1779 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1781 19/ utils/exportfs/exportfs.man
1782 many updates to the man page to reflect changes to the code
1784 -----------------------
1790 - allow exportfs to modify rmtab file
1791 - make sure kernel never gets two clients with same IP address
1792 - possible kernel should reject
1793 - needs to be some way to lookup client in kernel by IP address
1794 - maybe get kernel to do case-insensitive comparisons on client names
1795 - remove unused clients from kernel
1797 - change etab to xtab and xtab to xtab.active
1799 - timestamp and/or statd-stamp in rmtab for removing old entries.
1801 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1803 * linux-nfs: New directory.
1804 * linux-nfs/ChangeLog: Moved from ..
1805 * linux-nfs/INSTALL: Likewise.
1806 * linux-nfs/KNOWNBUGS: Likewise.
1807 * linux-nfs/NEW: Likewise.
1808 * linux-nfs/README: Likewise.
1809 * linux-nfs/THANKS: Likewise.
1810 * linux-nfs/TODO: Likewise.
1812 * Starting from knfsd 1.4.7.