1 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
2 Remove the rpcsec_gss code and rely on an external library instead.
4 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
5 *utils/mountd/mountd.c:
6 mountd currently always returns AUTH_NULL and AUTH_SYS as the
7 allowable flavors in mount replies. We want it to also return gss
8 flavors when appropriate. For now as a hack we just have it always
9 return the KRB5 flavors as well.
11 *utils/mountd/cache.c:
13 When attempting to mount an NFSv4 pseudofilesystem (fsid=0) and the
14 actual exported directory does not exist on the server, rpc.mountd
15 doesn't check the directory exists (when fsidtype=1, i.e. using fsid,
16 but does check for fsidtype=0, i.e. using dev/ino). The non-existent
17 exported directory path with fsid=0 is written to the kernel via
18 /proc/net/rpc/nfsd.export/channel, which leads to path_lookup() to
19 return ENOENT (seems appropriate). Unfortunately, the new_cache
20 approach ignores errors returned when writing via the channel file so
21 that particular error is lost and the mount request is silently ignored.
23 Assuming it doesn't make sense to revamp the new_cache/up-call method to
24 not ignore returned errors, it seems appropriate to fix the case where
25 rpc.mountd doesn't check for the existence of an exported directory with
26 fsid= semantics. The following patch does this by moving the stat() up
27 so it is done for both fsidtype's. I'm not certain whether the other
28 tests need to be executed for fsidtype=1, but it doesn't appear to hurt
29 [Not exactly true: the comparison of inode numbers caused problems so
30 now it's kept for fsidtype=0 only].
32 Would it be also desirable to log a warning for every error, if any,
33 returned by a write to any of the /proc/net/rpc/*/channel files which
34 would otherwise be ignored (maybe under a debug flag)?
36 * gssd/mountd/svcgssd: Changes gssd, svcgssd, and mountd to ignore a
37 SIGHUP rather than dying.
39 * many: Remove the gssapi code and rely on an external library instead.
41 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
42 * utils/exportfs/exports.man: Document the "crossmnt" export export option
43 * utils/gssd/krb5_util.c:
44 Add better debugging and partially revert the function
45 check for gss_krb5_ccache_name.
47 For MIT Kerberos releases up to and including 1.3.1, we *must*
48 use the routine gss_krb5_ccache_name to get the K5 gssapi code
49 to use a different credentials cache.
51 For releases 1.3.2 and on, we want to use the KRB5CCNAME
52 environment variable to tell it what to use.
53 (A problem was reported where 1.3.5 was being used, our
54 code was using gss_krb5_ccache_name, but the underlying
55 code continued to use the first (or default?) credentials
56 cache. Switching to using the env variable fixed the problem.
57 I cannot recreate this problem.
59 *utils/gssd/krb5_util.c:
60 Andrew Mahone <andrew.mahone@gmail.com> reported that reiser4
61 always has DT_UNKNOWN. He supplied patch to move the check
62 for regular files after the stat() call to correctly find
63 ccache files in reiser4 filesystem.
65 Also change the name comparison so that the wrong file is
66 not selected when the substring comparison is done.
68 *utils/gssd/krb5_util.c:
69 Limit the set of encryption types that can be negotiated by
70 the Kerberos library to those that the kernel code currently
73 This should eventually query the kernel for the list of
76 *utils/gssd/gss_util.c, utils/svcgssd/svcgssd_main_loop.c:
77 Print more information in error messages to help debugging failures.
79 *utils/svcgssd/svcgssd_proc.c: Increase token buffer size and
80 update error handling so that a response is always sent.
82 *utils/svcgssd/svcgssd_proc.c: Add support to retrieve
86 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
88 Consolidate some of the Kerberos checking instead of repeating
89 the same things for MIT and Heimdal.
90 Also adds more checks to distinguish 32-bit from 64-bit
92 Fix svcgssd Makefile so make TOP=../../ works correctly there.
93 Enable running a modern autoheader.
94 * utils/gssd/gss_oids.c: Use correct OID value for SPKM-3
95 * utils/gssd/gss_util.c: Fix build with older MIT releases that do not define GSS_C_NT_HOSTBASED_SERVICE
96 * utils/gssd/write_bytes.h, support/include/gssapi/gssapi.h:
97 Length of gss_buffer_desc is a size_t which is 64-bits on a
98 64-bit machine. Kernel code expects 32-bit integer for length.
99 Coerce length value into a 32-bit value when reading from or
100 writing to the kernel.
101 Change gssapi.h to use datatype size values obtained from
102 configure rather than hard-coded values.
103 * utils/idmapd/idmapd.c: The EV_INIT check here was wrong, and was
104 causing idmapd to become unresponsive to server requests after
106 * utils/idmapd/idmapd.c: Idmapd should flush the server id<->name
107 caches when its started.
109 2005-04-12 G. Allen Morris III <gam3@gam3.net>
111 * All Makefile: added TOP as needed for easier compile.
113 * utils/nfsstat/nfsstat.c: added NFS V4 support; added the -m
114 option; Added -2, -3, and -4 options; changed -a option to -v
115 option; added long options; changed default output to not
116 show V2 NFS statistics unless used.
118 * utils/nfsstat/nfsstat.man: Documented above changes; changed
119 authors email address; added BUGS section.
121 2005-04-07 Chip Salzenberg <chip@pobox.com>
123 * debian/changelog: Version 1.0.7-2.
125 2005-04-06 Chip Salzenberg <chip@pobox.com>
127 * config.guess, config.sub: Update.
129 * support/rpc/svc_auth_gss.c (_svcauth_gss): Avoid using a cast as
130 an lvalue, as it is non-portable.
132 * support/nfs/exports.c (parseopts): Accept "acl" option to mean
133 ~NFSEXP_NOACL, and "no_acl" to mean NFSEXP_NOACL.
134 (putexportent): Report NFSEXP_NOACL as "no_acl", and ~NFSEXP_NOACL
136 * utils/exportfs/exportfs.c (dump): Report NFSEXP_NOACL as
138 * utils/exportfs/exports.man: Document "no_acl".
140 2005-03-14 NeilBrown <neilb@cse.unsw.edu.au>
141 Denis Vlasenko <vda@ilport.com.ua>
142 * support/export/client.c(client_init and client_gettype):
143 treat N.N.N.N as a special case of MCL_SUBNETWORK instead of
146 2005-03-06 G. Allen Morris III <gam3@gam3.net>
147 * support/nfs/cacheio.c(readline): Could not read lines greater
148 than 128 bytes. [1157791]
149 * utils/exportfs/exports.man: Added a SEE ALSO section and
150 fixed 2 typos. [1018450]
152 2005-02-28 Trond Myklebust <trond.myklebust@fys.uio.no>
153 * utils/statd/rmtcall.c(statd_get_socket): If a port number is
154 explicitly given, make sure to try to bind to that.
156 2005-01-11 Chip Salzenberg <chip@pobox.com>
158 * debian/changelog: Version 1.0.7-1.
159 * debian/nfs-common.default (NEED_IDMAPD, NEED_GSSD):
160 Disable by default, on advice of upstream.
161 * debian/nfs-kernel-server.default (NEED_SVCGSSD):
164 * utils/svcgssd/Makefile (predep): Symbolically link duplicated
166 (distclean): Remove symlinks to duplicated files.
168 2004-12-17 NeilBrown <neilb@cse.unsw.edu.au>
171 * config.mk, configure.in: update version number, run autoconf
172 * configure.in: require nfsidmap.h if gss is enabled.
174 2004-12-10 NeilBrown <neilb@cse.unsw.edu.au>
177 * config.mk, configure.in: update version number, run autoconf
179 2004-12-10 Neil Brown <neilb@cse.unsw.edu.au>
180 * README : note dependancy on kerberos, libevent, and nfsidmap
181 * configure.in : fail if --enable-nfsv4 and libevent or
182 libnfsidmap are missing.
183 * configuyre.in: improve message if krb5 support is missing
185 2004-12-06 Paul Clements <paul.clements@steeleye.com>
186 * support/include/ha-callout.h: get return status from waitpid
188 * support/include/ha-callout.h: don't ignore SIGCHLD while waiting
189 for a callout to complete.
190 * utils/statd/statd.c(sigusr): print current start when re-reading
191 notify list due to SIGUSR1
192 * utils/statd/svc_run.c(my_svc_run): call change_state when
193 re-notifying clients.
195 2004-12-06 Marc Eshel <eshel@almaden.ibm.com>
196 * utils/statd/svc_run.c(my_svc_run): allow loop to exit when in
198 *utils/statd/rmtcall.c(statd_get_socket): if a hostname is given
199 to statd with -n, prefer it's IP address to the default for
202 2004-12-06 Bruce Allan <bwa@us.ibm.com>
203 * utils/mountd/auth.c(auth_reload) Clear the "my_client" cache on
204 an auth_reload to avoid old data getting used.
206 2004-12-03 NeilBrown <neilb@cse.unsw.edu.au>
207 Release 1.0.7-pre1 for testing
209 * config.mk, configure.in: update version number, run autoconf
211 2004-12-03 Trond Myklebust <trond.myklebust@fys.uio.no>
213 * utils/statd/statd.c(main): ignore SIGPIPE
215 2004-11-22 "J. Bruce Fields" <bfields@fieldses.org>
217 * tools/rpcdebug/rpcdebug.c: support aliases "nfsdebug" and
218 "nfsddebug" and update flag names.
219 * configure.in, nodist/* redhat/* nfs-utils.spec*: remove redhat
220 specific files (as no-one actually uses them, especially not
221 redhat), and the nodist /etc files (as they drift out-of-date, and
222 the debian directory provides a suitable example.
223 * utils/svcgssd_proc.c(get_ids): fix memory leak
224 * utils/svcgssd/svcgssd_proc.c: Rely on count of the number of
225 groups instead of using a special guard value to identify the end
227 * utils/idmapd/idmapd.c: don't allow Default domain and anon-uid
228 or -gid to be specified on command line.
229 * utils/idmapd/idmapd.c: improve error messages
230 * utils/idmapd/idmapd.c: Reopen nfsd files on sighup. Allows us
231 to start up client side only (even when nfsd module not loaded),
232 and then sighup later after insmodding nfsd module.
233 * utils/idmapd/idmapd.c: Make sure we catch all errors on
234 daemonizing by waiting for child to report succesfull startup
236 * utils/idmapd/idmapd.c: Let libnfsidmapd parse the idmapd.conf
237 file for the default domain, instead of doing that ourselves.
238 * utils/gssd/gssd_proc.c: Make sure we get an error when a gssd
240 * utils/gssd/gssd_proc.c: We were forgetting to restore the euid
241 on certain failures, which meant gssd could get stuck in a state
242 where it didn't have permissions to read the files in rpc_pipefs
244 * utils/gssd/gssd_proc.c: Use libnfsidmapd to map gss principals
246 * debian/nfs-kernel-server.default: Document the NEED_SVCGSSD
247 variable in /etc/default/nfs-kernel-server.
250 2004-11-22 NeilBrown <neilb@cse.unsw.edu.au>
252 * utils/exportfs/nfsd.man: corrected typo in .BR macro usage -
253 reported by Eric Raymond
255 2004-10-19 "J. Bruce Fields" <bfields@fieldses.org>
257 * support/gssapi/* support/rpc/* utils/gssd/* utils/svcgssd/* etc
258 initial support for GSSAPI authentication
260 2004-09-15 Neil Brown <neilb@cse.unsw.edu.au>
262 * utils/statd/monitor.c(sm_unmon_1_svc): is RESTRICTED_STATD, then
263 check IP address and force my_name to 127.0.0.1 to match
264 what happens in sm_mon_1_svc. This avoid spurious "erroneous
266 * utils/statd.monitor.c(sm_unmon_all_1_svc): likewise
268 2004-09-15 "J. Bruce Fields" <bfields@fieldses.org>
270 * Assorted changes to support "gss/*" style authentication
271 * utils/idmapd: new idmapd daemon for nfsv4 username lookup
273 2004-09-06 Trond Myklebust <trond.myklebust@fys.uio.no>
274 Neil Brown <neilb@cse.unsw.edu.au>
276 * utils/mountd/auth.c(auth_authenticate_internal): fix
277 uninitialsed variable problem (causes bad error messages).
279 2004-09-06 Paul Clements <paul.clements@steeleye.com>
280 Neil Brown <neilb@cse.unsw.edu.au>
282 * utils/mountd/mountd.c(main): support --ha-callout (-H) for
283 specifying a callout program
284 * utils/mountd/rmtab.c: Call ha_callout on mount/unmount
285 * utils/statd/monitor.c: Call ha_callout on add/del client
286 * utils/statd/rmtcall.c: as above
287 * utils/statd/statd.c: handle --ha-callout (-H)
288 * utils/statd/svc_run.c: call notify_hosts is we have received a
290 * support/include/ha-callout.h: define ha_callout function
293 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
294 * utils/mountd/cache.c(cache_process_req): clear fd after
295 processing so as not to confused libc/sunrpc into thinking
296 it need to do something with that fd.
298 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
300 * debian/nfs-kernel-server.init(start,stop) mount the nfsd
301 filesystem, if available, before starting nfs services, and
302 unmount it afterwards.
303 * etc/nodist/nfs-server: ditto
304 * etc/redhat/nfs.init: likewise
305 * etc/redhat/nfs: add "MOUNT_NFSD" flag to control above.
307 2004-06-08 NeilBrown <neilb@cse.unsw.edu.au>
309 * utils/exportfs/exportfs.c: Don't rmtab_read if new_cache, it
311 * support/nfs/cacheio.c(cache_flush): Change order in which caches
312 are flushed so that dependancies don't keep things in the cache
315 2004-03-18 Chip Salzenberg <chip@pobox.com>
317 * debian/changelog: Version 1.0.6-2.
319 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
320 from "J. Bruce Fields" <bfields@fieldses.org>
322 * utils/mountd/cache.c: call auth_reload to make sure auth data is
323 current before responding to kernel upcall.
325 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
326 Based on patch from Greg Banks <gnb@melbourne.sgi.com>
328 * utils/exportfs/exports.man: Document fsid= option.
330 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
334 * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
335 support/include, and depend in "predep"
336 * support/export/Makefile, tools/rpcgen/Makefile,
337 utils/statd/Makefile: add "predep" rule so that "make dep" works.
338 * Makefile: allow a simple "make" to run ./configure and "make dep"
340 * configure.in, nfs-utils.spec: Update version to 1.0.6
343 2003-09-12 Chip Salzenberg <chip@pobox.com>
345 * debian/changelog: Version 1.0.6-1.
347 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
349 * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
351 * utils/statd/statd.c(main): Ditto.
353 michael <michael@newdream.net> discovered that svc_setreqsize
354 in glibc can segfault if RLIMIT_NOFILE is bigger than
355 FD_SETSIZE, so a simple solution is to impose a hard limit.
357 2003-09-09 Chip Salzenberg <chip@pobox.com>
359 * debian/changelog: Version 1.0.5-3.
360 * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
361 on invalid reverse DNS.
362 * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
363 * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
364 * tools/rpcgen/rpc_parse.c (def_union): Likewise.
366 2003-08-22 Chip Salzenberg <chip@pobox.com>
368 * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
369 N_*, to avoid conflict with ISO C built-in log() function.
370 * utils/statd/*.c: Use note().
372 2003-08-20 Chip Salzenberg <chip@pobox.com>
374 * debian/changelog: Version 1.0.5-2.
376 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
378 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
381 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
383 * support/include/nfs/export.h, support/nfs/exports.c,
384 utils/exportfs/exports.c, utils/mountd/mountd.c: change
385 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
386 meaning. Also remove meaningless
387 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
389 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
391 * support/export/xtab.c, support/include/nfslib.h,
392 support/nfs/cacheio.c, support/nfs/nfssvc.c,
393 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
394 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
395 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
396 (nfs-utils-1.0.5-post2)
398 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
400 * support/nfs/nfsexport.c: open channel file O_WRONLY when
402 * utils/mountd/cache.c: maintain mountlist when new_cache is
403 active. Also use O_WRONLY for channel files.
404 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
405 rather than an nfs_export.
406 * utils/mountd/rmtab.c: ditto.
407 (nfs-utils-1.5.0-post1)
409 2003-07-24 Chip Salzenberg <chip@pobox.com>
411 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
412 use Debian security team's cleaner approach.
413 * debian/changelog: Version 1.0.5-1.
414 * debian/nfs-kernel-server.init: Cosmetic changes.
416 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
419 1.0.4 was a bit of a brown-paper-bag-release because of the extra
420 'free' in auth.c. So I'm releasing this just a few days later.
422 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
424 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
425 check if new_cache is enabled, error if not, flush and exit if it
427 * utils/exportfs/exportfs.man: Explain -f option and explain the
428 two different modes that exportfs can work in.
429 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
431 * utils/mountd/mountd.man: Record the change if default behaviour
433 * configure.in, nfs-utils.spec: update version to 1.0.5 and
436 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
438 * utils/mountd/mountd.c(main): getopt string fix for 'o'
439 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
440 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
442 * support/include/nfs/export.h: Reserve a bit for possible ACL
445 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
447 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
448 assorted changed to cope with section 7 of the manual.
449 * configure.in, nfs-utils.spec: Update version to 1.0.4
452 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
453 baseline for 2.6 and 2.8. I.e. it should continue to work right
454 through the 2.8 (or 3.0) kernel series. Previous releases wont.
456 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
457 Steve Dickson <SteveD@redhat.com>
460 * utils/statd/statd.c: create a pidfile with pid of statd, and
461 truncate it when statd exists.
462 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
463 and warn if this is root.
464 * utils/statd/statd.c: when statd forks, connect child to parent
465 with a pipe, and send a byte down the pipe once the child is
467 * Makefile: create and chown sm, sm.bak, state when "make install"
468 * configure.in: add --with-statduser= option which defaults to
469 "rpcuser" or "nobody"
470 * config.mk.in: pass "statduser" through to Makefile
472 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
474 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
475 used as the size was changed somewhere in 2.5.60-2.5.70. Without
476 this nfs-utils compiles against 2.6 headers will not work on a
479 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
481 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
482 set number of threads by writing to there. This means it will
483 still work when the syscall interface goes away in 2.7.
485 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
486 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
488 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
489 so as to only export the wildcard exports that were asked for.
490 * support/export/export.c(export_allowed): changed to return the
491 nfs_export rather than a "struct exportent", as m_changed is
493 * support/export/rmtab.c(rmtab_read): modified to deal with
494 interface change for export_allowed(), and enhanced to preserve
495 m_changed flag when a wild-card export causes the creation of
496 a non-wildcard export.
498 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
499 Steve Dickson <SteveD@redhat.com>
501 * utils/mountd/mountd.man: Add valid kinds of debugging.
502 * utils/mountd/mountd.c(main): ignore SIGPIPE
503 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
504 we don't get warnings about unavailable stats that weren't asked
507 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
509 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
510 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
511 'forever', so things disappear out of the cache rather than just
514 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
516 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
519 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
521 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
522 etc/redhat/nfs.init: when checking if V3 is supported, make sure
523 nfs server 'knows' about 127.0.0.1 first.
525 2003-06-10 Chip Salzenberg <chip@pobox.com>
527 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
528 * debian/changelog: Version 1.0.3-2.
530 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
531 NeilBrown <neilb@cse.unsw.edu.au>
533 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
534 long long to avoid overflow when printing stats.
536 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
538 * support/export/export.c, support/include/nfslib.h,
539 support/nfs/export.c, utils/exportfs/exportfs.c,
540 utils/mountd/mountd.c: new export option "mountpoint"
541 If no path is given, then the export point must be a
542 mount point, or it won't be exported. If a path is
543 given (e.g. mountpoint=/path) then that path must be
544 a mountpoint or the exportpoint won't be exported.
545 * utils/exportfs/exportfs.man: document mountpoint option.
546 * support/misc/mountpoint.c: New file with is_mountpoint()
547 to determine if something is a mountpoint.
549 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
551 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
552 argument as we might not be getting the filehandle for the
554 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
555 cache_get_filehandle.
556 * utils/mountd/mountd.c(get_rootfh): check export point and
557 requested directory are on the same filesystem, and complain if
560 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
562 * utils/mountd/auth.c(auth_authenticate_internal): make sure
563 portnumber is still checked when using new cache lookup.
565 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
567 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
568 Don't actually talk to kernel when new cache is in effect, except
570 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
571 * support/export/xtab.c: Only rename new xtab into place if it has
572 changed, thus preserving modify date for exportfs to use when
574 * support/nfs/cacheio.c: Add cache_flush
575 * support/export/xtab.c: Only rename new xtab into place if it has
576 changed, thus preserving modify date for exportfs to use when
579 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
581 * support/export/client.c: Add client_compose, client_member to
582 handle new composite client names
583 * support/include/exportfs.h: Declare above functions.
584 * utils/mountd/auth.c: use client_compose to determine calling
585 client if new cache is being used.
586 * utils/mountd/auth.c: call cache_export to export a filesystem if
587 new_cache, check if new cache is used, and call my_svc_run instead
589 * utils/mountd/svc_run.c: new file defining my_svc_run
590 * utils/mountd/cache.c: new file for handling cache upcalls.
591 * support/nfs/cacheio.c(check_new_cache): new function to check if
592 new cache should be used.
595 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
597 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
598 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
599 * utils/exportfs/exportfs.c(dump): ditto
601 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
603 * support/export/hostname.c(get_reliable_hostbyaddr): new function
604 to get host name from address with full checking of authenticity.
605 * support/include/misc.h: declare above function
606 * utils/mountd/auth.c(auth_authenticate_internal): remove all
607 logic for authenticating address.
608 * utils/mountd/auth.c(auth_authenticate): call new
609 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
612 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
614 * tools/rpcgen/rpc_main.c(find_cpp): removed
615 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
616 then try hard-coded paths.
618 2003-03-26 Chip Salzenberg <chip@pobox.com>
620 * debian/changelog: Version 1.0.3-1.
622 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
624 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
625 "const char*", not "char*".
627 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
629 * configure.in (VERSION): Set to "1.0.3".
630 * nfs-utils.spec: Likewise.
631 * configure: Regenerated.
633 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
635 * support/nfs/cacheio.c: New File - support for read/writing
636 to export cache in /proc/rpc/*/channel
637 * support/nfs/Makefile: compile cacheio.c
638 * support/include/nfslib.h: declare cacheio.c functions
639 * support/nfs/nfsexport.c: export and unexport through
640 /proc/rpc/*/channel if possible, as old syscall interface
641 may not survive into 2.6 on all architectures.
643 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
644 Ben Leslie <benno@sesgroup.net>
646 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
647 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
648 former would incorectly ignore defport if the application
649 explicitly set __rpcfdtype. The later is sufficient to avoid the
650 special handling in the case where stdin is an internet socket.
652 * utils/mountd/mountd.c(main): Add 'n' to option list in
653 getopt_long as this is a short form of --no-tcp which want being
656 2003-02-12 Chip Salzenberg <chip@pobox.com>
658 * debian/changelog: Version 1.0.2-2.
660 2002-11-27 Chip Salzenberg <chip@pobox.com>
662 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
663 overflow bug. Reformat per rest of source file.
665 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
667 * utils/exportfs/exports.man: Correct notes about whether the wild
668 card characters match a period. They do.
670 2002-10-15 Juan Gomez <juang@us.ibm.com>
672 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
674 (mountlist_add): Call slink_safe_rename instead of rename.
676 2002-10-11 H.J. Lu <hjl@lucon.org>
678 * support/include/exportfs.h (export_errno): New.
680 * support/nfs/exports.c: Include <errno.h>.
682 (getexportent): Set export_errno to EINVAL for bad option.
683 (parseopts): Likewise.
684 Report the location of the default sync/async option.
686 * utils/exportfs/exportfs.c (main): Initialize export_errno to
687 0. Return export_errno.
689 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
690 NeilBrown <neilb@cse.unsw.edu.au>
692 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
693 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
695 2002-09-16 Chip Salzenberg <chip@pobox.com>
697 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
699 2002-09-15 Chip Salzenberg <chip@pobox.com>
701 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
702 socket, as occurs when run from sshd.
703 * debian/changelog: Version 1.0.2-1.
705 2002-09-12 H.J. Lu <hjl@lucon.org>
707 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
710 2002-09-12 H.J. Lu <hjl@lucon.org>
712 * configure.in: Remove checking svctcp_socket and svcudp_socket.
713 * configure: Regenerated.
715 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
716 (HAVE_SVCUDP_SOCKET): Removed.
718 * support/include/nfslib.h: Undo the last change.
720 2002-09-12 H.J. Lu <hjl@lucon.org>
722 * support/include/nfslib.h (svctcp_socket): Protect it with
724 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
726 2002-09-12 H.J. Lu <hjl@lucon.org>
728 * configure.in (VERSION): Set to "1.0.2".
729 * configure: Regenerated.
730 * nfs-utils.spec: Likewise.
732 2002-09-12 H.J. Lu <hjl@lucon.org>
734 * configure.in: Check svctcp_socket and svcudp_socket.
735 * configure: Regenerated.
737 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
738 (HAVE_SVCUDP_SOCKET): New.
740 * support/include/nfslib.h (svctcp_socket): New.
741 (svcudp_socket): New.
743 * support/nfs/Makefile (OBJS): Add svc_socket.o.
745 * support/nfs/svc_socket.c: New.
747 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
748 svcudp_socket if port is unspecified.
750 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
752 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
753 (killer): New. Signal handler to unregister.
754 (main): Use killer. Call svcudp_socket to get the default
757 2002-09-02 Juan Gomez <juang@us.ibm.com>
758 NeilBrown <neilb@cse.unsw.edu.au>
760 Add -N option to statd to run in notify-only mode.
762 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
763 * utils/statd/statd.man: document -N
764 * utils/statd/statd.c: enabled -N, largely exists but needed to be
765 uncommented and completed
767 2002-09-02 Juan Gomez <juang@us.ibm.com>
768 NeilBrown <neilb@cse.unsw.edu.au>
770 statd to have " -P directory" arg to use that directory instead
771 of /var/lib/nfs. This is useful for fail-over clusters.
773 * utils/statd/statd.h: define SM_DIR etc as var, not const.
774 * utils/statd/statd.c: define "-P" option to set SM_*
776 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
778 * utils/statd/notify.c: ditto.
779 * utils/statd/statd.man: document -P option.
781 2002-08-26 Chip Salzenberg <chip@pobox.com>
783 * utils/nfsd/nfsd.man: Fix typo.
784 * debian/changelog: Version 1.0.1-1.
786 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
788 * let parseopts know if /etc/exports was being read or not,
789 and have it only print "no sync or async" warning in that case.
791 2002-05-06 Tom McNeal <trmcneal@attbi.com>
792 NeilBrown <neilb@cse.unsw.edu.au>
794 * utils/nfsstat/nfsstat.c: Handle differing format for
795 /proc/net/rpc/nfsd between pre and post 2.4.0
797 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
798 James Pearson <james-p@moving-picture.com>
800 * support/nfs/rmtab.c(fendrmtabent): sync changes to
801 storage before returning, as this is critical state
803 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
804 H.J. Lu <hjl@lucon.org>
806 * etc/redhat/nfs: New.
808 2002-04-08 H.J. Lu <hjl@lucon.org>
810 * etc/redhat/nfs.init: Updated.
812 * nfs-utils.spec.in: Updated.
813 * nfs-utils.spec: Regenerated.
815 * utils/mountd/mountd.c (longopts): Fix a typo.
817 * utils/mountd/mountd.man: Updated.
819 2002-04-07 H.J. Lu <hjl@lucon.org>
821 * etc/redhat/nfslock.init (restart): Just do stop and start.
823 * etc/redhat/nfs.init: Fix a typo.
825 2002-04-07 H.J. Lu <hjl@lucon.org>
827 * configure.in (VERSION): Set to "1.0.1".
828 * configure: Regenerated.
829 * nfs-utils.spec: Likewise.
831 * README: Updated for 1.0.1.
833 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
834 H.J. Lu <hjl@lucon.org>
836 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
838 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
839 NeilBrown <neilb@cse.unsw.edu.au>
841 Add support for fsid=nn export option so that device
842 numbers don't go in filehandles.
843 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
844 is set, pass the fsid in-place of the device number
845 * support/nfs/exports.c: parse and print fsid= option.
846 Also check if efname has been set, and use "command line"
847 instead in error messages.
848 Also, use strtol instead of atoi for anon[ug]id= so that
849 bad numbers cause errors.
851 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
852 NeilBrown <neilb@cse.unsw.edu.au>
854 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
855 flag so that "sync" becomes the default.
856 Check that either "sync" or "async" is given as an option
857 and warn if neither are present
858 * utils/exportfs/exports.man: change documentation for "sync"
859 to be documentation for "async".
860 * utils/exportfs/exportfs.man: note that "sync" is the default
864 2002-01-02 Chip Salzenberg <chip@pobox.com>
866 * support/export/nfsctl.c (expsetup): Don't export entries that
867 specify id mappings not supported by the kernel. No extant kernel
868 supports any significant mapping, only 'identity' (i.e. none).
869 When other mappings are supported, this code will need changing.
870 * debian/changelog: Version 1.0-2.
872 2001-12-26 Chip Salzenberg <chip@pobox.com>
874 * nfs-utils.spec (Version): Set to "1.0".
875 * configure.in (VERSION): Likewise.
876 * configure: Regenerated.
878 * debian/changelog: Version 1.0-1.
880 * utils/exportfs/exports.man: Emphasize the need for options to
881 immediately follow client names. Explain that wildcards don't
882 usually work on addresses, but may work when reverse DNS fails.
883 Comment out a leftover TP that was TPing our indentation.
884 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
885 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
886 * debian/changelog: Version 0.3.3-6.
888 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
890 * support/export/client.c(client_lookup): If a host has multiple
891 IP addresses, then we must always use the result of a
892 gethostbyname, not that of gethostbyaddr for exporting
894 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
896 * support/export/client.c (client_lookup): use strcasecmp when
898 * support/nfs/export.c (getexportent): add fromkernel arg and use
899 different defaults as kernels prior to 2.4.11 assume different
900 defaults in /proc/fs/nfs/exports
901 * support/include/nfslib.h, support/export/export.c,
902 support/export/xtab.c: support extra "fromkernel" arg for
905 2001-12-13 Chip Salzenberg <chip@pobox.com>
907 * debian/changelog: Version 0.3.3-5.
909 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
911 * support/nfs/xio.c (xskip): Call `xungetc' instead of
912 `ungetc' to keep x_line more properly.
914 2001-11-26 Chip Salzenberg <chip@pobox.com>
916 * utils/showmount/showmount.c (main): Don't assume that strings
917 starting with digits are IP addresses.
918 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
919 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
920 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
921 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
922 man pages: We check host names *and* addresses with tcpwrappers.
923 * debian/changelog: Version 0.3.3-4.
925 2001-11-21 Chip Salzenberg <chip@pobox.com>
927 * support/nfs/clients.c (cfname): Added: current clients file name.
928 (setnfsclntent): Set it.
929 ({get,end}nfsclntent, syntaxerr): Use it.
930 * support/nfs/exports.c (efname): Added: current exports file name.
931 (setnfsexportent): Set it.
932 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
933 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
934 * debian/changelog: Version 0.3.3-3.
936 2001-10-11 Chip Salzenberg <chip@pobox.com>
938 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
939 * debian/changelog: Version 0.3.3-2.
941 2001-10-08 Chip Salzenberg <chip@pobox.com>
943 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
944 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
945 * utils/mountd/mountd.man: Update paths to /var/lib.
946 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
948 2001-10-06 Preston Brown <pbrown@redhat.com>
950 * utils/nfsstat/nfsstat.man: Updated.
952 2001-09-24 H.J. Lu <hjl@lucon.org>
954 * configure.in (VERSION): Set to "0.3.3".
955 * configure: Regenerated.
956 * nfs-utils.spec: Likewise.
958 * README: Updated for 0.3.3.
960 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
962 Arrange that "exportfs -au" never does DNS lookup:
964 * support/export/client.c (client_lookup) : add "canonical"
965 flag which says that the hostname is known to be canonical, so
968 * support/export/export.c (export_create) : add "canonical"
969 flag to be passed down to client_lookup
970 * support/export/export.c (export_lookup) : Likewise
972 * support/export/xtab.c (xtab_read) : pass appropriate
973 "canonical" flag to export_lookup and export_create:
974 set if reading list of filesystems currently exports
977 * support/export/export.c (export_read) : pass 0 as
978 "canonical" flag to export_lookup and export_create
979 * support/export/rmtab.s (rmtab_read) : Likewise
981 * support/include/exportfs.h : redeclare various routines
982 to have "canonical" flag
984 * utils/exportfs/exportfs.c (main) : redo logic for
985 "-au" to read in what is currently exported, but never even
986 look at what "should" be exported.
988 * utils/exportfs/exportfs.c (unexportall) : remove this
989 routine. Functionality is completely included in
992 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
993 flag to zero in calls to export_lookup and export_create.
996 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
997 Anne Milicia <milicia@missioncriticallinux.com>
999 * support/export/client.c (client_lookup) call gethostbyadd
1000 to make sure that we have a canonical hostname, even for
1002 * utils/exportfs/exportfs.c (exportfs) Likewise
1004 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1006 * support/nfs/exports.c (putexportent): \octal quote any spaces
1008 * support/nfs/xio.c (xgettok): recognise double-quote and
1009 \octal quoting in path names
1010 * utils/exportfs/exports.man: document quoting conventions
1013 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1015 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
1016 change from 2000-08-02: It causes problems if someone exports
1017 to both a hostname and IP addresses. nfs-utils must be
1018 consistant about the canonical name that it chooses.
1020 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
1021 H.J. Lu <hjl@lucon.org>
1023 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
1025 * utils/statd/statd.c (longopts): Add "name".
1026 (usage): Add "-n/--name".
1027 (main): Set MY_NAME with "-n/--name".
1029 * utils/statd/state.c (change_state): Set MY_NAME only if it
1032 * utils/statd/statd.man: Updated for "-n/--name".
1034 2001-07-26 H.J. Lu <hjl@lucon.org>
1036 * nfs-utils.spec (Release): Set to 8.
1038 2001-07-25 H.J. Lu <hjl@lucon.org>
1040 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
1043 2001-06-27 H.J. Lu <hjl@lucon.org>
1045 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
1047 2001-06-27 H.J. Lu <hjl@lucon.org>
1049 * utils/rquotad/rquota_server.c: Don't call statfs () for
1050 the block size. Use BLOCK_SIZE instead.
1052 2001-06-27 H.J. Lu <hjl@lucon.org>
1054 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
1055 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
1057 * configure.in (enable_nfsv3): Set to yes by default.
1058 (--enable-rquotad): Added
1059 (AC_PROG_CXX): Removed.
1060 (AC_OUTPUT): Add utils/Makefile.
1061 (CC_FOR_BUILD): Renamed from BUILD_CC.
1062 * configure: Regenerated.
1064 * utils/Makefile: Removed.
1066 * utils/Makefile.in: New.
1068 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
1070 (CC_FOR_BUILD): Renamed from BUILD_CC.
1071 * nfs-utils.spec: Regenerated.
1073 2001-06-15 Chip Salzenberg <chip@debian.org>
1075 * debian/changelog: Version 0.3.2-2.
1076 * debian/*.init: Minor fixes.
1078 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
1080 * etc/nodist/nfs-server: Fixed a bug where the script would
1081 disable mounts from NFSv3 clients if NFSv3 is present.
1083 2001-06-05 H.J. Lu <hjl@lucon.org>
1085 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
1086 (main): Support --descriptors/-o to set the limit of the number
1087 of open file descriptors.
1090 * utils/mountd/mountd.man: Updated for --descriptors/-o.
1092 2001-06-04 H.J. Lu <hjl@lucon.org>
1094 * nfs-utils.spec (Release): Set to 6.
1096 2001-05-28 H.J. Lu <hjl@lucon.org>
1098 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
1099 * utils/mountd/mountd.c (main): Likewise.
1100 * utils/nfsd/nfsd.c (main): Likewise.
1101 * utils/rquotad/rquota_svc.c (main): Likewise.
1103 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
1105 * support/export/client.c (client_check): Check IP address
1108 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
1110 * support/export/client.c (client_gettype): Treat `*' as
1113 2001-04-22 H.J. Lu <hjl@lucon.org>
1115 * nfs-utils.spec.in: Fix a typo.
1116 * nfs-utils.spec: Regenerated.
1118 2001-04-21 H.J. Lu <hjl@lucon.org>
1120 * nfs-utils.spec.in: Fix cross build.
1121 * nfs-utils.spec: Regenerated.
1122 (Release): Set to 5.
1124 2001-04-18 H.J. Lu <hjl@lucon.org>
1126 * nfs-utils.spec.in: Support cross build.
1127 * nfs-utils.spec: Regenerated.
1128 (Release): Set to 4.
1131 * config.guess: New.
1133 * config.mk.in (BUILD_CC): New.
1134 (CC): Set to $(BUILD_CC) if BUILD is defined.
1137 (RANLIB): Set to @RANLIB@.
1139 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
1140 * configure: Regenerated.
1142 * tools/rpcgen/Makefile (BUILD): Set to true.
1144 2001-04-01 Chip Salzenberg <chip@valinux.com>
1146 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
1147 redundant, and sometimes broken, declaration of svc_fdset;
1149 * support/nfs/rpcmisc.c (closedown): Likewise.
1151 2001-03-21 H.J. Lu <hjl@lucon.org>
1153 * nfs-utils.spec: Regenerated.
1154 (Release): Set to 3.
1156 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
1158 * utils/statd/statd.c (main): make sure file descriptors 0-2
1159 are open to /dev/null.
1161 2001-03-21 H.J. Lu <hjl@lucon.org>
1163 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
1164 * support/nfs/rpcmisc.c: Likewise.
1165 * utils/rquotad/rquota_svc.c: Likewise.
1166 * utils/rquotad/rquotad.man: Likewise.
1167 * utils/statd/Makefile: Likewise.
1168 * utils/statd/rmtcall.c: Likewise.
1169 * utils/statd/simulate.c: Likewise.
1170 * utils/statd/statd.c: Likewise.
1171 * utils/statd/statd.man: Likewise.
1173 2001-03-11 H.J. Lu <hjl@lucon.org>
1175 * configure.in (RELEASE): New. Default to 1, set by
1176 --with-release=XXX. Substitute nfs-utils.spec.
1177 * nfs-utils.spec.in (Release): Set to @RELEASE@.
1178 * configure: Regenerated.
1179 * nfs-utils.spec: Likewise.
1181 2001-03-11 H.J. Lu <hjl@lucon.org>
1183 * utils/rquotad/rquotad.man: Fix a typo.
1185 2001-03-11 H.J. Lu <hjl@lucon.org>
1187 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
1188 * support/nfs/rpcmisc.c: Likewise.
1189 * utils/rquotad/rquota_svc.c: Likewise.
1190 * utils/rquotad/rquotad.man: Likewise.
1191 * utils/statd/Makefile: Likewise.
1192 * utils/statd/rmtcall.c: Likewise.
1193 * utils/statd/simulate.c: Likewise.
1194 * utils/statd/statd.c: Likewise.
1195 * utils/statd/statd.man: Likewise.
1197 2001-03-10 H.J. Lu <hjl@lucon.org>
1199 * configure.in (VERSION): Set to "0.3.2".
1200 * configure: Regenerated.
1201 * nfs-utils.spec: Likewise.
1203 * README: Updated for 0.3.2.
1205 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
1207 * utils/rquotad/rquotad.man: Updated for -p.
1208 * utils/statd/statd.man: Likewise.
1210 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
1212 * support/nfs/rpcmisc.c: export makesock()
1214 * support/include/rpcmisc.h (makesock): Declared.
1216 * utils/rquotad/rquota_svc.c: added longopts, added support for
1217 specifying the port to bind to on the command line.
1219 * utils/statd/statd.c: ditto, also specify port used for
1220 outgoing connections.
1221 (do_regist): Removed.
1223 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
1224 get_socket. Make it extern.
1226 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
1227 instead of do_regist.
1229 * utils/statd/Makefile (LIBS): link with our own libnfs
1231 2001-03-09 H.J. Lu <hjl@lucon.org>
1233 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
1234 * etc/nodist/nfs-client: Likewise.
1236 2001-02-26 Chip Salzenberg <chip@valinux.com>
1238 * debian/changelog: Version 0.3.1-1.
1239 * Mention upstream source and license in copyright file.
1240 * Add build-Depends for debhelper and libwrap0-dev.
1242 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
1244 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
1245 * etc/nodist/nfs-client: Likewise.
1247 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
1249 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
1252 2001-02-17 Patrick J. LoPresti <patl@curl.com>
1254 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
1257 2001-02-14 H.J. Lu <hjl@lucon.org>
1259 * utils/statd/rmtcall.c: Include <time.h>.
1260 * utils/statd/svc_run.c: Likewise.
1262 2001-02-14 H.J. Lu <hjl@lucon.org>
1264 * configure.in (VERSION): Set to "0.3.1".
1265 * configure: Regenerated.
1266 * nfs-utils.spec: Likewise.
1268 * README: Updated for 0.3.1.
1270 2001-02-14 H.J. Lu <hjl@lucon.org>
1272 * support/nfs/rpcmisc.c: Include <time.h>.
1274 2001-02-14 Chip Salzenberg <chip@valinux.com>
1276 * debian/control: Change priority of nhfsstone package to 'extra'.
1278 2001-02-12 Chip Salzenberg <chip@valinux.com>
1280 * debian/changelog: Version 0.3-2.
1282 2001-02-02 H.J. Lu <hjl@lucon.org>
1284 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
1286 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
1287 out SO_SNDBUF/SO_RCVBUF.
1288 (rpc_init): Remove bufsize and remove socksz in calls to
1291 * utils/mountd/mountd.c (main): Remove bufsize in calls to
1294 2001-01-28 Chip Salzenberg <chip@valinux.com>
1296 * debian/changelog: Version 0.3-1.
1298 2001-01-25 H.J. Lu <hjl@lucon.org>
1300 * configure.in (VERSION): Set to "0.3".
1301 * configure: Regenerated.
1302 * nfs-utils.spec: Likewise.
1304 * README: Updated for 0.3.
1306 2001-01-25 H.J. Lu <hjl@lucon.org>
1308 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
1310 2001-01-20 Chip Salzenberg <chip@valinux.com>
1312 * support/include/xio.h (xgetc): Declare to return int.
1313 * support/nfs/xio.c (xgetc): Return int.
1314 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
1315 * utils/statd/statd.c (main): Use int for value of getopt.
1316 * debian/changelog: Version 0.2.1-5.
1318 2000-12-10 Chip Salzenberg <chip@valinux.com>
1320 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
1321 program and procedure numbers of kernel lockd's callback. Also,
1322 besides the old (and broken) procedure #24, allow #16 per Trond.
1324 2000-12-03 Chip Salzenberg <chip@valinux.com>
1326 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
1327 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
1328 * debian/changelog: Version 0.2.1-4.
1330 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
1332 * utils/mountd/auth.c (auth_authenticate): Log the bad path
1335 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
1337 * support/nfs/exports.c (getexportent): Check for host name
1338 without option, or options without hostname, and print a warning,
1339 as this is most likely a typo.
1341 2000-11-19 Chip Salzenberg <chip@valinux.com>
1343 * debian/control: Add dependency on portmap.
1344 * debian/changelog: Version 0.2.1-3.
1346 2000-11-10 H.J. Lu <hjl@lucon.org>
1348 * nfs-utils.spec.in: Don't use libtool.
1349 Add ChangeLog and COPYING to doc.
1350 * nfs-utils.spec: Rebuild.
1352 2000-11-09 H.J. Lu <hjl@lucon.org>
1354 * etc/redhat/nfs.init (start): Back out the last change.
1356 2000-11-09 H.J. Lu <hjl@lucon.org>
1358 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
1359 TCP is not supported by kernel.
1361 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
1363 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
1364 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
1366 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
1368 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
1370 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
1371 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
1372 callbacks to local lockd.
1374 2000-10-18 Scott McDermott <mcdermot@questra.com>
1376 * utils/exportfs/exports.man: Updated for CIDR netmask.
1378 2000-10-17 Scott McDermott <mcdermot@questra.com>
1380 * support/export/client.c (client_init): Support CIDR netmask
1383 2000-10-11 H.J. Lu <hjl@lucon.org>
1385 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1386 * configure: Rebuilt.
1388 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
1390 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1391 "/var/lib/nfs/state".
1393 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
1395 * utils/statd/statd.h (run_mode): New global bitmask of runtime
1396 behaviors: fg/bg, logging, etc.
1397 * utils/statd/statd.c: New command line options: -V -h -? -d .
1398 * utils/statd/statd.man: Update for changes to statd.
1400 * utils/statd/log.h (log_init): Remove parameter of function; use
1401 global variable "name_p" instead.
1402 * utils/statd/log.c: Add support for logging to stderr.
1404 * utils/statd/notlist.c: Partially rewrite notify list handling
1405 functions. Eliminate run-off-end-of-list bug when calling
1406 nlist_insert_timer. Add lots of comments.
1408 2000-09-27 H.J. Lu <hjl@lucon.org>
1410 * README: Updated for RedHat 7.0.
1412 2000-09-27 H.J. Lu <hjl@lucon.org>
1414 * nfs-utils.spec: Rebuild.
1416 2000-09-27 H.J. Lu <hjl@lucon.org>
1418 * README: Updated for 0.2.1.
1420 2000-09-27 H.J. Lu <hjl@lucon.org>
1422 * nfs-utils.spec.in: Updated to use rpm macros and support
1425 2000-09-25 H.J. Lu <hjl@lucon.org>
1427 * configure.in (VERSION): Set to "0.2.1".
1428 * configure: Regenerated.
1429 * nfs-utils.spec: Updated.
1431 2000-09-25 H.J. Lu <hjl@lucon.org>
1433 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1434 non-NULL hostent is always returned.
1436 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1438 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1439 have an executable (i.e. kernel threads)
1441 2000-09-01 H.J. Lu <hjl@lucon.org>
1443 * README: Updated for 0.2.
1445 2000-09-01 Jay Weber <jweber@valinux.com>
1447 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1448 supporting version 3 of nfs if available, else it will fall back to
1449 version 2 support only.
1451 2000-08-30 H.J. Lu <hjl@lucon.org>
1453 * configure.in (VERSION): Set to "0.2".
1454 * configure: Regenerated.
1455 * nfs-utils.spec: Updated.
1457 2000-08-25 H.J. Lu <hjl@lucon.org>
1459 * support/misc/tcpwrapper.c (logit): Modify the log output.
1461 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1463 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1464 utils/mountd/mountd.man: updated
1466 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1467 * utils/rquotad/Makefile: fix comment
1469 * support/misc/tcpwrapper.c (logit): added comment about waiting
1470 for the children after fork()
1472 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1473 zombies behind (from logit()'s fork)
1474 * utils/rquotad/rquota_svc.c (main): ditto
1475 * utils/statd/statd.c (main): ditto
1477 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1478 to check_default instead of 0, for prognum
1480 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1481 to check_default instead of 0, for prognum
1483 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1484 HAVE_TCP_WRAPPER is defined.
1485 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1486 defined. Reject an RPC call if check_default () fails.
1488 2000-08-25 H.J. Lu <hjl@lucon.org>
1490 * support/include/tcpwrapper.h: New for the tcp wrapper
1492 * support/misc/Makefile: Likewise.
1493 * support/misc/from_local.c: Likewise.
1494 * support/misc/tcpwrapper.c: Likewise.
1496 * aclocal.m4 (AC_TCP_WRAPPER): New.
1497 * configure.in: Use it. Substitute LIBWRAP.
1498 * configure: Rebuilt.
1500 * config.mk.in (LIBNSL): New.
1501 (LIBWRAP): Likewise.
1503 * support/Makefile (SUBDIRS): Add misc.
1505 * support/lib/Makefile (LIBS): Add libmisc.a.
1507 * utils/rquotad/Makefile (LIBS): Add
1509 -lmisc $(LIBWRAP) $(LIBNSL)
1511 * utils/statd/Makefile (LIBS): Likewise.
1513 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1514 HAVE_TCP_WRAPPER is defined.
1515 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1516 defined. Reject an RPC call if check_default () fails.
1518 * utils/statd/statd.c: Include "tcpwrapper.h" if
1519 HAVE_TCP_WRAPPER is defined.
1520 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1521 check_default () before calling sm_prog_1 (). Define it as
1522 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1524 2000-08-25 Chip Salzenberg <chip@valinux.com>
1526 * debian/*: Complete Debian build support.
1527 * etc/debian/*: Remove.
1529 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1531 * support/export/client.c(client_check): removed the "dot+1" as a
1532 ypdomain argument to innetgr as this is entirely bogus.
1533 It should always be NULL.
1535 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1537 * support/export/xtab.c(xtab_read): introduce new mode for
1538 reading xtab. i.e. a list of exports that might be known to the
1539 kernel, or might not. These are flagged as m_exported == -1
1540 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1541 value "2" for xtab, meaning don't trust this too much.
1542 * support/include/exportfs.h(struct mexport): changed m_exported
1543 from one bit to an int so that it can hold new value
1544 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1545 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1546 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1549 * support/nfs/xio.c(xflock): added O_CREAT when getting
1550 a write lock so that missing files aren't fatal.
1552 * etc/debian/nfs-common: new file from "potato"
1553 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1555 2000-08-09 H.J. Lu <hjl@lucon.org>
1557 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1558 startup to ensure all existing clients work fine.
1560 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1561 to xtab_read () for reading _PATH_XTAB.
1563 2000-08-02 H.J. Lu <hjl@lucon.org>
1565 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1566 avoid the reverse name lookup.
1568 2000-07-04 H.J. Lu <hjl@lucon.org>
1570 * utils/statd/log.c: Include <stdlib.h> for exit ().
1572 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1575 2000-07-04 H.J. Lu <hjl@lucon.org>
1577 * configure.in (VERSION): Set to "0.1.9.1".
1578 * configure: Regenerated.
1579 * nfs-utils.spec: Updated.
1583 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1585 * support/export/hostname.c (hostent_dup): Handle the NULL
1588 2000-07-03 H.J. Lu <hjl@lucon.org>
1590 * README: Update the util-linux requirement.
1592 2000-07-03 H.J. Lu <hjl@lucon.org>
1594 * configure.in (VERSION): Set to "0.1.9".
1595 * configure: Regenerated.
1596 * nfs-utils.spec: Updated.
1600 2000-07-03 H.J. Lu <hjl@lucon.org>
1602 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1603 stop to ensure all clients can still access the server
1604 before it is shutdown.
1606 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1608 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1609 calls with format string.
1611 2000-06-28 Chip Salzenberg <chip@valinux.com>
1613 * utils/statd/log.c (log): Call syslog with format string.
1615 2000-06-27 H.J. Lu <hjl@lucon.org>
1617 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1618 instead of OPEN_MAX.
1620 2000-06-27 H.J. Lu <hjl@lucon.org>
1624 2000-06-27 H.J. Lu <hjl@lucon.org>
1626 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1627 startup to ensure all existing clients are exported.
1629 * configure.in (VERSION): Set to "0.1.8.2".
1630 * configure: Regenerated.
1631 * nfs-utils.spec: Updated.
1633 2000-06-06 H.J. Lu <hjl@lucon.org>
1635 * configure.in (VERSION): Set to "0.1.8.1".
1636 * configure: Regenerated.
1637 * nfs-utils.spec: Updated.
1639 2000-06-06 H.J. Lu <hjl@lucon.org>
1641 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1642 to "struct sockaddr_in *" for glibc 2.2.
1643 (mount_umnt_1_svc): Likewise.
1644 (mount_umntall_1_svc): Likewise.
1645 (mount_export_1_svc): Likewise.
1646 (mount_exportall_1_svc): Likewise.
1647 (mount_pathconf_2_svc): Likewise.
1648 (get_rootfh): Likewise.
1650 2000-06-04 H.J. Lu <hjl@lucon.org>
1652 * etc/redhat/nfs.init: Fix a typo in comment.
1654 2000-05-31 H.J. Lu <hjl@lucon.org>
1656 * configure.in (VERSION): Set to "0.1.8".
1657 * configure: Regenerated.
1658 * nfs-utils.spec: Updated.
1662 2000-05-31 H.J. Lu <hjl@lucon.org>
1664 * configure.in (VERSION): Set to "0.1.7.5".
1665 * configure: Regenerated.
1666 * nfs-utils.spec: Updated.
1668 * support/include/nfslib.h (exportent): Add a new field,
1669 r_count, to count the number of mounts from a client.
1670 (getrmtabent): Take a new argument for position in file.
1671 (putrmtabent): Likewise.
1672 (fgetrmtabent): Likewise.
1673 (fputrmtabent): Likewise.
1674 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1675 for position in file.
1676 (fgetrmtabent): Likewise.
1677 (putrmtabent): Likewise.
1678 (fputrmtabent): Likewise.
1680 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1683 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1684 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1685 and fputrmtabent ().
1686 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1687 (mountlist_del): Likewise.
1688 (mountlist_del_all): Likewise.
1689 (mountlist_list): Likewise.
1691 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1692 for the existing entry and initialize "r_count" to 1.
1693 (mountlist_del): Decrement "r_count".
1695 2000-05-18 H.J. Lu <hjl@lucon.org>
1697 * configure.in (VERSION): Set to "0.1.7.4".
1698 * configure: Regenerated.
1699 * nfs-utils.spec: Updated.
1701 2000-05-18 H.J. Lu <hjl@lucon.org>
1703 * etc/redhat/nfs.init (restart): Just do stop and start.
1705 2000-05-09 Jay Weber <jweber@valinux.com>
1707 * utils/rquotad/hasquota.c: added support for ext3 recognition
1709 * utils/rquotad/mntent.h: Likewise.
1711 2000-05-01 H.J. Lu <hjl@lucon.org>
1713 * configure.in (VERSION): Set to "0.1.7.3".
1714 * configure: Regenerated.
1715 * nfs-utils.spec: Updated.
1717 2000-05-01 H.J. Lu <hjl@lucon.org>
1719 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1720 mounting poins in /etc/fstab.
1722 2000-05-01 H.J. Lu <hjl@lucon.org>
1724 * configure.in (VERSION): Set to "0.1.7.2".
1725 * configure: Regenerated.
1726 * nfs-utils.spec: Updated.
1728 2000-05-01 H.J. Lu <hjl@lucon.org>
1730 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1731 to check for the mounting point.
1733 2000-04-29 Chip Salzenberg <chip@valinux.com>
1734 Neil Brown <neilb@cse.unsw.edu.au>
1736 * Really re-use RPC ports.
1737 (Fixes earlier patch. Sorry, Neil.)
1739 2000-04-26 H.J. Lu <hjl@lucon.org>
1741 * configure.in (VERSION): Set to "0.1.7.1".
1742 * configure: Regenerated.
1743 * nfs-utils.spec: Updated.
1745 2000-04-26 H.J. Lu <hjl@lucon.org>
1747 * etc/redhat/nfslock.init: Check if lockd exits before killing
1750 2000-04-25 H.J. Lu <hjl@lucon.org>
1752 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1754 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1756 * support/nfs/exports.c (parsesquash): Correctly set the
1759 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1761 * support/include/nfs/nfs.h: Removed knowledge of internals of
1762 kernel filehandles (which can change) and defined nfs_fh_size
1763 which has variable size
1765 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1766 get variable sized file handles, and change getfh{,old} to
1769 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1772 * tools/Makefile, tools/nlmtest/nlmtest.c
1773 nlmtest.c depended on internel format of file handles, so now
1777 2000-03-12 Chip Salzenberg <chip@valinux.com>
1778 Neil Brown <neilb@cse.unsw.edu.au>
1780 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1782 2000-03-13 H.J. Lu <hjl@lucon.org>
1784 * etc/redhat/nfsd.init: Updated.
1786 * etc/redhat/nfslock.init: Updated.
1788 * nfs-utils.spec.in: Updated.
1790 * configure.in (VERSION): Set to "0.1.7".
1791 * configure: Regenerated.
1792 * nfs-utils.spec: Updated.
1796 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1798 * utils/exportfs/exportfs.c (dump): Included printing of
1799 nohide, no_subtree_check, and insecure_locks
1801 2000-02-26 Chip Salzenberg <chip@valinux.com>
1803 * config.mk.in (INSTALLSUID): Strip ("-s").
1804 (INSTALLSCRIPT): Define.
1805 * utils/nhfsstone/Makefile: Use it.
1807 2000-02-26 Chip Salzenberg <chip@valinux.com>
1809 * utils/lockd/lockd.man: Create.
1810 * utils/lockd/Makefile: Install it.
1811 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1812 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1813 * utils/nhfsstone/Makefile: Install the helper scripts and
1815 * utils/exportfs/exports.man: Fix typo.
1817 2000-02-26 Chip Salzenberg <chip@valinux.com>
1819 * support/nfs/xio.c (xungetc): Decrement line number when
1820 character to unget is newline. Make first parameter int, so
1821 it can distinguish EOF from \377.
1822 * support/include/xio.h (xungetc): Adjust prototype.
1824 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1826 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1827 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1828 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1830 This is for supporting a new option introduced in 2.3.42
1832 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1834 * COPYING: Added. GPL.
1836 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1838 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1839 to get the block size.
1841 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1843 * nfs-utils.spec.in: Update ftp site.
1845 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1847 * README: Update hostnames.
1849 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1851 * configure.in (VERSION): Set to "0.1.6".
1852 * configure: Regenerated.
1853 * nfs-utils.spec: Updated.
1857 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1859 * utils/mountd/auth.c (auth_authenticate_internal): Call
1860 xstrdup for hostname before passing it to gethostbyname.
1862 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1865 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1867 * README: Update the mailing list address.
1869 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1871 * configure.in (VERSION): Set to "0.1.5".
1872 * configure: Regenerated.
1873 * nfs-utils.spec: Updated.
1877 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1879 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1882 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1884 * configure.in (VERSION): Set to "0.1.4".
1885 * configure: Regenerated.
1886 * nfs-utils.spec: Updated.
1890 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1892 * nfs-utils.spec.in: New file.
1894 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1896 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1898 1999-12-04 Chip Salzenberg <chip@valinux.com>
1900 * config.mk.in: Use $(CC) as set by configure.
1902 1999-12-04 Chip Salzenberg <chip@valinux.com>
1904 * rules.mk: Call $(MAKE) with $(MFLAGS).
1906 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1908 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1909 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1911 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1913 * nfs-utils.spec (Version): Set to 0.1.3.
1915 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1916 * configure: Regenerated.
1920 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1922 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1923 (_PATH_DEV_DSK): Likewise.
1924 (getquotainfo): Match the mounting point from /etc/mtab
1925 instead of calling nfsmount_to_devname ().
1927 1999-11-24 Chip Salzenberg <chip@valinux.com>
1929 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1930 to the new port 24 as well as the historical port 100021.
1932 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1934 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1935 stopping nfsd to stop spurious ESTALE on server shutdown.
1937 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1939 * support/nfs/exports.c (parseopts): make copy of opt string
1940 before 'nul'ing out commas so that
1942 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1944 applies both options to both exports.
1946 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1948 * README: Fix a few typos.
1950 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1952 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1953 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1954 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1955 (unsigned_dec): Likewise.
1956 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1957 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1959 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1961 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1962 (unsigned_dec): Likewise.
1963 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1964 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1965 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1967 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1969 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1970 * support/nfs/exports.c: added {no_,}subtree_check and changed
1972 * utils/exportfs/exports.man: added no_subtree_check and nohide
1973 and removed irrelevant stuff from unfsd.
1974 * support/export/rmtab.c: rmtab_read didn't quite do the right
1975 thing if a pathname from rmtab was a subdirectory of an export-point
1977 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1979 * README: Updated ftp site.
1981 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1983 * nfs-utils.spec (Version): Set to 0.1.2.
1985 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1986 * configure: Regenerated.
1990 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1992 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1993 (auth_authenticate_internal): Check for NULL return on forward
1995 (auth_authenticate): Handle "no_forward_dns".
1997 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1999 * Version 0.1.1 released.
2001 * nfs-utils.spec (Version): Set to 0.1.1.
2003 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
2004 * configure: Regenerated.
2008 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
2010 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
2012 (Provides): Likewise.
2014 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
2016 * Initial version 0.1 released.
2018 * configure.in (VERSION): Set to "nfs-utils 0.1".
2019 * configure: Regenerated.
2021 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
2023 * utils/mountd/mountd.c (get_exportlist): Cleanup.
2025 * utils/exportfs/exportfs.c (unexport_all): Unexport from
2026 kernel only if the entry is exported to kernel.
2027 (unexportfs): Likewise.
2029 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
2031 1/ utils/mountd/rmtab.c::mountlist_list
2033 This routine stats the rmtab file to see if it has changed. It
2034 if has, it cleans up it's old copy of the data. But it still
2035 always re-read the file, thus returning multiple copies of the
2036 data on consecutive calls without intervening changes.
2037 "Showmount -a" didn't show this as it appears to sort/unique the
2038 data, but 'strace showmount -a' showed that the size of the
2039 datagram that it received grew.
2041 I moved the getrmtabent loop inside the mtime test.
2043 2/ utils/exportfs/exportfs.c
2045 Many routines used the m_path field of m_export instead of
2047 According to the comment in nfslib.h, m_path should only
2048 be used when processing a mount request (i.e. in mountd)
2049 where the mountpoint may be a subdirectory of the export point.
2051 I changed all occurances of m_path to e_path
2054 3/ utils/exportfs/exportfs.c:main
2056 extra arguments are not meaningful with -a or -r, but
2057 exportfs accepted them and then ignored the -a/-r, expect that
2058 -r would still unexport everything first.
2060 I generate an error if there are extra args and f_all
2062 4/ utils/exportfs/exportfs.c:main
2063 extract dump out as a special case.
2065 5/ utils/exportfs/exportfs.c
2066 made f_reexport a local variable.
2069 6/ utils/exportfs/exportfs.c:main,exportall
2071 support/export/rmtab.c
2072 only mayexport on newly created entries, don't set xtabent at all
2074 7/ support/include/nfslib.h
2076 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
2078 8/ support/export/xtab.c
2080 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
2084 9/ support/export/xtab.c
2086 xtab_mount_read now sets m_exported, and NOT
2087 xtabent and mayexport
2089 removed the append arguement from xtab_write as it was
2092 added is_export flag to xtab_write similar to xtab_read
2093 if is_export, only write entries with m_xtabent or m_addxtab
2094 if !is_export, only write entries with m_exported
2096 10/ support/export/export.c::export_allowed_internal
2098 added test for exp->m_mayexport, as the export tree
2099 may have entries that are no longer allowed to be exported,
2100 and so shouldn't caused deduced exported by rmtab_read
2102 11/ utils/exportfs/exportfs.c::main
2103 error checking of flags.
2105 12/ utils/exportfs/exportfs.c
2107 total rewrite of export and unexport logic.
2109 - build an exportslist of valid exports, based on
2110 current etab file and arguments,
2111 - read rmtab to instantiate relevant wild card entries
2112 - read etab to find out what is currently exported
2113 - synchronise intention with reality
2114 - write out etab and xtab
2117 discard the m_addxtab flag
2118 add m_changed flag so we know what to report in exportfs
2120 14/ utils/mountd/auth.c:auth_authenticate
2122 the value returned by gethostbyaddr was trusted.
2124 It now follows this with a call to gethostbyname
2125 and checks that the address is in the list.
2127 15/ support/export/nfsctl.c::cltsetup,expsetup
2129 force client names to lowercase as kernel is
2132 16/ quietened a few compiler warnings
2134 17/ support/export/client:client_lookup
2136 look for pre-existing client with same name before creating
2139 18/ support/include/exportfs.h
2141 The ordering of the MCL_* enum was:
2142 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
2144 I moved ANONYMOUS to the end.
2146 The ordering is significant when an export entry is being searched for to
2147 match a given address. There are two problems with ANONYMOUS being first.
2149 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
2150 then the ro case will always be found first and the privileged hosts won't get
2152 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
2153 export entry for the specific host, and writes it to xtab.
2154 When another request comes from the same host, the ANONYMOUS entry is found again,
2155 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
2156 again. If causes bloat in xtab.
2158 Putting ANONYMOUS at the end reflects it's nature as a catch-all
2160 19/ utils/exportfs/exportfs.man
2161 many updates to the man page to reflect changes to the code
2163 -----------------------
2169 - allow exportfs to modify rmtab file
2170 - make sure kernel never gets two clients with same IP address
2171 - possible kernel should reject
2172 - needs to be some way to lookup client in kernel by IP address
2173 - maybe get kernel to do case-insensitive comparisons on client names
2174 - remove unused clients from kernel
2176 - change etab to xtab and xtab to xtab.active
2178 - timestamp and/or statd-stamp in rmtab for removing old entries.
2180 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
2182 * linux-nfs: New directory.
2183 * linux-nfs/ChangeLog: Moved from ..
2184 * linux-nfs/INSTALL: Likewise.
2185 * linux-nfs/KNOWNBUGS: Likewise.
2186 * linux-nfs/NEW: Likewise.
2187 * linux-nfs/README: Likewise.
2188 * linux-nfs/THANKS: Likewise.
2189 * linux-nfs/TODO: Likewise.
2191 * Starting from knfsd 1.4.7.