1 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
2 Add option to set rpcsec_gss debugging level (if available)
4 Changes to allow gssd/svcgssd to build when using Hiemdal Kerberos
5 libraries. Note that there are still run-time issues preventing
6 this from working when shared libraries for libgssapi and librpcsecgss
9 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
10 Remove the rpcsec_gss code and rely on an external library instead.
12 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
13 *utils/mountd/mountd.c:
14 mountd currently always returns AUTH_NULL and AUTH_SYS as the
15 allowable flavors in mount replies. We want it to also return gss
16 flavors when appropriate. For now as a hack we just have it always
17 return the KRB5 flavors as well.
19 *utils/mountd/cache.c:
21 When attempting to mount an NFSv4 pseudofilesystem (fsid=0) and the
22 actual exported directory does not exist on the server, rpc.mountd
23 doesn't check the directory exists (when fsidtype=1, i.e. using fsid,
24 but does check for fsidtype=0, i.e. using dev/ino). The non-existent
25 exported directory path with fsid=0 is written to the kernel via
26 /proc/net/rpc/nfsd.export/channel, which leads to path_lookup() to
27 return ENOENT (seems appropriate). Unfortunately, the new_cache
28 approach ignores errors returned when writing via the channel file so
29 that particular error is lost and the mount request is silently ignored.
31 Assuming it doesn't make sense to revamp the new_cache/up-call method to
32 not ignore returned errors, it seems appropriate to fix the case where
33 rpc.mountd doesn't check for the existence of an exported directory with
34 fsid= semantics. The following patch does this by moving the stat() up
35 so it is done for both fsidtype's. I'm not certain whether the other
36 tests need to be executed for fsidtype=1, but it doesn't appear to hurt
37 [Not exactly true: the comparison of inode numbers caused problems so
38 now it's kept for fsidtype=0 only].
40 Would it be also desirable to log a warning for every error, if any,
41 returned by a write to any of the /proc/net/rpc/*/channel files which
42 would otherwise be ignored (maybe under a debug flag)?
44 * gssd/mountd/svcgssd: Changes gssd, svcgssd, and mountd to ignore a
45 SIGHUP rather than dying.
47 * many: Remove the gssapi code and rely on an external library instead.
49 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
50 * utils/exportfs/exports.man: Document the "crossmnt" export export option
51 * utils/gssd/krb5_util.c:
52 Add better debugging and partially revert the function
53 check for gss_krb5_ccache_name.
55 For MIT Kerberos releases up to and including 1.3.1, we *must*
56 use the routine gss_krb5_ccache_name to get the K5 gssapi code
57 to use a different credentials cache.
59 For releases 1.3.2 and on, we want to use the KRB5CCNAME
60 environment variable to tell it what to use.
61 (A problem was reported where 1.3.5 was being used, our
62 code was using gss_krb5_ccache_name, but the underlying
63 code continued to use the first (or default?) credentials
64 cache. Switching to using the env variable fixed the problem.
65 I cannot recreate this problem.
67 *utils/gssd/krb5_util.c:
68 Andrew Mahone <andrew.mahone@gmail.com> reported that reiser4
69 always has DT_UNKNOWN. He supplied patch to move the check
70 for regular files after the stat() call to correctly find
71 ccache files in reiser4 filesystem.
73 Also change the name comparison so that the wrong file is
74 not selected when the substring comparison is done.
76 *utils/gssd/krb5_util.c:
77 Limit the set of encryption types that can be negotiated by
78 the Kerberos library to those that the kernel code currently
81 This should eventually query the kernel for the list of
84 *utils/gssd/gss_util.c, utils/svcgssd/svcgssd_main_loop.c:
85 Print more information in error messages to help debugging failures.
87 *utils/svcgssd/svcgssd_proc.c: Increase token buffer size and
88 update error handling so that a response is always sent.
90 *utils/svcgssd/svcgssd_proc.c: Add support to retrieve
94 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
96 Consolidate some of the Kerberos checking instead of repeating
97 the same things for MIT and Heimdal.
98 Also adds more checks to distinguish 32-bit from 64-bit
100 Fix svcgssd Makefile so make TOP=../../ works correctly there.
101 Enable running a modern autoheader.
102 * utils/gssd/gss_oids.c: Use correct OID value for SPKM-3
103 * utils/gssd/gss_util.c: Fix build with older MIT releases that do not define GSS_C_NT_HOSTBASED_SERVICE
104 * utils/gssd/write_bytes.h, support/include/gssapi/gssapi.h:
105 Length of gss_buffer_desc is a size_t which is 64-bits on a
106 64-bit machine. Kernel code expects 32-bit integer for length.
107 Coerce length value into a 32-bit value when reading from or
108 writing to the kernel.
109 Change gssapi.h to use datatype size values obtained from
110 configure rather than hard-coded values.
111 * utils/idmapd/idmapd.c: The EV_INIT check here was wrong, and was
112 causing idmapd to become unresponsive to server requests after
114 * utils/idmapd/idmapd.c: Idmapd should flush the server id<->name
115 caches when its started.
117 2005-04-12 G. Allen Morris III <gam3@gam3.net>
119 * All Makefile: added TOP as needed for easier compile.
121 * utils/nfsstat/nfsstat.c: added NFS V4 support; added the -m
122 option; Added -2, -3, and -4 options; changed -a option to -v
123 option; added long options; changed default output to not
124 show V2 NFS statistics unless used.
126 * utils/nfsstat/nfsstat.man: Documented above changes; changed
127 authors email address; added BUGS section.
129 2005-04-07 Chip Salzenberg <chip@pobox.com>
131 * debian/changelog: Version 1.0.7-2.
133 2005-04-06 Chip Salzenberg <chip@pobox.com>
135 * config.guess, config.sub: Update.
137 * support/rpc/svc_auth_gss.c (_svcauth_gss): Avoid using a cast as
138 an lvalue, as it is non-portable.
140 * support/nfs/exports.c (parseopts): Accept "acl" option to mean
141 ~NFSEXP_NOACL, and "no_acl" to mean NFSEXP_NOACL.
142 (putexportent): Report NFSEXP_NOACL as "no_acl", and ~NFSEXP_NOACL
144 * utils/exportfs/exportfs.c (dump): Report NFSEXP_NOACL as
146 * utils/exportfs/exports.man: Document "no_acl".
148 2005-03-14 NeilBrown <neilb@cse.unsw.edu.au>
149 Denis Vlasenko <vda@ilport.com.ua>
150 * support/export/client.c(client_init and client_gettype):
151 treat N.N.N.N as a special case of MCL_SUBNETWORK instead of
154 2005-03-06 G. Allen Morris III <gam3@gam3.net>
155 * support/nfs/cacheio.c(readline): Could not read lines greater
156 than 128 bytes. [1157791]
157 * utils/exportfs/exports.man: Added a SEE ALSO section and
158 fixed 2 typos. [1018450]
160 2005-02-28 Trond Myklebust <trond.myklebust@fys.uio.no>
161 * utils/statd/rmtcall.c(statd_get_socket): If a port number is
162 explicitly given, make sure to try to bind to that.
164 2005-01-11 Chip Salzenberg <chip@pobox.com>
166 * debian/changelog: Version 1.0.7-1.
167 * debian/nfs-common.default (NEED_IDMAPD, NEED_GSSD):
168 Disable by default, on advice of upstream.
169 * debian/nfs-kernel-server.default (NEED_SVCGSSD):
172 * utils/svcgssd/Makefile (predep): Symbolically link duplicated
174 (distclean): Remove symlinks to duplicated files.
176 2004-12-17 NeilBrown <neilb@cse.unsw.edu.au>
179 * config.mk, configure.in: update version number, run autoconf
180 * configure.in: require nfsidmap.h if gss is enabled.
182 2004-12-10 NeilBrown <neilb@cse.unsw.edu.au>
185 * config.mk, configure.in: update version number, run autoconf
187 2004-12-10 Neil Brown <neilb@cse.unsw.edu.au>
188 * README : note dependancy on kerberos, libevent, and nfsidmap
189 * configure.in : fail if --enable-nfsv4 and libevent or
190 libnfsidmap are missing.
191 * configuyre.in: improve message if krb5 support is missing
193 2004-12-06 Paul Clements <paul.clements@steeleye.com>
194 * support/include/ha-callout.h: get return status from waitpid
196 * support/include/ha-callout.h: don't ignore SIGCHLD while waiting
197 for a callout to complete.
198 * utils/statd/statd.c(sigusr): print current start when re-reading
199 notify list due to SIGUSR1
200 * utils/statd/svc_run.c(my_svc_run): call change_state when
201 re-notifying clients.
203 2004-12-06 Marc Eshel <eshel@almaden.ibm.com>
204 * utils/statd/svc_run.c(my_svc_run): allow loop to exit when in
206 *utils/statd/rmtcall.c(statd_get_socket): if a hostname is given
207 to statd with -n, prefer it's IP address to the default for
210 2004-12-06 Bruce Allan <bwa@us.ibm.com>
211 * utils/mountd/auth.c(auth_reload) Clear the "my_client" cache on
212 an auth_reload to avoid old data getting used.
214 2004-12-03 NeilBrown <neilb@cse.unsw.edu.au>
215 Release 1.0.7-pre1 for testing
217 * config.mk, configure.in: update version number, run autoconf
219 2004-12-03 Trond Myklebust <trond.myklebust@fys.uio.no>
221 * utils/statd/statd.c(main): ignore SIGPIPE
223 2004-11-22 "J. Bruce Fields" <bfields@fieldses.org>
225 * tools/rpcdebug/rpcdebug.c: support aliases "nfsdebug" and
226 "nfsddebug" and update flag names.
227 * configure.in, nodist/* redhat/* nfs-utils.spec*: remove redhat
228 specific files (as no-one actually uses them, especially not
229 redhat), and the nodist /etc files (as they drift out-of-date, and
230 the debian directory provides a suitable example.
231 * utils/svcgssd_proc.c(get_ids): fix memory leak
232 * utils/svcgssd/svcgssd_proc.c: Rely on count of the number of
233 groups instead of using a special guard value to identify the end
235 * utils/idmapd/idmapd.c: don't allow Default domain and anon-uid
236 or -gid to be specified on command line.
237 * utils/idmapd/idmapd.c: improve error messages
238 * utils/idmapd/idmapd.c: Reopen nfsd files on sighup. Allows us
239 to start up client side only (even when nfsd module not loaded),
240 and then sighup later after insmodding nfsd module.
241 * utils/idmapd/idmapd.c: Make sure we catch all errors on
242 daemonizing by waiting for child to report succesfull startup
244 * utils/idmapd/idmapd.c: Let libnfsidmapd parse the idmapd.conf
245 file for the default domain, instead of doing that ourselves.
246 * utils/gssd/gssd_proc.c: Make sure we get an error when a gssd
248 * utils/gssd/gssd_proc.c: We were forgetting to restore the euid
249 on certain failures, which meant gssd could get stuck in a state
250 where it didn't have permissions to read the files in rpc_pipefs
252 * utils/gssd/gssd_proc.c: Use libnfsidmapd to map gss principals
254 * debian/nfs-kernel-server.default: Document the NEED_SVCGSSD
255 variable in /etc/default/nfs-kernel-server.
258 2004-11-22 NeilBrown <neilb@cse.unsw.edu.au>
260 * utils/exportfs/nfsd.man: corrected typo in .BR macro usage -
261 reported by Eric Raymond
263 2004-10-19 "J. Bruce Fields" <bfields@fieldses.org>
265 * support/gssapi/* support/rpc/* utils/gssd/* utils/svcgssd/* etc
266 initial support for GSSAPI authentication
268 2004-09-15 Neil Brown <neilb@cse.unsw.edu.au>
270 * utils/statd/monitor.c(sm_unmon_1_svc): is RESTRICTED_STATD, then
271 check IP address and force my_name to 127.0.0.1 to match
272 what happens in sm_mon_1_svc. This avoid spurious "erroneous
274 * utils/statd.monitor.c(sm_unmon_all_1_svc): likewise
276 2004-09-15 "J. Bruce Fields" <bfields@fieldses.org>
278 * Assorted changes to support "gss/*" style authentication
279 * utils/idmapd: new idmapd daemon for nfsv4 username lookup
281 2004-09-06 Trond Myklebust <trond.myklebust@fys.uio.no>
282 Neil Brown <neilb@cse.unsw.edu.au>
284 * utils/mountd/auth.c(auth_authenticate_internal): fix
285 uninitialsed variable problem (causes bad error messages).
287 2004-09-06 Paul Clements <paul.clements@steeleye.com>
288 Neil Brown <neilb@cse.unsw.edu.au>
290 * utils/mountd/mountd.c(main): support --ha-callout (-H) for
291 specifying a callout program
292 * utils/mountd/rmtab.c: Call ha_callout on mount/unmount
293 * utils/statd/monitor.c: Call ha_callout on add/del client
294 * utils/statd/rmtcall.c: as above
295 * utils/statd/statd.c: handle --ha-callout (-H)
296 * utils/statd/svc_run.c: call notify_hosts is we have received a
298 * support/include/ha-callout.h: define ha_callout function
301 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
302 * utils/mountd/cache.c(cache_process_req): clear fd after
303 processing so as not to confused libc/sunrpc into thinking
304 it need to do something with that fd.
306 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
308 * debian/nfs-kernel-server.init(start,stop) mount the nfsd
309 filesystem, if available, before starting nfs services, and
310 unmount it afterwards.
311 * etc/nodist/nfs-server: ditto
312 * etc/redhat/nfs.init: likewise
313 * etc/redhat/nfs: add "MOUNT_NFSD" flag to control above.
315 2004-06-08 NeilBrown <neilb@cse.unsw.edu.au>
317 * utils/exportfs/exportfs.c: Don't rmtab_read if new_cache, it
319 * support/nfs/cacheio.c(cache_flush): Change order in which caches
320 are flushed so that dependancies don't keep things in the cache
323 2004-03-18 Chip Salzenberg <chip@pobox.com>
325 * debian/changelog: Version 1.0.6-2.
327 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
328 from "J. Bruce Fields" <bfields@fieldses.org>
330 * utils/mountd/cache.c: call auth_reload to make sure auth data is
331 current before responding to kernel upcall.
333 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
334 Based on patch from Greg Banks <gnb@melbourne.sgi.com>
336 * utils/exportfs/exports.man: Document fsid= option.
338 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
342 * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
343 support/include, and depend in "predep"
344 * support/export/Makefile, tools/rpcgen/Makefile,
345 utils/statd/Makefile: add "predep" rule so that "make dep" works.
346 * Makefile: allow a simple "make" to run ./configure and "make dep"
348 * configure.in, nfs-utils.spec: Update version to 1.0.6
351 2003-09-12 Chip Salzenberg <chip@pobox.com>
353 * debian/changelog: Version 1.0.6-1.
355 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
357 * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
359 * utils/statd/statd.c(main): Ditto.
361 michael <michael@newdream.net> discovered that svc_setreqsize
362 in glibc can segfault if RLIMIT_NOFILE is bigger than
363 FD_SETSIZE, so a simple solution is to impose a hard limit.
365 2003-09-09 Chip Salzenberg <chip@pobox.com>
367 * debian/changelog: Version 1.0.5-3.
368 * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
369 on invalid reverse DNS.
370 * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
371 * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
372 * tools/rpcgen/rpc_parse.c (def_union): Likewise.
374 2003-08-22 Chip Salzenberg <chip@pobox.com>
376 * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
377 N_*, to avoid conflict with ISO C built-in log() function.
378 * utils/statd/*.c: Use note().
380 2003-08-20 Chip Salzenberg <chip@pobox.com>
382 * debian/changelog: Version 1.0.5-2.
384 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
386 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
389 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
391 * support/include/nfs/export.h, support/nfs/exports.c,
392 utils/exportfs/exports.c, utils/mountd/mountd.c: change
393 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
394 meaning. Also remove meaningless
395 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
397 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
399 * support/export/xtab.c, support/include/nfslib.h,
400 support/nfs/cacheio.c, support/nfs/nfssvc.c,
401 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
402 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
403 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
404 (nfs-utils-1.0.5-post2)
406 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
408 * support/nfs/nfsexport.c: open channel file O_WRONLY when
410 * utils/mountd/cache.c: maintain mountlist when new_cache is
411 active. Also use O_WRONLY for channel files.
412 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
413 rather than an nfs_export.
414 * utils/mountd/rmtab.c: ditto.
415 (nfs-utils-1.5.0-post1)
417 2003-07-24 Chip Salzenberg <chip@pobox.com>
419 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
420 use Debian security team's cleaner approach.
421 * debian/changelog: Version 1.0.5-1.
422 * debian/nfs-kernel-server.init: Cosmetic changes.
424 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
427 1.0.4 was a bit of a brown-paper-bag-release because of the extra
428 'free' in auth.c. So I'm releasing this just a few days later.
430 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
432 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
433 check if new_cache is enabled, error if not, flush and exit if it
435 * utils/exportfs/exportfs.man: Explain -f option and explain the
436 two different modes that exportfs can work in.
437 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
439 * utils/mountd/mountd.man: Record the change if default behaviour
441 * configure.in, nfs-utils.spec: update version to 1.0.5 and
444 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
446 * utils/mountd/mountd.c(main): getopt string fix for 'o'
447 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
448 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
450 * support/include/nfs/export.h: Reserve a bit for possible ACL
453 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
455 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
456 assorted changed to cope with section 7 of the manual.
457 * configure.in, nfs-utils.spec: Update version to 1.0.4
460 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
461 baseline for 2.6 and 2.8. I.e. it should continue to work right
462 through the 2.8 (or 3.0) kernel series. Previous releases wont.
464 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
465 Steve Dickson <SteveD@redhat.com>
468 * utils/statd/statd.c: create a pidfile with pid of statd, and
469 truncate it when statd exists.
470 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
471 and warn if this is root.
472 * utils/statd/statd.c: when statd forks, connect child to parent
473 with a pipe, and send a byte down the pipe once the child is
475 * Makefile: create and chown sm, sm.bak, state when "make install"
476 * configure.in: add --with-statduser= option which defaults to
477 "rpcuser" or "nobody"
478 * config.mk.in: pass "statduser" through to Makefile
480 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
482 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
483 used as the size was changed somewhere in 2.5.60-2.5.70. Without
484 this nfs-utils compiles against 2.6 headers will not work on a
487 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
489 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
490 set number of threads by writing to there. This means it will
491 still work when the syscall interface goes away in 2.7.
493 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
494 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
496 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
497 so as to only export the wildcard exports that were asked for.
498 * support/export/export.c(export_allowed): changed to return the
499 nfs_export rather than a "struct exportent", as m_changed is
501 * support/export/rmtab.c(rmtab_read): modified to deal with
502 interface change for export_allowed(), and enhanced to preserve
503 m_changed flag when a wild-card export causes the creation of
504 a non-wildcard export.
506 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
507 Steve Dickson <SteveD@redhat.com>
509 * utils/mountd/mountd.man: Add valid kinds of debugging.
510 * utils/mountd/mountd.c(main): ignore SIGPIPE
511 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
512 we don't get warnings about unavailable stats that weren't asked
515 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
517 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
518 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
519 'forever', so things disappear out of the cache rather than just
522 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
524 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
527 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
529 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
530 etc/redhat/nfs.init: when checking if V3 is supported, make sure
531 nfs server 'knows' about 127.0.0.1 first.
533 2003-06-10 Chip Salzenberg <chip@pobox.com>
535 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
536 * debian/changelog: Version 1.0.3-2.
538 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
539 NeilBrown <neilb@cse.unsw.edu.au>
541 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
542 long long to avoid overflow when printing stats.
544 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
546 * support/export/export.c, support/include/nfslib.h,
547 support/nfs/export.c, utils/exportfs/exportfs.c,
548 utils/mountd/mountd.c: new export option "mountpoint"
549 If no path is given, then the export point must be a
550 mount point, or it won't be exported. If a path is
551 given (e.g. mountpoint=/path) then that path must be
552 a mountpoint or the exportpoint won't be exported.
553 * utils/exportfs/exportfs.man: document mountpoint option.
554 * support/misc/mountpoint.c: New file with is_mountpoint()
555 to determine if something is a mountpoint.
557 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
559 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
560 argument as we might not be getting the filehandle for the
562 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
563 cache_get_filehandle.
564 * utils/mountd/mountd.c(get_rootfh): check export point and
565 requested directory are on the same filesystem, and complain if
568 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
570 * utils/mountd/auth.c(auth_authenticate_internal): make sure
571 portnumber is still checked when using new cache lookup.
573 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
575 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
576 Don't actually talk to kernel when new cache is in effect, except
578 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
579 * support/export/xtab.c: Only rename new xtab into place if it has
580 changed, thus preserving modify date for exportfs to use when
582 * support/nfs/cacheio.c: Add cache_flush
583 * support/export/xtab.c: Only rename new xtab into place if it has
584 changed, thus preserving modify date for exportfs to use when
587 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
589 * support/export/client.c: Add client_compose, client_member to
590 handle new composite client names
591 * support/include/exportfs.h: Declare above functions.
592 * utils/mountd/auth.c: use client_compose to determine calling
593 client if new cache is being used.
594 * utils/mountd/auth.c: call cache_export to export a filesystem if
595 new_cache, check if new cache is used, and call my_svc_run instead
597 * utils/mountd/svc_run.c: new file defining my_svc_run
598 * utils/mountd/cache.c: new file for handling cache upcalls.
599 * support/nfs/cacheio.c(check_new_cache): new function to check if
600 new cache should be used.
603 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
605 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
606 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
607 * utils/exportfs/exportfs.c(dump): ditto
609 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
611 * support/export/hostname.c(get_reliable_hostbyaddr): new function
612 to get host name from address with full checking of authenticity.
613 * support/include/misc.h: declare above function
614 * utils/mountd/auth.c(auth_authenticate_internal): remove all
615 logic for authenticating address.
616 * utils/mountd/auth.c(auth_authenticate): call new
617 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
620 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
622 * tools/rpcgen/rpc_main.c(find_cpp): removed
623 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
624 then try hard-coded paths.
626 2003-03-26 Chip Salzenberg <chip@pobox.com>
628 * debian/changelog: Version 1.0.3-1.
630 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
632 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
633 "const char*", not "char*".
635 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
637 * configure.in (VERSION): Set to "1.0.3".
638 * nfs-utils.spec: Likewise.
639 * configure: Regenerated.
641 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
643 * support/nfs/cacheio.c: New File - support for read/writing
644 to export cache in /proc/rpc/*/channel
645 * support/nfs/Makefile: compile cacheio.c
646 * support/include/nfslib.h: declare cacheio.c functions
647 * support/nfs/nfsexport.c: export and unexport through
648 /proc/rpc/*/channel if possible, as old syscall interface
649 may not survive into 2.6 on all architectures.
651 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
652 Ben Leslie <benno@sesgroup.net>
654 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
655 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
656 former would incorectly ignore defport if the application
657 explicitly set __rpcfdtype. The later is sufficient to avoid the
658 special handling in the case where stdin is an internet socket.
660 * utils/mountd/mountd.c(main): Add 'n' to option list in
661 getopt_long as this is a short form of --no-tcp which want being
664 2003-02-12 Chip Salzenberg <chip@pobox.com>
666 * debian/changelog: Version 1.0.2-2.
668 2002-11-27 Chip Salzenberg <chip@pobox.com>
670 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
671 overflow bug. Reformat per rest of source file.
673 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
675 * utils/exportfs/exports.man: Correct notes about whether the wild
676 card characters match a period. They do.
678 2002-10-15 Juan Gomez <juang@us.ibm.com>
680 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
682 (mountlist_add): Call slink_safe_rename instead of rename.
684 2002-10-11 H.J. Lu <hjl@lucon.org>
686 * support/include/exportfs.h (export_errno): New.
688 * support/nfs/exports.c: Include <errno.h>.
690 (getexportent): Set export_errno to EINVAL for bad option.
691 (parseopts): Likewise.
692 Report the location of the default sync/async option.
694 * utils/exportfs/exportfs.c (main): Initialize export_errno to
695 0. Return export_errno.
697 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
698 NeilBrown <neilb@cse.unsw.edu.au>
700 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
701 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
703 2002-09-16 Chip Salzenberg <chip@pobox.com>
705 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
707 2002-09-15 Chip Salzenberg <chip@pobox.com>
709 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
710 socket, as occurs when run from sshd.
711 * debian/changelog: Version 1.0.2-1.
713 2002-09-12 H.J. Lu <hjl@lucon.org>
715 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
718 2002-09-12 H.J. Lu <hjl@lucon.org>
720 * configure.in: Remove checking svctcp_socket and svcudp_socket.
721 * configure: Regenerated.
723 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
724 (HAVE_SVCUDP_SOCKET): Removed.
726 * support/include/nfslib.h: Undo the last change.
728 2002-09-12 H.J. Lu <hjl@lucon.org>
730 * support/include/nfslib.h (svctcp_socket): Protect it with
732 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
734 2002-09-12 H.J. Lu <hjl@lucon.org>
736 * configure.in (VERSION): Set to "1.0.2".
737 * configure: Regenerated.
738 * nfs-utils.spec: Likewise.
740 2002-09-12 H.J. Lu <hjl@lucon.org>
742 * configure.in: Check svctcp_socket and svcudp_socket.
743 * configure: Regenerated.
745 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
746 (HAVE_SVCUDP_SOCKET): New.
748 * support/include/nfslib.h (svctcp_socket): New.
749 (svcudp_socket): New.
751 * support/nfs/Makefile (OBJS): Add svc_socket.o.
753 * support/nfs/svc_socket.c: New.
755 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
756 svcudp_socket if port is unspecified.
758 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
760 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
761 (killer): New. Signal handler to unregister.
762 (main): Use killer. Call svcudp_socket to get the default
765 2002-09-02 Juan Gomez <juang@us.ibm.com>
766 NeilBrown <neilb@cse.unsw.edu.au>
768 Add -N option to statd to run in notify-only mode.
770 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
771 * utils/statd/statd.man: document -N
772 * utils/statd/statd.c: enabled -N, largely exists but needed to be
773 uncommented and completed
775 2002-09-02 Juan Gomez <juang@us.ibm.com>
776 NeilBrown <neilb@cse.unsw.edu.au>
778 statd to have " -P directory" arg to use that directory instead
779 of /var/lib/nfs. This is useful for fail-over clusters.
781 * utils/statd/statd.h: define SM_DIR etc as var, not const.
782 * utils/statd/statd.c: define "-P" option to set SM_*
784 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
786 * utils/statd/notify.c: ditto.
787 * utils/statd/statd.man: document -P option.
789 2002-08-26 Chip Salzenberg <chip@pobox.com>
791 * utils/nfsd/nfsd.man: Fix typo.
792 * debian/changelog: Version 1.0.1-1.
794 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
796 * let parseopts know if /etc/exports was being read or not,
797 and have it only print "no sync or async" warning in that case.
799 2002-05-06 Tom McNeal <trmcneal@attbi.com>
800 NeilBrown <neilb@cse.unsw.edu.au>
802 * utils/nfsstat/nfsstat.c: Handle differing format for
803 /proc/net/rpc/nfsd between pre and post 2.4.0
805 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
806 James Pearson <james-p@moving-picture.com>
808 * support/nfs/rmtab.c(fendrmtabent): sync changes to
809 storage before returning, as this is critical state
811 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
812 H.J. Lu <hjl@lucon.org>
814 * etc/redhat/nfs: New.
816 2002-04-08 H.J. Lu <hjl@lucon.org>
818 * etc/redhat/nfs.init: Updated.
820 * nfs-utils.spec.in: Updated.
821 * nfs-utils.spec: Regenerated.
823 * utils/mountd/mountd.c (longopts): Fix a typo.
825 * utils/mountd/mountd.man: Updated.
827 2002-04-07 H.J. Lu <hjl@lucon.org>
829 * etc/redhat/nfslock.init (restart): Just do stop and start.
831 * etc/redhat/nfs.init: Fix a typo.
833 2002-04-07 H.J. Lu <hjl@lucon.org>
835 * configure.in (VERSION): Set to "1.0.1".
836 * configure: Regenerated.
837 * nfs-utils.spec: Likewise.
839 * README: Updated for 1.0.1.
841 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
842 H.J. Lu <hjl@lucon.org>
844 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
846 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
847 NeilBrown <neilb@cse.unsw.edu.au>
849 Add support for fsid=nn export option so that device
850 numbers don't go in filehandles.
851 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
852 is set, pass the fsid in-place of the device number
853 * support/nfs/exports.c: parse and print fsid= option.
854 Also check if efname has been set, and use "command line"
855 instead in error messages.
856 Also, use strtol instead of atoi for anon[ug]id= so that
857 bad numbers cause errors.
859 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
860 NeilBrown <neilb@cse.unsw.edu.au>
862 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
863 flag so that "sync" becomes the default.
864 Check that either "sync" or "async" is given as an option
865 and warn if neither are present
866 * utils/exportfs/exports.man: change documentation for "sync"
867 to be documentation for "async".
868 * utils/exportfs/exportfs.man: note that "sync" is the default
872 2002-01-02 Chip Salzenberg <chip@pobox.com>
874 * support/export/nfsctl.c (expsetup): Don't export entries that
875 specify id mappings not supported by the kernel. No extant kernel
876 supports any significant mapping, only 'identity' (i.e. none).
877 When other mappings are supported, this code will need changing.
878 * debian/changelog: Version 1.0-2.
880 2001-12-26 Chip Salzenberg <chip@pobox.com>
882 * nfs-utils.spec (Version): Set to "1.0".
883 * configure.in (VERSION): Likewise.
884 * configure: Regenerated.
886 * debian/changelog: Version 1.0-1.
888 * utils/exportfs/exports.man: Emphasize the need for options to
889 immediately follow client names. Explain that wildcards don't
890 usually work on addresses, but may work when reverse DNS fails.
891 Comment out a leftover TP that was TPing our indentation.
892 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
893 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
894 * debian/changelog: Version 0.3.3-6.
896 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
898 * support/export/client.c(client_lookup): If a host has multiple
899 IP addresses, then we must always use the result of a
900 gethostbyname, not that of gethostbyaddr for exporting
902 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
904 * support/export/client.c (client_lookup): use strcasecmp when
906 * support/nfs/export.c (getexportent): add fromkernel arg and use
907 different defaults as kernels prior to 2.4.11 assume different
908 defaults in /proc/fs/nfs/exports
909 * support/include/nfslib.h, support/export/export.c,
910 support/export/xtab.c: support extra "fromkernel" arg for
913 2001-12-13 Chip Salzenberg <chip@pobox.com>
915 * debian/changelog: Version 0.3.3-5.
917 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
919 * support/nfs/xio.c (xskip): Call `xungetc' instead of
920 `ungetc' to keep x_line more properly.
922 2001-11-26 Chip Salzenberg <chip@pobox.com>
924 * utils/showmount/showmount.c (main): Don't assume that strings
925 starting with digits are IP addresses.
926 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
927 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
928 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
929 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
930 man pages: We check host names *and* addresses with tcpwrappers.
931 * debian/changelog: Version 0.3.3-4.
933 2001-11-21 Chip Salzenberg <chip@pobox.com>
935 * support/nfs/clients.c (cfname): Added: current clients file name.
936 (setnfsclntent): Set it.
937 ({get,end}nfsclntent, syntaxerr): Use it.
938 * support/nfs/exports.c (efname): Added: current exports file name.
939 (setnfsexportent): Set it.
940 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
941 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
942 * debian/changelog: Version 0.3.3-3.
944 2001-10-11 Chip Salzenberg <chip@pobox.com>
946 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
947 * debian/changelog: Version 0.3.3-2.
949 2001-10-08 Chip Salzenberg <chip@pobox.com>
951 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
952 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
953 * utils/mountd/mountd.man: Update paths to /var/lib.
954 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
956 2001-10-06 Preston Brown <pbrown@redhat.com>
958 * utils/nfsstat/nfsstat.man: Updated.
960 2001-09-24 H.J. Lu <hjl@lucon.org>
962 * configure.in (VERSION): Set to "0.3.3".
963 * configure: Regenerated.
964 * nfs-utils.spec: Likewise.
966 * README: Updated for 0.3.3.
968 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
970 Arrange that "exportfs -au" never does DNS lookup:
972 * support/export/client.c (client_lookup) : add "canonical"
973 flag which says that the hostname is known to be canonical, so
976 * support/export/export.c (export_create) : add "canonical"
977 flag to be passed down to client_lookup
978 * support/export/export.c (export_lookup) : Likewise
980 * support/export/xtab.c (xtab_read) : pass appropriate
981 "canonical" flag to export_lookup and export_create:
982 set if reading list of filesystems currently exports
985 * support/export/export.c (export_read) : pass 0 as
986 "canonical" flag to export_lookup and export_create
987 * support/export/rmtab.s (rmtab_read) : Likewise
989 * support/include/exportfs.h : redeclare various routines
990 to have "canonical" flag
992 * utils/exportfs/exportfs.c (main) : redo logic for
993 "-au" to read in what is currently exported, but never even
994 look at what "should" be exported.
996 * utils/exportfs/exportfs.c (unexportall) : remove this
997 routine. Functionality is completely included in
1000 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
1001 flag to zero in calls to export_lookup and export_create.
1004 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
1005 Anne Milicia <milicia@missioncriticallinux.com>
1007 * support/export/client.c (client_lookup) call gethostbyadd
1008 to make sure that we have a canonical hostname, even for
1010 * utils/exportfs/exportfs.c (exportfs) Likewise
1012 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1014 * support/nfs/exports.c (putexportent): \octal quote any spaces
1016 * support/nfs/xio.c (xgettok): recognise double-quote and
1017 \octal quoting in path names
1018 * utils/exportfs/exports.man: document quoting conventions
1021 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1023 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
1024 change from 2000-08-02: It causes problems if someone exports
1025 to both a hostname and IP addresses. nfs-utils must be
1026 consistant about the canonical name that it chooses.
1028 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
1029 H.J. Lu <hjl@lucon.org>
1031 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
1033 * utils/statd/statd.c (longopts): Add "name".
1034 (usage): Add "-n/--name".
1035 (main): Set MY_NAME with "-n/--name".
1037 * utils/statd/state.c (change_state): Set MY_NAME only if it
1040 * utils/statd/statd.man: Updated for "-n/--name".
1042 2001-07-26 H.J. Lu <hjl@lucon.org>
1044 * nfs-utils.spec (Release): Set to 8.
1046 2001-07-25 H.J. Lu <hjl@lucon.org>
1048 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
1051 2001-06-27 H.J. Lu <hjl@lucon.org>
1053 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
1055 2001-06-27 H.J. Lu <hjl@lucon.org>
1057 * utils/rquotad/rquota_server.c: Don't call statfs () for
1058 the block size. Use BLOCK_SIZE instead.
1060 2001-06-27 H.J. Lu <hjl@lucon.org>
1062 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
1063 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
1065 * configure.in (enable_nfsv3): Set to yes by default.
1066 (--enable-rquotad): Added
1067 (AC_PROG_CXX): Removed.
1068 (AC_OUTPUT): Add utils/Makefile.
1069 (CC_FOR_BUILD): Renamed from BUILD_CC.
1070 * configure: Regenerated.
1072 * utils/Makefile: Removed.
1074 * utils/Makefile.in: New.
1076 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
1078 (CC_FOR_BUILD): Renamed from BUILD_CC.
1079 * nfs-utils.spec: Regenerated.
1081 2001-06-15 Chip Salzenberg <chip@debian.org>
1083 * debian/changelog: Version 0.3.2-2.
1084 * debian/*.init: Minor fixes.
1086 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
1088 * etc/nodist/nfs-server: Fixed a bug where the script would
1089 disable mounts from NFSv3 clients if NFSv3 is present.
1091 2001-06-05 H.J. Lu <hjl@lucon.org>
1093 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
1094 (main): Support --descriptors/-o to set the limit of the number
1095 of open file descriptors.
1098 * utils/mountd/mountd.man: Updated for --descriptors/-o.
1100 2001-06-04 H.J. Lu <hjl@lucon.org>
1102 * nfs-utils.spec (Release): Set to 6.
1104 2001-05-28 H.J. Lu <hjl@lucon.org>
1106 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
1107 * utils/mountd/mountd.c (main): Likewise.
1108 * utils/nfsd/nfsd.c (main): Likewise.
1109 * utils/rquotad/rquota_svc.c (main): Likewise.
1111 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
1113 * support/export/client.c (client_check): Check IP address
1116 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
1118 * support/export/client.c (client_gettype): Treat `*' as
1121 2001-04-22 H.J. Lu <hjl@lucon.org>
1123 * nfs-utils.spec.in: Fix a typo.
1124 * nfs-utils.spec: Regenerated.
1126 2001-04-21 H.J. Lu <hjl@lucon.org>
1128 * nfs-utils.spec.in: Fix cross build.
1129 * nfs-utils.spec: Regenerated.
1130 (Release): Set to 5.
1132 2001-04-18 H.J. Lu <hjl@lucon.org>
1134 * nfs-utils.spec.in: Support cross build.
1135 * nfs-utils.spec: Regenerated.
1136 (Release): Set to 4.
1139 * config.guess: New.
1141 * config.mk.in (BUILD_CC): New.
1142 (CC): Set to $(BUILD_CC) if BUILD is defined.
1145 (RANLIB): Set to @RANLIB@.
1147 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
1148 * configure: Regenerated.
1150 * tools/rpcgen/Makefile (BUILD): Set to true.
1152 2001-04-01 Chip Salzenberg <chip@valinux.com>
1154 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
1155 redundant, and sometimes broken, declaration of svc_fdset;
1157 * support/nfs/rpcmisc.c (closedown): Likewise.
1159 2001-03-21 H.J. Lu <hjl@lucon.org>
1161 * nfs-utils.spec: Regenerated.
1162 (Release): Set to 3.
1164 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
1166 * utils/statd/statd.c (main): make sure file descriptors 0-2
1167 are open to /dev/null.
1169 2001-03-21 H.J. Lu <hjl@lucon.org>
1171 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
1172 * support/nfs/rpcmisc.c: Likewise.
1173 * utils/rquotad/rquota_svc.c: Likewise.
1174 * utils/rquotad/rquotad.man: Likewise.
1175 * utils/statd/Makefile: Likewise.
1176 * utils/statd/rmtcall.c: Likewise.
1177 * utils/statd/simulate.c: Likewise.
1178 * utils/statd/statd.c: Likewise.
1179 * utils/statd/statd.man: Likewise.
1181 2001-03-11 H.J. Lu <hjl@lucon.org>
1183 * configure.in (RELEASE): New. Default to 1, set by
1184 --with-release=XXX. Substitute nfs-utils.spec.
1185 * nfs-utils.spec.in (Release): Set to @RELEASE@.
1186 * configure: Regenerated.
1187 * nfs-utils.spec: Likewise.
1189 2001-03-11 H.J. Lu <hjl@lucon.org>
1191 * utils/rquotad/rquotad.man: Fix a typo.
1193 2001-03-11 H.J. Lu <hjl@lucon.org>
1195 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
1196 * support/nfs/rpcmisc.c: Likewise.
1197 * utils/rquotad/rquota_svc.c: Likewise.
1198 * utils/rquotad/rquotad.man: Likewise.
1199 * utils/statd/Makefile: Likewise.
1200 * utils/statd/rmtcall.c: Likewise.
1201 * utils/statd/simulate.c: Likewise.
1202 * utils/statd/statd.c: Likewise.
1203 * utils/statd/statd.man: Likewise.
1205 2001-03-10 H.J. Lu <hjl@lucon.org>
1207 * configure.in (VERSION): Set to "0.3.2".
1208 * configure: Regenerated.
1209 * nfs-utils.spec: Likewise.
1211 * README: Updated for 0.3.2.
1213 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
1215 * utils/rquotad/rquotad.man: Updated for -p.
1216 * utils/statd/statd.man: Likewise.
1218 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
1220 * support/nfs/rpcmisc.c: export makesock()
1222 * support/include/rpcmisc.h (makesock): Declared.
1224 * utils/rquotad/rquota_svc.c: added longopts, added support for
1225 specifying the port to bind to on the command line.
1227 * utils/statd/statd.c: ditto, also specify port used for
1228 outgoing connections.
1229 (do_regist): Removed.
1231 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
1232 get_socket. Make it extern.
1234 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
1235 instead of do_regist.
1237 * utils/statd/Makefile (LIBS): link with our own libnfs
1239 2001-03-09 H.J. Lu <hjl@lucon.org>
1241 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
1242 * etc/nodist/nfs-client: Likewise.
1244 2001-02-26 Chip Salzenberg <chip@valinux.com>
1246 * debian/changelog: Version 0.3.1-1.
1247 * Mention upstream source and license in copyright file.
1248 * Add build-Depends for debhelper and libwrap0-dev.
1250 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
1252 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
1253 * etc/nodist/nfs-client: Likewise.
1255 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
1257 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
1260 2001-02-17 Patrick J. LoPresti <patl@curl.com>
1262 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
1265 2001-02-14 H.J. Lu <hjl@lucon.org>
1267 * utils/statd/rmtcall.c: Include <time.h>.
1268 * utils/statd/svc_run.c: Likewise.
1270 2001-02-14 H.J. Lu <hjl@lucon.org>
1272 * configure.in (VERSION): Set to "0.3.1".
1273 * configure: Regenerated.
1274 * nfs-utils.spec: Likewise.
1276 * README: Updated for 0.3.1.
1278 2001-02-14 H.J. Lu <hjl@lucon.org>
1280 * support/nfs/rpcmisc.c: Include <time.h>.
1282 2001-02-14 Chip Salzenberg <chip@valinux.com>
1284 * debian/control: Change priority of nhfsstone package to 'extra'.
1286 2001-02-12 Chip Salzenberg <chip@valinux.com>
1288 * debian/changelog: Version 0.3-2.
1290 2001-02-02 H.J. Lu <hjl@lucon.org>
1292 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
1294 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
1295 out SO_SNDBUF/SO_RCVBUF.
1296 (rpc_init): Remove bufsize and remove socksz in calls to
1299 * utils/mountd/mountd.c (main): Remove bufsize in calls to
1302 2001-01-28 Chip Salzenberg <chip@valinux.com>
1304 * debian/changelog: Version 0.3-1.
1306 2001-01-25 H.J. Lu <hjl@lucon.org>
1308 * configure.in (VERSION): Set to "0.3".
1309 * configure: Regenerated.
1310 * nfs-utils.spec: Likewise.
1312 * README: Updated for 0.3.
1314 2001-01-25 H.J. Lu <hjl@lucon.org>
1316 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
1318 2001-01-20 Chip Salzenberg <chip@valinux.com>
1320 * support/include/xio.h (xgetc): Declare to return int.
1321 * support/nfs/xio.c (xgetc): Return int.
1322 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
1323 * utils/statd/statd.c (main): Use int for value of getopt.
1324 * debian/changelog: Version 0.2.1-5.
1326 2000-12-10 Chip Salzenberg <chip@valinux.com>
1328 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
1329 program and procedure numbers of kernel lockd's callback. Also,
1330 besides the old (and broken) procedure #24, allow #16 per Trond.
1332 2000-12-03 Chip Salzenberg <chip@valinux.com>
1334 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
1335 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
1336 * debian/changelog: Version 0.2.1-4.
1338 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
1340 * utils/mountd/auth.c (auth_authenticate): Log the bad path
1343 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
1345 * support/nfs/exports.c (getexportent): Check for host name
1346 without option, or options without hostname, and print a warning,
1347 as this is most likely a typo.
1349 2000-11-19 Chip Salzenberg <chip@valinux.com>
1351 * debian/control: Add dependency on portmap.
1352 * debian/changelog: Version 0.2.1-3.
1354 2000-11-10 H.J. Lu <hjl@lucon.org>
1356 * nfs-utils.spec.in: Don't use libtool.
1357 Add ChangeLog and COPYING to doc.
1358 * nfs-utils.spec: Rebuild.
1360 2000-11-09 H.J. Lu <hjl@lucon.org>
1362 * etc/redhat/nfs.init (start): Back out the last change.
1364 2000-11-09 H.J. Lu <hjl@lucon.org>
1366 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
1367 TCP is not supported by kernel.
1369 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
1371 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
1372 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
1374 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
1376 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
1378 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
1379 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
1380 callbacks to local lockd.
1382 2000-10-18 Scott McDermott <mcdermot@questra.com>
1384 * utils/exportfs/exports.man: Updated for CIDR netmask.
1386 2000-10-17 Scott McDermott <mcdermot@questra.com>
1388 * support/export/client.c (client_init): Support CIDR netmask
1391 2000-10-11 H.J. Lu <hjl@lucon.org>
1393 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1394 * configure: Rebuilt.
1396 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
1398 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1399 "/var/lib/nfs/state".
1401 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
1403 * utils/statd/statd.h (run_mode): New global bitmask of runtime
1404 behaviors: fg/bg, logging, etc.
1405 * utils/statd/statd.c: New command line options: -V -h -? -d .
1406 * utils/statd/statd.man: Update for changes to statd.
1408 * utils/statd/log.h (log_init): Remove parameter of function; use
1409 global variable "name_p" instead.
1410 * utils/statd/log.c: Add support for logging to stderr.
1412 * utils/statd/notlist.c: Partially rewrite notify list handling
1413 functions. Eliminate run-off-end-of-list bug when calling
1414 nlist_insert_timer. Add lots of comments.
1416 2000-09-27 H.J. Lu <hjl@lucon.org>
1418 * README: Updated for RedHat 7.0.
1420 2000-09-27 H.J. Lu <hjl@lucon.org>
1422 * nfs-utils.spec: Rebuild.
1424 2000-09-27 H.J. Lu <hjl@lucon.org>
1426 * README: Updated for 0.2.1.
1428 2000-09-27 H.J. Lu <hjl@lucon.org>
1430 * nfs-utils.spec.in: Updated to use rpm macros and support
1433 2000-09-25 H.J. Lu <hjl@lucon.org>
1435 * configure.in (VERSION): Set to "0.2.1".
1436 * configure: Regenerated.
1437 * nfs-utils.spec: Updated.
1439 2000-09-25 H.J. Lu <hjl@lucon.org>
1441 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1442 non-NULL hostent is always returned.
1444 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1446 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1447 have an executable (i.e. kernel threads)
1449 2000-09-01 H.J. Lu <hjl@lucon.org>
1451 * README: Updated for 0.2.
1453 2000-09-01 Jay Weber <jweber@valinux.com>
1455 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1456 supporting version 3 of nfs if available, else it will fall back to
1457 version 2 support only.
1459 2000-08-30 H.J. Lu <hjl@lucon.org>
1461 * configure.in (VERSION): Set to "0.2".
1462 * configure: Regenerated.
1463 * nfs-utils.spec: Updated.
1465 2000-08-25 H.J. Lu <hjl@lucon.org>
1467 * support/misc/tcpwrapper.c (logit): Modify the log output.
1469 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1471 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1472 utils/mountd/mountd.man: updated
1474 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1475 * utils/rquotad/Makefile: fix comment
1477 * support/misc/tcpwrapper.c (logit): added comment about waiting
1478 for the children after fork()
1480 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1481 zombies behind (from logit()'s fork)
1482 * utils/rquotad/rquota_svc.c (main): ditto
1483 * utils/statd/statd.c (main): ditto
1485 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1486 to check_default instead of 0, for prognum
1488 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1489 to check_default instead of 0, for prognum
1491 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1492 HAVE_TCP_WRAPPER is defined.
1493 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1494 defined. Reject an RPC call if check_default () fails.
1496 2000-08-25 H.J. Lu <hjl@lucon.org>
1498 * support/include/tcpwrapper.h: New for the tcp wrapper
1500 * support/misc/Makefile: Likewise.
1501 * support/misc/from_local.c: Likewise.
1502 * support/misc/tcpwrapper.c: Likewise.
1504 * aclocal.m4 (AC_TCP_WRAPPER): New.
1505 * configure.in: Use it. Substitute LIBWRAP.
1506 * configure: Rebuilt.
1508 * config.mk.in (LIBNSL): New.
1509 (LIBWRAP): Likewise.
1511 * support/Makefile (SUBDIRS): Add misc.
1513 * support/lib/Makefile (LIBS): Add libmisc.a.
1515 * utils/rquotad/Makefile (LIBS): Add
1517 -lmisc $(LIBWRAP) $(LIBNSL)
1519 * utils/statd/Makefile (LIBS): Likewise.
1521 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1522 HAVE_TCP_WRAPPER is defined.
1523 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1524 defined. Reject an RPC call if check_default () fails.
1526 * utils/statd/statd.c: Include "tcpwrapper.h" if
1527 HAVE_TCP_WRAPPER is defined.
1528 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1529 check_default () before calling sm_prog_1 (). Define it as
1530 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1532 2000-08-25 Chip Salzenberg <chip@valinux.com>
1534 * debian/*: Complete Debian build support.
1535 * etc/debian/*: Remove.
1537 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1539 * support/export/client.c(client_check): removed the "dot+1" as a
1540 ypdomain argument to innetgr as this is entirely bogus.
1541 It should always be NULL.
1543 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1545 * support/export/xtab.c(xtab_read): introduce new mode for
1546 reading xtab. i.e. a list of exports that might be known to the
1547 kernel, or might not. These are flagged as m_exported == -1
1548 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1549 value "2" for xtab, meaning don't trust this too much.
1550 * support/include/exportfs.h(struct mexport): changed m_exported
1551 from one bit to an int so that it can hold new value
1552 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1553 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1554 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1557 * support/nfs/xio.c(xflock): added O_CREAT when getting
1558 a write lock so that missing files aren't fatal.
1560 * etc/debian/nfs-common: new file from "potato"
1561 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1563 2000-08-09 H.J. Lu <hjl@lucon.org>
1565 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1566 startup to ensure all existing clients work fine.
1568 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1569 to xtab_read () for reading _PATH_XTAB.
1571 2000-08-02 H.J. Lu <hjl@lucon.org>
1573 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1574 avoid the reverse name lookup.
1576 2000-07-04 H.J. Lu <hjl@lucon.org>
1578 * utils/statd/log.c: Include <stdlib.h> for exit ().
1580 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1583 2000-07-04 H.J. Lu <hjl@lucon.org>
1585 * configure.in (VERSION): Set to "0.1.9.1".
1586 * configure: Regenerated.
1587 * nfs-utils.spec: Updated.
1591 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1593 * support/export/hostname.c (hostent_dup): Handle the NULL
1596 2000-07-03 H.J. Lu <hjl@lucon.org>
1598 * README: Update the util-linux requirement.
1600 2000-07-03 H.J. Lu <hjl@lucon.org>
1602 * configure.in (VERSION): Set to "0.1.9".
1603 * configure: Regenerated.
1604 * nfs-utils.spec: Updated.
1608 2000-07-03 H.J. Lu <hjl@lucon.org>
1610 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1611 stop to ensure all clients can still access the server
1612 before it is shutdown.
1614 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1616 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1617 calls with format string.
1619 2000-06-28 Chip Salzenberg <chip@valinux.com>
1621 * utils/statd/log.c (log): Call syslog with format string.
1623 2000-06-27 H.J. Lu <hjl@lucon.org>
1625 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1626 instead of OPEN_MAX.
1628 2000-06-27 H.J. Lu <hjl@lucon.org>
1632 2000-06-27 H.J. Lu <hjl@lucon.org>
1634 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1635 startup to ensure all existing clients are exported.
1637 * configure.in (VERSION): Set to "0.1.8.2".
1638 * configure: Regenerated.
1639 * nfs-utils.spec: Updated.
1641 2000-06-06 H.J. Lu <hjl@lucon.org>
1643 * configure.in (VERSION): Set to "0.1.8.1".
1644 * configure: Regenerated.
1645 * nfs-utils.spec: Updated.
1647 2000-06-06 H.J. Lu <hjl@lucon.org>
1649 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1650 to "struct sockaddr_in *" for glibc 2.2.
1651 (mount_umnt_1_svc): Likewise.
1652 (mount_umntall_1_svc): Likewise.
1653 (mount_export_1_svc): Likewise.
1654 (mount_exportall_1_svc): Likewise.
1655 (mount_pathconf_2_svc): Likewise.
1656 (get_rootfh): Likewise.
1658 2000-06-04 H.J. Lu <hjl@lucon.org>
1660 * etc/redhat/nfs.init: Fix a typo in comment.
1662 2000-05-31 H.J. Lu <hjl@lucon.org>
1664 * configure.in (VERSION): Set to "0.1.8".
1665 * configure: Regenerated.
1666 * nfs-utils.spec: Updated.
1670 2000-05-31 H.J. Lu <hjl@lucon.org>
1672 * configure.in (VERSION): Set to "0.1.7.5".
1673 * configure: Regenerated.
1674 * nfs-utils.spec: Updated.
1676 * support/include/nfslib.h (exportent): Add a new field,
1677 r_count, to count the number of mounts from a client.
1678 (getrmtabent): Take a new argument for position in file.
1679 (putrmtabent): Likewise.
1680 (fgetrmtabent): Likewise.
1681 (fputrmtabent): Likewise.
1682 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1683 for position in file.
1684 (fgetrmtabent): Likewise.
1685 (putrmtabent): Likewise.
1686 (fputrmtabent): Likewise.
1688 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1691 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1692 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1693 and fputrmtabent ().
1694 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1695 (mountlist_del): Likewise.
1696 (mountlist_del_all): Likewise.
1697 (mountlist_list): Likewise.
1699 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1700 for the existing entry and initialize "r_count" to 1.
1701 (mountlist_del): Decrement "r_count".
1703 2000-05-18 H.J. Lu <hjl@lucon.org>
1705 * configure.in (VERSION): Set to "0.1.7.4".
1706 * configure: Regenerated.
1707 * nfs-utils.spec: Updated.
1709 2000-05-18 H.J. Lu <hjl@lucon.org>
1711 * etc/redhat/nfs.init (restart): Just do stop and start.
1713 2000-05-09 Jay Weber <jweber@valinux.com>
1715 * utils/rquotad/hasquota.c: added support for ext3 recognition
1717 * utils/rquotad/mntent.h: Likewise.
1719 2000-05-01 H.J. Lu <hjl@lucon.org>
1721 * configure.in (VERSION): Set to "0.1.7.3".
1722 * configure: Regenerated.
1723 * nfs-utils.spec: Updated.
1725 2000-05-01 H.J. Lu <hjl@lucon.org>
1727 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1728 mounting poins in /etc/fstab.
1730 2000-05-01 H.J. Lu <hjl@lucon.org>
1732 * configure.in (VERSION): Set to "0.1.7.2".
1733 * configure: Regenerated.
1734 * nfs-utils.spec: Updated.
1736 2000-05-01 H.J. Lu <hjl@lucon.org>
1738 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1739 to check for the mounting point.
1741 2000-04-29 Chip Salzenberg <chip@valinux.com>
1742 Neil Brown <neilb@cse.unsw.edu.au>
1744 * Really re-use RPC ports.
1745 (Fixes earlier patch. Sorry, Neil.)
1747 2000-04-26 H.J. Lu <hjl@lucon.org>
1749 * configure.in (VERSION): Set to "0.1.7.1".
1750 * configure: Regenerated.
1751 * nfs-utils.spec: Updated.
1753 2000-04-26 H.J. Lu <hjl@lucon.org>
1755 * etc/redhat/nfslock.init: Check if lockd exits before killing
1758 2000-04-25 H.J. Lu <hjl@lucon.org>
1760 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1762 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1764 * support/nfs/exports.c (parsesquash): Correctly set the
1767 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1769 * support/include/nfs/nfs.h: Removed knowledge of internals of
1770 kernel filehandles (which can change) and defined nfs_fh_size
1771 which has variable size
1773 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1774 get variable sized file handles, and change getfh{,old} to
1777 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1780 * tools/Makefile, tools/nlmtest/nlmtest.c
1781 nlmtest.c depended on internel format of file handles, so now
1785 2000-03-12 Chip Salzenberg <chip@valinux.com>
1786 Neil Brown <neilb@cse.unsw.edu.au>
1788 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1790 2000-03-13 H.J. Lu <hjl@lucon.org>
1792 * etc/redhat/nfsd.init: Updated.
1794 * etc/redhat/nfslock.init: Updated.
1796 * nfs-utils.spec.in: Updated.
1798 * configure.in (VERSION): Set to "0.1.7".
1799 * configure: Regenerated.
1800 * nfs-utils.spec: Updated.
1804 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1806 * utils/exportfs/exportfs.c (dump): Included printing of
1807 nohide, no_subtree_check, and insecure_locks
1809 2000-02-26 Chip Salzenberg <chip@valinux.com>
1811 * config.mk.in (INSTALLSUID): Strip ("-s").
1812 (INSTALLSCRIPT): Define.
1813 * utils/nhfsstone/Makefile: Use it.
1815 2000-02-26 Chip Salzenberg <chip@valinux.com>
1817 * utils/lockd/lockd.man: Create.
1818 * utils/lockd/Makefile: Install it.
1819 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1820 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1821 * utils/nhfsstone/Makefile: Install the helper scripts and
1823 * utils/exportfs/exports.man: Fix typo.
1825 2000-02-26 Chip Salzenberg <chip@valinux.com>
1827 * support/nfs/xio.c (xungetc): Decrement line number when
1828 character to unget is newline. Make first parameter int, so
1829 it can distinguish EOF from \377.
1830 * support/include/xio.h (xungetc): Adjust prototype.
1832 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1834 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1835 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1836 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1838 This is for supporting a new option introduced in 2.3.42
1840 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1842 * COPYING: Added. GPL.
1844 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1846 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1847 to get the block size.
1849 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1851 * nfs-utils.spec.in: Update ftp site.
1853 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1855 * README: Update hostnames.
1857 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1859 * configure.in (VERSION): Set to "0.1.6".
1860 * configure: Regenerated.
1861 * nfs-utils.spec: Updated.
1865 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1867 * utils/mountd/auth.c (auth_authenticate_internal): Call
1868 xstrdup for hostname before passing it to gethostbyname.
1870 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1873 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1875 * README: Update the mailing list address.
1877 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1879 * configure.in (VERSION): Set to "0.1.5".
1880 * configure: Regenerated.
1881 * nfs-utils.spec: Updated.
1885 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1887 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1890 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1892 * configure.in (VERSION): Set to "0.1.4".
1893 * configure: Regenerated.
1894 * nfs-utils.spec: Updated.
1898 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1900 * nfs-utils.spec.in: New file.
1902 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1904 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1906 1999-12-04 Chip Salzenberg <chip@valinux.com>
1908 * config.mk.in: Use $(CC) as set by configure.
1910 1999-12-04 Chip Salzenberg <chip@valinux.com>
1912 * rules.mk: Call $(MAKE) with $(MFLAGS).
1914 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1916 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1917 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1919 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1921 * nfs-utils.spec (Version): Set to 0.1.3.
1923 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1924 * configure: Regenerated.
1928 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1930 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1931 (_PATH_DEV_DSK): Likewise.
1932 (getquotainfo): Match the mounting point from /etc/mtab
1933 instead of calling nfsmount_to_devname ().
1935 1999-11-24 Chip Salzenberg <chip@valinux.com>
1937 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1938 to the new port 24 as well as the historical port 100021.
1940 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1942 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1943 stopping nfsd to stop spurious ESTALE on server shutdown.
1945 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1947 * support/nfs/exports.c (parseopts): make copy of opt string
1948 before 'nul'ing out commas so that
1950 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1952 applies both options to both exports.
1954 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1956 * README: Fix a few typos.
1958 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1960 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1961 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1962 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1963 (unsigned_dec): Likewise.
1964 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1965 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1967 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1969 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1970 (unsigned_dec): Likewise.
1971 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1972 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1973 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1975 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1977 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1978 * support/nfs/exports.c: added {no_,}subtree_check and changed
1980 * utils/exportfs/exports.man: added no_subtree_check and nohide
1981 and removed irrelevant stuff from unfsd.
1982 * support/export/rmtab.c: rmtab_read didn't quite do the right
1983 thing if a pathname from rmtab was a subdirectory of an export-point
1985 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1987 * README: Updated ftp site.
1989 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1991 * nfs-utils.spec (Version): Set to 0.1.2.
1993 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1994 * configure: Regenerated.
1998 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
2000 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
2001 (auth_authenticate_internal): Check for NULL return on forward
2003 (auth_authenticate): Handle "no_forward_dns".
2005 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
2007 * Version 0.1.1 released.
2009 * nfs-utils.spec (Version): Set to 0.1.1.
2011 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
2012 * configure: Regenerated.
2016 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
2018 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
2020 (Provides): Likewise.
2022 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
2024 * Initial version 0.1 released.
2026 * configure.in (VERSION): Set to "nfs-utils 0.1".
2027 * configure: Regenerated.
2029 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
2031 * utils/mountd/mountd.c (get_exportlist): Cleanup.
2033 * utils/exportfs/exportfs.c (unexport_all): Unexport from
2034 kernel only if the entry is exported to kernel.
2035 (unexportfs): Likewise.
2037 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
2039 1/ utils/mountd/rmtab.c::mountlist_list
2041 This routine stats the rmtab file to see if it has changed. It
2042 if has, it cleans up it's old copy of the data. But it still
2043 always re-read the file, thus returning multiple copies of the
2044 data on consecutive calls without intervening changes.
2045 "Showmount -a" didn't show this as it appears to sort/unique the
2046 data, but 'strace showmount -a' showed that the size of the
2047 datagram that it received grew.
2049 I moved the getrmtabent loop inside the mtime test.
2051 2/ utils/exportfs/exportfs.c
2053 Many routines used the m_path field of m_export instead of
2055 According to the comment in nfslib.h, m_path should only
2056 be used when processing a mount request (i.e. in mountd)
2057 where the mountpoint may be a subdirectory of the export point.
2059 I changed all occurances of m_path to e_path
2062 3/ utils/exportfs/exportfs.c:main
2064 extra arguments are not meaningful with -a or -r, but
2065 exportfs accepted them and then ignored the -a/-r, expect that
2066 -r would still unexport everything first.
2068 I generate an error if there are extra args and f_all
2070 4/ utils/exportfs/exportfs.c:main
2071 extract dump out as a special case.
2073 5/ utils/exportfs/exportfs.c
2074 made f_reexport a local variable.
2077 6/ utils/exportfs/exportfs.c:main,exportall
2079 support/export/rmtab.c
2080 only mayexport on newly created entries, don't set xtabent at all
2082 7/ support/include/nfslib.h
2084 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
2086 8/ support/export/xtab.c
2088 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
2092 9/ support/export/xtab.c
2094 xtab_mount_read now sets m_exported, and NOT
2095 xtabent and mayexport
2097 removed the append arguement from xtab_write as it was
2100 added is_export flag to xtab_write similar to xtab_read
2101 if is_export, only write entries with m_xtabent or m_addxtab
2102 if !is_export, only write entries with m_exported
2104 10/ support/export/export.c::export_allowed_internal
2106 added test for exp->m_mayexport, as the export tree
2107 may have entries that are no longer allowed to be exported,
2108 and so shouldn't caused deduced exported by rmtab_read
2110 11/ utils/exportfs/exportfs.c::main
2111 error checking of flags.
2113 12/ utils/exportfs/exportfs.c
2115 total rewrite of export and unexport logic.
2117 - build an exportslist of valid exports, based on
2118 current etab file and arguments,
2119 - read rmtab to instantiate relevant wild card entries
2120 - read etab to find out what is currently exported
2121 - synchronise intention with reality
2122 - write out etab and xtab
2125 discard the m_addxtab flag
2126 add m_changed flag so we know what to report in exportfs
2128 14/ utils/mountd/auth.c:auth_authenticate
2130 the value returned by gethostbyaddr was trusted.
2132 It now follows this with a call to gethostbyname
2133 and checks that the address is in the list.
2135 15/ support/export/nfsctl.c::cltsetup,expsetup
2137 force client names to lowercase as kernel is
2140 16/ quietened a few compiler warnings
2142 17/ support/export/client:client_lookup
2144 look for pre-existing client with same name before creating
2147 18/ support/include/exportfs.h
2149 The ordering of the MCL_* enum was:
2150 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
2152 I moved ANONYMOUS to the end.
2154 The ordering is significant when an export entry is being searched for to
2155 match a given address. There are two problems with ANONYMOUS being first.
2157 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
2158 then the ro case will always be found first and the privileged hosts won't get
2160 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
2161 export entry for the specific host, and writes it to xtab.
2162 When another request comes from the same host, the ANONYMOUS entry is found again,
2163 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
2164 again. If causes bloat in xtab.
2166 Putting ANONYMOUS at the end reflects it's nature as a catch-all
2168 19/ utils/exportfs/exportfs.man
2169 many updates to the man page to reflect changes to the code
2171 -----------------------
2177 - allow exportfs to modify rmtab file
2178 - make sure kernel never gets two clients with same IP address
2179 - possible kernel should reject
2180 - needs to be some way to lookup client in kernel by IP address
2181 - maybe get kernel to do case-insensitive comparisons on client names
2182 - remove unused clients from kernel
2184 - change etab to xtab and xtab to xtab.active
2186 - timestamp and/or statd-stamp in rmtab for removing old entries.
2188 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
2190 * linux-nfs: New directory.
2191 * linux-nfs/ChangeLog: Moved from ..
2192 * linux-nfs/INSTALL: Likewise.
2193 * linux-nfs/KNOWNBUGS: Likewise.
2194 * linux-nfs/NEW: Likewise.
2195 * linux-nfs/README: Likewise.
2196 * linux-nfs/THANKS: Likewise.
2197 * linux-nfs/TODO: Likewise.
2199 * Starting from knfsd 1.4.7.