1 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
2 *utils/mountd/mountd.c:
3 mountd currently always returns AUTH_NULL and AUTH_SYS as the
4 allowable flavors in mount replies. We want it to also return gss
5 flavors when appropriate. For now as a hack we just have it always
6 return the KRB5 flavors as well.
10 When attempting to mount an NFSv4 pseudofilesystem (fsid=0) and the
11 actual exported directory does not exist on the server, rpc.mountd
12 doesn't check the directory exists (when fsidtype=1, i.e. using fsid,
13 but does check for fsidtype=0, i.e. using dev/ino). The non-existent
14 exported directory path with fsid=0 is written to the kernel via
15 /proc/net/rpc/nfsd.export/channel, which leads to path_lookup() to
16 return ENOENT (seems appropriate). Unfortunately, the new_cache
17 approach ignores errors returned when writing via the channel file so
18 that particular error is lost and the mount request is silently ignored.
20 Assuming it doesn't make sense to revamp the new_cache/up-call method to
21 not ignore returned errors, it seems appropriate to fix the case where
22 rpc.mountd doesn't check for the existence of an exported directory with
23 fsid= semantics. The following patch does this by moving the stat() up
24 so it is done for both fsidtype's. I'm not certain whether the other
25 tests need to be executed for fsidtype=1, but it doesn't appear to hurt
26 [Not exactly true: the comparison of inode numbers caused problems so
27 now it's kept for fsidtype=0 only].
29 Would it be also desirable to log a warning for every error, if any,
30 returned by a write to any of the /proc/net/rpc/*/channel files which
31 would otherwise be ignored (maybe under a debug flag)?
33 * gssd/mountd/svcgssd: Changes gssd, svcgssd, and mountd to ignore a
34 SIGHUP rather than dying.
36 * many: Remove the gssapi code and rely on an external library instead.
38 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
39 * utils/exportfs/exports.man: Document the "crossmnt" export export option
40 * utils/gssd/krb5_util.c:
41 Add better debugging and partially revert the function
42 check for gss_krb5_ccache_name.
44 For MIT Kerberos releases up to and including 1.3.1, we *must*
45 use the routine gss_krb5_ccache_name to get the K5 gssapi code
46 to use a different credentials cache.
48 For releases 1.3.2 and on, we want to use the KRB5CCNAME
49 environment variable to tell it what to use.
50 (A problem was reported where 1.3.5 was being used, our
51 code was using gss_krb5_ccache_name, but the underlying
52 code continued to use the first (or default?) credentials
53 cache. Switching to using the env variable fixed the problem.
54 I cannot recreate this problem.
56 *utils/gssd/krb5_util.c:
57 Andrew Mahone <andrew.mahone@gmail.com> reported that reiser4
58 always has DT_UNKNOWN. He supplied patch to move the check
59 for regular files after the stat() call to correctly find
60 ccache files in reiser4 filesystem.
62 Also change the name comparison so that the wrong file is
63 not selected when the substring comparison is done.
65 *utils/gssd/krb5_util.c:
66 Limit the set of encryption types that can be negotiated by
67 the Kerberos library to those that the kernel code currently
70 This should eventually query the kernel for the list of
73 *utils/gssd/gss_util.c, utils/svcgssd/svcgssd_main_loop.c:
74 Print more information in error messages to help debugging failures.
76 *utils/svcgssd/svcgssd_proc.c: Increase token buffer size and
77 update error handling so that a response is always sent.
79 *utils/svcgssd/svcgssd_proc.c: Add support to retrieve
83 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
85 Consolidate some of the Kerberos checking instead of repeating
86 the same things for MIT and Heimdal.
87 Also adds more checks to distinguish 32-bit from 64-bit
89 Fix svcgssd Makefile so make TOP=../../ works correctly there.
90 Enable running a modern autoheader.
91 * utils/gssd/gss_oids.c: Use correct OID value for SPKM-3
92 * utils/gssd/gss_util.c: Fix build with older MIT releases that do not define GSS_C_NT_HOSTBASED_SERVICE
93 * utils/gssd/write_bytes.h, support/include/gssapi/gssapi.h:
94 Length of gss_buffer_desc is a size_t which is 64-bits on a
95 64-bit machine. Kernel code expects 32-bit integer for length.
96 Coerce length value into a 32-bit value when reading from or
97 writing to the kernel.
98 Change gssapi.h to use datatype size values obtained from
99 configure rather than hard-coded values.
100 * utils/idmapd/idmapd.c: The EV_INIT check here was wrong, and was
101 causing idmapd to become unresponsive to server requests after
103 * utils/idmapd/idmapd.c: Idmapd should flush the server id<->name
104 caches when its started.
106 2005-04-12 G. Allen Morris III <gam3@gam3.net>
108 * All Makefile: added TOP as needed for easier compile.
110 * utils/nfsstat/nfsstat.c: added NFS V4 support; added the -m
111 option; Added -2, -3, and -4 options; changed -a option to -v
112 option; added long options; changed default output to not
113 show V2 NFS statistics unless used.
115 * utils/nfsstat/nfsstat.man: Documented above changes; changed
116 authors email address; added BUGS section.
118 2005-04-07 Chip Salzenberg <chip@pobox.com>
120 * debian/changelog: Version 1.0.7-2.
122 2005-04-06 Chip Salzenberg <chip@pobox.com>
124 * config.guess, config.sub: Update.
126 * support/rpc/svc_auth_gss.c (_svcauth_gss): Avoid using a cast as
127 an lvalue, as it is non-portable.
129 * support/nfs/exports.c (parseopts): Accept "acl" option to mean
130 ~NFSEXP_NOACL, and "no_acl" to mean NFSEXP_NOACL.
131 (putexportent): Report NFSEXP_NOACL as "no_acl", and ~NFSEXP_NOACL
133 * utils/exportfs/exportfs.c (dump): Report NFSEXP_NOACL as
135 * utils/exportfs/exports.man: Document "no_acl".
137 2005-03-14 NeilBrown <neilb@cse.unsw.edu.au>
138 Denis Vlasenko <vda@ilport.com.ua>
139 * support/export/client.c(client_init and client_gettype):
140 treat N.N.N.N as a special case of MCL_SUBNETWORK instead of
143 2005-03-06 G. Allen Morris III <gam3@gam3.net>
144 * support/nfs/cacheio.c(readline): Could not read lines greater
145 than 128 bytes. [1157791]
146 * utils/exportfs/exports.man: Added a SEE ALSO section and
147 fixed 2 typos. [1018450]
149 2005-02-28 Trond Myklebust <trond.myklebust@fys.uio.no>
150 * utils/statd/rmtcall.c(statd_get_socket): If a port number is
151 explicitly given, make sure to try to bind to that.
153 2005-01-11 Chip Salzenberg <chip@pobox.com>
155 * debian/changelog: Version 1.0.7-1.
156 * debian/nfs-common.default (NEED_IDMAPD, NEED_GSSD):
157 Disable by default, on advice of upstream.
158 * debian/nfs-kernel-server.default (NEED_SVCGSSD):
161 * utils/svcgssd/Makefile (predep): Symbolically link duplicated
163 (distclean): Remove symlinks to duplicated files.
165 2004-12-17 NeilBrown <neilb@cse.unsw.edu.au>
168 * config.mk, configure.in: update version number, run autoconf
169 * configure.in: require nfsidmap.h if gss is enabled.
171 2004-12-10 NeilBrown <neilb@cse.unsw.edu.au>
174 * config.mk, configure.in: update version number, run autoconf
176 2004-12-10 Neil Brown <neilb@cse.unsw.edu.au>
177 * README : note dependancy on kerberos, libevent, and nfsidmap
178 * configure.in : fail if --enable-nfsv4 and libevent or
179 libnfsidmap are missing.
180 * configuyre.in: improve message if krb5 support is missing
182 2004-12-06 Paul Clements <paul.clements@steeleye.com>
183 * support/include/ha-callout.h: get return status from waitpid
185 * support/include/ha-callout.h: don't ignore SIGCHLD while waiting
186 for a callout to complete.
187 * utils/statd/statd.c(sigusr): print current start when re-reading
188 notify list due to SIGUSR1
189 * utils/statd/svc_run.c(my_svc_run): call change_state when
190 re-notifying clients.
192 2004-12-06 Marc Eshel <eshel@almaden.ibm.com>
193 * utils/statd/svc_run.c(my_svc_run): allow loop to exit when in
195 *utils/statd/rmtcall.c(statd_get_socket): if a hostname is given
196 to statd with -n, prefer it's IP address to the default for
199 2004-12-06 Bruce Allan <bwa@us.ibm.com>
200 * utils/mountd/auth.c(auth_reload) Clear the "my_client" cache on
201 an auth_reload to avoid old data getting used.
203 2004-12-03 NeilBrown <neilb@cse.unsw.edu.au>
204 Release 1.0.7-pre1 for testing
206 * config.mk, configure.in: update version number, run autoconf
208 2004-12-03 Trond Myklebust <trond.myklebust@fys.uio.no>
210 * utils/statd/statd.c(main): ignore SIGPIPE
212 2004-11-22 "J. Bruce Fields" <bfields@fieldses.org>
214 * tools/rpcdebug/rpcdebug.c: support aliases "nfsdebug" and
215 "nfsddebug" and update flag names.
216 * configure.in, nodist/* redhat/* nfs-utils.spec*: remove redhat
217 specific files (as no-one actually uses them, especially not
218 redhat), and the nodist /etc files (as they drift out-of-date, and
219 the debian directory provides a suitable example.
220 * utils/svcgssd_proc.c(get_ids): fix memory leak
221 * utils/svcgssd/svcgssd_proc.c: Rely on count of the number of
222 groups instead of using a special guard value to identify the end
224 * utils/idmapd/idmapd.c: don't allow Default domain and anon-uid
225 or -gid to be specified on command line.
226 * utils/idmapd/idmapd.c: improve error messages
227 * utils/idmapd/idmapd.c: Reopen nfsd files on sighup. Allows us
228 to start up client side only (even when nfsd module not loaded),
229 and then sighup later after insmodding nfsd module.
230 * utils/idmapd/idmapd.c: Make sure we catch all errors on
231 daemonizing by waiting for child to report succesfull startup
233 * utils/idmapd/idmapd.c: Let libnfsidmapd parse the idmapd.conf
234 file for the default domain, instead of doing that ourselves.
235 * utils/gssd/gssd_proc.c: Make sure we get an error when a gssd
237 * utils/gssd/gssd_proc.c: We were forgetting to restore the euid
238 on certain failures, which meant gssd could get stuck in a state
239 where it didn't have permissions to read the files in rpc_pipefs
241 * utils/gssd/gssd_proc.c: Use libnfsidmapd to map gss principals
243 * debian/nfs-kernel-server.default: Document the NEED_SVCGSSD
244 variable in /etc/default/nfs-kernel-server.
247 2004-11-22 NeilBrown <neilb@cse.unsw.edu.au>
249 * utils/exportfs/nfsd.man: corrected typo in .BR macro usage -
250 reported by Eric Raymond
252 2004-10-19 "J. Bruce Fields" <bfields@fieldses.org>
254 * support/gssapi/* support/rpc/* utils/gssd/* utils/svcgssd/* etc
255 initial support for GSSAPI authentication
257 2004-09-15 Neil Brown <neilb@cse.unsw.edu.au>
259 * utils/statd/monitor.c(sm_unmon_1_svc): is RESTRICTED_STATD, then
260 check IP address and force my_name to 127.0.0.1 to match
261 what happens in sm_mon_1_svc. This avoid spurious "erroneous
263 * utils/statd.monitor.c(sm_unmon_all_1_svc): likewise
265 2004-09-15 "J. Bruce Fields" <bfields@fieldses.org>
267 * Assorted changes to support "gss/*" style authentication
268 * utils/idmapd: new idmapd daemon for nfsv4 username lookup
270 2004-09-06 Trond Myklebust <trond.myklebust@fys.uio.no>
271 Neil Brown <neilb@cse.unsw.edu.au>
273 * utils/mountd/auth.c(auth_authenticate_internal): fix
274 uninitialsed variable problem (causes bad error messages).
276 2004-09-06 Paul Clements <paul.clements@steeleye.com>
277 Neil Brown <neilb@cse.unsw.edu.au>
279 * utils/mountd/mountd.c(main): support --ha-callout (-H) for
280 specifying a callout program
281 * utils/mountd/rmtab.c: Call ha_callout on mount/unmount
282 * utils/statd/monitor.c: Call ha_callout on add/del client
283 * utils/statd/rmtcall.c: as above
284 * utils/statd/statd.c: handle --ha-callout (-H)
285 * utils/statd/svc_run.c: call notify_hosts is we have received a
287 * support/include/ha-callout.h: define ha_callout function
290 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
291 * utils/mountd/cache.c(cache_process_req): clear fd after
292 processing so as not to confused libc/sunrpc into thinking
293 it need to do something with that fd.
295 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
297 * debian/nfs-kernel-server.init(start,stop) mount the nfsd
298 filesystem, if available, before starting nfs services, and
299 unmount it afterwards.
300 * etc/nodist/nfs-server: ditto
301 * etc/redhat/nfs.init: likewise
302 * etc/redhat/nfs: add "MOUNT_NFSD" flag to control above.
304 2004-06-08 NeilBrown <neilb@cse.unsw.edu.au>
306 * utils/exportfs/exportfs.c: Don't rmtab_read if new_cache, it
308 * support/nfs/cacheio.c(cache_flush): Change order in which caches
309 are flushed so that dependancies don't keep things in the cache
312 2004-03-18 Chip Salzenberg <chip@pobox.com>
314 * debian/changelog: Version 1.0.6-2.
316 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
317 from "J. Bruce Fields" <bfields@fieldses.org>
319 * utils/mountd/cache.c: call auth_reload to make sure auth data is
320 current before responding to kernel upcall.
322 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
323 Based on patch from Greg Banks <gnb@melbourne.sgi.com>
325 * utils/exportfs/exports.man: Document fsid= option.
327 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
331 * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
332 support/include, and depend in "predep"
333 * support/export/Makefile, tools/rpcgen/Makefile,
334 utils/statd/Makefile: add "predep" rule so that "make dep" works.
335 * Makefile: allow a simple "make" to run ./configure and "make dep"
337 * configure.in, nfs-utils.spec: Update version to 1.0.6
340 2003-09-12 Chip Salzenberg <chip@pobox.com>
342 * debian/changelog: Version 1.0.6-1.
344 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
346 * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
348 * utils/statd/statd.c(main): Ditto.
350 michael <michael@newdream.net> discovered that svc_setreqsize
351 in glibc can segfault if RLIMIT_NOFILE is bigger than
352 FD_SETSIZE, so a simple solution is to impose a hard limit.
354 2003-09-09 Chip Salzenberg <chip@pobox.com>
356 * debian/changelog: Version 1.0.5-3.
357 * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
358 on invalid reverse DNS.
359 * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
360 * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
361 * tools/rpcgen/rpc_parse.c (def_union): Likewise.
363 2003-08-22 Chip Salzenberg <chip@pobox.com>
365 * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
366 N_*, to avoid conflict with ISO C built-in log() function.
367 * utils/statd/*.c: Use note().
369 2003-08-20 Chip Salzenberg <chip@pobox.com>
371 * debian/changelog: Version 1.0.5-2.
373 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
375 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
378 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
380 * support/include/nfs/export.h, support/nfs/exports.c,
381 utils/exportfs/exports.c, utils/mountd/mountd.c: change
382 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
383 meaning. Also remove meaningless
384 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
386 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
388 * support/export/xtab.c, support/include/nfslib.h,
389 support/nfs/cacheio.c, support/nfs/nfssvc.c,
390 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
391 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
392 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
393 (nfs-utils-1.0.5-post2)
395 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
397 * support/nfs/nfsexport.c: open channel file O_WRONLY when
399 * utils/mountd/cache.c: maintain mountlist when new_cache is
400 active. Also use O_WRONLY for channel files.
401 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
402 rather than an nfs_export.
403 * utils/mountd/rmtab.c: ditto.
404 (nfs-utils-1.5.0-post1)
406 2003-07-24 Chip Salzenberg <chip@pobox.com>
408 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
409 use Debian security team's cleaner approach.
410 * debian/changelog: Version 1.0.5-1.
411 * debian/nfs-kernel-server.init: Cosmetic changes.
413 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
416 1.0.4 was a bit of a brown-paper-bag-release because of the extra
417 'free' in auth.c. So I'm releasing this just a few days later.
419 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
421 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
422 check if new_cache is enabled, error if not, flush and exit if it
424 * utils/exportfs/exportfs.man: Explain -f option and explain the
425 two different modes that exportfs can work in.
426 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
428 * utils/mountd/mountd.man: Record the change if default behaviour
430 * configure.in, nfs-utils.spec: update version to 1.0.5 and
433 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
435 * utils/mountd/mountd.c(main): getopt string fix for 'o'
436 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
437 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
439 * support/include/nfs/export.h: Reserve a bit for possible ACL
442 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
444 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
445 assorted changed to cope with section 7 of the manual.
446 * configure.in, nfs-utils.spec: Update version to 1.0.4
449 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
450 baseline for 2.6 and 2.8. I.e. it should continue to work right
451 through the 2.8 (or 3.0) kernel series. Previous releases wont.
453 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
454 Steve Dickson <SteveD@redhat.com>
457 * utils/statd/statd.c: create a pidfile with pid of statd, and
458 truncate it when statd exists.
459 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
460 and warn if this is root.
461 * utils/statd/statd.c: when statd forks, connect child to parent
462 with a pipe, and send a byte down the pipe once the child is
464 * Makefile: create and chown sm, sm.bak, state when "make install"
465 * configure.in: add --with-statduser= option which defaults to
466 "rpcuser" or "nobody"
467 * config.mk.in: pass "statduser" through to Makefile
469 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
471 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
472 used as the size was changed somewhere in 2.5.60-2.5.70. Without
473 this nfs-utils compiles against 2.6 headers will not work on a
476 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
478 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
479 set number of threads by writing to there. This means it will
480 still work when the syscall interface goes away in 2.7.
482 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
483 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
485 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
486 so as to only export the wildcard exports that were asked for.
487 * support/export/export.c(export_allowed): changed to return the
488 nfs_export rather than a "struct exportent", as m_changed is
490 * support/export/rmtab.c(rmtab_read): modified to deal with
491 interface change for export_allowed(), and enhanced to preserve
492 m_changed flag when a wild-card export causes the creation of
493 a non-wildcard export.
495 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
496 Steve Dickson <SteveD@redhat.com>
498 * utils/mountd/mountd.man: Add valid kinds of debugging.
499 * utils/mountd/mountd.c(main): ignore SIGPIPE
500 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
501 we don't get warnings about unavailable stats that weren't asked
504 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
506 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
507 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
508 'forever', so things disappear out of the cache rather than just
511 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
513 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
516 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
518 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
519 etc/redhat/nfs.init: when checking if V3 is supported, make sure
520 nfs server 'knows' about 127.0.0.1 first.
522 2003-06-10 Chip Salzenberg <chip@pobox.com>
524 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
525 * debian/changelog: Version 1.0.3-2.
527 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
528 NeilBrown <neilb@cse.unsw.edu.au>
530 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
531 long long to avoid overflow when printing stats.
533 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
535 * support/export/export.c, support/include/nfslib.h,
536 support/nfs/export.c, utils/exportfs/exportfs.c,
537 utils/mountd/mountd.c: new export option "mountpoint"
538 If no path is given, then the export point must be a
539 mount point, or it won't be exported. If a path is
540 given (e.g. mountpoint=/path) then that path must be
541 a mountpoint or the exportpoint won't be exported.
542 * utils/exportfs/exportfs.man: document mountpoint option.
543 * support/misc/mountpoint.c: New file with is_mountpoint()
544 to determine if something is a mountpoint.
546 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
548 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
549 argument as we might not be getting the filehandle for the
551 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
552 cache_get_filehandle.
553 * utils/mountd/mountd.c(get_rootfh): check export point and
554 requested directory are on the same filesystem, and complain if
557 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
559 * utils/mountd/auth.c(auth_authenticate_internal): make sure
560 portnumber is still checked when using new cache lookup.
562 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
564 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
565 Don't actually talk to kernel when new cache is in effect, except
567 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
568 * support/export/xtab.c: Only rename new xtab into place if it has
569 changed, thus preserving modify date for exportfs to use when
571 * support/nfs/cacheio.c: Add cache_flush
572 * support/export/xtab.c: Only rename new xtab into place if it has
573 changed, thus preserving modify date for exportfs to use when
576 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
578 * support/export/client.c: Add client_compose, client_member to
579 handle new composite client names
580 * support/include/exportfs.h: Declare above functions.
581 * utils/mountd/auth.c: use client_compose to determine calling
582 client if new cache is being used.
583 * utils/mountd/auth.c: call cache_export to export a filesystem if
584 new_cache, check if new cache is used, and call my_svc_run instead
586 * utils/mountd/svc_run.c: new file defining my_svc_run
587 * utils/mountd/cache.c: new file for handling cache upcalls.
588 * support/nfs/cacheio.c(check_new_cache): new function to check if
589 new cache should be used.
592 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
594 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
595 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
596 * utils/exportfs/exportfs.c(dump): ditto
598 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
600 * support/export/hostname.c(get_reliable_hostbyaddr): new function
601 to get host name from address with full checking of authenticity.
602 * support/include/misc.h: declare above function
603 * utils/mountd/auth.c(auth_authenticate_internal): remove all
604 logic for authenticating address.
605 * utils/mountd/auth.c(auth_authenticate): call new
606 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
609 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
611 * tools/rpcgen/rpc_main.c(find_cpp): removed
612 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
613 then try hard-coded paths.
615 2003-03-26 Chip Salzenberg <chip@pobox.com>
617 * debian/changelog: Version 1.0.3-1.
619 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
621 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
622 "const char*", not "char*".
624 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
626 * configure.in (VERSION): Set to "1.0.3".
627 * nfs-utils.spec: Likewise.
628 * configure: Regenerated.
630 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
632 * support/nfs/cacheio.c: New File - support for read/writing
633 to export cache in /proc/rpc/*/channel
634 * support/nfs/Makefile: compile cacheio.c
635 * support/include/nfslib.h: declare cacheio.c functions
636 * support/nfs/nfsexport.c: export and unexport through
637 /proc/rpc/*/channel if possible, as old syscall interface
638 may not survive into 2.6 on all architectures.
640 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
641 Ben Leslie <benno@sesgroup.net>
643 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
644 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
645 former would incorectly ignore defport if the application
646 explicitly set __rpcfdtype. The later is sufficient to avoid the
647 special handling in the case where stdin is an internet socket.
649 * utils/mountd/mountd.c(main): Add 'n' to option list in
650 getopt_long as this is a short form of --no-tcp which want being
653 2003-02-12 Chip Salzenberg <chip@pobox.com>
655 * debian/changelog: Version 1.0.2-2.
657 2002-11-27 Chip Salzenberg <chip@pobox.com>
659 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
660 overflow bug. Reformat per rest of source file.
662 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
664 * utils/exportfs/exports.man: Correct notes about whether the wild
665 card characters match a period. They do.
667 2002-10-15 Juan Gomez <juang@us.ibm.com>
669 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
671 (mountlist_add): Call slink_safe_rename instead of rename.
673 2002-10-11 H.J. Lu <hjl@lucon.org>
675 * support/include/exportfs.h (export_errno): New.
677 * support/nfs/exports.c: Include <errno.h>.
679 (getexportent): Set export_errno to EINVAL for bad option.
680 (parseopts): Likewise.
681 Report the location of the default sync/async option.
683 * utils/exportfs/exportfs.c (main): Initialize export_errno to
684 0. Return export_errno.
686 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
687 NeilBrown <neilb@cse.unsw.edu.au>
689 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
690 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
692 2002-09-16 Chip Salzenberg <chip@pobox.com>
694 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
696 2002-09-15 Chip Salzenberg <chip@pobox.com>
698 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
699 socket, as occurs when run from sshd.
700 * debian/changelog: Version 1.0.2-1.
702 2002-09-12 H.J. Lu <hjl@lucon.org>
704 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
707 2002-09-12 H.J. Lu <hjl@lucon.org>
709 * configure.in: Remove checking svctcp_socket and svcudp_socket.
710 * configure: Regenerated.
712 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
713 (HAVE_SVCUDP_SOCKET): Removed.
715 * support/include/nfslib.h: Undo the last change.
717 2002-09-12 H.J. Lu <hjl@lucon.org>
719 * support/include/nfslib.h (svctcp_socket): Protect it with
721 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
723 2002-09-12 H.J. Lu <hjl@lucon.org>
725 * configure.in (VERSION): Set to "1.0.2".
726 * configure: Regenerated.
727 * nfs-utils.spec: Likewise.
729 2002-09-12 H.J. Lu <hjl@lucon.org>
731 * configure.in: Check svctcp_socket and svcudp_socket.
732 * configure: Regenerated.
734 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
735 (HAVE_SVCUDP_SOCKET): New.
737 * support/include/nfslib.h (svctcp_socket): New.
738 (svcudp_socket): New.
740 * support/nfs/Makefile (OBJS): Add svc_socket.o.
742 * support/nfs/svc_socket.c: New.
744 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
745 svcudp_socket if port is unspecified.
747 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
749 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
750 (killer): New. Signal handler to unregister.
751 (main): Use killer. Call svcudp_socket to get the default
754 2002-09-02 Juan Gomez <juang@us.ibm.com>
755 NeilBrown <neilb@cse.unsw.edu.au>
757 Add -N option to statd to run in notify-only mode.
759 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
760 * utils/statd/statd.man: document -N
761 * utils/statd/statd.c: enabled -N, largely exists but needed to be
762 uncommented and completed
764 2002-09-02 Juan Gomez <juang@us.ibm.com>
765 NeilBrown <neilb@cse.unsw.edu.au>
767 statd to have " -P directory" arg to use that directory instead
768 of /var/lib/nfs. This is useful for fail-over clusters.
770 * utils/statd/statd.h: define SM_DIR etc as var, not const.
771 * utils/statd/statd.c: define "-P" option to set SM_*
773 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
775 * utils/statd/notify.c: ditto.
776 * utils/statd/statd.man: document -P option.
778 2002-08-26 Chip Salzenberg <chip@pobox.com>
780 * utils/nfsd/nfsd.man: Fix typo.
781 * debian/changelog: Version 1.0.1-1.
783 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
785 * let parseopts know if /etc/exports was being read or not,
786 and have it only print "no sync or async" warning in that case.
788 2002-05-06 Tom McNeal <trmcneal@attbi.com>
789 NeilBrown <neilb@cse.unsw.edu.au>
791 * utils/nfsstat/nfsstat.c: Handle differing format for
792 /proc/net/rpc/nfsd between pre and post 2.4.0
794 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
795 James Pearson <james-p@moving-picture.com>
797 * support/nfs/rmtab.c(fendrmtabent): sync changes to
798 storage before returning, as this is critical state
800 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
801 H.J. Lu <hjl@lucon.org>
803 * etc/redhat/nfs: New.
805 2002-04-08 H.J. Lu <hjl@lucon.org>
807 * etc/redhat/nfs.init: Updated.
809 * nfs-utils.spec.in: Updated.
810 * nfs-utils.spec: Regenerated.
812 * utils/mountd/mountd.c (longopts): Fix a typo.
814 * utils/mountd/mountd.man: Updated.
816 2002-04-07 H.J. Lu <hjl@lucon.org>
818 * etc/redhat/nfslock.init (restart): Just do stop and start.
820 * etc/redhat/nfs.init: Fix a typo.
822 2002-04-07 H.J. Lu <hjl@lucon.org>
824 * configure.in (VERSION): Set to "1.0.1".
825 * configure: Regenerated.
826 * nfs-utils.spec: Likewise.
828 * README: Updated for 1.0.1.
830 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
831 H.J. Lu <hjl@lucon.org>
833 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
835 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
836 NeilBrown <neilb@cse.unsw.edu.au>
838 Add support for fsid=nn export option so that device
839 numbers don't go in filehandles.
840 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
841 is set, pass the fsid in-place of the device number
842 * support/nfs/exports.c: parse and print fsid= option.
843 Also check if efname has been set, and use "command line"
844 instead in error messages.
845 Also, use strtol instead of atoi for anon[ug]id= so that
846 bad numbers cause errors.
848 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
849 NeilBrown <neilb@cse.unsw.edu.au>
851 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
852 flag so that "sync" becomes the default.
853 Check that either "sync" or "async" is given as an option
854 and warn if neither are present
855 * utils/exportfs/exports.man: change documentation for "sync"
856 to be documentation for "async".
857 * utils/exportfs/exportfs.man: note that "sync" is the default
861 2002-01-02 Chip Salzenberg <chip@pobox.com>
863 * support/export/nfsctl.c (expsetup): Don't export entries that
864 specify id mappings not supported by the kernel. No extant kernel
865 supports any significant mapping, only 'identity' (i.e. none).
866 When other mappings are supported, this code will need changing.
867 * debian/changelog: Version 1.0-2.
869 2001-12-26 Chip Salzenberg <chip@pobox.com>
871 * nfs-utils.spec (Version): Set to "1.0".
872 * configure.in (VERSION): Likewise.
873 * configure: Regenerated.
875 * debian/changelog: Version 1.0-1.
877 * utils/exportfs/exports.man: Emphasize the need for options to
878 immediately follow client names. Explain that wildcards don't
879 usually work on addresses, but may work when reverse DNS fails.
880 Comment out a leftover TP that was TPing our indentation.
881 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
882 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
883 * debian/changelog: Version 0.3.3-6.
885 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
887 * support/export/client.c(client_lookup): If a host has multiple
888 IP addresses, then we must always use the result of a
889 gethostbyname, not that of gethostbyaddr for exporting
891 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
893 * support/export/client.c (client_lookup): use strcasecmp when
895 * support/nfs/export.c (getexportent): add fromkernel arg and use
896 different defaults as kernels prior to 2.4.11 assume different
897 defaults in /proc/fs/nfs/exports
898 * support/include/nfslib.h, support/export/export.c,
899 support/export/xtab.c: support extra "fromkernel" arg for
902 2001-12-13 Chip Salzenberg <chip@pobox.com>
904 * debian/changelog: Version 0.3.3-5.
906 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
908 * support/nfs/xio.c (xskip): Call `xungetc' instead of
909 `ungetc' to keep x_line more properly.
911 2001-11-26 Chip Salzenberg <chip@pobox.com>
913 * utils/showmount/showmount.c (main): Don't assume that strings
914 starting with digits are IP addresses.
915 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
916 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
917 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
918 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
919 man pages: We check host names *and* addresses with tcpwrappers.
920 * debian/changelog: Version 0.3.3-4.
922 2001-11-21 Chip Salzenberg <chip@pobox.com>
924 * support/nfs/clients.c (cfname): Added: current clients file name.
925 (setnfsclntent): Set it.
926 ({get,end}nfsclntent, syntaxerr): Use it.
927 * support/nfs/exports.c (efname): Added: current exports file name.
928 (setnfsexportent): Set it.
929 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
930 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
931 * debian/changelog: Version 0.3.3-3.
933 2001-10-11 Chip Salzenberg <chip@pobox.com>
935 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
936 * debian/changelog: Version 0.3.3-2.
938 2001-10-08 Chip Salzenberg <chip@pobox.com>
940 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
941 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
942 * utils/mountd/mountd.man: Update paths to /var/lib.
943 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
945 2001-10-06 Preston Brown <pbrown@redhat.com>
947 * utils/nfsstat/nfsstat.man: Updated.
949 2001-09-24 H.J. Lu <hjl@lucon.org>
951 * configure.in (VERSION): Set to "0.3.3".
952 * configure: Regenerated.
953 * nfs-utils.spec: Likewise.
955 * README: Updated for 0.3.3.
957 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
959 Arrange that "exportfs -au" never does DNS lookup:
961 * support/export/client.c (client_lookup) : add "canonical"
962 flag which says that the hostname is known to be canonical, so
965 * support/export/export.c (export_create) : add "canonical"
966 flag to be passed down to client_lookup
967 * support/export/export.c (export_lookup) : Likewise
969 * support/export/xtab.c (xtab_read) : pass appropriate
970 "canonical" flag to export_lookup and export_create:
971 set if reading list of filesystems currently exports
974 * support/export/export.c (export_read) : pass 0 as
975 "canonical" flag to export_lookup and export_create
976 * support/export/rmtab.s (rmtab_read) : Likewise
978 * support/include/exportfs.h : redeclare various routines
979 to have "canonical" flag
981 * utils/exportfs/exportfs.c (main) : redo logic for
982 "-au" to read in what is currently exported, but never even
983 look at what "should" be exported.
985 * utils/exportfs/exportfs.c (unexportall) : remove this
986 routine. Functionality is completely included in
989 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
990 flag to zero in calls to export_lookup and export_create.
993 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
994 Anne Milicia <milicia@missioncriticallinux.com>
996 * support/export/client.c (client_lookup) call gethostbyadd
997 to make sure that we have a canonical hostname, even for
999 * utils/exportfs/exportfs.c (exportfs) Likewise
1001 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1003 * support/nfs/exports.c (putexportent): \octal quote any spaces
1005 * support/nfs/xio.c (xgettok): recognise double-quote and
1006 \octal quoting in path names
1007 * utils/exportfs/exports.man: document quoting conventions
1010 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1012 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
1013 change from 2000-08-02: It causes problems if someone exports
1014 to both a hostname and IP addresses. nfs-utils must be
1015 consistant about the canonical name that it chooses.
1017 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
1018 H.J. Lu <hjl@lucon.org>
1020 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
1022 * utils/statd/statd.c (longopts): Add "name".
1023 (usage): Add "-n/--name".
1024 (main): Set MY_NAME with "-n/--name".
1026 * utils/statd/state.c (change_state): Set MY_NAME only if it
1029 * utils/statd/statd.man: Updated for "-n/--name".
1031 2001-07-26 H.J. Lu <hjl@lucon.org>
1033 * nfs-utils.spec (Release): Set to 8.
1035 2001-07-25 H.J. Lu <hjl@lucon.org>
1037 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
1040 2001-06-27 H.J. Lu <hjl@lucon.org>
1042 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
1044 2001-06-27 H.J. Lu <hjl@lucon.org>
1046 * utils/rquotad/rquota_server.c: Don't call statfs () for
1047 the block size. Use BLOCK_SIZE instead.
1049 2001-06-27 H.J. Lu <hjl@lucon.org>
1051 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
1052 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
1054 * configure.in (enable_nfsv3): Set to yes by default.
1055 (--enable-rquotad): Added
1056 (AC_PROG_CXX): Removed.
1057 (AC_OUTPUT): Add utils/Makefile.
1058 (CC_FOR_BUILD): Renamed from BUILD_CC.
1059 * configure: Regenerated.
1061 * utils/Makefile: Removed.
1063 * utils/Makefile.in: New.
1065 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
1067 (CC_FOR_BUILD): Renamed from BUILD_CC.
1068 * nfs-utils.spec: Regenerated.
1070 2001-06-15 Chip Salzenberg <chip@debian.org>
1072 * debian/changelog: Version 0.3.2-2.
1073 * debian/*.init: Minor fixes.
1075 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
1077 * etc/nodist/nfs-server: Fixed a bug where the script would
1078 disable mounts from NFSv3 clients if NFSv3 is present.
1080 2001-06-05 H.J. Lu <hjl@lucon.org>
1082 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
1083 (main): Support --descriptors/-o to set the limit of the number
1084 of open file descriptors.
1087 * utils/mountd/mountd.man: Updated for --descriptors/-o.
1089 2001-06-04 H.J. Lu <hjl@lucon.org>
1091 * nfs-utils.spec (Release): Set to 6.
1093 2001-05-28 H.J. Lu <hjl@lucon.org>
1095 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
1096 * utils/mountd/mountd.c (main): Likewise.
1097 * utils/nfsd/nfsd.c (main): Likewise.
1098 * utils/rquotad/rquota_svc.c (main): Likewise.
1100 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
1102 * support/export/client.c (client_check): Check IP address
1105 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
1107 * support/export/client.c (client_gettype): Treat `*' as
1110 2001-04-22 H.J. Lu <hjl@lucon.org>
1112 * nfs-utils.spec.in: Fix a typo.
1113 * nfs-utils.spec: Regenerated.
1115 2001-04-21 H.J. Lu <hjl@lucon.org>
1117 * nfs-utils.spec.in: Fix cross build.
1118 * nfs-utils.spec: Regenerated.
1119 (Release): Set to 5.
1121 2001-04-18 H.J. Lu <hjl@lucon.org>
1123 * nfs-utils.spec.in: Support cross build.
1124 * nfs-utils.spec: Regenerated.
1125 (Release): Set to 4.
1128 * config.guess: New.
1130 * config.mk.in (BUILD_CC): New.
1131 (CC): Set to $(BUILD_CC) if BUILD is defined.
1134 (RANLIB): Set to @RANLIB@.
1136 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
1137 * configure: Regenerated.
1139 * tools/rpcgen/Makefile (BUILD): Set to true.
1141 2001-04-01 Chip Salzenberg <chip@valinux.com>
1143 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
1144 redundant, and sometimes broken, declaration of svc_fdset;
1146 * support/nfs/rpcmisc.c (closedown): Likewise.
1148 2001-03-21 H.J. Lu <hjl@lucon.org>
1150 * nfs-utils.spec: Regenerated.
1151 (Release): Set to 3.
1153 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
1155 * utils/statd/statd.c (main): make sure file descriptors 0-2
1156 are open to /dev/null.
1158 2001-03-21 H.J. Lu <hjl@lucon.org>
1160 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
1161 * support/nfs/rpcmisc.c: Likewise.
1162 * utils/rquotad/rquota_svc.c: Likewise.
1163 * utils/rquotad/rquotad.man: Likewise.
1164 * utils/statd/Makefile: Likewise.
1165 * utils/statd/rmtcall.c: Likewise.
1166 * utils/statd/simulate.c: Likewise.
1167 * utils/statd/statd.c: Likewise.
1168 * utils/statd/statd.man: Likewise.
1170 2001-03-11 H.J. Lu <hjl@lucon.org>
1172 * configure.in (RELEASE): New. Default to 1, set by
1173 --with-release=XXX. Substitute nfs-utils.spec.
1174 * nfs-utils.spec.in (Release): Set to @RELEASE@.
1175 * configure: Regenerated.
1176 * nfs-utils.spec: Likewise.
1178 2001-03-11 H.J. Lu <hjl@lucon.org>
1180 * utils/rquotad/rquotad.man: Fix a typo.
1182 2001-03-11 H.J. Lu <hjl@lucon.org>
1184 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
1185 * support/nfs/rpcmisc.c: Likewise.
1186 * utils/rquotad/rquota_svc.c: Likewise.
1187 * utils/rquotad/rquotad.man: Likewise.
1188 * utils/statd/Makefile: Likewise.
1189 * utils/statd/rmtcall.c: Likewise.
1190 * utils/statd/simulate.c: Likewise.
1191 * utils/statd/statd.c: Likewise.
1192 * utils/statd/statd.man: Likewise.
1194 2001-03-10 H.J. Lu <hjl@lucon.org>
1196 * configure.in (VERSION): Set to "0.3.2".
1197 * configure: Regenerated.
1198 * nfs-utils.spec: Likewise.
1200 * README: Updated for 0.3.2.
1202 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
1204 * utils/rquotad/rquotad.man: Updated for -p.
1205 * utils/statd/statd.man: Likewise.
1207 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
1209 * support/nfs/rpcmisc.c: export makesock()
1211 * support/include/rpcmisc.h (makesock): Declared.
1213 * utils/rquotad/rquota_svc.c: added longopts, added support for
1214 specifying the port to bind to on the command line.
1216 * utils/statd/statd.c: ditto, also specify port used for
1217 outgoing connections.
1218 (do_regist): Removed.
1220 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
1221 get_socket. Make it extern.
1223 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
1224 instead of do_regist.
1226 * utils/statd/Makefile (LIBS): link with our own libnfs
1228 2001-03-09 H.J. Lu <hjl@lucon.org>
1230 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
1231 * etc/nodist/nfs-client: Likewise.
1233 2001-02-26 Chip Salzenberg <chip@valinux.com>
1235 * debian/changelog: Version 0.3.1-1.
1236 * Mention upstream source and license in copyright file.
1237 * Add build-Depends for debhelper and libwrap0-dev.
1239 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
1241 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
1242 * etc/nodist/nfs-client: Likewise.
1244 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
1246 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
1249 2001-02-17 Patrick J. LoPresti <patl@curl.com>
1251 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
1254 2001-02-14 H.J. Lu <hjl@lucon.org>
1256 * utils/statd/rmtcall.c: Include <time.h>.
1257 * utils/statd/svc_run.c: Likewise.
1259 2001-02-14 H.J. Lu <hjl@lucon.org>
1261 * configure.in (VERSION): Set to "0.3.1".
1262 * configure: Regenerated.
1263 * nfs-utils.spec: Likewise.
1265 * README: Updated for 0.3.1.
1267 2001-02-14 H.J. Lu <hjl@lucon.org>
1269 * support/nfs/rpcmisc.c: Include <time.h>.
1271 2001-02-14 Chip Salzenberg <chip@valinux.com>
1273 * debian/control: Change priority of nhfsstone package to 'extra'.
1275 2001-02-12 Chip Salzenberg <chip@valinux.com>
1277 * debian/changelog: Version 0.3-2.
1279 2001-02-02 H.J. Lu <hjl@lucon.org>
1281 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
1283 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
1284 out SO_SNDBUF/SO_RCVBUF.
1285 (rpc_init): Remove bufsize and remove socksz in calls to
1288 * utils/mountd/mountd.c (main): Remove bufsize in calls to
1291 2001-01-28 Chip Salzenberg <chip@valinux.com>
1293 * debian/changelog: Version 0.3-1.
1295 2001-01-25 H.J. Lu <hjl@lucon.org>
1297 * configure.in (VERSION): Set to "0.3".
1298 * configure: Regenerated.
1299 * nfs-utils.spec: Likewise.
1301 * README: Updated for 0.3.
1303 2001-01-25 H.J. Lu <hjl@lucon.org>
1305 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
1307 2001-01-20 Chip Salzenberg <chip@valinux.com>
1309 * support/include/xio.h (xgetc): Declare to return int.
1310 * support/nfs/xio.c (xgetc): Return int.
1311 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
1312 * utils/statd/statd.c (main): Use int for value of getopt.
1313 * debian/changelog: Version 0.2.1-5.
1315 2000-12-10 Chip Salzenberg <chip@valinux.com>
1317 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
1318 program and procedure numbers of kernel lockd's callback. Also,
1319 besides the old (and broken) procedure #24, allow #16 per Trond.
1321 2000-12-03 Chip Salzenberg <chip@valinux.com>
1323 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
1324 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
1325 * debian/changelog: Version 0.2.1-4.
1327 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
1329 * utils/mountd/auth.c (auth_authenticate): Log the bad path
1332 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
1334 * support/nfs/exports.c (getexportent): Check for host name
1335 without option, or options without hostname, and print a warning,
1336 as this is most likely a typo.
1338 2000-11-19 Chip Salzenberg <chip@valinux.com>
1340 * debian/control: Add dependency on portmap.
1341 * debian/changelog: Version 0.2.1-3.
1343 2000-11-10 H.J. Lu <hjl@lucon.org>
1345 * nfs-utils.spec.in: Don't use libtool.
1346 Add ChangeLog and COPYING to doc.
1347 * nfs-utils.spec: Rebuild.
1349 2000-11-09 H.J. Lu <hjl@lucon.org>
1351 * etc/redhat/nfs.init (start): Back out the last change.
1353 2000-11-09 H.J. Lu <hjl@lucon.org>
1355 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
1356 TCP is not supported by kernel.
1358 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
1360 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
1361 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
1363 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
1365 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
1367 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
1368 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
1369 callbacks to local lockd.
1371 2000-10-18 Scott McDermott <mcdermot@questra.com>
1373 * utils/exportfs/exports.man: Updated for CIDR netmask.
1375 2000-10-17 Scott McDermott <mcdermot@questra.com>
1377 * support/export/client.c (client_init): Support CIDR netmask
1380 2000-10-11 H.J. Lu <hjl@lucon.org>
1382 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1383 * configure: Rebuilt.
1385 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
1387 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1388 "/var/lib/nfs/state".
1390 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
1392 * utils/statd/statd.h (run_mode): New global bitmask of runtime
1393 behaviors: fg/bg, logging, etc.
1394 * utils/statd/statd.c: New command line options: -V -h -? -d .
1395 * utils/statd/statd.man: Update for changes to statd.
1397 * utils/statd/log.h (log_init): Remove parameter of function; use
1398 global variable "name_p" instead.
1399 * utils/statd/log.c: Add support for logging to stderr.
1401 * utils/statd/notlist.c: Partially rewrite notify list handling
1402 functions. Eliminate run-off-end-of-list bug when calling
1403 nlist_insert_timer. Add lots of comments.
1405 2000-09-27 H.J. Lu <hjl@lucon.org>
1407 * README: Updated for RedHat 7.0.
1409 2000-09-27 H.J. Lu <hjl@lucon.org>
1411 * nfs-utils.spec: Rebuild.
1413 2000-09-27 H.J. Lu <hjl@lucon.org>
1415 * README: Updated for 0.2.1.
1417 2000-09-27 H.J. Lu <hjl@lucon.org>
1419 * nfs-utils.spec.in: Updated to use rpm macros and support
1422 2000-09-25 H.J. Lu <hjl@lucon.org>
1424 * configure.in (VERSION): Set to "0.2.1".
1425 * configure: Regenerated.
1426 * nfs-utils.spec: Updated.
1428 2000-09-25 H.J. Lu <hjl@lucon.org>
1430 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1431 non-NULL hostent is always returned.
1433 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1435 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1436 have an executable (i.e. kernel threads)
1438 2000-09-01 H.J. Lu <hjl@lucon.org>
1440 * README: Updated for 0.2.
1442 2000-09-01 Jay Weber <jweber@valinux.com>
1444 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1445 supporting version 3 of nfs if available, else it will fall back to
1446 version 2 support only.
1448 2000-08-30 H.J. Lu <hjl@lucon.org>
1450 * configure.in (VERSION): Set to "0.2".
1451 * configure: Regenerated.
1452 * nfs-utils.spec: Updated.
1454 2000-08-25 H.J. Lu <hjl@lucon.org>
1456 * support/misc/tcpwrapper.c (logit): Modify the log output.
1458 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1460 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1461 utils/mountd/mountd.man: updated
1463 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1464 * utils/rquotad/Makefile: fix comment
1466 * support/misc/tcpwrapper.c (logit): added comment about waiting
1467 for the children after fork()
1469 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1470 zombies behind (from logit()'s fork)
1471 * utils/rquotad/rquota_svc.c (main): ditto
1472 * utils/statd/statd.c (main): ditto
1474 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1475 to check_default instead of 0, for prognum
1477 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1478 to check_default instead of 0, for prognum
1480 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1481 HAVE_TCP_WRAPPER is defined.
1482 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1483 defined. Reject an RPC call if check_default () fails.
1485 2000-08-25 H.J. Lu <hjl@lucon.org>
1487 * support/include/tcpwrapper.h: New for the tcp wrapper
1489 * support/misc/Makefile: Likewise.
1490 * support/misc/from_local.c: Likewise.
1491 * support/misc/tcpwrapper.c: Likewise.
1493 * aclocal.m4 (AC_TCP_WRAPPER): New.
1494 * configure.in: Use it. Substitute LIBWRAP.
1495 * configure: Rebuilt.
1497 * config.mk.in (LIBNSL): New.
1498 (LIBWRAP): Likewise.
1500 * support/Makefile (SUBDIRS): Add misc.
1502 * support/lib/Makefile (LIBS): Add libmisc.a.
1504 * utils/rquotad/Makefile (LIBS): Add
1506 -lmisc $(LIBWRAP) $(LIBNSL)
1508 * utils/statd/Makefile (LIBS): Likewise.
1510 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1511 HAVE_TCP_WRAPPER is defined.
1512 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1513 defined. Reject an RPC call if check_default () fails.
1515 * utils/statd/statd.c: Include "tcpwrapper.h" if
1516 HAVE_TCP_WRAPPER is defined.
1517 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1518 check_default () before calling sm_prog_1 (). Define it as
1519 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1521 2000-08-25 Chip Salzenberg <chip@valinux.com>
1523 * debian/*: Complete Debian build support.
1524 * etc/debian/*: Remove.
1526 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1528 * support/export/client.c(client_check): removed the "dot+1" as a
1529 ypdomain argument to innetgr as this is entirely bogus.
1530 It should always be NULL.
1532 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1534 * support/export/xtab.c(xtab_read): introduce new mode for
1535 reading xtab. i.e. a list of exports that might be known to the
1536 kernel, or might not. These are flagged as m_exported == -1
1537 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1538 value "2" for xtab, meaning don't trust this too much.
1539 * support/include/exportfs.h(struct mexport): changed m_exported
1540 from one bit to an int so that it can hold new value
1541 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1542 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1543 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1546 * support/nfs/xio.c(xflock): added O_CREAT when getting
1547 a write lock so that missing files aren't fatal.
1549 * etc/debian/nfs-common: new file from "potato"
1550 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1552 2000-08-09 H.J. Lu <hjl@lucon.org>
1554 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1555 startup to ensure all existing clients work fine.
1557 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1558 to xtab_read () for reading _PATH_XTAB.
1560 2000-08-02 H.J. Lu <hjl@lucon.org>
1562 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1563 avoid the reverse name lookup.
1565 2000-07-04 H.J. Lu <hjl@lucon.org>
1567 * utils/statd/log.c: Include <stdlib.h> for exit ().
1569 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1572 2000-07-04 H.J. Lu <hjl@lucon.org>
1574 * configure.in (VERSION): Set to "0.1.9.1".
1575 * configure: Regenerated.
1576 * nfs-utils.spec: Updated.
1580 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1582 * support/export/hostname.c (hostent_dup): Handle the NULL
1585 2000-07-03 H.J. Lu <hjl@lucon.org>
1587 * README: Update the util-linux requirement.
1589 2000-07-03 H.J. Lu <hjl@lucon.org>
1591 * configure.in (VERSION): Set to "0.1.9".
1592 * configure: Regenerated.
1593 * nfs-utils.spec: Updated.
1597 2000-07-03 H.J. Lu <hjl@lucon.org>
1599 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1600 stop to ensure all clients can still access the server
1601 before it is shutdown.
1603 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1605 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1606 calls with format string.
1608 2000-06-28 Chip Salzenberg <chip@valinux.com>
1610 * utils/statd/log.c (log): Call syslog with format string.
1612 2000-06-27 H.J. Lu <hjl@lucon.org>
1614 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1615 instead of OPEN_MAX.
1617 2000-06-27 H.J. Lu <hjl@lucon.org>
1621 2000-06-27 H.J. Lu <hjl@lucon.org>
1623 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1624 startup to ensure all existing clients are exported.
1626 * configure.in (VERSION): Set to "0.1.8.2".
1627 * configure: Regenerated.
1628 * nfs-utils.spec: Updated.
1630 2000-06-06 H.J. Lu <hjl@lucon.org>
1632 * configure.in (VERSION): Set to "0.1.8.1".
1633 * configure: Regenerated.
1634 * nfs-utils.spec: Updated.
1636 2000-06-06 H.J. Lu <hjl@lucon.org>
1638 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1639 to "struct sockaddr_in *" for glibc 2.2.
1640 (mount_umnt_1_svc): Likewise.
1641 (mount_umntall_1_svc): Likewise.
1642 (mount_export_1_svc): Likewise.
1643 (mount_exportall_1_svc): Likewise.
1644 (mount_pathconf_2_svc): Likewise.
1645 (get_rootfh): Likewise.
1647 2000-06-04 H.J. Lu <hjl@lucon.org>
1649 * etc/redhat/nfs.init: Fix a typo in comment.
1651 2000-05-31 H.J. Lu <hjl@lucon.org>
1653 * configure.in (VERSION): Set to "0.1.8".
1654 * configure: Regenerated.
1655 * nfs-utils.spec: Updated.
1659 2000-05-31 H.J. Lu <hjl@lucon.org>
1661 * configure.in (VERSION): Set to "0.1.7.5".
1662 * configure: Regenerated.
1663 * nfs-utils.spec: Updated.
1665 * support/include/nfslib.h (exportent): Add a new field,
1666 r_count, to count the number of mounts from a client.
1667 (getrmtabent): Take a new argument for position in file.
1668 (putrmtabent): Likewise.
1669 (fgetrmtabent): Likewise.
1670 (fputrmtabent): Likewise.
1671 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1672 for position in file.
1673 (fgetrmtabent): Likewise.
1674 (putrmtabent): Likewise.
1675 (fputrmtabent): Likewise.
1677 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1680 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1681 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1682 and fputrmtabent ().
1683 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1684 (mountlist_del): Likewise.
1685 (mountlist_del_all): Likewise.
1686 (mountlist_list): Likewise.
1688 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1689 for the existing entry and initialize "r_count" to 1.
1690 (mountlist_del): Decrement "r_count".
1692 2000-05-18 H.J. Lu <hjl@lucon.org>
1694 * configure.in (VERSION): Set to "0.1.7.4".
1695 * configure: Regenerated.
1696 * nfs-utils.spec: Updated.
1698 2000-05-18 H.J. Lu <hjl@lucon.org>
1700 * etc/redhat/nfs.init (restart): Just do stop and start.
1702 2000-05-09 Jay Weber <jweber@valinux.com>
1704 * utils/rquotad/hasquota.c: added support for ext3 recognition
1706 * utils/rquotad/mntent.h: Likewise.
1708 2000-05-01 H.J. Lu <hjl@lucon.org>
1710 * configure.in (VERSION): Set to "0.1.7.3".
1711 * configure: Regenerated.
1712 * nfs-utils.spec: Updated.
1714 2000-05-01 H.J. Lu <hjl@lucon.org>
1716 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1717 mounting poins in /etc/fstab.
1719 2000-05-01 H.J. Lu <hjl@lucon.org>
1721 * configure.in (VERSION): Set to "0.1.7.2".
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): Call stat ()
1728 to check for the mounting point.
1730 2000-04-29 Chip Salzenberg <chip@valinux.com>
1731 Neil Brown <neilb@cse.unsw.edu.au>
1733 * Really re-use RPC ports.
1734 (Fixes earlier patch. Sorry, Neil.)
1736 2000-04-26 H.J. Lu <hjl@lucon.org>
1738 * configure.in (VERSION): Set to "0.1.7.1".
1739 * configure: Regenerated.
1740 * nfs-utils.spec: Updated.
1742 2000-04-26 H.J. Lu <hjl@lucon.org>
1744 * etc/redhat/nfslock.init: Check if lockd exits before killing
1747 2000-04-25 H.J. Lu <hjl@lucon.org>
1749 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1751 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1753 * support/nfs/exports.c (parsesquash): Correctly set the
1756 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1758 * support/include/nfs/nfs.h: Removed knowledge of internals of
1759 kernel filehandles (which can change) and defined nfs_fh_size
1760 which has variable size
1762 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1763 get variable sized file handles, and change getfh{,old} to
1766 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1769 * tools/Makefile, tools/nlmtest/nlmtest.c
1770 nlmtest.c depended on internel format of file handles, so now
1774 2000-03-12 Chip Salzenberg <chip@valinux.com>
1775 Neil Brown <neilb@cse.unsw.edu.au>
1777 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1779 2000-03-13 H.J. Lu <hjl@lucon.org>
1781 * etc/redhat/nfsd.init: Updated.
1783 * etc/redhat/nfslock.init: Updated.
1785 * nfs-utils.spec.in: Updated.
1787 * configure.in (VERSION): Set to "0.1.7".
1788 * configure: Regenerated.
1789 * nfs-utils.spec: Updated.
1793 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1795 * utils/exportfs/exportfs.c (dump): Included printing of
1796 nohide, no_subtree_check, and insecure_locks
1798 2000-02-26 Chip Salzenberg <chip@valinux.com>
1800 * config.mk.in (INSTALLSUID): Strip ("-s").
1801 (INSTALLSCRIPT): Define.
1802 * utils/nhfsstone/Makefile: Use it.
1804 2000-02-26 Chip Salzenberg <chip@valinux.com>
1806 * utils/lockd/lockd.man: Create.
1807 * utils/lockd/Makefile: Install it.
1808 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1809 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1810 * utils/nhfsstone/Makefile: Install the helper scripts and
1812 * utils/exportfs/exports.man: Fix typo.
1814 2000-02-26 Chip Salzenberg <chip@valinux.com>
1816 * support/nfs/xio.c (xungetc): Decrement line number when
1817 character to unget is newline. Make first parameter int, so
1818 it can distinguish EOF from \377.
1819 * support/include/xio.h (xungetc): Adjust prototype.
1821 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1823 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1824 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1825 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1827 This is for supporting a new option introduced in 2.3.42
1829 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1831 * COPYING: Added. GPL.
1833 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1835 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1836 to get the block size.
1838 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1840 * nfs-utils.spec.in: Update ftp site.
1842 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1844 * README: Update hostnames.
1846 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1848 * configure.in (VERSION): Set to "0.1.6".
1849 * configure: Regenerated.
1850 * nfs-utils.spec: Updated.
1854 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1856 * utils/mountd/auth.c (auth_authenticate_internal): Call
1857 xstrdup for hostname before passing it to gethostbyname.
1859 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1862 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1864 * README: Update the mailing list address.
1866 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1868 * configure.in (VERSION): Set to "0.1.5".
1869 * configure: Regenerated.
1870 * nfs-utils.spec: Updated.
1874 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1876 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1879 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1881 * configure.in (VERSION): Set to "0.1.4".
1882 * configure: Regenerated.
1883 * nfs-utils.spec: Updated.
1887 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1889 * nfs-utils.spec.in: New file.
1891 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1893 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1895 1999-12-04 Chip Salzenberg <chip@valinux.com>
1897 * config.mk.in: Use $(CC) as set by configure.
1899 1999-12-04 Chip Salzenberg <chip@valinux.com>
1901 * rules.mk: Call $(MAKE) with $(MFLAGS).
1903 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1905 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1906 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1908 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1910 * nfs-utils.spec (Version): Set to 0.1.3.
1912 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1913 * configure: Regenerated.
1917 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1919 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1920 (_PATH_DEV_DSK): Likewise.
1921 (getquotainfo): Match the mounting point from /etc/mtab
1922 instead of calling nfsmount_to_devname ().
1924 1999-11-24 Chip Salzenberg <chip@valinux.com>
1926 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1927 to the new port 24 as well as the historical port 100021.
1929 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1931 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1932 stopping nfsd to stop spurious ESTALE on server shutdown.
1934 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1936 * support/nfs/exports.c (parseopts): make copy of opt string
1937 before 'nul'ing out commas so that
1939 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1941 applies both options to both exports.
1943 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1945 * README: Fix a few typos.
1947 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1949 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1950 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1951 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1952 (unsigned_dec): Likewise.
1953 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1954 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1956 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1958 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1959 (unsigned_dec): Likewise.
1960 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1961 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1962 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1964 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1966 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1967 * support/nfs/exports.c: added {no_,}subtree_check and changed
1969 * utils/exportfs/exports.man: added no_subtree_check and nohide
1970 and removed irrelevant stuff from unfsd.
1971 * support/export/rmtab.c: rmtab_read didn't quite do the right
1972 thing if a pathname from rmtab was a subdirectory of an export-point
1974 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1976 * README: Updated ftp site.
1978 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1980 * nfs-utils.spec (Version): Set to 0.1.2.
1982 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1983 * configure: Regenerated.
1987 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1989 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1990 (auth_authenticate_internal): Check for NULL return on forward
1992 (auth_authenticate): Handle "no_forward_dns".
1994 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1996 * Version 0.1.1 released.
1998 * nfs-utils.spec (Version): Set to 0.1.1.
2000 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
2001 * configure: Regenerated.
2005 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
2007 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
2009 (Provides): Likewise.
2011 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
2013 * Initial version 0.1 released.
2015 * configure.in (VERSION): Set to "nfs-utils 0.1".
2016 * configure: Regenerated.
2018 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
2020 * utils/mountd/mountd.c (get_exportlist): Cleanup.
2022 * utils/exportfs/exportfs.c (unexport_all): Unexport from
2023 kernel only if the entry is exported to kernel.
2024 (unexportfs): Likewise.
2026 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
2028 1/ utils/mountd/rmtab.c::mountlist_list
2030 This routine stats the rmtab file to see if it has changed. It
2031 if has, it cleans up it's old copy of the data. But it still
2032 always re-read the file, thus returning multiple copies of the
2033 data on consecutive calls without intervening changes.
2034 "Showmount -a" didn't show this as it appears to sort/unique the
2035 data, but 'strace showmount -a' showed that the size of the
2036 datagram that it received grew.
2038 I moved the getrmtabent loop inside the mtime test.
2040 2/ utils/exportfs/exportfs.c
2042 Many routines used the m_path field of m_export instead of
2044 According to the comment in nfslib.h, m_path should only
2045 be used when processing a mount request (i.e. in mountd)
2046 where the mountpoint may be a subdirectory of the export point.
2048 I changed all occurances of m_path to e_path
2051 3/ utils/exportfs/exportfs.c:main
2053 extra arguments are not meaningful with -a or -r, but
2054 exportfs accepted them and then ignored the -a/-r, expect that
2055 -r would still unexport everything first.
2057 I generate an error if there are extra args and f_all
2059 4/ utils/exportfs/exportfs.c:main
2060 extract dump out as a special case.
2062 5/ utils/exportfs/exportfs.c
2063 made f_reexport a local variable.
2066 6/ utils/exportfs/exportfs.c:main,exportall
2068 support/export/rmtab.c
2069 only mayexport on newly created entries, don't set xtabent at all
2071 7/ support/include/nfslib.h
2073 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
2075 8/ support/export/xtab.c
2077 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
2081 9/ support/export/xtab.c
2083 xtab_mount_read now sets m_exported, and NOT
2084 xtabent and mayexport
2086 removed the append arguement from xtab_write as it was
2089 added is_export flag to xtab_write similar to xtab_read
2090 if is_export, only write entries with m_xtabent or m_addxtab
2091 if !is_export, only write entries with m_exported
2093 10/ support/export/export.c::export_allowed_internal
2095 added test for exp->m_mayexport, as the export tree
2096 may have entries that are no longer allowed to be exported,
2097 and so shouldn't caused deduced exported by rmtab_read
2099 11/ utils/exportfs/exportfs.c::main
2100 error checking of flags.
2102 12/ utils/exportfs/exportfs.c
2104 total rewrite of export and unexport logic.
2106 - build an exportslist of valid exports, based on
2107 current etab file and arguments,
2108 - read rmtab to instantiate relevant wild card entries
2109 - read etab to find out what is currently exported
2110 - synchronise intention with reality
2111 - write out etab and xtab
2114 discard the m_addxtab flag
2115 add m_changed flag so we know what to report in exportfs
2117 14/ utils/mountd/auth.c:auth_authenticate
2119 the value returned by gethostbyaddr was trusted.
2121 It now follows this with a call to gethostbyname
2122 and checks that the address is in the list.
2124 15/ support/export/nfsctl.c::cltsetup,expsetup
2126 force client names to lowercase as kernel is
2129 16/ quietened a few compiler warnings
2131 17/ support/export/client:client_lookup
2133 look for pre-existing client with same name before creating
2136 18/ support/include/exportfs.h
2138 The ordering of the MCL_* enum was:
2139 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
2141 I moved ANONYMOUS to the end.
2143 The ordering is significant when an export entry is being searched for to
2144 match a given address. There are two problems with ANONYMOUS being first.
2146 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
2147 then the ro case will always be found first and the privileged hosts won't get
2149 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
2150 export entry for the specific host, and writes it to xtab.
2151 When another request comes from the same host, the ANONYMOUS entry is found again,
2152 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
2153 again. If causes bloat in xtab.
2155 Putting ANONYMOUS at the end reflects it's nature as a catch-all
2157 19/ utils/exportfs/exportfs.man
2158 many updates to the man page to reflect changes to the code
2160 -----------------------
2166 - allow exportfs to modify rmtab file
2167 - make sure kernel never gets two clients with same IP address
2168 - possible kernel should reject
2169 - needs to be some way to lookup client in kernel by IP address
2170 - maybe get kernel to do case-insensitive comparisons on client names
2171 - remove unused clients from kernel
2173 - change etab to xtab and xtab to xtab.active
2175 - timestamp and/or statd-stamp in rmtab for removing old entries.
2177 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
2179 * linux-nfs: New directory.
2180 * linux-nfs/ChangeLog: Moved from ..
2181 * linux-nfs/INSTALL: Likewise.
2182 * linux-nfs/KNOWNBUGS: Likewise.
2183 * linux-nfs/NEW: Likewise.
2184 * linux-nfs/README: Likewise.
2185 * linux-nfs/THANKS: Likewise.
2186 * linux-nfs/TODO: Likewise.
2188 * Starting from knfsd 1.4.7.