1 2005-01-11 Chip Salzenberg <chip@pobox.com>
3 * debian/changelog: Version 1.0.7-1.
4 * debian/nfs-common.default (NEED_IDMAPD, NEED_GSSD):
5 Disable by default, on advice of upstream.
6 * debian/nfs-kernel-server.default (NEED_SVCGSSD):
9 * utils/svcgssd/Makefile (predep): Symbolically link duplicated
11 (distclean): Remove symlinks to duplicated files.
13 2004-12-17 NeilBrown <neilb@cse.unsw.edu.au>
16 * config.mk, configure.in: update version number, run autoconf
17 * configure.in: require nfsidmap.h if gss is enabled.
19 2004-12-10 NeilBrown <neilb@cse.unsw.edu.au>
22 * config.mk, configure.in: update version number, run autoconf
24 2004-12-10 Neil Brown <neilb@cse.unsw.edu.au>
25 * README : note dependancy on kerberos, libevent, and nfsidmap
26 * configure.in : fail if --enable-nfsv4 and libevent or
27 libnfsidmap are missing.
28 * configuyre.in: improve message if krb5 support is missing
30 2004-12-06 Paul Clements <paul.clements@steeleye.com>
31 * support/include/ha-callout.h: get return status from waitpid
33 * support/include/ha-callout.h: don't ignore SIGCHLD while waiting
34 for a callout to complete.
35 * utils/statd/statd.c(sigusr): print current start when re-reading
36 notify list due to SIGUSR1
37 * utils/statd/svc_run.c(my_svc_run): call change_state when
40 2004-12-06 Marc Eshel <eshel@almaden.ibm.com>
41 * utils/statd/svc_run.c(my_svc_run): allow loop to exit when in
43 *utils/statd/rmtcall.c(statd_get_socket): if a hostname is given
44 to statd with -n, prefer it's IP address to the default for
47 2004-12-06 Bruce Allan <bwa@us.ibm.com>
48 * utils/mountd/auth.c(auth_reload) Clear the "my_client" cache on
49 an auth_reload to avoid old data getting used.
51 2004-12-03 NeilBrown <neilb@cse.unsw.edu.au>
52 Release 1.0.7-pre1 for testing
54 * config.mk, configure.in: update version number, run autoconf
56 2004-12-03 Trond Myklebust <trond.myklebust@fys.uio.no>
58 * utils/statd/statd.c(main): ignore SIGPIPE
60 2004-11-22 "J. Bruce Fields" <bfields@fieldses.org>
62 * tools/rpcdebug/rpcdebug.c: support aliases "nfsdebug" and
63 "nfsddebug" and update flag names.
64 * configure.in, nodist/* redhat/* nfs-utils.spec*: remove redhat
65 specific files (as no-one actually uses them, especially not
66 redhat), and the nodist /etc files (as they drift out-of-date, and
67 the debian directory provides a suitable example.
68 * utils/svcgssd_proc.c(get_ids): fix memory leak
69 * utils/svcgssd/svcgssd_proc.c: Rely on count of the number of
70 groups instead of using a special guard value to identify the end
72 * utils/idmapd/idmapd.c: don't allow Default domain and anon-uid
73 or -gid to be specified on command line.
74 * utils/idmapd/idmapd.c: improve error messages
75 * utils/idmapd/idmapd.c: Reopen nfsd files on sighup. Allows us
76 to start up client side only (even when nfsd module not loaded),
77 and then sighup later after insmodding nfsd module.
78 * utils/idmapd/idmapd.c: Make sure we catch all errors on
79 daemonizing by waiting for child to report succesfull startup
81 * utils/idmapd/idmapd.c: Let libnfsidmapd parse the idmapd.conf
82 file for the default domain, instead of doing that ourselves.
83 * utils/gssd/gssd_proc.c: Make sure we get an error when a gssd
85 * utils/gssd/gssd_proc.c: We were forgetting to restore the euid
86 on certain failures, which meant gssd could get stuck in a state
87 where it didn't have permissions to read the files in rpc_pipefs
89 * utils/gssd/gssd_proc.c: Use libnfsidmapd to map gss principals
91 * debian/nfs-kernel-server.default: Document the NEED_SVCGSSD
92 variable in /etc/default/nfs-kernel-server.
95 2004-11-22 NeilBrown <neilb@cse.unsw.edu.au>
97 * utils/exportfs/nfsd.man: corrected typo in .BR macro usage -
98 reported by Eric Raymond
100 2004-10-19 "J. Bruce Fields" <bfields@fieldses.org>
102 * support/gssapi/* support/rpc/* utils/gssd/* utils/svcgssd/* etc
103 initial support for GSSAPI authentication
105 2004-09-15 Neil Brown <neilb@cse.unsw.edu.au>
107 * utils/statd/monitor.c(sm_unmon_1_svc): is RESTRICTED_STATD, then
108 check IP address and force my_name to 127.0.0.1 to match
109 what happens in sm_mon_1_svc. This avoid spurious "erroneous
111 * utils/statd.monitor.c(sm_unmon_all_1_svc): likewise
113 2004-09-15 "J. Bruce Fields" <bfields@fieldses.org>
115 * Assorted changes to support "gss/*" style authentication
116 * utils/idmapd: new idmapd daemon for nfsv4 username lookup
118 2004-09-06 Trond Myklebust <trond.myklebust@fys.uio.no>
119 Neil Brown <neilb@cse.unsw.edu.au>
121 * utils/mountd/auth.c(auth_authenticate_internal): fix
122 uninitialsed variable problem (causes bad error messages).
124 2004-09-06 Paul Clements <paul.clements@steeleye.com>
125 Neil Brown <neilb@cse.unsw.edu.au>
127 * utils/mountd/mountd.c(main): support --ha-callout (-H) for
128 specifying a callout program
129 * utils/mountd/rmtab.c: Call ha_callout on mount/unmount
130 * utils/statd/monitor.c: Call ha_callout on add/del client
131 * utils/statd/rmtcall.c: as above
132 * utils/statd/statd.c: handle --ha-callout (-H)
133 * utils/statd/svc_run.c: call notify_hosts is we have received a
135 * support/include/ha-callout.h: define ha_callout function
138 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
139 * utils/mountd/cache.c(cache_process_req): clear fd after
140 processing so as not to confused libc/sunrpc into thinking
141 it need to do something with that fd.
143 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
145 * debian/nfs-kernel-server.init(start,stop) mount the nfsd
146 filesystem, if available, before starting nfs services, and
147 unmount it afterwards.
148 * etc/nodist/nfs-server: ditto
149 * etc/redhat/nfs.init: likewise
150 * etc/redhat/nfs: add "MOUNT_NFSD" flag to control above.
152 2004-06-08 NeilBrown <neilb@cse.unsw.edu.au>
154 * utils/exportfs/exportfs.c: Don't rmtab_read if new_cache, it
156 * support/nfs/cacheio.c(cache_flush): Change order in which caches
157 are flushed so that dependancies don't keep things in the cache
160 2004-03-18 Chip Salzenberg <chip@pobox.com>
162 * debian/changelog: Version 1.0.6-2.
164 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
165 from "J. Bruce Fields" <bfields@fieldses.org>
167 * utils/mountd/cache.c: call auth_reload to make sure auth data is
168 current before responding to kernel upcall.
170 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
171 Based on patch from Greg Banks <gnb@melbourne.sgi.com>
173 * utils/exportfs/exports.man: Document fsid= option.
175 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
179 * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
180 support/include, and depend in "predep"
181 * support/export/Makefile, tools/rpcgen/Makefile,
182 utils/statd/Makefile: add "predep" rule so that "make dep" works.
183 * Makefile: allow a simple "make" to run ./configure and "make dep"
185 * configure.in, nfs-utils.spec: Update version to 1.0.6
188 2003-09-12 Chip Salzenberg <chip@pobox.com>
190 * debian/changelog: Version 1.0.6-1.
192 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
194 * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
196 * utils/statd/statd.c(main): Ditto.
198 michael <michael@newdream.net> discovered that svc_setreqsize
199 in glibc can segfault if RLIMIT_NOFILE is bigger than
200 FD_SETSIZE, so a simple solution is to impose a hard limit.
202 2003-09-09 Chip Salzenberg <chip@pobox.com>
204 * debian/changelog: Version 1.0.5-3.
205 * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
206 on invalid reverse DNS.
207 * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
208 * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
209 * tools/rpcgen/rpc_parse.c (def_union): Likewise.
211 2003-08-22 Chip Salzenberg <chip@pobox.com>
213 * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
214 N_*, to avoid conflict with ISO C built-in log() function.
215 * utils/statd/*.c: Use note().
217 2003-08-20 Chip Salzenberg <chip@pobox.com>
219 * debian/changelog: Version 1.0.5-2.
221 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
223 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
226 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
228 * support/include/nfs/export.h, support/nfs/exports.c,
229 utils/exportfs/exports.c, utils/mountd/mountd.c: change
230 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
231 meaning. Also remove meaningless
232 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
234 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
236 * support/export/xtab.c, support/include/nfslib.h,
237 support/nfs/cacheio.c, support/nfs/nfssvc.c,
238 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
239 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
240 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
241 (nfs-utils-1.0.5-post2)
243 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
245 * support/nfs/nfsexport.c: open channel file O_WRONLY when
247 * utils/mountd/cache.c: maintain mountlist when new_cache is
248 active. Also use O_WRONLY for channel files.
249 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
250 rather than an nfs_export.
251 * utils/mountd/rmtab.c: ditto.
252 (nfs-utils-1.5.0-post1)
254 2003-07-24 Chip Salzenberg <chip@pobox.com>
256 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
257 use Debian security team's cleaner approach.
258 * debian/changelog: Version 1.0.5-1.
259 * debian/nfs-kernel-server.init: Cosmetic changes.
261 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
264 1.0.4 was a bit of a brown-paper-bag-release because of the extra
265 'free' in auth.c. So I'm releasing this just a few days later.
267 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
269 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
270 check if new_cache is enabled, error if not, flush and exit if it
272 * utils/exportfs/exportfs.man: Explain -f option and explain the
273 two different modes that exportfs can work in.
274 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
276 * utils/mountd/mountd.man: Record the change if default behaviour
278 * configure.in, nfs-utils.spec: update version to 1.0.5 and
281 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
283 * utils/mountd/mountd.c(main): getopt string fix for 'o'
284 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
285 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
287 * support/include/nfs/export.h: Reserve a bit for possible ACL
290 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
292 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
293 assorted changed to cope with section 7 of the manual.
294 * configure.in, nfs-utils.spec: Update version to 1.0.4
297 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
298 baseline for 2.6 and 2.8. I.e. it should continue to work right
299 through the 2.8 (or 3.0) kernel series. Previous releases wont.
301 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
302 Steve Dickson <SteveD@redhat.com>
305 * utils/statd/statd.c: create a pidfile with pid of statd, and
306 truncate it when statd exists.
307 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
308 and warn if this is root.
309 * utils/statd/statd.c: when statd forks, connect child to parent
310 with a pipe, and send a byte down the pipe once the child is
312 * Makefile: create and chown sm, sm.bak, state when "make install"
313 * configure.in: add --with-statduser= option which defaults to
314 "rpcuser" or "nobody"
315 * config.mk.in: pass "statduser" through to Makefile
317 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
319 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
320 used as the size was changed somewhere in 2.5.60-2.5.70. Without
321 this nfs-utils compiles against 2.6 headers will not work on a
324 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
326 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
327 set number of threads by writing to there. This means it will
328 still work when the syscall interface goes away in 2.7.
330 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
331 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
333 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
334 so as to only export the wildcard exports that were asked for.
335 * support/export/export.c(export_allowed): changed to return the
336 nfs_export rather than a "struct exportent", as m_changed is
338 * support/export/rmtab.c(rmtab_read): modified to deal with
339 interface change for export_allowed(), and enhanced to preserve
340 m_changed flag when a wild-card export causes the creation of
341 a non-wildcard export.
343 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
344 Steve Dickson <SteveD@redhat.com>
346 * utils/mountd/mountd.man: Add valid kinds of debugging.
347 * utils/mountd/mountd.c(main): ignore SIGPIPE
348 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
349 we don't get warnings about unavailable stats that weren't asked
352 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
354 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
355 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
356 'forever', so things disappear out of the cache rather than just
359 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
361 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
364 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
366 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
367 etc/redhat/nfs.init: when checking if V3 is supported, make sure
368 nfs server 'knows' about 127.0.0.1 first.
370 2003-06-10 Chip Salzenberg <chip@pobox.com>
372 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
373 * debian/changelog: Version 1.0.3-2.
375 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
376 NeilBrown <neilb@cse.unsw.edu.au>
378 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
379 long long to avoid overflow when printing stats.
381 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
383 * support/export/export.c, support/include/nfslib.h,
384 support/nfs/export.c, utils/exportfs/exportfs.c,
385 utils/mountd/mountd.c: new export option "mountpoint"
386 If no path is given, then the export point must be a
387 mount point, or it won't be exported. If a path is
388 given (e.g. mountpoint=/path) then that path must be
389 a mountpoint or the exportpoint won't be exported.
390 * utils/exportfs/exportfs.man: document mountpoint option.
391 * support/misc/mountpoint.c: New file with is_mountpoint()
392 to determine if something is a mountpoint.
394 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
396 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
397 argument as we might not be getting the filehandle for the
399 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
400 cache_get_filehandle.
401 * utils/mountd/mountd.c(get_rootfh): check export point and
402 requested directory are on the same filesystem, and complain if
405 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
407 * utils/mountd/auth.c(auth_authenticate_internal): make sure
408 portnumber is still checked when using new cache lookup.
410 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
412 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
413 Don't actually talk to kernel when new cache is in effect, except
415 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
416 * support/export/xtab.c: Only rename new xtab into place if it has
417 changed, thus preserving modify date for exportfs to use when
419 * support/nfs/cacheio.c: Add cache_flush
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
424 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
426 * support/export/client.c: Add client_compose, client_member to
427 handle new composite client names
428 * support/include/exportfs.h: Declare above functions.
429 * utils/mountd/auth.c: use client_compose to determine calling
430 client if new cache is being used.
431 * utils/mountd/auth.c: call cache_export to export a filesystem if
432 new_cache, check if new cache is used, and call my_svc_run instead
434 * utils/mountd/svc_run.c: new file defining my_svc_run
435 * utils/mountd/cache.c: new file for handling cache upcalls.
436 * support/nfs/cacheio.c(check_new_cache): new function to check if
437 new cache should be used.
440 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
442 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
443 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
444 * utils/exportfs/exportfs.c(dump): ditto
446 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
448 * support/export/hostname.c(get_reliable_hostbyaddr): new function
449 to get host name from address with full checking of authenticity.
450 * support/include/misc.h: declare above function
451 * utils/mountd/auth.c(auth_authenticate_internal): remove all
452 logic for authenticating address.
453 * utils/mountd/auth.c(auth_authenticate): call new
454 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
457 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
459 * tools/rpcgen/rpc_main.c(find_cpp): removed
460 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
461 then try hard-coded paths.
463 2003-03-26 Chip Salzenberg <chip@pobox.com>
465 * debian/changelog: Version 1.0.3-1.
467 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
469 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
470 "const char*", not "char*".
472 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
474 * configure.in (VERSION): Set to "1.0.3".
475 * nfs-utils.spec: Likewise.
476 * configure: Regenerated.
478 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
480 * support/nfs/cacheio.c: New File - support for read/writing
481 to export cache in /proc/rpc/*/channel
482 * support/nfs/Makefile: compile cacheio.c
483 * support/include/nfslib.h: declare cacheio.c functions
484 * support/nfs/nfsexport.c: export and unexport through
485 /proc/rpc/*/channel if possible, as old syscall interface
486 may not survive into 2.6 on all architectures.
488 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
489 Ben Leslie <benno@sesgroup.net>
491 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
492 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
493 former would incorectly ignore defport if the application
494 explicitly set __rpcfdtype. The later is sufficient to avoid the
495 special handling in the case where stdin is an internet socket.
497 * utils/mountd/mountd.c(main): Add 'n' to option list in
498 getopt_long as this is a short form of --no-tcp which want being
501 2003-02-12 Chip Salzenberg <chip@pobox.com>
503 * debian/changelog: Version 1.0.2-2.
505 2002-11-27 Chip Salzenberg <chip@pobox.com>
507 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
508 overflow bug. Reformat per rest of source file.
510 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
512 * utils/exportfs/exports.man: Correct notes about whether the wild
513 card characters match a period. They do.
515 2002-10-15 Juan Gomez <juang@us.ibm.com>
517 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
519 (mountlist_add): Call slink_safe_rename instead of rename.
521 2002-10-11 H.J. Lu <hjl@lucon.org>
523 * support/include/exportfs.h (export_errno): New.
525 * support/nfs/exports.c: Include <errno.h>.
527 (getexportent): Set export_errno to EINVAL for bad option.
528 (parseopts): Likewise.
529 Report the location of the default sync/async option.
531 * utils/exportfs/exportfs.c (main): Initialize export_errno to
532 0. Return export_errno.
534 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
535 NeilBrown <neilb@cse.unsw.edu.au>
537 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
538 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
540 2002-09-16 Chip Salzenberg <chip@pobox.com>
542 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
544 2002-09-15 Chip Salzenberg <chip@pobox.com>
546 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
547 socket, as occurs when run from sshd.
548 * debian/changelog: Version 1.0.2-1.
550 2002-09-12 H.J. Lu <hjl@lucon.org>
552 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
555 2002-09-12 H.J. Lu <hjl@lucon.org>
557 * configure.in: Remove checking svctcp_socket and svcudp_socket.
558 * configure: Regenerated.
560 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
561 (HAVE_SVCUDP_SOCKET): Removed.
563 * support/include/nfslib.h: Undo the last change.
565 2002-09-12 H.J. Lu <hjl@lucon.org>
567 * support/include/nfslib.h (svctcp_socket): Protect it with
569 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
571 2002-09-12 H.J. Lu <hjl@lucon.org>
573 * configure.in (VERSION): Set to "1.0.2".
574 * configure: Regenerated.
575 * nfs-utils.spec: Likewise.
577 2002-09-12 H.J. Lu <hjl@lucon.org>
579 * configure.in: Check svctcp_socket and svcudp_socket.
580 * configure: Regenerated.
582 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
583 (HAVE_SVCUDP_SOCKET): New.
585 * support/include/nfslib.h (svctcp_socket): New.
586 (svcudp_socket): New.
588 * support/nfs/Makefile (OBJS): Add svc_socket.o.
590 * support/nfs/svc_socket.c: New.
592 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
593 svcudp_socket if port is unspecified.
595 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
597 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
598 (killer): New. Signal handler to unregister.
599 (main): Use killer. Call svcudp_socket to get the default
602 2002-09-02 Juan Gomez <juang@us.ibm.com>
603 NeilBrown <neilb@cse.unsw.edu.au>
605 Add -N option to statd to run in notify-only mode.
607 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
608 * utils/statd/statd.man: document -N
609 * utils/statd/statd.c: enabled -N, largely exists but needed to be
610 uncommented and completed
612 2002-09-02 Juan Gomez <juang@us.ibm.com>
613 NeilBrown <neilb@cse.unsw.edu.au>
615 statd to have " -P directory" arg to use that directory instead
616 of /var/lib/nfs. This is useful for fail-over clusters.
618 * utils/statd/statd.h: define SM_DIR etc as var, not const.
619 * utils/statd/statd.c: define "-P" option to set SM_*
621 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
623 * utils/statd/notify.c: ditto.
624 * utils/statd/statd.man: document -P option.
626 2002-08-26 Chip Salzenberg <chip@pobox.com>
628 * utils/nfsd/nfsd.man: Fix typo.
629 * debian/changelog: Version 1.0.1-1.
631 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
633 * let parseopts know if /etc/exports was being read or not,
634 and have it only print "no sync or async" warning in that case.
636 2002-05-06 Tom McNeal <trmcneal@attbi.com>
637 NeilBrown <neilb@cse.unsw.edu.au>
639 * utils/nfsstat/nfsstat.c: Handle differing format for
640 /proc/net/rpc/nfsd between pre and post 2.4.0
642 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
643 James Pearson <james-p@moving-picture.com>
645 * support/nfs/rmtab.c(fendrmtabent): sync changes to
646 storage before returning, as this is critical state
648 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
649 H.J. Lu <hjl@lucon.org>
651 * etc/redhat/nfs: New.
653 2002-04-08 H.J. Lu <hjl@lucon.org>
655 * etc/redhat/nfs.init: Updated.
657 * nfs-utils.spec.in: Updated.
658 * nfs-utils.spec: Regenerated.
660 * utils/mountd/mountd.c (longopts): Fix a typo.
662 * utils/mountd/mountd.man: Updated.
664 2002-04-07 H.J. Lu <hjl@lucon.org>
666 * etc/redhat/nfslock.init (restart): Just do stop and start.
668 * etc/redhat/nfs.init: Fix a typo.
670 2002-04-07 H.J. Lu <hjl@lucon.org>
672 * configure.in (VERSION): Set to "1.0.1".
673 * configure: Regenerated.
674 * nfs-utils.spec: Likewise.
676 * README: Updated for 1.0.1.
678 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
679 H.J. Lu <hjl@lucon.org>
681 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
683 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
684 NeilBrown <neilb@cse.unsw.edu.au>
686 Add support for fsid=nn export option so that device
687 numbers don't go in filehandles.
688 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
689 is set, pass the fsid in-place of the device number
690 * support/nfs/exports.c: parse and print fsid= option.
691 Also check if efname has been set, and use "command line"
692 instead in error messages.
693 Also, use strtol instead of atoi for anon[ug]id= so that
694 bad numbers cause errors.
696 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
697 NeilBrown <neilb@cse.unsw.edu.au>
699 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
700 flag so that "sync" becomes the default.
701 Check that either "sync" or "async" is given as an option
702 and warn if neither are present
703 * utils/exportfs/exports.man: change documentation for "sync"
704 to be documentation for "async".
705 * utils/exportfs/exportfs.man: note that "sync" is the default
709 2002-01-02 Chip Salzenberg <chip@pobox.com>
711 * support/export/nfsctl.c (expsetup): Don't export entries that
712 specify id mappings not supported by the kernel. No extant kernel
713 supports any significant mapping, only 'identity' (i.e. none).
714 When other mappings are supported, this code will need changing.
715 * debian/changelog: Version 1.0-2.
717 2001-12-26 Chip Salzenberg <chip@pobox.com>
719 * nfs-utils.spec (Version): Set to "1.0".
720 * configure.in (VERSION): Likewise.
721 * configure: Regenerated.
723 * debian/changelog: Version 1.0-1.
725 * utils/exportfs/exports.man: Emphasize the need for options to
726 immediately follow client names. Explain that wildcards don't
727 usually work on addresses, but may work when reverse DNS fails.
728 Comment out a leftover TP that was TPing our indentation.
729 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
730 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
731 * debian/changelog: Version 0.3.3-6.
733 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
735 * support/export/client.c(client_lookup): If a host has multiple
736 IP addresses, then we must always use the result of a
737 gethostbyname, not that of gethostbyaddr for exporting
739 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
741 * support/export/client.c (client_lookup): use strcasecmp when
743 * support/nfs/export.c (getexportent): add fromkernel arg and use
744 different defaults as kernels prior to 2.4.11 assume different
745 defaults in /proc/fs/nfs/exports
746 * support/include/nfslib.h, support/export/export.c,
747 support/export/xtab.c: support extra "fromkernel" arg for
750 2001-12-13 Chip Salzenberg <chip@pobox.com>
752 * debian/changelog: Version 0.3.3-5.
754 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
756 * support/nfs/xio.c (xskip): Call `xungetc' instead of
757 `ungetc' to keep x_line more properly.
759 2001-11-26 Chip Salzenberg <chip@pobox.com>
761 * utils/showmount/showmount.c (main): Don't assume that strings
762 starting with digits are IP addresses.
763 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
764 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
765 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
766 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
767 man pages: We check host names *and* addresses with tcpwrappers.
768 * debian/changelog: Version 0.3.3-4.
770 2001-11-21 Chip Salzenberg <chip@pobox.com>
772 * support/nfs/clients.c (cfname): Added: current clients file name.
773 (setnfsclntent): Set it.
774 ({get,end}nfsclntent, syntaxerr): Use it.
775 * support/nfs/exports.c (efname): Added: current exports file name.
776 (setnfsexportent): Set it.
777 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
778 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
779 * debian/changelog: Version 0.3.3-3.
781 2001-10-11 Chip Salzenberg <chip@pobox.com>
783 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
784 * debian/changelog: Version 0.3.3-2.
786 2001-10-08 Chip Salzenberg <chip@pobox.com>
788 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
789 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
790 * utils/mountd/mountd.man: Update paths to /var/lib.
791 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
793 2001-10-06 Preston Brown <pbrown@redhat.com>
795 * utils/nfsstat/nfsstat.man: Updated.
797 2001-09-24 H.J. Lu <hjl@lucon.org>
799 * configure.in (VERSION): Set to "0.3.3".
800 * configure: Regenerated.
801 * nfs-utils.spec: Likewise.
803 * README: Updated for 0.3.3.
805 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
807 Arrange that "exportfs -au" never does DNS lookup:
809 * support/export/client.c (client_lookup) : add "canonical"
810 flag which says that the hostname is known to be canonical, so
813 * support/export/export.c (export_create) : add "canonical"
814 flag to be passed down to client_lookup
815 * support/export/export.c (export_lookup) : Likewise
817 * support/export/xtab.c (xtab_read) : pass appropriate
818 "canonical" flag to export_lookup and export_create:
819 set if reading list of filesystems currently exports
822 * support/export/export.c (export_read) : pass 0 as
823 "canonical" flag to export_lookup and export_create
824 * support/export/rmtab.s (rmtab_read) : Likewise
826 * support/include/exportfs.h : redeclare various routines
827 to have "canonical" flag
829 * utils/exportfs/exportfs.c (main) : redo logic for
830 "-au" to read in what is currently exported, but never even
831 look at what "should" be exported.
833 * utils/exportfs/exportfs.c (unexportall) : remove this
834 routine. Functionality is completely included in
837 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
838 flag to zero in calls to export_lookup and export_create.
841 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
842 Anne Milicia <milicia@missioncriticallinux.com>
844 * support/export/client.c (client_lookup) call gethostbyadd
845 to make sure that we have a canonical hostname, even for
847 * utils/exportfs/exportfs.c (exportfs) Likewise
849 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
851 * support/nfs/exports.c (putexportent): \octal quote any spaces
853 * support/nfs/xio.c (xgettok): recognise double-quote and
854 \octal quoting in path names
855 * utils/exportfs/exports.man: document quoting conventions
858 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
860 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
861 change from 2000-08-02: It causes problems if someone exports
862 to both a hostname and IP addresses. nfs-utils must be
863 consistant about the canonical name that it chooses.
865 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
866 H.J. Lu <hjl@lucon.org>
868 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
870 * utils/statd/statd.c (longopts): Add "name".
871 (usage): Add "-n/--name".
872 (main): Set MY_NAME with "-n/--name".
874 * utils/statd/state.c (change_state): Set MY_NAME only if it
877 * utils/statd/statd.man: Updated for "-n/--name".
879 2001-07-26 H.J. Lu <hjl@lucon.org>
881 * nfs-utils.spec (Release): Set to 8.
883 2001-07-25 H.J. Lu <hjl@lucon.org>
885 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
888 2001-06-27 H.J. Lu <hjl@lucon.org>
890 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
892 2001-06-27 H.J. Lu <hjl@lucon.org>
894 * utils/rquotad/rquota_server.c: Don't call statfs () for
895 the block size. Use BLOCK_SIZE instead.
897 2001-06-27 H.J. Lu <hjl@lucon.org>
899 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
900 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
902 * configure.in (enable_nfsv3): Set to yes by default.
903 (--enable-rquotad): Added
904 (AC_PROG_CXX): Removed.
905 (AC_OUTPUT): Add utils/Makefile.
906 (CC_FOR_BUILD): Renamed from BUILD_CC.
907 * configure: Regenerated.
909 * utils/Makefile: Removed.
911 * utils/Makefile.in: New.
913 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
915 (CC_FOR_BUILD): Renamed from BUILD_CC.
916 * nfs-utils.spec: Regenerated.
918 2001-06-15 Chip Salzenberg <chip@debian.org>
920 * debian/changelog: Version 0.3.2-2.
921 * debian/*.init: Minor fixes.
923 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
925 * etc/nodist/nfs-server: Fixed a bug where the script would
926 disable mounts from NFSv3 clients if NFSv3 is present.
928 2001-06-05 H.J. Lu <hjl@lucon.org>
930 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
931 (main): Support --descriptors/-o to set the limit of the number
932 of open file descriptors.
935 * utils/mountd/mountd.man: Updated for --descriptors/-o.
937 2001-06-04 H.J. Lu <hjl@lucon.org>
939 * nfs-utils.spec (Release): Set to 6.
941 2001-05-28 H.J. Lu <hjl@lucon.org>
943 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
944 * utils/mountd/mountd.c (main): Likewise.
945 * utils/nfsd/nfsd.c (main): Likewise.
946 * utils/rquotad/rquota_svc.c (main): Likewise.
948 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
950 * support/export/client.c (client_check): Check IP address
953 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
955 * support/export/client.c (client_gettype): Treat `*' as
958 2001-04-22 H.J. Lu <hjl@lucon.org>
960 * nfs-utils.spec.in: Fix a typo.
961 * nfs-utils.spec: Regenerated.
963 2001-04-21 H.J. Lu <hjl@lucon.org>
965 * nfs-utils.spec.in: Fix cross build.
966 * nfs-utils.spec: Regenerated.
969 2001-04-18 H.J. Lu <hjl@lucon.org>
971 * nfs-utils.spec.in: Support cross build.
972 * nfs-utils.spec: Regenerated.
978 * config.mk.in (BUILD_CC): New.
979 (CC): Set to $(BUILD_CC) if BUILD is defined.
982 (RANLIB): Set to @RANLIB@.
984 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
985 * configure: Regenerated.
987 * tools/rpcgen/Makefile (BUILD): Set to true.
989 2001-04-01 Chip Salzenberg <chip@valinux.com>
991 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
992 redundant, and sometimes broken, declaration of svc_fdset;
994 * support/nfs/rpcmisc.c (closedown): Likewise.
996 2001-03-21 H.J. Lu <hjl@lucon.org>
998 * nfs-utils.spec: Regenerated.
1001 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
1003 * utils/statd/statd.c (main): make sure file descriptors 0-2
1004 are open to /dev/null.
1006 2001-03-21 H.J. Lu <hjl@lucon.org>
1008 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
1009 * support/nfs/rpcmisc.c: Likewise.
1010 * utils/rquotad/rquota_svc.c: Likewise.
1011 * utils/rquotad/rquotad.man: Likewise.
1012 * utils/statd/Makefile: Likewise.
1013 * utils/statd/rmtcall.c: Likewise.
1014 * utils/statd/simulate.c: Likewise.
1015 * utils/statd/statd.c: Likewise.
1016 * utils/statd/statd.man: Likewise.
1018 2001-03-11 H.J. Lu <hjl@lucon.org>
1020 * configure.in (RELEASE): New. Default to 1, set by
1021 --with-release=XXX. Substitute nfs-utils.spec.
1022 * nfs-utils.spec.in (Release): Set to @RELEASE@.
1023 * configure: Regenerated.
1024 * nfs-utils.spec: Likewise.
1026 2001-03-11 H.J. Lu <hjl@lucon.org>
1028 * utils/rquotad/rquotad.man: Fix a typo.
1030 2001-03-11 H.J. Lu <hjl@lucon.org>
1032 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
1033 * support/nfs/rpcmisc.c: Likewise.
1034 * utils/rquotad/rquota_svc.c: Likewise.
1035 * utils/rquotad/rquotad.man: Likewise.
1036 * utils/statd/Makefile: Likewise.
1037 * utils/statd/rmtcall.c: Likewise.
1038 * utils/statd/simulate.c: Likewise.
1039 * utils/statd/statd.c: Likewise.
1040 * utils/statd/statd.man: Likewise.
1042 2001-03-10 H.J. Lu <hjl@lucon.org>
1044 * configure.in (VERSION): Set to "0.3.2".
1045 * configure: Regenerated.
1046 * nfs-utils.spec: Likewise.
1048 * README: Updated for 0.3.2.
1050 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
1052 * utils/rquotad/rquotad.man: Updated for -p.
1053 * utils/statd/statd.man: Likewise.
1055 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
1057 * support/nfs/rpcmisc.c: export makesock()
1059 * support/include/rpcmisc.h (makesock): Declared.
1061 * utils/rquotad/rquota_svc.c: added longopts, added support for
1062 specifying the port to bind to on the command line.
1064 * utils/statd/statd.c: ditto, also specify port used for
1065 outgoing connections.
1066 (do_regist): Removed.
1068 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
1069 get_socket. Make it extern.
1071 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
1072 instead of do_regist.
1074 * utils/statd/Makefile (LIBS): link with our own libnfs
1076 2001-03-09 H.J. Lu <hjl@lucon.org>
1078 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
1079 * etc/nodist/nfs-client: Likewise.
1081 2001-02-26 Chip Salzenberg <chip@valinux.com>
1083 * debian/changelog: Version 0.3.1-1.
1084 * Mention upstream source and license in copyright file.
1085 * Add build-Depends for debhelper and libwrap0-dev.
1087 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
1089 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
1090 * etc/nodist/nfs-client: Likewise.
1092 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
1094 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
1097 2001-02-17 Patrick J. LoPresti <patl@curl.com>
1099 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
1102 2001-02-14 H.J. Lu <hjl@lucon.org>
1104 * utils/statd/rmtcall.c: Include <time.h>.
1105 * utils/statd/svc_run.c: Likewise.
1107 2001-02-14 H.J. Lu <hjl@lucon.org>
1109 * configure.in (VERSION): Set to "0.3.1".
1110 * configure: Regenerated.
1111 * nfs-utils.spec: Likewise.
1113 * README: Updated for 0.3.1.
1115 2001-02-14 H.J. Lu <hjl@lucon.org>
1117 * support/nfs/rpcmisc.c: Include <time.h>.
1119 2001-02-14 Chip Salzenberg <chip@valinux.com>
1121 * debian/control: Change priority of nhfsstone package to 'extra'.
1123 2001-02-12 Chip Salzenberg <chip@valinux.com>
1125 * debian/changelog: Version 0.3-2.
1127 2001-02-02 H.J. Lu <hjl@lucon.org>
1129 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
1131 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
1132 out SO_SNDBUF/SO_RCVBUF.
1133 (rpc_init): Remove bufsize and remove socksz in calls to
1136 * utils/mountd/mountd.c (main): Remove bufsize in calls to
1139 2001-01-28 Chip Salzenberg <chip@valinux.com>
1141 * debian/changelog: Version 0.3-1.
1143 2001-01-25 H.J. Lu <hjl@lucon.org>
1145 * configure.in (VERSION): Set to "0.3".
1146 * configure: Regenerated.
1147 * nfs-utils.spec: Likewise.
1149 * README: Updated for 0.3.
1151 2001-01-25 H.J. Lu <hjl@lucon.org>
1153 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
1155 2001-01-20 Chip Salzenberg <chip@valinux.com>
1157 * support/include/xio.h (xgetc): Declare to return int.
1158 * support/nfs/xio.c (xgetc): Return int.
1159 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
1160 * utils/statd/statd.c (main): Use int for value of getopt.
1161 * debian/changelog: Version 0.2.1-5.
1163 2000-12-10 Chip Salzenberg <chip@valinux.com>
1165 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
1166 program and procedure numbers of kernel lockd's callback. Also,
1167 besides the old (and broken) procedure #24, allow #16 per Trond.
1169 2000-12-03 Chip Salzenberg <chip@valinux.com>
1171 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
1172 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
1173 * debian/changelog: Version 0.2.1-4.
1175 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
1177 * utils/mountd/auth.c (auth_authenticate): Log the bad path
1180 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
1182 * support/nfs/exports.c (getexportent): Check for host name
1183 without option, or options without hostname, and print a warning,
1184 as this is most likely a typo.
1186 2000-11-19 Chip Salzenberg <chip@valinux.com>
1188 * debian/control: Add dependency on portmap.
1189 * debian/changelog: Version 0.2.1-3.
1191 2000-11-10 H.J. Lu <hjl@lucon.org>
1193 * nfs-utils.spec.in: Don't use libtool.
1194 Add ChangeLog and COPYING to doc.
1195 * nfs-utils.spec: Rebuild.
1197 2000-11-09 H.J. Lu <hjl@lucon.org>
1199 * etc/redhat/nfs.init (start): Back out the last change.
1201 2000-11-09 H.J. Lu <hjl@lucon.org>
1203 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
1204 TCP is not supported by kernel.
1206 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
1208 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
1209 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
1211 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
1213 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
1215 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
1216 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
1217 callbacks to local lockd.
1219 2000-10-18 Scott McDermott <mcdermot@questra.com>
1221 * utils/exportfs/exports.man: Updated for CIDR netmask.
1223 2000-10-17 Scott McDermott <mcdermot@questra.com>
1225 * support/export/client.c (client_init): Support CIDR netmask
1228 2000-10-11 H.J. Lu <hjl@lucon.org>
1230 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1231 * configure: Rebuilt.
1233 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
1235 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1236 "/var/lib/nfs/state".
1238 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
1240 * utils/statd/statd.h (run_mode): New global bitmask of runtime
1241 behaviors: fg/bg, logging, etc.
1242 * utils/statd/statd.c: New command line options: -V -h -? -d .
1243 * utils/statd/statd.man: Update for changes to statd.
1245 * utils/statd/log.h (log_init): Remove parameter of function; use
1246 global variable "name_p" instead.
1247 * utils/statd/log.c: Add support for logging to stderr.
1249 * utils/statd/notlist.c: Partially rewrite notify list handling
1250 functions. Eliminate run-off-end-of-list bug when calling
1251 nlist_insert_timer. Add lots of comments.
1253 2000-09-27 H.J. Lu <hjl@lucon.org>
1255 * README: Updated for RedHat 7.0.
1257 2000-09-27 H.J. Lu <hjl@lucon.org>
1259 * nfs-utils.spec: Rebuild.
1261 2000-09-27 H.J. Lu <hjl@lucon.org>
1263 * README: Updated for 0.2.1.
1265 2000-09-27 H.J. Lu <hjl@lucon.org>
1267 * nfs-utils.spec.in: Updated to use rpm macros and support
1270 2000-09-25 H.J. Lu <hjl@lucon.org>
1272 * configure.in (VERSION): Set to "0.2.1".
1273 * configure: Regenerated.
1274 * nfs-utils.spec: Updated.
1276 2000-09-25 H.J. Lu <hjl@lucon.org>
1278 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1279 non-NULL hostent is always returned.
1281 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1283 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1284 have an executable (i.e. kernel threads)
1286 2000-09-01 H.J. Lu <hjl@lucon.org>
1288 * README: Updated for 0.2.
1290 2000-09-01 Jay Weber <jweber@valinux.com>
1292 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1293 supporting version 3 of nfs if available, else it will fall back to
1294 version 2 support only.
1296 2000-08-30 H.J. Lu <hjl@lucon.org>
1298 * configure.in (VERSION): Set to "0.2".
1299 * configure: Regenerated.
1300 * nfs-utils.spec: Updated.
1302 2000-08-25 H.J. Lu <hjl@lucon.org>
1304 * support/misc/tcpwrapper.c (logit): Modify the log output.
1306 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1308 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1309 utils/mountd/mountd.man: updated
1311 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1312 * utils/rquotad/Makefile: fix comment
1314 * support/misc/tcpwrapper.c (logit): added comment about waiting
1315 for the children after fork()
1317 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1318 zombies behind (from logit()'s fork)
1319 * utils/rquotad/rquota_svc.c (main): ditto
1320 * utils/statd/statd.c (main): ditto
1322 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1323 to check_default instead of 0, for prognum
1325 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1326 to check_default instead of 0, for prognum
1328 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1329 HAVE_TCP_WRAPPER is defined.
1330 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1331 defined. Reject an RPC call if check_default () fails.
1333 2000-08-25 H.J. Lu <hjl@lucon.org>
1335 * support/include/tcpwrapper.h: New for the tcp wrapper
1337 * support/misc/Makefile: Likewise.
1338 * support/misc/from_local.c: Likewise.
1339 * support/misc/tcpwrapper.c: Likewise.
1341 * aclocal.m4 (AC_TCP_WRAPPER): New.
1342 * configure.in: Use it. Substitute LIBWRAP.
1343 * configure: Rebuilt.
1345 * config.mk.in (LIBNSL): New.
1346 (LIBWRAP): Likewise.
1348 * support/Makefile (SUBDIRS): Add misc.
1350 * support/lib/Makefile (LIBS): Add libmisc.a.
1352 * utils/rquotad/Makefile (LIBS): Add
1354 -lmisc $(LIBWRAP) $(LIBNSL)
1356 * utils/statd/Makefile (LIBS): Likewise.
1358 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1359 HAVE_TCP_WRAPPER is defined.
1360 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1361 defined. Reject an RPC call if check_default () fails.
1363 * utils/statd/statd.c: Include "tcpwrapper.h" if
1364 HAVE_TCP_WRAPPER is defined.
1365 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1366 check_default () before calling sm_prog_1 (). Define it as
1367 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1369 2000-08-25 Chip Salzenberg <chip@valinux.com>
1371 * debian/*: Complete Debian build support.
1372 * etc/debian/*: Remove.
1374 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1376 * support/export/client.c(client_check): removed the "dot+1" as a
1377 ypdomain argument to innetgr as this is entirely bogus.
1378 It should always be NULL.
1380 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1382 * support/export/xtab.c(xtab_read): introduce new mode for
1383 reading xtab. i.e. a list of exports that might be known to the
1384 kernel, or might not. These are flagged as m_exported == -1
1385 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1386 value "2" for xtab, meaning don't trust this too much.
1387 * support/include/exportfs.h(struct mexport): changed m_exported
1388 from one bit to an int so that it can hold new value
1389 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1390 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1391 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1394 * support/nfs/xio.c(xflock): added O_CREAT when getting
1395 a write lock so that missing files aren't fatal.
1397 * etc/debian/nfs-common: new file from "potato"
1398 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1400 2000-08-09 H.J. Lu <hjl@lucon.org>
1402 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1403 startup to ensure all existing clients work fine.
1405 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1406 to xtab_read () for reading _PATH_XTAB.
1408 2000-08-02 H.J. Lu <hjl@lucon.org>
1410 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1411 avoid the reverse name lookup.
1413 2000-07-04 H.J. Lu <hjl@lucon.org>
1415 * utils/statd/log.c: Include <stdlib.h> for exit ().
1417 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1420 2000-07-04 H.J. Lu <hjl@lucon.org>
1422 * configure.in (VERSION): Set to "0.1.9.1".
1423 * configure: Regenerated.
1424 * nfs-utils.spec: Updated.
1428 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1430 * support/export/hostname.c (hostent_dup): Handle the NULL
1433 2000-07-03 H.J. Lu <hjl@lucon.org>
1435 * README: Update the util-linux requirement.
1437 2000-07-03 H.J. Lu <hjl@lucon.org>
1439 * configure.in (VERSION): Set to "0.1.9".
1440 * configure: Regenerated.
1441 * nfs-utils.spec: Updated.
1445 2000-07-03 H.J. Lu <hjl@lucon.org>
1447 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1448 stop to ensure all clients can still access the server
1449 before it is shutdown.
1451 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1453 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1454 calls with format string.
1456 2000-06-28 Chip Salzenberg <chip@valinux.com>
1458 * utils/statd/log.c (log): Call syslog with format string.
1460 2000-06-27 H.J. Lu <hjl@lucon.org>
1462 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1463 instead of OPEN_MAX.
1465 2000-06-27 H.J. Lu <hjl@lucon.org>
1469 2000-06-27 H.J. Lu <hjl@lucon.org>
1471 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1472 startup to ensure all existing clients are exported.
1474 * configure.in (VERSION): Set to "0.1.8.2".
1475 * configure: Regenerated.
1476 * nfs-utils.spec: Updated.
1478 2000-06-06 H.J. Lu <hjl@lucon.org>
1480 * configure.in (VERSION): Set to "0.1.8.1".
1481 * configure: Regenerated.
1482 * nfs-utils.spec: Updated.
1484 2000-06-06 H.J. Lu <hjl@lucon.org>
1486 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1487 to "struct sockaddr_in *" for glibc 2.2.
1488 (mount_umnt_1_svc): Likewise.
1489 (mount_umntall_1_svc): Likewise.
1490 (mount_export_1_svc): Likewise.
1491 (mount_exportall_1_svc): Likewise.
1492 (mount_pathconf_2_svc): Likewise.
1493 (get_rootfh): Likewise.
1495 2000-06-04 H.J. Lu <hjl@lucon.org>
1497 * etc/redhat/nfs.init: Fix a typo in comment.
1499 2000-05-31 H.J. Lu <hjl@lucon.org>
1501 * configure.in (VERSION): Set to "0.1.8".
1502 * configure: Regenerated.
1503 * nfs-utils.spec: Updated.
1507 2000-05-31 H.J. Lu <hjl@lucon.org>
1509 * configure.in (VERSION): Set to "0.1.7.5".
1510 * configure: Regenerated.
1511 * nfs-utils.spec: Updated.
1513 * support/include/nfslib.h (exportent): Add a new field,
1514 r_count, to count the number of mounts from a client.
1515 (getrmtabent): Take a new argument for position in file.
1516 (putrmtabent): Likewise.
1517 (fgetrmtabent): Likewise.
1518 (fputrmtabent): Likewise.
1519 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1520 for position in file.
1521 (fgetrmtabent): Likewise.
1522 (putrmtabent): Likewise.
1523 (fputrmtabent): Likewise.
1525 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1528 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1529 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1530 and fputrmtabent ().
1531 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1532 (mountlist_del): Likewise.
1533 (mountlist_del_all): Likewise.
1534 (mountlist_list): Likewise.
1536 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1537 for the existing entry and initialize "r_count" to 1.
1538 (mountlist_del): Decrement "r_count".
1540 2000-05-18 H.J. Lu <hjl@lucon.org>
1542 * configure.in (VERSION): Set to "0.1.7.4".
1543 * configure: Regenerated.
1544 * nfs-utils.spec: Updated.
1546 2000-05-18 H.J. Lu <hjl@lucon.org>
1548 * etc/redhat/nfs.init (restart): Just do stop and start.
1550 2000-05-09 Jay Weber <jweber@valinux.com>
1552 * utils/rquotad/hasquota.c: added support for ext3 recognition
1554 * utils/rquotad/mntent.h: Likewise.
1556 2000-05-01 H.J. Lu <hjl@lucon.org>
1558 * configure.in (VERSION): Set to "0.1.7.3".
1559 * configure: Regenerated.
1560 * nfs-utils.spec: Updated.
1562 2000-05-01 H.J. Lu <hjl@lucon.org>
1564 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1565 mounting poins in /etc/fstab.
1567 2000-05-01 H.J. Lu <hjl@lucon.org>
1569 * configure.in (VERSION): Set to "0.1.7.2".
1570 * configure: Regenerated.
1571 * nfs-utils.spec: Updated.
1573 2000-05-01 H.J. Lu <hjl@lucon.org>
1575 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1576 to check for the mounting point.
1578 2000-04-29 Chip Salzenberg <chip@valinux.com>
1579 Neil Brown <neilb@cse.unsw.edu.au>
1581 * Really re-use RPC ports.
1582 (Fixes earlier patch. Sorry, Neil.)
1584 2000-04-26 H.J. Lu <hjl@lucon.org>
1586 * configure.in (VERSION): Set to "0.1.7.1".
1587 * configure: Regenerated.
1588 * nfs-utils.spec: Updated.
1590 2000-04-26 H.J. Lu <hjl@lucon.org>
1592 * etc/redhat/nfslock.init: Check if lockd exits before killing
1595 2000-04-25 H.J. Lu <hjl@lucon.org>
1597 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1599 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1601 * support/nfs/exports.c (parsesquash): Correctly set the
1604 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1606 * support/include/nfs/nfs.h: Removed knowledge of internals of
1607 kernel filehandles (which can change) and defined nfs_fh_size
1608 which has variable size
1610 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1611 get variable sized file handles, and change getfh{,old} to
1614 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1617 * tools/Makefile, tools/nlmtest/nlmtest.c
1618 nlmtest.c depended on internel format of file handles, so now
1622 2000-03-12 Chip Salzenberg <chip@valinux.com>
1623 Neil Brown <neilb@cse.unsw.edu.au>
1625 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1627 2000-03-13 H.J. Lu <hjl@lucon.org>
1629 * etc/redhat/nfsd.init: Updated.
1631 * etc/redhat/nfslock.init: Updated.
1633 * nfs-utils.spec.in: Updated.
1635 * configure.in (VERSION): Set to "0.1.7".
1636 * configure: Regenerated.
1637 * nfs-utils.spec: Updated.
1641 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1643 * utils/exportfs/exportfs.c (dump): Included printing of
1644 nohide, no_subtree_check, and insecure_locks
1646 2000-02-26 Chip Salzenberg <chip@valinux.com>
1648 * config.mk.in (INSTALLSUID): Strip ("-s").
1649 (INSTALLSCRIPT): Define.
1650 * utils/nhfsstone/Makefile: Use it.
1652 2000-02-26 Chip Salzenberg <chip@valinux.com>
1654 * utils/lockd/lockd.man: Create.
1655 * utils/lockd/Makefile: Install it.
1656 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1657 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1658 * utils/nhfsstone/Makefile: Install the helper scripts and
1660 * utils/exportfs/exports.man: Fix typo.
1662 2000-02-26 Chip Salzenberg <chip@valinux.com>
1664 * support/nfs/xio.c (xungetc): Decrement line number when
1665 character to unget is newline. Make first parameter int, so
1666 it can distinguish EOF from \377.
1667 * support/include/xio.h (xungetc): Adjust prototype.
1669 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1671 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1672 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1673 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1675 This is for supporting a new option introduced in 2.3.42
1677 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1679 * COPYING: Added. GPL.
1681 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1683 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1684 to get the block size.
1686 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1688 * nfs-utils.spec.in: Update ftp site.
1690 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1692 * README: Update hostnames.
1694 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1696 * configure.in (VERSION): Set to "0.1.6".
1697 * configure: Regenerated.
1698 * nfs-utils.spec: Updated.
1702 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1704 * utils/mountd/auth.c (auth_authenticate_internal): Call
1705 xstrdup for hostname before passing it to gethostbyname.
1707 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1710 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1712 * README: Update the mailing list address.
1714 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1716 * configure.in (VERSION): Set to "0.1.5".
1717 * configure: Regenerated.
1718 * nfs-utils.spec: Updated.
1722 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1724 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1727 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1729 * configure.in (VERSION): Set to "0.1.4".
1730 * configure: Regenerated.
1731 * nfs-utils.spec: Updated.
1735 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1737 * nfs-utils.spec.in: New file.
1739 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1741 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1743 1999-12-04 Chip Salzenberg <chip@valinux.com>
1745 * config.mk.in: Use $(CC) as set by configure.
1747 1999-12-04 Chip Salzenberg <chip@valinux.com>
1749 * rules.mk: Call $(MAKE) with $(MFLAGS).
1751 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1753 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1754 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1756 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1758 * nfs-utils.spec (Version): Set to 0.1.3.
1760 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1761 * configure: Regenerated.
1765 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1767 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1768 (_PATH_DEV_DSK): Likewise.
1769 (getquotainfo): Match the mounting point from /etc/mtab
1770 instead of calling nfsmount_to_devname ().
1772 1999-11-24 Chip Salzenberg <chip@valinux.com>
1774 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1775 to the new port 24 as well as the historical port 100021.
1777 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1779 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1780 stopping nfsd to stop spurious ESTALE on server shutdown.
1782 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1784 * support/nfs/exports.c (parseopts): make copy of opt string
1785 before 'nul'ing out commas so that
1787 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1789 applies both options to both exports.
1791 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1793 * README: Fix a few typos.
1795 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1797 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1798 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1799 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1800 (unsigned_dec): Likewise.
1801 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1802 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1804 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1806 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1807 (unsigned_dec): Likewise.
1808 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1809 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1810 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1812 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1814 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1815 * support/nfs/exports.c: added {no_,}subtree_check and changed
1817 * utils/exportfs/exports.man: added no_subtree_check and nohide
1818 and removed irrelevant stuff from unfsd.
1819 * support/export/rmtab.c: rmtab_read didn't quite do the right
1820 thing if a pathname from rmtab was a subdirectory of an export-point
1822 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1824 * README: Updated ftp site.
1826 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1828 * nfs-utils.spec (Version): Set to 0.1.2.
1830 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1831 * configure: Regenerated.
1835 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1837 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1838 (auth_authenticate_internal): Check for NULL return on forward
1840 (auth_authenticate): Handle "no_forward_dns".
1842 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1844 * Version 0.1.1 released.
1846 * nfs-utils.spec (Version): Set to 0.1.1.
1848 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1849 * configure: Regenerated.
1853 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1855 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1857 (Provides): Likewise.
1859 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1861 * Initial version 0.1 released.
1863 * configure.in (VERSION): Set to "nfs-utils 0.1".
1864 * configure: Regenerated.
1866 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1868 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1870 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1871 kernel only if the entry is exported to kernel.
1872 (unexportfs): Likewise.
1874 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1876 1/ utils/mountd/rmtab.c::mountlist_list
1878 This routine stats the rmtab file to see if it has changed. It
1879 if has, it cleans up it's old copy of the data. But it still
1880 always re-read the file, thus returning multiple copies of the
1881 data on consecutive calls without intervening changes.
1882 "Showmount -a" didn't show this as it appears to sort/unique the
1883 data, but 'strace showmount -a' showed that the size of the
1884 datagram that it received grew.
1886 I moved the getrmtabent loop inside the mtime test.
1888 2/ utils/exportfs/exportfs.c
1890 Many routines used the m_path field of m_export instead of
1892 According to the comment in nfslib.h, m_path should only
1893 be used when processing a mount request (i.e. in mountd)
1894 where the mountpoint may be a subdirectory of the export point.
1896 I changed all occurances of m_path to e_path
1899 3/ utils/exportfs/exportfs.c:main
1901 extra arguments are not meaningful with -a or -r, but
1902 exportfs accepted them and then ignored the -a/-r, expect that
1903 -r would still unexport everything first.
1905 I generate an error if there are extra args and f_all
1907 4/ utils/exportfs/exportfs.c:main
1908 extract dump out as a special case.
1910 5/ utils/exportfs/exportfs.c
1911 made f_reexport a local variable.
1914 6/ utils/exportfs/exportfs.c:main,exportall
1916 support/export/rmtab.c
1917 only mayexport on newly created entries, don't set xtabent at all
1919 7/ support/include/nfslib.h
1921 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1923 8/ support/export/xtab.c
1925 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1929 9/ support/export/xtab.c
1931 xtab_mount_read now sets m_exported, and NOT
1932 xtabent and mayexport
1934 removed the append arguement from xtab_write as it was
1937 added is_export flag to xtab_write similar to xtab_read
1938 if is_export, only write entries with m_xtabent or m_addxtab
1939 if !is_export, only write entries with m_exported
1941 10/ support/export/export.c::export_allowed_internal
1943 added test for exp->m_mayexport, as the export tree
1944 may have entries that are no longer allowed to be exported,
1945 and so shouldn't caused deduced exported by rmtab_read
1947 11/ utils/exportfs/exportfs.c::main
1948 error checking of flags.
1950 12/ utils/exportfs/exportfs.c
1952 total rewrite of export and unexport logic.
1954 - build an exportslist of valid exports, based on
1955 current etab file and arguments,
1956 - read rmtab to instantiate relevant wild card entries
1957 - read etab to find out what is currently exported
1958 - synchronise intention with reality
1959 - write out etab and xtab
1962 discard the m_addxtab flag
1963 add m_changed flag so we know what to report in exportfs
1965 14/ utils/mountd/auth.c:auth_authenticate
1967 the value returned by gethostbyaddr was trusted.
1969 It now follows this with a call to gethostbyname
1970 and checks that the address is in the list.
1972 15/ support/export/nfsctl.c::cltsetup,expsetup
1974 force client names to lowercase as kernel is
1977 16/ quietened a few compiler warnings
1979 17/ support/export/client:client_lookup
1981 look for pre-existing client with same name before creating
1984 18/ support/include/exportfs.h
1986 The ordering of the MCL_* enum was:
1987 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1989 I moved ANONYMOUS to the end.
1991 The ordering is significant when an export entry is being searched for to
1992 match a given address. There are two problems with ANONYMOUS being first.
1994 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1995 then the ro case will always be found first and the privileged hosts won't get
1997 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1998 export entry for the specific host, and writes it to xtab.
1999 When another request comes from the same host, the ANONYMOUS entry is found again,
2000 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
2001 again. If causes bloat in xtab.
2003 Putting ANONYMOUS at the end reflects it's nature as a catch-all
2005 19/ utils/exportfs/exportfs.man
2006 many updates to the man page to reflect changes to the code
2008 -----------------------
2014 - allow exportfs to modify rmtab file
2015 - make sure kernel never gets two clients with same IP address
2016 - possible kernel should reject
2017 - needs to be some way to lookup client in kernel by IP address
2018 - maybe get kernel to do case-insensitive comparisons on client names
2019 - remove unused clients from kernel
2021 - change etab to xtab and xtab to xtab.active
2023 - timestamp and/or statd-stamp in rmtab for removing old entries.
2025 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
2027 * linux-nfs: New directory.
2028 * linux-nfs/ChangeLog: Moved from ..
2029 * linux-nfs/INSTALL: Likewise.
2030 * linux-nfs/KNOWNBUGS: Likewise.
2031 * linux-nfs/NEW: Likewise.
2032 * linux-nfs/README: Likewise.
2033 * linux-nfs/THANKS: Likewise.
2034 * linux-nfs/TODO: Likewise.
2036 * Starting from knfsd 1.4.7.