1 2005-02-28 Trond Myklebust <trond.myklebust@fys.uio.no>
2 * utils/statd/rmtcall.c(statd_get_socket): If a port number is
3 explicitly given, make sure to try to bind to that.
5 2005-01-11 Chip Salzenberg <chip@pobox.com>
7 * debian/changelog: Version 1.0.7-1.
8 * debian/nfs-common.default (NEED_IDMAPD, NEED_GSSD):
9 Disable by default, on advice of upstream.
10 * debian/nfs-kernel-server.default (NEED_SVCGSSD):
13 * utils/svcgssd/Makefile (predep): Symbolically link duplicated
15 (distclean): Remove symlinks to duplicated files.
17 2004-12-17 NeilBrown <neilb@cse.unsw.edu.au>
20 * config.mk, configure.in: update version number, run autoconf
21 * configure.in: require nfsidmap.h if gss is enabled.
23 2004-12-10 NeilBrown <neilb@cse.unsw.edu.au>
26 * config.mk, configure.in: update version number, run autoconf
28 2004-12-10 Neil Brown <neilb@cse.unsw.edu.au>
29 * README : note dependancy on kerberos, libevent, and nfsidmap
30 * configure.in : fail if --enable-nfsv4 and libevent or
31 libnfsidmap are missing.
32 * configuyre.in: improve message if krb5 support is missing
34 2004-12-06 Paul Clements <paul.clements@steeleye.com>
35 * support/include/ha-callout.h: get return status from waitpid
37 * support/include/ha-callout.h: don't ignore SIGCHLD while waiting
38 for a callout to complete.
39 * utils/statd/statd.c(sigusr): print current start when re-reading
40 notify list due to SIGUSR1
41 * utils/statd/svc_run.c(my_svc_run): call change_state when
44 2004-12-06 Marc Eshel <eshel@almaden.ibm.com>
45 * utils/statd/svc_run.c(my_svc_run): allow loop to exit when in
47 *utils/statd/rmtcall.c(statd_get_socket): if a hostname is given
48 to statd with -n, prefer it's IP address to the default for
51 2004-12-06 Bruce Allan <bwa@us.ibm.com>
52 * utils/mountd/auth.c(auth_reload) Clear the "my_client" cache on
53 an auth_reload to avoid old data getting used.
55 2004-12-03 NeilBrown <neilb@cse.unsw.edu.au>
56 Release 1.0.7-pre1 for testing
58 * config.mk, configure.in: update version number, run autoconf
60 2004-12-03 Trond Myklebust <trond.myklebust@fys.uio.no>
62 * utils/statd/statd.c(main): ignore SIGPIPE
64 2004-11-22 "J. Bruce Fields" <bfields@fieldses.org>
66 * tools/rpcdebug/rpcdebug.c: support aliases "nfsdebug" and
67 "nfsddebug" and update flag names.
68 * configure.in, nodist/* redhat/* nfs-utils.spec*: remove redhat
69 specific files (as no-one actually uses them, especially not
70 redhat), and the nodist /etc files (as they drift out-of-date, and
71 the debian directory provides a suitable example.
72 * utils/svcgssd_proc.c(get_ids): fix memory leak
73 * utils/svcgssd/svcgssd_proc.c: Rely on count of the number of
74 groups instead of using a special guard value to identify the end
76 * utils/idmapd/idmapd.c: don't allow Default domain and anon-uid
77 or -gid to be specified on command line.
78 * utils/idmapd/idmapd.c: improve error messages
79 * utils/idmapd/idmapd.c: Reopen nfsd files on sighup. Allows us
80 to start up client side only (even when nfsd module not loaded),
81 and then sighup later after insmodding nfsd module.
82 * utils/idmapd/idmapd.c: Make sure we catch all errors on
83 daemonizing by waiting for child to report succesfull startup
85 * utils/idmapd/idmapd.c: Let libnfsidmapd parse the idmapd.conf
86 file for the default domain, instead of doing that ourselves.
87 * utils/gssd/gssd_proc.c: Make sure we get an error when a gssd
89 * utils/gssd/gssd_proc.c: We were forgetting to restore the euid
90 on certain failures, which meant gssd could get stuck in a state
91 where it didn't have permissions to read the files in rpc_pipefs
93 * utils/gssd/gssd_proc.c: Use libnfsidmapd to map gss principals
95 * debian/nfs-kernel-server.default: Document the NEED_SVCGSSD
96 variable in /etc/default/nfs-kernel-server.
99 2004-11-22 NeilBrown <neilb@cse.unsw.edu.au>
101 * utils/exportfs/nfsd.man: corrected typo in .BR macro usage -
102 reported by Eric Raymond
104 2004-10-19 "J. Bruce Fields" <bfields@fieldses.org>
106 * support/gssapi/* support/rpc/* utils/gssd/* utils/svcgssd/* etc
107 initial support for GSSAPI authentication
109 2004-09-15 Neil Brown <neilb@cse.unsw.edu.au>
111 * utils/statd/monitor.c(sm_unmon_1_svc): is RESTRICTED_STATD, then
112 check IP address and force my_name to 127.0.0.1 to match
113 what happens in sm_mon_1_svc. This avoid spurious "erroneous
115 * utils/statd.monitor.c(sm_unmon_all_1_svc): likewise
117 2004-09-15 "J. Bruce Fields" <bfields@fieldses.org>
119 * Assorted changes to support "gss/*" style authentication
120 * utils/idmapd: new idmapd daemon for nfsv4 username lookup
122 2004-09-06 Trond Myklebust <trond.myklebust@fys.uio.no>
123 Neil Brown <neilb@cse.unsw.edu.au>
125 * utils/mountd/auth.c(auth_authenticate_internal): fix
126 uninitialsed variable problem (causes bad error messages).
128 2004-09-06 Paul Clements <paul.clements@steeleye.com>
129 Neil Brown <neilb@cse.unsw.edu.au>
131 * utils/mountd/mountd.c(main): support --ha-callout (-H) for
132 specifying a callout program
133 * utils/mountd/rmtab.c: Call ha_callout on mount/unmount
134 * utils/statd/monitor.c: Call ha_callout on add/del client
135 * utils/statd/rmtcall.c: as above
136 * utils/statd/statd.c: handle --ha-callout (-H)
137 * utils/statd/svc_run.c: call notify_hosts is we have received a
139 * support/include/ha-callout.h: define ha_callout function
142 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
143 * utils/mountd/cache.c(cache_process_req): clear fd after
144 processing so as not to confused libc/sunrpc into thinking
145 it need to do something with that fd.
147 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
149 * debian/nfs-kernel-server.init(start,stop) mount the nfsd
150 filesystem, if available, before starting nfs services, and
151 unmount it afterwards.
152 * etc/nodist/nfs-server: ditto
153 * etc/redhat/nfs.init: likewise
154 * etc/redhat/nfs: add "MOUNT_NFSD" flag to control above.
156 2004-06-08 NeilBrown <neilb@cse.unsw.edu.au>
158 * utils/exportfs/exportfs.c: Don't rmtab_read if new_cache, it
160 * support/nfs/cacheio.c(cache_flush): Change order in which caches
161 are flushed so that dependancies don't keep things in the cache
164 2004-03-18 Chip Salzenberg <chip@pobox.com>
166 * debian/changelog: Version 1.0.6-2.
168 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
169 from "J. Bruce Fields" <bfields@fieldses.org>
171 * utils/mountd/cache.c: call auth_reload to make sure auth data is
172 current before responding to kernel upcall.
174 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
175 Based on patch from Greg Banks <gnb@melbourne.sgi.com>
177 * utils/exportfs/exports.man: Document fsid= option.
179 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
183 * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
184 support/include, and depend in "predep"
185 * support/export/Makefile, tools/rpcgen/Makefile,
186 utils/statd/Makefile: add "predep" rule so that "make dep" works.
187 * Makefile: allow a simple "make" to run ./configure and "make dep"
189 * configure.in, nfs-utils.spec: Update version to 1.0.6
192 2003-09-12 Chip Salzenberg <chip@pobox.com>
194 * debian/changelog: Version 1.0.6-1.
196 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
198 * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
200 * utils/statd/statd.c(main): Ditto.
202 michael <michael@newdream.net> discovered that svc_setreqsize
203 in glibc can segfault if RLIMIT_NOFILE is bigger than
204 FD_SETSIZE, so a simple solution is to impose a hard limit.
206 2003-09-09 Chip Salzenberg <chip@pobox.com>
208 * debian/changelog: Version 1.0.5-3.
209 * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
210 on invalid reverse DNS.
211 * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
212 * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
213 * tools/rpcgen/rpc_parse.c (def_union): Likewise.
215 2003-08-22 Chip Salzenberg <chip@pobox.com>
217 * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
218 N_*, to avoid conflict with ISO C built-in log() function.
219 * utils/statd/*.c: Use note().
221 2003-08-20 Chip Salzenberg <chip@pobox.com>
223 * debian/changelog: Version 1.0.5-2.
225 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
227 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
230 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
232 * support/include/nfs/export.h, support/nfs/exports.c,
233 utils/exportfs/exports.c, utils/mountd/mountd.c: change
234 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
235 meaning. Also remove meaningless
236 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
238 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
240 * support/export/xtab.c, support/include/nfslib.h,
241 support/nfs/cacheio.c, support/nfs/nfssvc.c,
242 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
243 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
244 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
245 (nfs-utils-1.0.5-post2)
247 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
249 * support/nfs/nfsexport.c: open channel file O_WRONLY when
251 * utils/mountd/cache.c: maintain mountlist when new_cache is
252 active. Also use O_WRONLY for channel files.
253 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
254 rather than an nfs_export.
255 * utils/mountd/rmtab.c: ditto.
256 (nfs-utils-1.5.0-post1)
258 2003-07-24 Chip Salzenberg <chip@pobox.com>
260 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
261 use Debian security team's cleaner approach.
262 * debian/changelog: Version 1.0.5-1.
263 * debian/nfs-kernel-server.init: Cosmetic changes.
265 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
268 1.0.4 was a bit of a brown-paper-bag-release because of the extra
269 'free' in auth.c. So I'm releasing this just a few days later.
271 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
273 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
274 check if new_cache is enabled, error if not, flush and exit if it
276 * utils/exportfs/exportfs.man: Explain -f option and explain the
277 two different modes that exportfs can work in.
278 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
280 * utils/mountd/mountd.man: Record the change if default behaviour
282 * configure.in, nfs-utils.spec: update version to 1.0.5 and
285 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
287 * utils/mountd/mountd.c(main): getopt string fix for 'o'
288 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
289 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
291 * support/include/nfs/export.h: Reserve a bit for possible ACL
294 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
296 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
297 assorted changed to cope with section 7 of the manual.
298 * configure.in, nfs-utils.spec: Update version to 1.0.4
301 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
302 baseline for 2.6 and 2.8. I.e. it should continue to work right
303 through the 2.8 (or 3.0) kernel series. Previous releases wont.
305 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
306 Steve Dickson <SteveD@redhat.com>
309 * utils/statd/statd.c: create a pidfile with pid of statd, and
310 truncate it when statd exists.
311 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
312 and warn if this is root.
313 * utils/statd/statd.c: when statd forks, connect child to parent
314 with a pipe, and send a byte down the pipe once the child is
316 * Makefile: create and chown sm, sm.bak, state when "make install"
317 * configure.in: add --with-statduser= option which defaults to
318 "rpcuser" or "nobody"
319 * config.mk.in: pass "statduser" through to Makefile
321 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
323 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
324 used as the size was changed somewhere in 2.5.60-2.5.70. Without
325 this nfs-utils compiles against 2.6 headers will not work on a
328 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
330 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
331 set number of threads by writing to there. This means it will
332 still work when the syscall interface goes away in 2.7.
334 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
335 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
337 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
338 so as to only export the wildcard exports that were asked for.
339 * support/export/export.c(export_allowed): changed to return the
340 nfs_export rather than a "struct exportent", as m_changed is
342 * support/export/rmtab.c(rmtab_read): modified to deal with
343 interface change for export_allowed(), and enhanced to preserve
344 m_changed flag when a wild-card export causes the creation of
345 a non-wildcard export.
347 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
348 Steve Dickson <SteveD@redhat.com>
350 * utils/mountd/mountd.man: Add valid kinds of debugging.
351 * utils/mountd/mountd.c(main): ignore SIGPIPE
352 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
353 we don't get warnings about unavailable stats that weren't asked
356 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
358 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
359 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
360 'forever', so things disappear out of the cache rather than just
363 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
365 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
368 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
370 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
371 etc/redhat/nfs.init: when checking if V3 is supported, make sure
372 nfs server 'knows' about 127.0.0.1 first.
374 2003-06-10 Chip Salzenberg <chip@pobox.com>
376 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
377 * debian/changelog: Version 1.0.3-2.
379 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
380 NeilBrown <neilb@cse.unsw.edu.au>
382 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
383 long long to avoid overflow when printing stats.
385 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
387 * support/export/export.c, support/include/nfslib.h,
388 support/nfs/export.c, utils/exportfs/exportfs.c,
389 utils/mountd/mountd.c: new export option "mountpoint"
390 If no path is given, then the export point must be a
391 mount point, or it won't be exported. If a path is
392 given (e.g. mountpoint=/path) then that path must be
393 a mountpoint or the exportpoint won't be exported.
394 * utils/exportfs/exportfs.man: document mountpoint option.
395 * support/misc/mountpoint.c: New file with is_mountpoint()
396 to determine if something is a mountpoint.
398 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
400 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
401 argument as we might not be getting the filehandle for the
403 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
404 cache_get_filehandle.
405 * utils/mountd/mountd.c(get_rootfh): check export point and
406 requested directory are on the same filesystem, and complain if
409 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
411 * utils/mountd/auth.c(auth_authenticate_internal): make sure
412 portnumber is still checked when using new cache lookup.
414 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
416 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
417 Don't actually talk to kernel when new cache is in effect, except
419 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
420 * support/export/xtab.c: Only rename new xtab into place if it has
421 changed, thus preserving modify date for exportfs to use when
423 * support/nfs/cacheio.c: Add cache_flush
424 * support/export/xtab.c: Only rename new xtab into place if it has
425 changed, thus preserving modify date for exportfs to use when
428 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
430 * support/export/client.c: Add client_compose, client_member to
431 handle new composite client names
432 * support/include/exportfs.h: Declare above functions.
433 * utils/mountd/auth.c: use client_compose to determine calling
434 client if new cache is being used.
435 * utils/mountd/auth.c: call cache_export to export a filesystem if
436 new_cache, check if new cache is used, and call my_svc_run instead
438 * utils/mountd/svc_run.c: new file defining my_svc_run
439 * utils/mountd/cache.c: new file for handling cache upcalls.
440 * support/nfs/cacheio.c(check_new_cache): new function to check if
441 new cache should be used.
444 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
446 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
447 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
448 * utils/exportfs/exportfs.c(dump): ditto
450 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
452 * support/export/hostname.c(get_reliable_hostbyaddr): new function
453 to get host name from address with full checking of authenticity.
454 * support/include/misc.h: declare above function
455 * utils/mountd/auth.c(auth_authenticate_internal): remove all
456 logic for authenticating address.
457 * utils/mountd/auth.c(auth_authenticate): call new
458 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
461 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
463 * tools/rpcgen/rpc_main.c(find_cpp): removed
464 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
465 then try hard-coded paths.
467 2003-03-26 Chip Salzenberg <chip@pobox.com>
469 * debian/changelog: Version 1.0.3-1.
471 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
473 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
474 "const char*", not "char*".
476 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
478 * configure.in (VERSION): Set to "1.0.3".
479 * nfs-utils.spec: Likewise.
480 * configure: Regenerated.
482 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
484 * support/nfs/cacheio.c: New File - support for read/writing
485 to export cache in /proc/rpc/*/channel
486 * support/nfs/Makefile: compile cacheio.c
487 * support/include/nfslib.h: declare cacheio.c functions
488 * support/nfs/nfsexport.c: export and unexport through
489 /proc/rpc/*/channel if possible, as old syscall interface
490 may not survive into 2.6 on all architectures.
492 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
493 Ben Leslie <benno@sesgroup.net>
495 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
496 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
497 former would incorectly ignore defport if the application
498 explicitly set __rpcfdtype. The later is sufficient to avoid the
499 special handling in the case where stdin is an internet socket.
501 * utils/mountd/mountd.c(main): Add 'n' to option list in
502 getopt_long as this is a short form of --no-tcp which want being
505 2003-02-12 Chip Salzenberg <chip@pobox.com>
507 * debian/changelog: Version 1.0.2-2.
509 2002-11-27 Chip Salzenberg <chip@pobox.com>
511 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
512 overflow bug. Reformat per rest of source file.
514 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
516 * utils/exportfs/exports.man: Correct notes about whether the wild
517 card characters match a period. They do.
519 2002-10-15 Juan Gomez <juang@us.ibm.com>
521 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
523 (mountlist_add): Call slink_safe_rename instead of rename.
525 2002-10-11 H.J. Lu <hjl@lucon.org>
527 * support/include/exportfs.h (export_errno): New.
529 * support/nfs/exports.c: Include <errno.h>.
531 (getexportent): Set export_errno to EINVAL for bad option.
532 (parseopts): Likewise.
533 Report the location of the default sync/async option.
535 * utils/exportfs/exportfs.c (main): Initialize export_errno to
536 0. Return export_errno.
538 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
539 NeilBrown <neilb@cse.unsw.edu.au>
541 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
542 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
544 2002-09-16 Chip Salzenberg <chip@pobox.com>
546 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
548 2002-09-15 Chip Salzenberg <chip@pobox.com>
550 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
551 socket, as occurs when run from sshd.
552 * debian/changelog: Version 1.0.2-1.
554 2002-09-12 H.J. Lu <hjl@lucon.org>
556 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
559 2002-09-12 H.J. Lu <hjl@lucon.org>
561 * configure.in: Remove checking svctcp_socket and svcudp_socket.
562 * configure: Regenerated.
564 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
565 (HAVE_SVCUDP_SOCKET): Removed.
567 * support/include/nfslib.h: Undo the last change.
569 2002-09-12 H.J. Lu <hjl@lucon.org>
571 * support/include/nfslib.h (svctcp_socket): Protect it with
573 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
575 2002-09-12 H.J. Lu <hjl@lucon.org>
577 * configure.in (VERSION): Set to "1.0.2".
578 * configure: Regenerated.
579 * nfs-utils.spec: Likewise.
581 2002-09-12 H.J. Lu <hjl@lucon.org>
583 * configure.in: Check svctcp_socket and svcudp_socket.
584 * configure: Regenerated.
586 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
587 (HAVE_SVCUDP_SOCKET): New.
589 * support/include/nfslib.h (svctcp_socket): New.
590 (svcudp_socket): New.
592 * support/nfs/Makefile (OBJS): Add svc_socket.o.
594 * support/nfs/svc_socket.c: New.
596 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
597 svcudp_socket if port is unspecified.
599 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
601 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
602 (killer): New. Signal handler to unregister.
603 (main): Use killer. Call svcudp_socket to get the default
606 2002-09-02 Juan Gomez <juang@us.ibm.com>
607 NeilBrown <neilb@cse.unsw.edu.au>
609 Add -N option to statd to run in notify-only mode.
611 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
612 * utils/statd/statd.man: document -N
613 * utils/statd/statd.c: enabled -N, largely exists but needed to be
614 uncommented and completed
616 2002-09-02 Juan Gomez <juang@us.ibm.com>
617 NeilBrown <neilb@cse.unsw.edu.au>
619 statd to have " -P directory" arg to use that directory instead
620 of /var/lib/nfs. This is useful for fail-over clusters.
622 * utils/statd/statd.h: define SM_DIR etc as var, not const.
623 * utils/statd/statd.c: define "-P" option to set SM_*
625 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
627 * utils/statd/notify.c: ditto.
628 * utils/statd/statd.man: document -P option.
630 2002-08-26 Chip Salzenberg <chip@pobox.com>
632 * utils/nfsd/nfsd.man: Fix typo.
633 * debian/changelog: Version 1.0.1-1.
635 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
637 * let parseopts know if /etc/exports was being read or not,
638 and have it only print "no sync or async" warning in that case.
640 2002-05-06 Tom McNeal <trmcneal@attbi.com>
641 NeilBrown <neilb@cse.unsw.edu.au>
643 * utils/nfsstat/nfsstat.c: Handle differing format for
644 /proc/net/rpc/nfsd between pre and post 2.4.0
646 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
647 James Pearson <james-p@moving-picture.com>
649 * support/nfs/rmtab.c(fendrmtabent): sync changes to
650 storage before returning, as this is critical state
652 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
653 H.J. Lu <hjl@lucon.org>
655 * etc/redhat/nfs: New.
657 2002-04-08 H.J. Lu <hjl@lucon.org>
659 * etc/redhat/nfs.init: Updated.
661 * nfs-utils.spec.in: Updated.
662 * nfs-utils.spec: Regenerated.
664 * utils/mountd/mountd.c (longopts): Fix a typo.
666 * utils/mountd/mountd.man: Updated.
668 2002-04-07 H.J. Lu <hjl@lucon.org>
670 * etc/redhat/nfslock.init (restart): Just do stop and start.
672 * etc/redhat/nfs.init: Fix a typo.
674 2002-04-07 H.J. Lu <hjl@lucon.org>
676 * configure.in (VERSION): Set to "1.0.1".
677 * configure: Regenerated.
678 * nfs-utils.spec: Likewise.
680 * README: Updated for 1.0.1.
682 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
683 H.J. Lu <hjl@lucon.org>
685 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
687 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
688 NeilBrown <neilb@cse.unsw.edu.au>
690 Add support for fsid=nn export option so that device
691 numbers don't go in filehandles.
692 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
693 is set, pass the fsid in-place of the device number
694 * support/nfs/exports.c: parse and print fsid= option.
695 Also check if efname has been set, and use "command line"
696 instead in error messages.
697 Also, use strtol instead of atoi for anon[ug]id= so that
698 bad numbers cause errors.
700 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
701 NeilBrown <neilb@cse.unsw.edu.au>
703 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
704 flag so that "sync" becomes the default.
705 Check that either "sync" or "async" is given as an option
706 and warn if neither are present
707 * utils/exportfs/exports.man: change documentation for "sync"
708 to be documentation for "async".
709 * utils/exportfs/exportfs.man: note that "sync" is the default
713 2002-01-02 Chip Salzenberg <chip@pobox.com>
715 * support/export/nfsctl.c (expsetup): Don't export entries that
716 specify id mappings not supported by the kernel. No extant kernel
717 supports any significant mapping, only 'identity' (i.e. none).
718 When other mappings are supported, this code will need changing.
719 * debian/changelog: Version 1.0-2.
721 2001-12-26 Chip Salzenberg <chip@pobox.com>
723 * nfs-utils.spec (Version): Set to "1.0".
724 * configure.in (VERSION): Likewise.
725 * configure: Regenerated.
727 * debian/changelog: Version 1.0-1.
729 * utils/exportfs/exports.man: Emphasize the need for options to
730 immediately follow client names. Explain that wildcards don't
731 usually work on addresses, but may work when reverse DNS fails.
732 Comment out a leftover TP that was TPing our indentation.
733 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
734 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
735 * debian/changelog: Version 0.3.3-6.
737 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
739 * support/export/client.c(client_lookup): If a host has multiple
740 IP addresses, then we must always use the result of a
741 gethostbyname, not that of gethostbyaddr for exporting
743 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
745 * support/export/client.c (client_lookup): use strcasecmp when
747 * support/nfs/export.c (getexportent): add fromkernel arg and use
748 different defaults as kernels prior to 2.4.11 assume different
749 defaults in /proc/fs/nfs/exports
750 * support/include/nfslib.h, support/export/export.c,
751 support/export/xtab.c: support extra "fromkernel" arg for
754 2001-12-13 Chip Salzenberg <chip@pobox.com>
756 * debian/changelog: Version 0.3.3-5.
758 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
760 * support/nfs/xio.c (xskip): Call `xungetc' instead of
761 `ungetc' to keep x_line more properly.
763 2001-11-26 Chip Salzenberg <chip@pobox.com>
765 * utils/showmount/showmount.c (main): Don't assume that strings
766 starting with digits are IP addresses.
767 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
768 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
769 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
770 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
771 man pages: We check host names *and* addresses with tcpwrappers.
772 * debian/changelog: Version 0.3.3-4.
774 2001-11-21 Chip Salzenberg <chip@pobox.com>
776 * support/nfs/clients.c (cfname): Added: current clients file name.
777 (setnfsclntent): Set it.
778 ({get,end}nfsclntent, syntaxerr): Use it.
779 * support/nfs/exports.c (efname): Added: current exports file name.
780 (setnfsexportent): Set it.
781 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
782 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
783 * debian/changelog: Version 0.3.3-3.
785 2001-10-11 Chip Salzenberg <chip@pobox.com>
787 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
788 * debian/changelog: Version 0.3.3-2.
790 2001-10-08 Chip Salzenberg <chip@pobox.com>
792 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
793 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
794 * utils/mountd/mountd.man: Update paths to /var/lib.
795 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
797 2001-10-06 Preston Brown <pbrown@redhat.com>
799 * utils/nfsstat/nfsstat.man: Updated.
801 2001-09-24 H.J. Lu <hjl@lucon.org>
803 * configure.in (VERSION): Set to "0.3.3".
804 * configure: Regenerated.
805 * nfs-utils.spec: Likewise.
807 * README: Updated for 0.3.3.
809 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
811 Arrange that "exportfs -au" never does DNS lookup:
813 * support/export/client.c (client_lookup) : add "canonical"
814 flag which says that the hostname is known to be canonical, so
817 * support/export/export.c (export_create) : add "canonical"
818 flag to be passed down to client_lookup
819 * support/export/export.c (export_lookup) : Likewise
821 * support/export/xtab.c (xtab_read) : pass appropriate
822 "canonical" flag to export_lookup and export_create:
823 set if reading list of filesystems currently exports
826 * support/export/export.c (export_read) : pass 0 as
827 "canonical" flag to export_lookup and export_create
828 * support/export/rmtab.s (rmtab_read) : Likewise
830 * support/include/exportfs.h : redeclare various routines
831 to have "canonical" flag
833 * utils/exportfs/exportfs.c (main) : redo logic for
834 "-au" to read in what is currently exported, but never even
835 look at what "should" be exported.
837 * utils/exportfs/exportfs.c (unexportall) : remove this
838 routine. Functionality is completely included in
841 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
842 flag to zero in calls to export_lookup and export_create.
845 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
846 Anne Milicia <milicia@missioncriticallinux.com>
848 * support/export/client.c (client_lookup) call gethostbyadd
849 to make sure that we have a canonical hostname, even for
851 * utils/exportfs/exportfs.c (exportfs) Likewise
853 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
855 * support/nfs/exports.c (putexportent): \octal quote any spaces
857 * support/nfs/xio.c (xgettok): recognise double-quote and
858 \octal quoting in path names
859 * utils/exportfs/exports.man: document quoting conventions
862 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
864 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
865 change from 2000-08-02: It causes problems if someone exports
866 to both a hostname and IP addresses. nfs-utils must be
867 consistant about the canonical name that it chooses.
869 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
870 H.J. Lu <hjl@lucon.org>
872 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
874 * utils/statd/statd.c (longopts): Add "name".
875 (usage): Add "-n/--name".
876 (main): Set MY_NAME with "-n/--name".
878 * utils/statd/state.c (change_state): Set MY_NAME only if it
881 * utils/statd/statd.man: Updated for "-n/--name".
883 2001-07-26 H.J. Lu <hjl@lucon.org>
885 * nfs-utils.spec (Release): Set to 8.
887 2001-07-25 H.J. Lu <hjl@lucon.org>
889 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
892 2001-06-27 H.J. Lu <hjl@lucon.org>
894 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
896 2001-06-27 H.J. Lu <hjl@lucon.org>
898 * utils/rquotad/rquota_server.c: Don't call statfs () for
899 the block size. Use BLOCK_SIZE instead.
901 2001-06-27 H.J. Lu <hjl@lucon.org>
903 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
904 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
906 * configure.in (enable_nfsv3): Set to yes by default.
907 (--enable-rquotad): Added
908 (AC_PROG_CXX): Removed.
909 (AC_OUTPUT): Add utils/Makefile.
910 (CC_FOR_BUILD): Renamed from BUILD_CC.
911 * configure: Regenerated.
913 * utils/Makefile: Removed.
915 * utils/Makefile.in: New.
917 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
919 (CC_FOR_BUILD): Renamed from BUILD_CC.
920 * nfs-utils.spec: Regenerated.
922 2001-06-15 Chip Salzenberg <chip@debian.org>
924 * debian/changelog: Version 0.3.2-2.
925 * debian/*.init: Minor fixes.
927 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
929 * etc/nodist/nfs-server: Fixed a bug where the script would
930 disable mounts from NFSv3 clients if NFSv3 is present.
932 2001-06-05 H.J. Lu <hjl@lucon.org>
934 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
935 (main): Support --descriptors/-o to set the limit of the number
936 of open file descriptors.
939 * utils/mountd/mountd.man: Updated for --descriptors/-o.
941 2001-06-04 H.J. Lu <hjl@lucon.org>
943 * nfs-utils.spec (Release): Set to 6.
945 2001-05-28 H.J. Lu <hjl@lucon.org>
947 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
948 * utils/mountd/mountd.c (main): Likewise.
949 * utils/nfsd/nfsd.c (main): Likewise.
950 * utils/rquotad/rquota_svc.c (main): Likewise.
952 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
954 * support/export/client.c (client_check): Check IP address
957 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
959 * support/export/client.c (client_gettype): Treat `*' as
962 2001-04-22 H.J. Lu <hjl@lucon.org>
964 * nfs-utils.spec.in: Fix a typo.
965 * nfs-utils.spec: Regenerated.
967 2001-04-21 H.J. Lu <hjl@lucon.org>
969 * nfs-utils.spec.in: Fix cross build.
970 * nfs-utils.spec: Regenerated.
973 2001-04-18 H.J. Lu <hjl@lucon.org>
975 * nfs-utils.spec.in: Support cross build.
976 * nfs-utils.spec: Regenerated.
982 * config.mk.in (BUILD_CC): New.
983 (CC): Set to $(BUILD_CC) if BUILD is defined.
986 (RANLIB): Set to @RANLIB@.
988 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
989 * configure: Regenerated.
991 * tools/rpcgen/Makefile (BUILD): Set to true.
993 2001-04-01 Chip Salzenberg <chip@valinux.com>
995 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
996 redundant, and sometimes broken, declaration of svc_fdset;
998 * support/nfs/rpcmisc.c (closedown): Likewise.
1000 2001-03-21 H.J. Lu <hjl@lucon.org>
1002 * nfs-utils.spec: Regenerated.
1003 (Release): Set to 3.
1005 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
1007 * utils/statd/statd.c (main): make sure file descriptors 0-2
1008 are open to /dev/null.
1010 2001-03-21 H.J. Lu <hjl@lucon.org>
1012 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
1013 * support/nfs/rpcmisc.c: Likewise.
1014 * utils/rquotad/rquota_svc.c: Likewise.
1015 * utils/rquotad/rquotad.man: Likewise.
1016 * utils/statd/Makefile: Likewise.
1017 * utils/statd/rmtcall.c: Likewise.
1018 * utils/statd/simulate.c: Likewise.
1019 * utils/statd/statd.c: Likewise.
1020 * utils/statd/statd.man: Likewise.
1022 2001-03-11 H.J. Lu <hjl@lucon.org>
1024 * configure.in (RELEASE): New. Default to 1, set by
1025 --with-release=XXX. Substitute nfs-utils.spec.
1026 * nfs-utils.spec.in (Release): Set to @RELEASE@.
1027 * configure: Regenerated.
1028 * nfs-utils.spec: Likewise.
1030 2001-03-11 H.J. Lu <hjl@lucon.org>
1032 * utils/rquotad/rquotad.man: Fix a typo.
1034 2001-03-11 H.J. Lu <hjl@lucon.org>
1036 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
1037 * support/nfs/rpcmisc.c: Likewise.
1038 * utils/rquotad/rquota_svc.c: Likewise.
1039 * utils/rquotad/rquotad.man: Likewise.
1040 * utils/statd/Makefile: Likewise.
1041 * utils/statd/rmtcall.c: Likewise.
1042 * utils/statd/simulate.c: Likewise.
1043 * utils/statd/statd.c: Likewise.
1044 * utils/statd/statd.man: Likewise.
1046 2001-03-10 H.J. Lu <hjl@lucon.org>
1048 * configure.in (VERSION): Set to "0.3.2".
1049 * configure: Regenerated.
1050 * nfs-utils.spec: Likewise.
1052 * README: Updated for 0.3.2.
1054 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
1056 * utils/rquotad/rquotad.man: Updated for -p.
1057 * utils/statd/statd.man: Likewise.
1059 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
1061 * support/nfs/rpcmisc.c: export makesock()
1063 * support/include/rpcmisc.h (makesock): Declared.
1065 * utils/rquotad/rquota_svc.c: added longopts, added support for
1066 specifying the port to bind to on the command line.
1068 * utils/statd/statd.c: ditto, also specify port used for
1069 outgoing connections.
1070 (do_regist): Removed.
1072 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
1073 get_socket. Make it extern.
1075 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
1076 instead of do_regist.
1078 * utils/statd/Makefile (LIBS): link with our own libnfs
1080 2001-03-09 H.J. Lu <hjl@lucon.org>
1082 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
1083 * etc/nodist/nfs-client: Likewise.
1085 2001-02-26 Chip Salzenberg <chip@valinux.com>
1087 * debian/changelog: Version 0.3.1-1.
1088 * Mention upstream source and license in copyright file.
1089 * Add build-Depends for debhelper and libwrap0-dev.
1091 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
1093 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
1094 * etc/nodist/nfs-client: Likewise.
1096 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
1098 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
1101 2001-02-17 Patrick J. LoPresti <patl@curl.com>
1103 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
1106 2001-02-14 H.J. Lu <hjl@lucon.org>
1108 * utils/statd/rmtcall.c: Include <time.h>.
1109 * utils/statd/svc_run.c: Likewise.
1111 2001-02-14 H.J. Lu <hjl@lucon.org>
1113 * configure.in (VERSION): Set to "0.3.1".
1114 * configure: Regenerated.
1115 * nfs-utils.spec: Likewise.
1117 * README: Updated for 0.3.1.
1119 2001-02-14 H.J. Lu <hjl@lucon.org>
1121 * support/nfs/rpcmisc.c: Include <time.h>.
1123 2001-02-14 Chip Salzenberg <chip@valinux.com>
1125 * debian/control: Change priority of nhfsstone package to 'extra'.
1127 2001-02-12 Chip Salzenberg <chip@valinux.com>
1129 * debian/changelog: Version 0.3-2.
1131 2001-02-02 H.J. Lu <hjl@lucon.org>
1133 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
1135 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
1136 out SO_SNDBUF/SO_RCVBUF.
1137 (rpc_init): Remove bufsize and remove socksz in calls to
1140 * utils/mountd/mountd.c (main): Remove bufsize in calls to
1143 2001-01-28 Chip Salzenberg <chip@valinux.com>
1145 * debian/changelog: Version 0.3-1.
1147 2001-01-25 H.J. Lu <hjl@lucon.org>
1149 * configure.in (VERSION): Set to "0.3".
1150 * configure: Regenerated.
1151 * nfs-utils.spec: Likewise.
1153 * README: Updated for 0.3.
1155 2001-01-25 H.J. Lu <hjl@lucon.org>
1157 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
1159 2001-01-20 Chip Salzenberg <chip@valinux.com>
1161 * support/include/xio.h (xgetc): Declare to return int.
1162 * support/nfs/xio.c (xgetc): Return int.
1163 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
1164 * utils/statd/statd.c (main): Use int for value of getopt.
1165 * debian/changelog: Version 0.2.1-5.
1167 2000-12-10 Chip Salzenberg <chip@valinux.com>
1169 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
1170 program and procedure numbers of kernel lockd's callback. Also,
1171 besides the old (and broken) procedure #24, allow #16 per Trond.
1173 2000-12-03 Chip Salzenberg <chip@valinux.com>
1175 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
1176 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
1177 * debian/changelog: Version 0.2.1-4.
1179 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
1181 * utils/mountd/auth.c (auth_authenticate): Log the bad path
1184 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
1186 * support/nfs/exports.c (getexportent): Check for host name
1187 without option, or options without hostname, and print a warning,
1188 as this is most likely a typo.
1190 2000-11-19 Chip Salzenberg <chip@valinux.com>
1192 * debian/control: Add dependency on portmap.
1193 * debian/changelog: Version 0.2.1-3.
1195 2000-11-10 H.J. Lu <hjl@lucon.org>
1197 * nfs-utils.spec.in: Don't use libtool.
1198 Add ChangeLog and COPYING to doc.
1199 * nfs-utils.spec: Rebuild.
1201 2000-11-09 H.J. Lu <hjl@lucon.org>
1203 * etc/redhat/nfs.init (start): Back out the last change.
1205 2000-11-09 H.J. Lu <hjl@lucon.org>
1207 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
1208 TCP is not supported by kernel.
1210 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
1212 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
1213 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
1215 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
1217 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
1219 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
1220 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
1221 callbacks to local lockd.
1223 2000-10-18 Scott McDermott <mcdermot@questra.com>
1225 * utils/exportfs/exports.man: Updated for CIDR netmask.
1227 2000-10-17 Scott McDermott <mcdermot@questra.com>
1229 * support/export/client.c (client_init): Support CIDR netmask
1232 2000-10-11 H.J. Lu <hjl@lucon.org>
1234 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1235 * configure: Rebuilt.
1237 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
1239 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1240 "/var/lib/nfs/state".
1242 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
1244 * utils/statd/statd.h (run_mode): New global bitmask of runtime
1245 behaviors: fg/bg, logging, etc.
1246 * utils/statd/statd.c: New command line options: -V -h -? -d .
1247 * utils/statd/statd.man: Update for changes to statd.
1249 * utils/statd/log.h (log_init): Remove parameter of function; use
1250 global variable "name_p" instead.
1251 * utils/statd/log.c: Add support for logging to stderr.
1253 * utils/statd/notlist.c: Partially rewrite notify list handling
1254 functions. Eliminate run-off-end-of-list bug when calling
1255 nlist_insert_timer. Add lots of comments.
1257 2000-09-27 H.J. Lu <hjl@lucon.org>
1259 * README: Updated for RedHat 7.0.
1261 2000-09-27 H.J. Lu <hjl@lucon.org>
1263 * nfs-utils.spec: Rebuild.
1265 2000-09-27 H.J. Lu <hjl@lucon.org>
1267 * README: Updated for 0.2.1.
1269 2000-09-27 H.J. Lu <hjl@lucon.org>
1271 * nfs-utils.spec.in: Updated to use rpm macros and support
1274 2000-09-25 H.J. Lu <hjl@lucon.org>
1276 * configure.in (VERSION): Set to "0.2.1".
1277 * configure: Regenerated.
1278 * nfs-utils.spec: Updated.
1280 2000-09-25 H.J. Lu <hjl@lucon.org>
1282 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1283 non-NULL hostent is always returned.
1285 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1287 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1288 have an executable (i.e. kernel threads)
1290 2000-09-01 H.J. Lu <hjl@lucon.org>
1292 * README: Updated for 0.2.
1294 2000-09-01 Jay Weber <jweber@valinux.com>
1296 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1297 supporting version 3 of nfs if available, else it will fall back to
1298 version 2 support only.
1300 2000-08-30 H.J. Lu <hjl@lucon.org>
1302 * configure.in (VERSION): Set to "0.2".
1303 * configure: Regenerated.
1304 * nfs-utils.spec: Updated.
1306 2000-08-25 H.J. Lu <hjl@lucon.org>
1308 * support/misc/tcpwrapper.c (logit): Modify the log output.
1310 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1312 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1313 utils/mountd/mountd.man: updated
1315 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1316 * utils/rquotad/Makefile: fix comment
1318 * support/misc/tcpwrapper.c (logit): added comment about waiting
1319 for the children after fork()
1321 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1322 zombies behind (from logit()'s fork)
1323 * utils/rquotad/rquota_svc.c (main): ditto
1324 * utils/statd/statd.c (main): ditto
1326 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1327 to check_default instead of 0, for prognum
1329 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1330 to check_default instead of 0, for prognum
1332 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1333 HAVE_TCP_WRAPPER is defined.
1334 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1335 defined. Reject an RPC call if check_default () fails.
1337 2000-08-25 H.J. Lu <hjl@lucon.org>
1339 * support/include/tcpwrapper.h: New for the tcp wrapper
1341 * support/misc/Makefile: Likewise.
1342 * support/misc/from_local.c: Likewise.
1343 * support/misc/tcpwrapper.c: Likewise.
1345 * aclocal.m4 (AC_TCP_WRAPPER): New.
1346 * configure.in: Use it. Substitute LIBWRAP.
1347 * configure: Rebuilt.
1349 * config.mk.in (LIBNSL): New.
1350 (LIBWRAP): Likewise.
1352 * support/Makefile (SUBDIRS): Add misc.
1354 * support/lib/Makefile (LIBS): Add libmisc.a.
1356 * utils/rquotad/Makefile (LIBS): Add
1358 -lmisc $(LIBWRAP) $(LIBNSL)
1360 * utils/statd/Makefile (LIBS): Likewise.
1362 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1363 HAVE_TCP_WRAPPER is defined.
1364 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1365 defined. Reject an RPC call if check_default () fails.
1367 * utils/statd/statd.c: Include "tcpwrapper.h" if
1368 HAVE_TCP_WRAPPER is defined.
1369 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1370 check_default () before calling sm_prog_1 (). Define it as
1371 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1373 2000-08-25 Chip Salzenberg <chip@valinux.com>
1375 * debian/*: Complete Debian build support.
1376 * etc/debian/*: Remove.
1378 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1380 * support/export/client.c(client_check): removed the "dot+1" as a
1381 ypdomain argument to innetgr as this is entirely bogus.
1382 It should always be NULL.
1384 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1386 * support/export/xtab.c(xtab_read): introduce new mode for
1387 reading xtab. i.e. a list of exports that might be known to the
1388 kernel, or might not. These are flagged as m_exported == -1
1389 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1390 value "2" for xtab, meaning don't trust this too much.
1391 * support/include/exportfs.h(struct mexport): changed m_exported
1392 from one bit to an int so that it can hold new value
1393 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1394 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1395 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1398 * support/nfs/xio.c(xflock): added O_CREAT when getting
1399 a write lock so that missing files aren't fatal.
1401 * etc/debian/nfs-common: new file from "potato"
1402 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1404 2000-08-09 H.J. Lu <hjl@lucon.org>
1406 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1407 startup to ensure all existing clients work fine.
1409 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1410 to xtab_read () for reading _PATH_XTAB.
1412 2000-08-02 H.J. Lu <hjl@lucon.org>
1414 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1415 avoid the reverse name lookup.
1417 2000-07-04 H.J. Lu <hjl@lucon.org>
1419 * utils/statd/log.c: Include <stdlib.h> for exit ().
1421 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1424 2000-07-04 H.J. Lu <hjl@lucon.org>
1426 * configure.in (VERSION): Set to "0.1.9.1".
1427 * configure: Regenerated.
1428 * nfs-utils.spec: Updated.
1432 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1434 * support/export/hostname.c (hostent_dup): Handle the NULL
1437 2000-07-03 H.J. Lu <hjl@lucon.org>
1439 * README: Update the util-linux requirement.
1441 2000-07-03 H.J. Lu <hjl@lucon.org>
1443 * configure.in (VERSION): Set to "0.1.9".
1444 * configure: Regenerated.
1445 * nfs-utils.spec: Updated.
1449 2000-07-03 H.J. Lu <hjl@lucon.org>
1451 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1452 stop to ensure all clients can still access the server
1453 before it is shutdown.
1455 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1457 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1458 calls with format string.
1460 2000-06-28 Chip Salzenberg <chip@valinux.com>
1462 * utils/statd/log.c (log): Call syslog with format string.
1464 2000-06-27 H.J. Lu <hjl@lucon.org>
1466 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1467 instead of OPEN_MAX.
1469 2000-06-27 H.J. Lu <hjl@lucon.org>
1473 2000-06-27 H.J. Lu <hjl@lucon.org>
1475 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1476 startup to ensure all existing clients are exported.
1478 * configure.in (VERSION): Set to "0.1.8.2".
1479 * configure: Regenerated.
1480 * nfs-utils.spec: Updated.
1482 2000-06-06 H.J. Lu <hjl@lucon.org>
1484 * configure.in (VERSION): Set to "0.1.8.1".
1485 * configure: Regenerated.
1486 * nfs-utils.spec: Updated.
1488 2000-06-06 H.J. Lu <hjl@lucon.org>
1490 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1491 to "struct sockaddr_in *" for glibc 2.2.
1492 (mount_umnt_1_svc): Likewise.
1493 (mount_umntall_1_svc): Likewise.
1494 (mount_export_1_svc): Likewise.
1495 (mount_exportall_1_svc): Likewise.
1496 (mount_pathconf_2_svc): Likewise.
1497 (get_rootfh): Likewise.
1499 2000-06-04 H.J. Lu <hjl@lucon.org>
1501 * etc/redhat/nfs.init: Fix a typo in comment.
1503 2000-05-31 H.J. Lu <hjl@lucon.org>
1505 * configure.in (VERSION): Set to "0.1.8".
1506 * configure: Regenerated.
1507 * nfs-utils.spec: Updated.
1511 2000-05-31 H.J. Lu <hjl@lucon.org>
1513 * configure.in (VERSION): Set to "0.1.7.5".
1514 * configure: Regenerated.
1515 * nfs-utils.spec: Updated.
1517 * support/include/nfslib.h (exportent): Add a new field,
1518 r_count, to count the number of mounts from a client.
1519 (getrmtabent): Take a new argument for position in file.
1520 (putrmtabent): Likewise.
1521 (fgetrmtabent): Likewise.
1522 (fputrmtabent): Likewise.
1523 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1524 for position in file.
1525 (fgetrmtabent): Likewise.
1526 (putrmtabent): Likewise.
1527 (fputrmtabent): Likewise.
1529 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1532 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1533 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1534 and fputrmtabent ().
1535 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1536 (mountlist_del): Likewise.
1537 (mountlist_del_all): Likewise.
1538 (mountlist_list): Likewise.
1540 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1541 for the existing entry and initialize "r_count" to 1.
1542 (mountlist_del): Decrement "r_count".
1544 2000-05-18 H.J. Lu <hjl@lucon.org>
1546 * configure.in (VERSION): Set to "0.1.7.4".
1547 * configure: Regenerated.
1548 * nfs-utils.spec: Updated.
1550 2000-05-18 H.J. Lu <hjl@lucon.org>
1552 * etc/redhat/nfs.init (restart): Just do stop and start.
1554 2000-05-09 Jay Weber <jweber@valinux.com>
1556 * utils/rquotad/hasquota.c: added support for ext3 recognition
1558 * utils/rquotad/mntent.h: Likewise.
1560 2000-05-01 H.J. Lu <hjl@lucon.org>
1562 * configure.in (VERSION): Set to "0.1.7.3".
1563 * configure: Regenerated.
1564 * nfs-utils.spec: Updated.
1566 2000-05-01 H.J. Lu <hjl@lucon.org>
1568 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1569 mounting poins in /etc/fstab.
1571 2000-05-01 H.J. Lu <hjl@lucon.org>
1573 * configure.in (VERSION): Set to "0.1.7.2".
1574 * configure: Regenerated.
1575 * nfs-utils.spec: Updated.
1577 2000-05-01 H.J. Lu <hjl@lucon.org>
1579 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1580 to check for the mounting point.
1582 2000-04-29 Chip Salzenberg <chip@valinux.com>
1583 Neil Brown <neilb@cse.unsw.edu.au>
1585 * Really re-use RPC ports.
1586 (Fixes earlier patch. Sorry, Neil.)
1588 2000-04-26 H.J. Lu <hjl@lucon.org>
1590 * configure.in (VERSION): Set to "0.1.7.1".
1591 * configure: Regenerated.
1592 * nfs-utils.spec: Updated.
1594 2000-04-26 H.J. Lu <hjl@lucon.org>
1596 * etc/redhat/nfslock.init: Check if lockd exits before killing
1599 2000-04-25 H.J. Lu <hjl@lucon.org>
1601 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1603 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1605 * support/nfs/exports.c (parsesquash): Correctly set the
1608 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1610 * support/include/nfs/nfs.h: Removed knowledge of internals of
1611 kernel filehandles (which can change) and defined nfs_fh_size
1612 which has variable size
1614 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1615 get variable sized file handles, and change getfh{,old} to
1618 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1621 * tools/Makefile, tools/nlmtest/nlmtest.c
1622 nlmtest.c depended on internel format of file handles, so now
1626 2000-03-12 Chip Salzenberg <chip@valinux.com>
1627 Neil Brown <neilb@cse.unsw.edu.au>
1629 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1631 2000-03-13 H.J. Lu <hjl@lucon.org>
1633 * etc/redhat/nfsd.init: Updated.
1635 * etc/redhat/nfslock.init: Updated.
1637 * nfs-utils.spec.in: Updated.
1639 * configure.in (VERSION): Set to "0.1.7".
1640 * configure: Regenerated.
1641 * nfs-utils.spec: Updated.
1645 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1647 * utils/exportfs/exportfs.c (dump): Included printing of
1648 nohide, no_subtree_check, and insecure_locks
1650 2000-02-26 Chip Salzenberg <chip@valinux.com>
1652 * config.mk.in (INSTALLSUID): Strip ("-s").
1653 (INSTALLSCRIPT): Define.
1654 * utils/nhfsstone/Makefile: Use it.
1656 2000-02-26 Chip Salzenberg <chip@valinux.com>
1658 * utils/lockd/lockd.man: Create.
1659 * utils/lockd/Makefile: Install it.
1660 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1661 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1662 * utils/nhfsstone/Makefile: Install the helper scripts and
1664 * utils/exportfs/exports.man: Fix typo.
1666 2000-02-26 Chip Salzenberg <chip@valinux.com>
1668 * support/nfs/xio.c (xungetc): Decrement line number when
1669 character to unget is newline. Make first parameter int, so
1670 it can distinguish EOF from \377.
1671 * support/include/xio.h (xungetc): Adjust prototype.
1673 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1675 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1676 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1677 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1679 This is for supporting a new option introduced in 2.3.42
1681 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1683 * COPYING: Added. GPL.
1685 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1687 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1688 to get the block size.
1690 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1692 * nfs-utils.spec.in: Update ftp site.
1694 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1696 * README: Update hostnames.
1698 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1700 * configure.in (VERSION): Set to "0.1.6".
1701 * configure: Regenerated.
1702 * nfs-utils.spec: Updated.
1706 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1708 * utils/mountd/auth.c (auth_authenticate_internal): Call
1709 xstrdup for hostname before passing it to gethostbyname.
1711 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1714 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1716 * README: Update the mailing list address.
1718 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1720 * configure.in (VERSION): Set to "0.1.5".
1721 * configure: Regenerated.
1722 * nfs-utils.spec: Updated.
1726 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1728 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1731 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1733 * configure.in (VERSION): Set to "0.1.4".
1734 * configure: Regenerated.
1735 * nfs-utils.spec: Updated.
1739 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1741 * nfs-utils.spec.in: New file.
1743 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1745 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1747 1999-12-04 Chip Salzenberg <chip@valinux.com>
1749 * config.mk.in: Use $(CC) as set by configure.
1751 1999-12-04 Chip Salzenberg <chip@valinux.com>
1753 * rules.mk: Call $(MAKE) with $(MFLAGS).
1755 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1757 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1758 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1760 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1762 * nfs-utils.spec (Version): Set to 0.1.3.
1764 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1765 * configure: Regenerated.
1769 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1771 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1772 (_PATH_DEV_DSK): Likewise.
1773 (getquotainfo): Match the mounting point from /etc/mtab
1774 instead of calling nfsmount_to_devname ().
1776 1999-11-24 Chip Salzenberg <chip@valinux.com>
1778 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1779 to the new port 24 as well as the historical port 100021.
1781 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1783 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1784 stopping nfsd to stop spurious ESTALE on server shutdown.
1786 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1788 * support/nfs/exports.c (parseopts): make copy of opt string
1789 before 'nul'ing out commas so that
1791 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1793 applies both options to both exports.
1795 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1797 * README: Fix a few typos.
1799 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1801 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1802 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1803 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1804 (unsigned_dec): Likewise.
1805 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1806 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1808 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1810 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1811 (unsigned_dec): Likewise.
1812 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1813 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1814 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1816 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1818 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1819 * support/nfs/exports.c: added {no_,}subtree_check and changed
1821 * utils/exportfs/exports.man: added no_subtree_check and nohide
1822 and removed irrelevant stuff from unfsd.
1823 * support/export/rmtab.c: rmtab_read didn't quite do the right
1824 thing if a pathname from rmtab was a subdirectory of an export-point
1826 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1828 * README: Updated ftp site.
1830 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1832 * nfs-utils.spec (Version): Set to 0.1.2.
1834 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1835 * configure: Regenerated.
1839 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1841 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1842 (auth_authenticate_internal): Check for NULL return on forward
1844 (auth_authenticate): Handle "no_forward_dns".
1846 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1848 * Version 0.1.1 released.
1850 * nfs-utils.spec (Version): Set to 0.1.1.
1852 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1853 * configure: Regenerated.
1857 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1859 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1861 (Provides): Likewise.
1863 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1865 * Initial version 0.1 released.
1867 * configure.in (VERSION): Set to "nfs-utils 0.1".
1868 * configure: Regenerated.
1870 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1872 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1874 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1875 kernel only if the entry is exported to kernel.
1876 (unexportfs): Likewise.
1878 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1880 1/ utils/mountd/rmtab.c::mountlist_list
1882 This routine stats the rmtab file to see if it has changed. It
1883 if has, it cleans up it's old copy of the data. But it still
1884 always re-read the file, thus returning multiple copies of the
1885 data on consecutive calls without intervening changes.
1886 "Showmount -a" didn't show this as it appears to sort/unique the
1887 data, but 'strace showmount -a' showed that the size of the
1888 datagram that it received grew.
1890 I moved the getrmtabent loop inside the mtime test.
1892 2/ utils/exportfs/exportfs.c
1894 Many routines used the m_path field of m_export instead of
1896 According to the comment in nfslib.h, m_path should only
1897 be used when processing a mount request (i.e. in mountd)
1898 where the mountpoint may be a subdirectory of the export point.
1900 I changed all occurances of m_path to e_path
1903 3/ utils/exportfs/exportfs.c:main
1905 extra arguments are not meaningful with -a or -r, but
1906 exportfs accepted them and then ignored the -a/-r, expect that
1907 -r would still unexport everything first.
1909 I generate an error if there are extra args and f_all
1911 4/ utils/exportfs/exportfs.c:main
1912 extract dump out as a special case.
1914 5/ utils/exportfs/exportfs.c
1915 made f_reexport a local variable.
1918 6/ utils/exportfs/exportfs.c:main,exportall
1920 support/export/rmtab.c
1921 only mayexport on newly created entries, don't set xtabent at all
1923 7/ support/include/nfslib.h
1925 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1927 8/ support/export/xtab.c
1929 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1933 9/ support/export/xtab.c
1935 xtab_mount_read now sets m_exported, and NOT
1936 xtabent and mayexport
1938 removed the append arguement from xtab_write as it was
1941 added is_export flag to xtab_write similar to xtab_read
1942 if is_export, only write entries with m_xtabent or m_addxtab
1943 if !is_export, only write entries with m_exported
1945 10/ support/export/export.c::export_allowed_internal
1947 added test for exp->m_mayexport, as the export tree
1948 may have entries that are no longer allowed to be exported,
1949 and so shouldn't caused deduced exported by rmtab_read
1951 11/ utils/exportfs/exportfs.c::main
1952 error checking of flags.
1954 12/ utils/exportfs/exportfs.c
1956 total rewrite of export and unexport logic.
1958 - build an exportslist of valid exports, based on
1959 current etab file and arguments,
1960 - read rmtab to instantiate relevant wild card entries
1961 - read etab to find out what is currently exported
1962 - synchronise intention with reality
1963 - write out etab and xtab
1966 discard the m_addxtab flag
1967 add m_changed flag so we know what to report in exportfs
1969 14/ utils/mountd/auth.c:auth_authenticate
1971 the value returned by gethostbyaddr was trusted.
1973 It now follows this with a call to gethostbyname
1974 and checks that the address is in the list.
1976 15/ support/export/nfsctl.c::cltsetup,expsetup
1978 force client names to lowercase as kernel is
1981 16/ quietened a few compiler warnings
1983 17/ support/export/client:client_lookup
1985 look for pre-existing client with same name before creating
1988 18/ support/include/exportfs.h
1990 The ordering of the MCL_* enum was:
1991 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1993 I moved ANONYMOUS to the end.
1995 The ordering is significant when an export entry is being searched for to
1996 match a given address. There are two problems with ANONYMOUS being first.
1998 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1999 then the ro case will always be found first and the privileged hosts won't get
2001 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
2002 export entry for the specific host, and writes it to xtab.
2003 When another request comes from the same host, the ANONYMOUS entry is found again,
2004 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
2005 again. If causes bloat in xtab.
2007 Putting ANONYMOUS at the end reflects it's nature as a catch-all
2009 19/ utils/exportfs/exportfs.man
2010 many updates to the man page to reflect changes to the code
2012 -----------------------
2018 - allow exportfs to modify rmtab file
2019 - make sure kernel never gets two clients with same IP address
2020 - possible kernel should reject
2021 - needs to be some way to lookup client in kernel by IP address
2022 - maybe get kernel to do case-insensitive comparisons on client names
2023 - remove unused clients from kernel
2025 - change etab to xtab and xtab to xtab.active
2027 - timestamp and/or statd-stamp in rmtab for removing old entries.
2029 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
2031 * linux-nfs: New directory.
2032 * linux-nfs/ChangeLog: Moved from ..
2033 * linux-nfs/INSTALL: Likewise.
2034 * linux-nfs/KNOWNBUGS: Likewise.
2035 * linux-nfs/NEW: Likewise.
2036 * linux-nfs/README: Likewise.
2037 * linux-nfs/THANKS: Likewise.
2038 * linux-nfs/TODO: Likewise.
2040 * Starting from knfsd 1.4.7.