1 2005-10-06 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
2 * support/nfs/export.c: don't warn about sync/async for readonly
4 * support/nfs/closeall.c: new file with function to close all
5 file descriptors from a give minimum upwards.
6 * nfsd/mountd/statd/idmapd/gsssvcd: use closeall.
7 * utils/mountd/mountd.c: Eliminate 3 syslog message that are
8 logged for successful events.
9 * utils/mountd/mountd.c: make sure the correct hostname is used in
10 the SM_NOTIFY message that is sent from a rebooted server which
11 has multiple network interfaces. (bz 139101)
13 Details can be found in:
14 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=139101
16 *utils/idmapd/idmapd.c:Fixed subscripting problem in idmapd (bz
17 158188) This fixes the following problem:
18 rpc.idmapd: nfsdreopen: Opening '' failed: errno 2 (No such file or directory)
20 Details can be found in:
21 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=158188
23 *utils/statd/statd.c(drop_privs): clear st_gid as well as st_uid
25 *utils/statd/svc_run.c(my_svc_run): remove usage of undocumented
27 *utils/statd/montor.c(sm_mon_1_svc): as above
28 *support/nfs/xlog.c(xlog): Changed xlog to use LOG_INFO instead of
29 LOG_DEBUG so debug messages will appear w/out any config changes
33 2005-09-02 Mike Frysinger <vapier@gentoo.org>
34 * utils/rquotad/rquota_server.c(getquotainfo): use explicit
35 struture-member copying rather than memcpy, as the element
36 sizes are the same on all architectures.
38 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
39 Add option to set rpcsec_gss debugging level (if available)
41 Changes to allow gssd/svcgssd to build when using Hiemdal Kerberos
42 libraries. Note that there are still run-time issues preventing
43 this from working when shared libraries for libgssapi and librpcsecgss
46 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
47 Remove the rpcsec_gss code and rely on an external library instead.
49 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
50 *utils/mountd/mountd.c:
51 mountd currently always returns AUTH_NULL and AUTH_SYS as the
52 allowable flavors in mount replies. We want it to also return gss
53 flavors when appropriate. For now as a hack we just have it always
54 return the KRB5 flavors as well.
56 *utils/mountd/cache.c:
58 When attempting to mount an NFSv4 pseudofilesystem (fsid=0) and the
59 actual exported directory does not exist on the server, rpc.mountd
60 doesn't check the directory exists (when fsidtype=1, i.e. using fsid,
61 but does check for fsidtype=0, i.e. using dev/ino). The non-existent
62 exported directory path with fsid=0 is written to the kernel via
63 /proc/net/rpc/nfsd.export/channel, which leads to path_lookup() to
64 return ENOENT (seems appropriate). Unfortunately, the new_cache
65 approach ignores errors returned when writing via the channel file so
66 that particular error is lost and the mount request is silently ignored.
68 Assuming it doesn't make sense to revamp the new_cache/up-call method to
69 not ignore returned errors, it seems appropriate to fix the case where
70 rpc.mountd doesn't check for the existence of an exported directory with
71 fsid= semantics. The following patch does this by moving the stat() up
72 so it is done for both fsidtype's. I'm not certain whether the other
73 tests need to be executed for fsidtype=1, but it doesn't appear to hurt
74 [Not exactly true: the comparison of inode numbers caused problems so
75 now it's kept for fsidtype=0 only].
77 Would it be also desirable to log a warning for every error, if any,
78 returned by a write to any of the /proc/net/rpc/*/channel files which
79 would otherwise be ignored (maybe under a debug flag)?
81 * gssd/mountd/svcgssd: Changes gssd, svcgssd, and mountd to ignore a
82 SIGHUP rather than dying.
84 * many: Remove the gssapi code and rely on an external library instead.
86 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
87 * utils/exportfs/exports.man: Document the "crossmnt" export export option
88 * utils/gssd/krb5_util.c:
89 Add better debugging and partially revert the function
90 check for gss_krb5_ccache_name.
92 For MIT Kerberos releases up to and including 1.3.1, we *must*
93 use the routine gss_krb5_ccache_name to get the K5 gssapi code
94 to use a different credentials cache.
96 For releases 1.3.2 and on, we want to use the KRB5CCNAME
97 environment variable to tell it what to use.
98 (A problem was reported where 1.3.5 was being used, our
99 code was using gss_krb5_ccache_name, but the underlying
100 code continued to use the first (or default?) credentials
101 cache. Switching to using the env variable fixed the problem.
102 I cannot recreate this problem.
104 *utils/gssd/krb5_util.c:
105 Andrew Mahone <andrew.mahone@gmail.com> reported that reiser4
106 always has DT_UNKNOWN. He supplied patch to move the check
107 for regular files after the stat() call to correctly find
108 ccache files in reiser4 filesystem.
110 Also change the name comparison so that the wrong file is
111 not selected when the substring comparison is done.
113 *utils/gssd/krb5_util.c:
114 Limit the set of encryption types that can be negotiated by
115 the Kerberos library to those that the kernel code currently
118 This should eventually query the kernel for the list of
121 *utils/gssd/gss_util.c, utils/svcgssd/svcgssd_main_loop.c:
122 Print more information in error messages to help debugging failures.
124 *utils/svcgssd/svcgssd_proc.c: Increase token buffer size and
125 update error handling so that a response is always sent.
127 *utils/svcgssd/svcgssd_proc.c: Add support to retrieve
128 supplementary groups.
131 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
133 Consolidate some of the Kerberos checking instead of repeating
134 the same things for MIT and Heimdal.
135 Also adds more checks to distinguish 32-bit from 64-bit
136 (mainly for gssapi.h)
137 Fix svcgssd Makefile so make TOP=../../ works correctly there.
138 Enable running a modern autoheader.
139 * utils/gssd/gss_oids.c: Use correct OID value for SPKM-3
140 * utils/gssd/gss_util.c: Fix build with older MIT releases that do not define GSS_C_NT_HOSTBASED_SERVICE
141 * utils/gssd/write_bytes.h, support/include/gssapi/gssapi.h:
142 Length of gss_buffer_desc is a size_t which is 64-bits on a
143 64-bit machine. Kernel code expects 32-bit integer for length.
144 Coerce length value into a 32-bit value when reading from or
145 writing to the kernel.
146 Change gssapi.h to use datatype size values obtained from
147 configure rather than hard-coded values.
148 * utils/idmapd/idmapd.c: The EV_INIT check here was wrong, and was
149 causing idmapd to become unresponsive to server requests after
151 * utils/idmapd/idmapd.c: Idmapd should flush the server id<->name
152 caches when its started.
154 2005-04-12 G. Allen Morris III <gam3@gam3.net>
156 * All Makefile: added TOP as needed for easier compile.
158 * utils/nfsstat/nfsstat.c: added NFS V4 support; added the -m
159 option; Added -2, -3, and -4 options; changed -a option to -v
160 option; added long options; changed default output to not
161 show V2 NFS statistics unless used.
163 * utils/nfsstat/nfsstat.man: Documented above changes; changed
164 authors email address; added BUGS section.
166 2005-04-07 Chip Salzenberg <chip@pobox.com>
168 * debian/changelog: Version 1.0.7-2.
170 2005-04-06 Chip Salzenberg <chip@pobox.com>
172 * config.guess, config.sub: Update.
174 * support/rpc/svc_auth_gss.c (_svcauth_gss): Avoid using a cast as
175 an lvalue, as it is non-portable.
177 * support/nfs/exports.c (parseopts): Accept "acl" option to mean
178 ~NFSEXP_NOACL, and "no_acl" to mean NFSEXP_NOACL.
179 (putexportent): Report NFSEXP_NOACL as "no_acl", and ~NFSEXP_NOACL
181 * utils/exportfs/exportfs.c (dump): Report NFSEXP_NOACL as
183 * utils/exportfs/exports.man: Document "no_acl".
185 2005-03-14 NeilBrown <neilb@cse.unsw.edu.au>
186 Denis Vlasenko <vda@ilport.com.ua>
187 * support/export/client.c(client_init and client_gettype):
188 treat N.N.N.N as a special case of MCL_SUBNETWORK instead of
191 2005-03-06 G. Allen Morris III <gam3@gam3.net>
192 * support/nfs/cacheio.c(readline): Could not read lines greater
193 than 128 bytes. [1157791]
194 * utils/exportfs/exports.man: Added a SEE ALSO section and
195 fixed 2 typos. [1018450]
197 2005-02-28 Trond Myklebust <trond.myklebust@fys.uio.no>
198 * utils/statd/rmtcall.c(statd_get_socket): If a port number is
199 explicitly given, make sure to try to bind to that.
201 2005-01-11 Chip Salzenberg <chip@pobox.com>
203 * debian/changelog: Version 1.0.7-1.
204 * debian/nfs-common.default (NEED_IDMAPD, NEED_GSSD):
205 Disable by default, on advice of upstream.
206 * debian/nfs-kernel-server.default (NEED_SVCGSSD):
209 * utils/svcgssd/Makefile (predep): Symbolically link duplicated
211 (distclean): Remove symlinks to duplicated files.
213 2004-12-17 NeilBrown <neilb@cse.unsw.edu.au>
216 * config.mk, configure.in: update version number, run autoconf
217 * configure.in: require nfsidmap.h if gss is enabled.
219 2004-12-10 NeilBrown <neilb@cse.unsw.edu.au>
222 * config.mk, configure.in: update version number, run autoconf
224 2004-12-10 Neil Brown <neilb@cse.unsw.edu.au>
225 * README : note dependancy on kerberos, libevent, and nfsidmap
226 * configure.in : fail if --enable-nfsv4 and libevent or
227 libnfsidmap are missing.
228 * configuyre.in: improve message if krb5 support is missing
230 2004-12-06 Paul Clements <paul.clements@steeleye.com>
231 * support/include/ha-callout.h: get return status from waitpid
233 * support/include/ha-callout.h: don't ignore SIGCHLD while waiting
234 for a callout to complete.
235 * utils/statd/statd.c(sigusr): print current start when re-reading
236 notify list due to SIGUSR1
237 * utils/statd/svc_run.c(my_svc_run): call change_state when
238 re-notifying clients.
240 2004-12-06 Marc Eshel <eshel@almaden.ibm.com>
241 * utils/statd/svc_run.c(my_svc_run): allow loop to exit when in
243 *utils/statd/rmtcall.c(statd_get_socket): if a hostname is given
244 to statd with -n, prefer it's IP address to the default for
247 2004-12-06 Bruce Allan <bwa@us.ibm.com>
248 * utils/mountd/auth.c(auth_reload) Clear the "my_client" cache on
249 an auth_reload to avoid old data getting used.
251 2004-12-03 NeilBrown <neilb@cse.unsw.edu.au>
252 Release 1.0.7-pre1 for testing
254 * config.mk, configure.in: update version number, run autoconf
256 2004-12-03 Trond Myklebust <trond.myklebust@fys.uio.no>
258 * utils/statd/statd.c(main): ignore SIGPIPE
260 2004-11-22 "J. Bruce Fields" <bfields@fieldses.org>
262 * tools/rpcdebug/rpcdebug.c: support aliases "nfsdebug" and
263 "nfsddebug" and update flag names.
264 * configure.in, nodist/* redhat/* nfs-utils.spec*: remove redhat
265 specific files (as no-one actually uses them, especially not
266 redhat), and the nodist /etc files (as they drift out-of-date, and
267 the debian directory provides a suitable example.
268 * utils/svcgssd_proc.c(get_ids): fix memory leak
269 * utils/svcgssd/svcgssd_proc.c: Rely on count of the number of
270 groups instead of using a special guard value to identify the end
272 * utils/idmapd/idmapd.c: don't allow Default domain and anon-uid
273 or -gid to be specified on command line.
274 * utils/idmapd/idmapd.c: improve error messages
275 * utils/idmapd/idmapd.c: Reopen nfsd files on sighup. Allows us
276 to start up client side only (even when nfsd module not loaded),
277 and then sighup later after insmodding nfsd module.
278 * utils/idmapd/idmapd.c: Make sure we catch all errors on
279 daemonizing by waiting for child to report succesfull startup
281 * utils/idmapd/idmapd.c: Let libnfsidmapd parse the idmapd.conf
282 file for the default domain, instead of doing that ourselves.
283 * utils/gssd/gssd_proc.c: Make sure we get an error when a gssd
285 * utils/gssd/gssd_proc.c: We were forgetting to restore the euid
286 on certain failures, which meant gssd could get stuck in a state
287 where it didn't have permissions to read the files in rpc_pipefs
289 * utils/gssd/gssd_proc.c: Use libnfsidmapd to map gss principals
291 * debian/nfs-kernel-server.default: Document the NEED_SVCGSSD
292 variable in /etc/default/nfs-kernel-server.
295 2004-11-22 NeilBrown <neilb@cse.unsw.edu.au>
297 * utils/exportfs/nfsd.man: corrected typo in .BR macro usage -
298 reported by Eric Raymond
300 2004-10-19 "J. Bruce Fields" <bfields@fieldses.org>
302 * support/gssapi/* support/rpc/* utils/gssd/* utils/svcgssd/* etc
303 initial support for GSSAPI authentication
305 2004-09-15 Neil Brown <neilb@cse.unsw.edu.au>
307 * utils/statd/monitor.c(sm_unmon_1_svc): is RESTRICTED_STATD, then
308 check IP address and force my_name to 127.0.0.1 to match
309 what happens in sm_mon_1_svc. This avoid spurious "erroneous
311 * utils/statd.monitor.c(sm_unmon_all_1_svc): likewise
313 2004-09-15 "J. Bruce Fields" <bfields@fieldses.org>
315 * Assorted changes to support "gss/*" style authentication
316 * utils/idmapd: new idmapd daemon for nfsv4 username lookup
318 2004-09-06 Trond Myklebust <trond.myklebust@fys.uio.no>
319 Neil Brown <neilb@cse.unsw.edu.au>
321 * utils/mountd/auth.c(auth_authenticate_internal): fix
322 uninitialsed variable problem (causes bad error messages).
324 2004-09-06 Paul Clements <paul.clements@steeleye.com>
325 Neil Brown <neilb@cse.unsw.edu.au>
327 * utils/mountd/mountd.c(main): support --ha-callout (-H) for
328 specifying a callout program
329 * utils/mountd/rmtab.c: Call ha_callout on mount/unmount
330 * utils/statd/monitor.c: Call ha_callout on add/del client
331 * utils/statd/rmtcall.c: as above
332 * utils/statd/statd.c: handle --ha-callout (-H)
333 * utils/statd/svc_run.c: call notify_hosts is we have received a
335 * support/include/ha-callout.h: define ha_callout function
338 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
339 * utils/mountd/cache.c(cache_process_req): clear fd after
340 processing so as not to confused libc/sunrpc into thinking
341 it need to do something with that fd.
343 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
345 * debian/nfs-kernel-server.init(start,stop) mount the nfsd
346 filesystem, if available, before starting nfs services, and
347 unmount it afterwards.
348 * etc/nodist/nfs-server: ditto
349 * etc/redhat/nfs.init: likewise
350 * etc/redhat/nfs: add "MOUNT_NFSD" flag to control above.
352 2004-06-08 NeilBrown <neilb@cse.unsw.edu.au>
354 * utils/exportfs/exportfs.c: Don't rmtab_read if new_cache, it
356 * support/nfs/cacheio.c(cache_flush): Change order in which caches
357 are flushed so that dependancies don't keep things in the cache
360 2004-03-18 Chip Salzenberg <chip@pobox.com>
362 * debian/changelog: Version 1.0.6-2.
364 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
365 from "J. Bruce Fields" <bfields@fieldses.org>
367 * utils/mountd/cache.c: call auth_reload to make sure auth data is
368 current before responding to kernel upcall.
370 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
371 Based on patch from Greg Banks <gnb@melbourne.sgi.com>
373 * utils/exportfs/exports.man: Document fsid= option.
375 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
379 * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
380 support/include, and depend in "predep"
381 * support/export/Makefile, tools/rpcgen/Makefile,
382 utils/statd/Makefile: add "predep" rule so that "make dep" works.
383 * Makefile: allow a simple "make" to run ./configure and "make dep"
385 * configure.in, nfs-utils.spec: Update version to 1.0.6
388 2003-09-12 Chip Salzenberg <chip@pobox.com>
390 * debian/changelog: Version 1.0.6-1.
392 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
394 * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
396 * utils/statd/statd.c(main): Ditto.
398 michael <michael@newdream.net> discovered that svc_setreqsize
399 in glibc can segfault if RLIMIT_NOFILE is bigger than
400 FD_SETSIZE, so a simple solution is to impose a hard limit.
402 2003-09-09 Chip Salzenberg <chip@pobox.com>
404 * debian/changelog: Version 1.0.5-3.
405 * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
406 on invalid reverse DNS.
407 * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
408 * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
409 * tools/rpcgen/rpc_parse.c (def_union): Likewise.
411 2003-08-22 Chip Salzenberg <chip@pobox.com>
413 * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
414 N_*, to avoid conflict with ISO C built-in log() function.
415 * utils/statd/*.c: Use note().
417 2003-08-20 Chip Salzenberg <chip@pobox.com>
419 * debian/changelog: Version 1.0.5-2.
421 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
423 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
426 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
428 * support/include/nfs/export.h, support/nfs/exports.c,
429 utils/exportfs/exports.c, utils/mountd/mountd.c: change
430 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
431 meaning. Also remove meaningless
432 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
434 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
436 * support/export/xtab.c, support/include/nfslib.h,
437 support/nfs/cacheio.c, support/nfs/nfssvc.c,
438 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
439 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
440 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
441 (nfs-utils-1.0.5-post2)
443 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
445 * support/nfs/nfsexport.c: open channel file O_WRONLY when
447 * utils/mountd/cache.c: maintain mountlist when new_cache is
448 active. Also use O_WRONLY for channel files.
449 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
450 rather than an nfs_export.
451 * utils/mountd/rmtab.c: ditto.
452 (nfs-utils-1.5.0-post1)
454 2003-07-24 Chip Salzenberg <chip@pobox.com>
456 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
457 use Debian security team's cleaner approach.
458 * debian/changelog: Version 1.0.5-1.
459 * debian/nfs-kernel-server.init: Cosmetic changes.
461 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
464 1.0.4 was a bit of a brown-paper-bag-release because of the extra
465 'free' in auth.c. So I'm releasing this just a few days later.
467 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
469 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
470 check if new_cache is enabled, error if not, flush and exit if it
472 * utils/exportfs/exportfs.man: Explain -f option and explain the
473 two different modes that exportfs can work in.
474 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
476 * utils/mountd/mountd.man: Record the change if default behaviour
478 * configure.in, nfs-utils.spec: update version to 1.0.5 and
481 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
483 * utils/mountd/mountd.c(main): getopt string fix for 'o'
484 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
485 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
487 * support/include/nfs/export.h: Reserve a bit for possible ACL
490 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
492 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
493 assorted changed to cope with section 7 of the manual.
494 * configure.in, nfs-utils.spec: Update version to 1.0.4
497 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
498 baseline for 2.6 and 2.8. I.e. it should continue to work right
499 through the 2.8 (or 3.0) kernel series. Previous releases wont.
501 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
502 Steve Dickson <SteveD@redhat.com>
505 * utils/statd/statd.c: create a pidfile with pid of statd, and
506 truncate it when statd exists.
507 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
508 and warn if this is root.
509 * utils/statd/statd.c: when statd forks, connect child to parent
510 with a pipe, and send a byte down the pipe once the child is
512 * Makefile: create and chown sm, sm.bak, state when "make install"
513 * configure.in: add --with-statduser= option which defaults to
514 "rpcuser" or "nobody"
515 * config.mk.in: pass "statduser" through to Makefile
517 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
519 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
520 used as the size was changed somewhere in 2.5.60-2.5.70. Without
521 this nfs-utils compiles against 2.6 headers will not work on a
524 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
526 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
527 set number of threads by writing to there. This means it will
528 still work when the syscall interface goes away in 2.7.
530 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
531 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
533 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
534 so as to only export the wildcard exports that were asked for.
535 * support/export/export.c(export_allowed): changed to return the
536 nfs_export rather than a "struct exportent", as m_changed is
538 * support/export/rmtab.c(rmtab_read): modified to deal with
539 interface change for export_allowed(), and enhanced to preserve
540 m_changed flag when a wild-card export causes the creation of
541 a non-wildcard export.
543 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
544 Steve Dickson <SteveD@redhat.com>
546 * utils/mountd/mountd.man: Add valid kinds of debugging.
547 * utils/mountd/mountd.c(main): ignore SIGPIPE
548 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
549 we don't get warnings about unavailable stats that weren't asked
552 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
554 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
555 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
556 'forever', so things disappear out of the cache rather than just
559 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
561 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
564 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
566 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
567 etc/redhat/nfs.init: when checking if V3 is supported, make sure
568 nfs server 'knows' about 127.0.0.1 first.
570 2003-06-10 Chip Salzenberg <chip@pobox.com>
572 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
573 * debian/changelog: Version 1.0.3-2.
575 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
576 NeilBrown <neilb@cse.unsw.edu.au>
578 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
579 long long to avoid overflow when printing stats.
581 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
583 * support/export/export.c, support/include/nfslib.h,
584 support/nfs/export.c, utils/exportfs/exportfs.c,
585 utils/mountd/mountd.c: new export option "mountpoint"
586 If no path is given, then the export point must be a
587 mount point, or it won't be exported. If a path is
588 given (e.g. mountpoint=/path) then that path must be
589 a mountpoint or the exportpoint won't be exported.
590 * utils/exportfs/exportfs.man: document mountpoint option.
591 * support/misc/mountpoint.c: New file with is_mountpoint()
592 to determine if something is a mountpoint.
594 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
596 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
597 argument as we might not be getting the filehandle for the
599 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
600 cache_get_filehandle.
601 * utils/mountd/mountd.c(get_rootfh): check export point and
602 requested directory are on the same filesystem, and complain if
605 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
607 * utils/mountd/auth.c(auth_authenticate_internal): make sure
608 portnumber is still checked when using new cache lookup.
610 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
612 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
613 Don't actually talk to kernel when new cache is in effect, except
615 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
616 * support/export/xtab.c: Only rename new xtab into place if it has
617 changed, thus preserving modify date for exportfs to use when
619 * support/nfs/cacheio.c: Add cache_flush
620 * support/export/xtab.c: Only rename new xtab into place if it has
621 changed, thus preserving modify date for exportfs to use when
624 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
626 * support/export/client.c: Add client_compose, client_member to
627 handle new composite client names
628 * support/include/exportfs.h: Declare above functions.
629 * utils/mountd/auth.c: use client_compose to determine calling
630 client if new cache is being used.
631 * utils/mountd/auth.c: call cache_export to export a filesystem if
632 new_cache, check if new cache is used, and call my_svc_run instead
634 * utils/mountd/svc_run.c: new file defining my_svc_run
635 * utils/mountd/cache.c: new file for handling cache upcalls.
636 * support/nfs/cacheio.c(check_new_cache): new function to check if
637 new cache should be used.
640 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
642 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
643 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
644 * utils/exportfs/exportfs.c(dump): ditto
646 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
648 * support/export/hostname.c(get_reliable_hostbyaddr): new function
649 to get host name from address with full checking of authenticity.
650 * support/include/misc.h: declare above function
651 * utils/mountd/auth.c(auth_authenticate_internal): remove all
652 logic for authenticating address.
653 * utils/mountd/auth.c(auth_authenticate): call new
654 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
657 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
659 * tools/rpcgen/rpc_main.c(find_cpp): removed
660 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
661 then try hard-coded paths.
663 2003-03-26 Chip Salzenberg <chip@pobox.com>
665 * debian/changelog: Version 1.0.3-1.
667 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
669 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
670 "const char*", not "char*".
672 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
674 * configure.in (VERSION): Set to "1.0.3".
675 * nfs-utils.spec: Likewise.
676 * configure: Regenerated.
678 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
680 * support/nfs/cacheio.c: New File - support for read/writing
681 to export cache in /proc/rpc/*/channel
682 * support/nfs/Makefile: compile cacheio.c
683 * support/include/nfslib.h: declare cacheio.c functions
684 * support/nfs/nfsexport.c: export and unexport through
685 /proc/rpc/*/channel if possible, as old syscall interface
686 may not survive into 2.6 on all architectures.
688 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
689 Ben Leslie <benno@sesgroup.net>
691 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
692 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
693 former would incorectly ignore defport if the application
694 explicitly set __rpcfdtype. The later is sufficient to avoid the
695 special handling in the case where stdin is an internet socket.
697 * utils/mountd/mountd.c(main): Add 'n' to option list in
698 getopt_long as this is a short form of --no-tcp which want being
701 2003-02-12 Chip Salzenberg <chip@pobox.com>
703 * debian/changelog: Version 1.0.2-2.
705 2002-11-27 Chip Salzenberg <chip@pobox.com>
707 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
708 overflow bug. Reformat per rest of source file.
710 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
712 * utils/exportfs/exports.man: Correct notes about whether the wild
713 card characters match a period. They do.
715 2002-10-15 Juan Gomez <juang@us.ibm.com>
717 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
719 (mountlist_add): Call slink_safe_rename instead of rename.
721 2002-10-11 H.J. Lu <hjl@lucon.org>
723 * support/include/exportfs.h (export_errno): New.
725 * support/nfs/exports.c: Include <errno.h>.
727 (getexportent): Set export_errno to EINVAL for bad option.
728 (parseopts): Likewise.
729 Report the location of the default sync/async option.
731 * utils/exportfs/exportfs.c (main): Initialize export_errno to
732 0. Return export_errno.
734 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
735 NeilBrown <neilb@cse.unsw.edu.au>
737 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
738 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
740 2002-09-16 Chip Salzenberg <chip@pobox.com>
742 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
744 2002-09-15 Chip Salzenberg <chip@pobox.com>
746 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
747 socket, as occurs when run from sshd.
748 * debian/changelog: Version 1.0.2-1.
750 2002-09-12 H.J. Lu <hjl@lucon.org>
752 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
755 2002-09-12 H.J. Lu <hjl@lucon.org>
757 * configure.in: Remove checking svctcp_socket and svcudp_socket.
758 * configure: Regenerated.
760 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
761 (HAVE_SVCUDP_SOCKET): Removed.
763 * support/include/nfslib.h: Undo the last change.
765 2002-09-12 H.J. Lu <hjl@lucon.org>
767 * support/include/nfslib.h (svctcp_socket): Protect it with
769 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
771 2002-09-12 H.J. Lu <hjl@lucon.org>
773 * configure.in (VERSION): Set to "1.0.2".
774 * configure: Regenerated.
775 * nfs-utils.spec: Likewise.
777 2002-09-12 H.J. Lu <hjl@lucon.org>
779 * configure.in: Check svctcp_socket and svcudp_socket.
780 * configure: Regenerated.
782 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
783 (HAVE_SVCUDP_SOCKET): New.
785 * support/include/nfslib.h (svctcp_socket): New.
786 (svcudp_socket): New.
788 * support/nfs/Makefile (OBJS): Add svc_socket.o.
790 * support/nfs/svc_socket.c: New.
792 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
793 svcudp_socket if port is unspecified.
795 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
797 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
798 (killer): New. Signal handler to unregister.
799 (main): Use killer. Call svcudp_socket to get the default
802 2002-09-02 Juan Gomez <juang@us.ibm.com>
803 NeilBrown <neilb@cse.unsw.edu.au>
805 Add -N option to statd to run in notify-only mode.
807 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
808 * utils/statd/statd.man: document -N
809 * utils/statd/statd.c: enabled -N, largely exists but needed to be
810 uncommented and completed
812 2002-09-02 Juan Gomez <juang@us.ibm.com>
813 NeilBrown <neilb@cse.unsw.edu.au>
815 statd to have " -P directory" arg to use that directory instead
816 of /var/lib/nfs. This is useful for fail-over clusters.
818 * utils/statd/statd.h: define SM_DIR etc as var, not const.
819 * utils/statd/statd.c: define "-P" option to set SM_*
821 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
823 * utils/statd/notify.c: ditto.
824 * utils/statd/statd.man: document -P option.
826 2002-08-26 Chip Salzenberg <chip@pobox.com>
828 * utils/nfsd/nfsd.man: Fix typo.
829 * debian/changelog: Version 1.0.1-1.
831 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
833 * let parseopts know if /etc/exports was being read or not,
834 and have it only print "no sync or async" warning in that case.
836 2002-05-06 Tom McNeal <trmcneal@attbi.com>
837 NeilBrown <neilb@cse.unsw.edu.au>
839 * utils/nfsstat/nfsstat.c: Handle differing format for
840 /proc/net/rpc/nfsd between pre and post 2.4.0
842 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
843 James Pearson <james-p@moving-picture.com>
845 * support/nfs/rmtab.c(fendrmtabent): sync changes to
846 storage before returning, as this is critical state
848 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
849 H.J. Lu <hjl@lucon.org>
851 * etc/redhat/nfs: New.
853 2002-04-08 H.J. Lu <hjl@lucon.org>
855 * etc/redhat/nfs.init: Updated.
857 * nfs-utils.spec.in: Updated.
858 * nfs-utils.spec: Regenerated.
860 * utils/mountd/mountd.c (longopts): Fix a typo.
862 * utils/mountd/mountd.man: Updated.
864 2002-04-07 H.J. Lu <hjl@lucon.org>
866 * etc/redhat/nfslock.init (restart): Just do stop and start.
868 * etc/redhat/nfs.init: Fix a typo.
870 2002-04-07 H.J. Lu <hjl@lucon.org>
872 * configure.in (VERSION): Set to "1.0.1".
873 * configure: Regenerated.
874 * nfs-utils.spec: Likewise.
876 * README: Updated for 1.0.1.
878 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
879 H.J. Lu <hjl@lucon.org>
881 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
883 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
884 NeilBrown <neilb@cse.unsw.edu.au>
886 Add support for fsid=nn export option so that device
887 numbers don't go in filehandles.
888 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
889 is set, pass the fsid in-place of the device number
890 * support/nfs/exports.c: parse and print fsid= option.
891 Also check if efname has been set, and use "command line"
892 instead in error messages.
893 Also, use strtol instead of atoi for anon[ug]id= so that
894 bad numbers cause errors.
896 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
897 NeilBrown <neilb@cse.unsw.edu.au>
899 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
900 flag so that "sync" becomes the default.
901 Check that either "sync" or "async" is given as an option
902 and warn if neither are present
903 * utils/exportfs/exports.man: change documentation for "sync"
904 to be documentation for "async".
905 * utils/exportfs/exportfs.man: note that "sync" is the default
909 2002-01-02 Chip Salzenberg <chip@pobox.com>
911 * support/export/nfsctl.c (expsetup): Don't export entries that
912 specify id mappings not supported by the kernel. No extant kernel
913 supports any significant mapping, only 'identity' (i.e. none).
914 When other mappings are supported, this code will need changing.
915 * debian/changelog: Version 1.0-2.
917 2001-12-26 Chip Salzenberg <chip@pobox.com>
919 * nfs-utils.spec (Version): Set to "1.0".
920 * configure.in (VERSION): Likewise.
921 * configure: Regenerated.
923 * debian/changelog: Version 1.0-1.
925 * utils/exportfs/exports.man: Emphasize the need for options to
926 immediately follow client names. Explain that wildcards don't
927 usually work on addresses, but may work when reverse DNS fails.
928 Comment out a leftover TP that was TPing our indentation.
929 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
930 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
931 * debian/changelog: Version 0.3.3-6.
933 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
935 * support/export/client.c(client_lookup): If a host has multiple
936 IP addresses, then we must always use the result of a
937 gethostbyname, not that of gethostbyaddr for exporting
939 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
941 * support/export/client.c (client_lookup): use strcasecmp when
943 * support/nfs/export.c (getexportent): add fromkernel arg and use
944 different defaults as kernels prior to 2.4.11 assume different
945 defaults in /proc/fs/nfs/exports
946 * support/include/nfslib.h, support/export/export.c,
947 support/export/xtab.c: support extra "fromkernel" arg for
950 2001-12-13 Chip Salzenberg <chip@pobox.com>
952 * debian/changelog: Version 0.3.3-5.
954 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
956 * support/nfs/xio.c (xskip): Call `xungetc' instead of
957 `ungetc' to keep x_line more properly.
959 2001-11-26 Chip Salzenberg <chip@pobox.com>
961 * utils/showmount/showmount.c (main): Don't assume that strings
962 starting with digits are IP addresses.
963 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
964 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
965 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
966 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
967 man pages: We check host names *and* addresses with tcpwrappers.
968 * debian/changelog: Version 0.3.3-4.
970 2001-11-21 Chip Salzenberg <chip@pobox.com>
972 * support/nfs/clients.c (cfname): Added: current clients file name.
973 (setnfsclntent): Set it.
974 ({get,end}nfsclntent, syntaxerr): Use it.
975 * support/nfs/exports.c (efname): Added: current exports file name.
976 (setnfsexportent): Set it.
977 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
978 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
979 * debian/changelog: Version 0.3.3-3.
981 2001-10-11 Chip Salzenberg <chip@pobox.com>
983 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
984 * debian/changelog: Version 0.3.3-2.
986 2001-10-08 Chip Salzenberg <chip@pobox.com>
988 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
989 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
990 * utils/mountd/mountd.man: Update paths to /var/lib.
991 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
993 2001-10-06 Preston Brown <pbrown@redhat.com>
995 * utils/nfsstat/nfsstat.man: Updated.
997 2001-09-24 H.J. Lu <hjl@lucon.org>
999 * configure.in (VERSION): Set to "0.3.3".
1000 * configure: Regenerated.
1001 * nfs-utils.spec: Likewise.
1003 * README: Updated for 0.3.3.
1005 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
1007 Arrange that "exportfs -au" never does DNS lookup:
1009 * support/export/client.c (client_lookup) : add "canonical"
1010 flag which says that the hostname is known to be canonical, so
1013 * support/export/export.c (export_create) : add "canonical"
1014 flag to be passed down to client_lookup
1015 * support/export/export.c (export_lookup) : Likewise
1017 * support/export/xtab.c (xtab_read) : pass appropriate
1018 "canonical" flag to export_lookup and export_create:
1019 set if reading list of filesystems currently exports
1022 * support/export/export.c (export_read) : pass 0 as
1023 "canonical" flag to export_lookup and export_create
1024 * support/export/rmtab.s (rmtab_read) : Likewise
1026 * support/include/exportfs.h : redeclare various routines
1027 to have "canonical" flag
1029 * utils/exportfs/exportfs.c (main) : redo logic for
1030 "-au" to read in what is currently exported, but never even
1031 look at what "should" be exported.
1033 * utils/exportfs/exportfs.c (unexportall) : remove this
1034 routine. Functionality is completely included in
1037 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
1038 flag to zero in calls to export_lookup and export_create.
1041 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
1042 Anne Milicia <milicia@missioncriticallinux.com>
1044 * support/export/client.c (client_lookup) call gethostbyadd
1045 to make sure that we have a canonical hostname, even for
1047 * utils/exportfs/exportfs.c (exportfs) Likewise
1049 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1051 * support/nfs/exports.c (putexportent): \octal quote any spaces
1053 * support/nfs/xio.c (xgettok): recognise double-quote and
1054 \octal quoting in path names
1055 * utils/exportfs/exports.man: document quoting conventions
1058 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1060 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
1061 change from 2000-08-02: It causes problems if someone exports
1062 to both a hostname and IP addresses. nfs-utils must be
1063 consistant about the canonical name that it chooses.
1065 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
1066 H.J. Lu <hjl@lucon.org>
1068 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
1070 * utils/statd/statd.c (longopts): Add "name".
1071 (usage): Add "-n/--name".
1072 (main): Set MY_NAME with "-n/--name".
1074 * utils/statd/state.c (change_state): Set MY_NAME only if it
1077 * utils/statd/statd.man: Updated for "-n/--name".
1079 2001-07-26 H.J. Lu <hjl@lucon.org>
1081 * nfs-utils.spec (Release): Set to 8.
1083 2001-07-25 H.J. Lu <hjl@lucon.org>
1085 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
1088 2001-06-27 H.J. Lu <hjl@lucon.org>
1090 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
1092 2001-06-27 H.J. Lu <hjl@lucon.org>
1094 * utils/rquotad/rquota_server.c: Don't call statfs () for
1095 the block size. Use BLOCK_SIZE instead.
1097 2001-06-27 H.J. Lu <hjl@lucon.org>
1099 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
1100 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
1102 * configure.in (enable_nfsv3): Set to yes by default.
1103 (--enable-rquotad): Added
1104 (AC_PROG_CXX): Removed.
1105 (AC_OUTPUT): Add utils/Makefile.
1106 (CC_FOR_BUILD): Renamed from BUILD_CC.
1107 * configure: Regenerated.
1109 * utils/Makefile: Removed.
1111 * utils/Makefile.in: New.
1113 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
1115 (CC_FOR_BUILD): Renamed from BUILD_CC.
1116 * nfs-utils.spec: Regenerated.
1118 2001-06-15 Chip Salzenberg <chip@debian.org>
1120 * debian/changelog: Version 0.3.2-2.
1121 * debian/*.init: Minor fixes.
1123 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
1125 * etc/nodist/nfs-server: Fixed a bug where the script would
1126 disable mounts from NFSv3 clients if NFSv3 is present.
1128 2001-06-05 H.J. Lu <hjl@lucon.org>
1130 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
1131 (main): Support --descriptors/-o to set the limit of the number
1132 of open file descriptors.
1135 * utils/mountd/mountd.man: Updated for --descriptors/-o.
1137 2001-06-04 H.J. Lu <hjl@lucon.org>
1139 * nfs-utils.spec (Release): Set to 6.
1141 2001-05-28 H.J. Lu <hjl@lucon.org>
1143 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
1144 * utils/mountd/mountd.c (main): Likewise.
1145 * utils/nfsd/nfsd.c (main): Likewise.
1146 * utils/rquotad/rquota_svc.c (main): Likewise.
1148 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
1150 * support/export/client.c (client_check): Check IP address
1153 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
1155 * support/export/client.c (client_gettype): Treat `*' as
1158 2001-04-22 H.J. Lu <hjl@lucon.org>
1160 * nfs-utils.spec.in: Fix a typo.
1161 * nfs-utils.spec: Regenerated.
1163 2001-04-21 H.J. Lu <hjl@lucon.org>
1165 * nfs-utils.spec.in: Fix cross build.
1166 * nfs-utils.spec: Regenerated.
1167 (Release): Set to 5.
1169 2001-04-18 H.J. Lu <hjl@lucon.org>
1171 * nfs-utils.spec.in: Support cross build.
1172 * nfs-utils.spec: Regenerated.
1173 (Release): Set to 4.
1176 * config.guess: New.
1178 * config.mk.in (BUILD_CC): New.
1179 (CC): Set to $(BUILD_CC) if BUILD is defined.
1182 (RANLIB): Set to @RANLIB@.
1184 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
1185 * configure: Regenerated.
1187 * tools/rpcgen/Makefile (BUILD): Set to true.
1189 2001-04-01 Chip Salzenberg <chip@valinux.com>
1191 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
1192 redundant, and sometimes broken, declaration of svc_fdset;
1194 * support/nfs/rpcmisc.c (closedown): Likewise.
1196 2001-03-21 H.J. Lu <hjl@lucon.org>
1198 * nfs-utils.spec: Regenerated.
1199 (Release): Set to 3.
1201 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
1203 * utils/statd/statd.c (main): make sure file descriptors 0-2
1204 are open to /dev/null.
1206 2001-03-21 H.J. Lu <hjl@lucon.org>
1208 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
1209 * support/nfs/rpcmisc.c: Likewise.
1210 * utils/rquotad/rquota_svc.c: Likewise.
1211 * utils/rquotad/rquotad.man: Likewise.
1212 * utils/statd/Makefile: Likewise.
1213 * utils/statd/rmtcall.c: Likewise.
1214 * utils/statd/simulate.c: Likewise.
1215 * utils/statd/statd.c: Likewise.
1216 * utils/statd/statd.man: Likewise.
1218 2001-03-11 H.J. Lu <hjl@lucon.org>
1220 * configure.in (RELEASE): New. Default to 1, set by
1221 --with-release=XXX. Substitute nfs-utils.spec.
1222 * nfs-utils.spec.in (Release): Set to @RELEASE@.
1223 * configure: Regenerated.
1224 * nfs-utils.spec: Likewise.
1226 2001-03-11 H.J. Lu <hjl@lucon.org>
1228 * utils/rquotad/rquotad.man: Fix a typo.
1230 2001-03-11 H.J. Lu <hjl@lucon.org>
1232 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
1233 * support/nfs/rpcmisc.c: Likewise.
1234 * utils/rquotad/rquota_svc.c: Likewise.
1235 * utils/rquotad/rquotad.man: Likewise.
1236 * utils/statd/Makefile: Likewise.
1237 * utils/statd/rmtcall.c: Likewise.
1238 * utils/statd/simulate.c: Likewise.
1239 * utils/statd/statd.c: Likewise.
1240 * utils/statd/statd.man: Likewise.
1242 2001-03-10 H.J. Lu <hjl@lucon.org>
1244 * configure.in (VERSION): Set to "0.3.2".
1245 * configure: Regenerated.
1246 * nfs-utils.spec: Likewise.
1248 * README: Updated for 0.3.2.
1250 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
1252 * utils/rquotad/rquotad.man: Updated for -p.
1253 * utils/statd/statd.man: Likewise.
1255 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
1257 * support/nfs/rpcmisc.c: export makesock()
1259 * support/include/rpcmisc.h (makesock): Declared.
1261 * utils/rquotad/rquota_svc.c: added longopts, added support for
1262 specifying the port to bind to on the command line.
1264 * utils/statd/statd.c: ditto, also specify port used for
1265 outgoing connections.
1266 (do_regist): Removed.
1268 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
1269 get_socket. Make it extern.
1271 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
1272 instead of do_regist.
1274 * utils/statd/Makefile (LIBS): link with our own libnfs
1276 2001-03-09 H.J. Lu <hjl@lucon.org>
1278 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
1279 * etc/nodist/nfs-client: Likewise.
1281 2001-02-26 Chip Salzenberg <chip@valinux.com>
1283 * debian/changelog: Version 0.3.1-1.
1284 * Mention upstream source and license in copyright file.
1285 * Add build-Depends for debhelper and libwrap0-dev.
1287 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
1289 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
1290 * etc/nodist/nfs-client: Likewise.
1292 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
1294 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
1297 2001-02-17 Patrick J. LoPresti <patl@curl.com>
1299 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
1302 2001-02-14 H.J. Lu <hjl@lucon.org>
1304 * utils/statd/rmtcall.c: Include <time.h>.
1305 * utils/statd/svc_run.c: Likewise.
1307 2001-02-14 H.J. Lu <hjl@lucon.org>
1309 * configure.in (VERSION): Set to "0.3.1".
1310 * configure: Regenerated.
1311 * nfs-utils.spec: Likewise.
1313 * README: Updated for 0.3.1.
1315 2001-02-14 H.J. Lu <hjl@lucon.org>
1317 * support/nfs/rpcmisc.c: Include <time.h>.
1319 2001-02-14 Chip Salzenberg <chip@valinux.com>
1321 * debian/control: Change priority of nhfsstone package to 'extra'.
1323 2001-02-12 Chip Salzenberg <chip@valinux.com>
1325 * debian/changelog: Version 0.3-2.
1327 2001-02-02 H.J. Lu <hjl@lucon.org>
1329 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
1331 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
1332 out SO_SNDBUF/SO_RCVBUF.
1333 (rpc_init): Remove bufsize and remove socksz in calls to
1336 * utils/mountd/mountd.c (main): Remove bufsize in calls to
1339 2001-01-28 Chip Salzenberg <chip@valinux.com>
1341 * debian/changelog: Version 0.3-1.
1343 2001-01-25 H.J. Lu <hjl@lucon.org>
1345 * configure.in (VERSION): Set to "0.3".
1346 * configure: Regenerated.
1347 * nfs-utils.spec: Likewise.
1349 * README: Updated for 0.3.
1351 2001-01-25 H.J. Lu <hjl@lucon.org>
1353 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
1355 2001-01-20 Chip Salzenberg <chip@valinux.com>
1357 * support/include/xio.h (xgetc): Declare to return int.
1358 * support/nfs/xio.c (xgetc): Return int.
1359 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
1360 * utils/statd/statd.c (main): Use int for value of getopt.
1361 * debian/changelog: Version 0.2.1-5.
1363 2000-12-10 Chip Salzenberg <chip@valinux.com>
1365 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
1366 program and procedure numbers of kernel lockd's callback. Also,
1367 besides the old (and broken) procedure #24, allow #16 per Trond.
1369 2000-12-03 Chip Salzenberg <chip@valinux.com>
1371 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
1372 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
1373 * debian/changelog: Version 0.2.1-4.
1375 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
1377 * utils/mountd/auth.c (auth_authenticate): Log the bad path
1380 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
1382 * support/nfs/exports.c (getexportent): Check for host name
1383 without option, or options without hostname, and print a warning,
1384 as this is most likely a typo.
1386 2000-11-19 Chip Salzenberg <chip@valinux.com>
1388 * debian/control: Add dependency on portmap.
1389 * debian/changelog: Version 0.2.1-3.
1391 2000-11-10 H.J. Lu <hjl@lucon.org>
1393 * nfs-utils.spec.in: Don't use libtool.
1394 Add ChangeLog and COPYING to doc.
1395 * nfs-utils.spec: Rebuild.
1397 2000-11-09 H.J. Lu <hjl@lucon.org>
1399 * etc/redhat/nfs.init (start): Back out the last change.
1401 2000-11-09 H.J. Lu <hjl@lucon.org>
1403 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
1404 TCP is not supported by kernel.
1406 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
1408 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
1409 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
1411 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
1413 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
1415 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
1416 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
1417 callbacks to local lockd.
1419 2000-10-18 Scott McDermott <mcdermot@questra.com>
1421 * utils/exportfs/exports.man: Updated for CIDR netmask.
1423 2000-10-17 Scott McDermott <mcdermot@questra.com>
1425 * support/export/client.c (client_init): Support CIDR netmask
1428 2000-10-11 H.J. Lu <hjl@lucon.org>
1430 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1431 * configure: Rebuilt.
1433 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
1435 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1436 "/var/lib/nfs/state".
1438 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
1440 * utils/statd/statd.h (run_mode): New global bitmask of runtime
1441 behaviors: fg/bg, logging, etc.
1442 * utils/statd/statd.c: New command line options: -V -h -? -d .
1443 * utils/statd/statd.man: Update for changes to statd.
1445 * utils/statd/log.h (log_init): Remove parameter of function; use
1446 global variable "name_p" instead.
1447 * utils/statd/log.c: Add support for logging to stderr.
1449 * utils/statd/notlist.c: Partially rewrite notify list handling
1450 functions. Eliminate run-off-end-of-list bug when calling
1451 nlist_insert_timer. Add lots of comments.
1453 2000-09-27 H.J. Lu <hjl@lucon.org>
1455 * README: Updated for RedHat 7.0.
1457 2000-09-27 H.J. Lu <hjl@lucon.org>
1459 * nfs-utils.spec: Rebuild.
1461 2000-09-27 H.J. Lu <hjl@lucon.org>
1463 * README: Updated for 0.2.1.
1465 2000-09-27 H.J. Lu <hjl@lucon.org>
1467 * nfs-utils.spec.in: Updated to use rpm macros and support
1470 2000-09-25 H.J. Lu <hjl@lucon.org>
1472 * configure.in (VERSION): Set to "0.2.1".
1473 * configure: Regenerated.
1474 * nfs-utils.spec: Updated.
1476 2000-09-25 H.J. Lu <hjl@lucon.org>
1478 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1479 non-NULL hostent is always returned.
1481 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1483 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1484 have an executable (i.e. kernel threads)
1486 2000-09-01 H.J. Lu <hjl@lucon.org>
1488 * README: Updated for 0.2.
1490 2000-09-01 Jay Weber <jweber@valinux.com>
1492 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1493 supporting version 3 of nfs if available, else it will fall back to
1494 version 2 support only.
1496 2000-08-30 H.J. Lu <hjl@lucon.org>
1498 * configure.in (VERSION): Set to "0.2".
1499 * configure: Regenerated.
1500 * nfs-utils.spec: Updated.
1502 2000-08-25 H.J. Lu <hjl@lucon.org>
1504 * support/misc/tcpwrapper.c (logit): Modify the log output.
1506 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1508 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1509 utils/mountd/mountd.man: updated
1511 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1512 * utils/rquotad/Makefile: fix comment
1514 * support/misc/tcpwrapper.c (logit): added comment about waiting
1515 for the children after fork()
1517 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1518 zombies behind (from logit()'s fork)
1519 * utils/rquotad/rquota_svc.c (main): ditto
1520 * utils/statd/statd.c (main): ditto
1522 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1523 to check_default instead of 0, for prognum
1525 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1526 to check_default instead of 0, for prognum
1528 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1529 HAVE_TCP_WRAPPER is defined.
1530 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1531 defined. Reject an RPC call if check_default () fails.
1533 2000-08-25 H.J. Lu <hjl@lucon.org>
1535 * support/include/tcpwrapper.h: New for the tcp wrapper
1537 * support/misc/Makefile: Likewise.
1538 * support/misc/from_local.c: Likewise.
1539 * support/misc/tcpwrapper.c: Likewise.
1541 * aclocal.m4 (AC_TCP_WRAPPER): New.
1542 * configure.in: Use it. Substitute LIBWRAP.
1543 * configure: Rebuilt.
1545 * config.mk.in (LIBNSL): New.
1546 (LIBWRAP): Likewise.
1548 * support/Makefile (SUBDIRS): Add misc.
1550 * support/lib/Makefile (LIBS): Add libmisc.a.
1552 * utils/rquotad/Makefile (LIBS): Add
1554 -lmisc $(LIBWRAP) $(LIBNSL)
1556 * utils/statd/Makefile (LIBS): Likewise.
1558 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1559 HAVE_TCP_WRAPPER is defined.
1560 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1561 defined. Reject an RPC call if check_default () fails.
1563 * utils/statd/statd.c: Include "tcpwrapper.h" if
1564 HAVE_TCP_WRAPPER is defined.
1565 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1566 check_default () before calling sm_prog_1 (). Define it as
1567 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1569 2000-08-25 Chip Salzenberg <chip@valinux.com>
1571 * debian/*: Complete Debian build support.
1572 * etc/debian/*: Remove.
1574 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1576 * support/export/client.c(client_check): removed the "dot+1" as a
1577 ypdomain argument to innetgr as this is entirely bogus.
1578 It should always be NULL.
1580 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1582 * support/export/xtab.c(xtab_read): introduce new mode for
1583 reading xtab. i.e. a list of exports that might be known to the
1584 kernel, or might not. These are flagged as m_exported == -1
1585 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1586 value "2" for xtab, meaning don't trust this too much.
1587 * support/include/exportfs.h(struct mexport): changed m_exported
1588 from one bit to an int so that it can hold new value
1589 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1590 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1591 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1594 * support/nfs/xio.c(xflock): added O_CREAT when getting
1595 a write lock so that missing files aren't fatal.
1597 * etc/debian/nfs-common: new file from "potato"
1598 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1600 2000-08-09 H.J. Lu <hjl@lucon.org>
1602 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1603 startup to ensure all existing clients work fine.
1605 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1606 to xtab_read () for reading _PATH_XTAB.
1608 2000-08-02 H.J. Lu <hjl@lucon.org>
1610 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1611 avoid the reverse name lookup.
1613 2000-07-04 H.J. Lu <hjl@lucon.org>
1615 * utils/statd/log.c: Include <stdlib.h> for exit ().
1617 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1620 2000-07-04 H.J. Lu <hjl@lucon.org>
1622 * configure.in (VERSION): Set to "0.1.9.1".
1623 * configure: Regenerated.
1624 * nfs-utils.spec: Updated.
1628 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1630 * support/export/hostname.c (hostent_dup): Handle the NULL
1633 2000-07-03 H.J. Lu <hjl@lucon.org>
1635 * README: Update the util-linux requirement.
1637 2000-07-03 H.J. Lu <hjl@lucon.org>
1639 * configure.in (VERSION): Set to "0.1.9".
1640 * configure: Regenerated.
1641 * nfs-utils.spec: Updated.
1645 2000-07-03 H.J. Lu <hjl@lucon.org>
1647 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1648 stop to ensure all clients can still access the server
1649 before it is shutdown.
1651 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1653 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1654 calls with format string.
1656 2000-06-28 Chip Salzenberg <chip@valinux.com>
1658 * utils/statd/log.c (log): Call syslog with format string.
1660 2000-06-27 H.J. Lu <hjl@lucon.org>
1662 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1663 instead of OPEN_MAX.
1665 2000-06-27 H.J. Lu <hjl@lucon.org>
1669 2000-06-27 H.J. Lu <hjl@lucon.org>
1671 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1672 startup to ensure all existing clients are exported.
1674 * configure.in (VERSION): Set to "0.1.8.2".
1675 * configure: Regenerated.
1676 * nfs-utils.spec: Updated.
1678 2000-06-06 H.J. Lu <hjl@lucon.org>
1680 * configure.in (VERSION): Set to "0.1.8.1".
1681 * configure: Regenerated.
1682 * nfs-utils.spec: Updated.
1684 2000-06-06 H.J. Lu <hjl@lucon.org>
1686 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1687 to "struct sockaddr_in *" for glibc 2.2.
1688 (mount_umnt_1_svc): Likewise.
1689 (mount_umntall_1_svc): Likewise.
1690 (mount_export_1_svc): Likewise.
1691 (mount_exportall_1_svc): Likewise.
1692 (mount_pathconf_2_svc): Likewise.
1693 (get_rootfh): Likewise.
1695 2000-06-04 H.J. Lu <hjl@lucon.org>
1697 * etc/redhat/nfs.init: Fix a typo in comment.
1699 2000-05-31 H.J. Lu <hjl@lucon.org>
1701 * configure.in (VERSION): Set to "0.1.8".
1702 * configure: Regenerated.
1703 * nfs-utils.spec: Updated.
1707 2000-05-31 H.J. Lu <hjl@lucon.org>
1709 * configure.in (VERSION): Set to "0.1.7.5".
1710 * configure: Regenerated.
1711 * nfs-utils.spec: Updated.
1713 * support/include/nfslib.h (exportent): Add a new field,
1714 r_count, to count the number of mounts from a client.
1715 (getrmtabent): Take a new argument for position in file.
1716 (putrmtabent): Likewise.
1717 (fgetrmtabent): Likewise.
1718 (fputrmtabent): Likewise.
1719 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1720 for position in file.
1721 (fgetrmtabent): Likewise.
1722 (putrmtabent): Likewise.
1723 (fputrmtabent): Likewise.
1725 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1728 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1729 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1730 and fputrmtabent ().
1731 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1732 (mountlist_del): Likewise.
1733 (mountlist_del_all): Likewise.
1734 (mountlist_list): Likewise.
1736 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1737 for the existing entry and initialize "r_count" to 1.
1738 (mountlist_del): Decrement "r_count".
1740 2000-05-18 H.J. Lu <hjl@lucon.org>
1742 * configure.in (VERSION): Set to "0.1.7.4".
1743 * configure: Regenerated.
1744 * nfs-utils.spec: Updated.
1746 2000-05-18 H.J. Lu <hjl@lucon.org>
1748 * etc/redhat/nfs.init (restart): Just do stop and start.
1750 2000-05-09 Jay Weber <jweber@valinux.com>
1752 * utils/rquotad/hasquota.c: added support for ext3 recognition
1754 * utils/rquotad/mntent.h: Likewise.
1756 2000-05-01 H.J. Lu <hjl@lucon.org>
1758 * configure.in (VERSION): Set to "0.1.7.3".
1759 * configure: Regenerated.
1760 * nfs-utils.spec: Updated.
1762 2000-05-01 H.J. Lu <hjl@lucon.org>
1764 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1765 mounting poins in /etc/fstab.
1767 2000-05-01 H.J. Lu <hjl@lucon.org>
1769 * configure.in (VERSION): Set to "0.1.7.2".
1770 * configure: Regenerated.
1771 * nfs-utils.spec: Updated.
1773 2000-05-01 H.J. Lu <hjl@lucon.org>
1775 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1776 to check for the mounting point.
1778 2000-04-29 Chip Salzenberg <chip@valinux.com>
1779 Neil Brown <neilb@cse.unsw.edu.au>
1781 * Really re-use RPC ports.
1782 (Fixes earlier patch. Sorry, Neil.)
1784 2000-04-26 H.J. Lu <hjl@lucon.org>
1786 * configure.in (VERSION): Set to "0.1.7.1".
1787 * configure: Regenerated.
1788 * nfs-utils.spec: Updated.
1790 2000-04-26 H.J. Lu <hjl@lucon.org>
1792 * etc/redhat/nfslock.init: Check if lockd exits before killing
1795 2000-04-25 H.J. Lu <hjl@lucon.org>
1797 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1799 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1801 * support/nfs/exports.c (parsesquash): Correctly set the
1804 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1806 * support/include/nfs/nfs.h: Removed knowledge of internals of
1807 kernel filehandles (which can change) and defined nfs_fh_size
1808 which has variable size
1810 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1811 get variable sized file handles, and change getfh{,old} to
1814 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1817 * tools/Makefile, tools/nlmtest/nlmtest.c
1818 nlmtest.c depended on internel format of file handles, so now
1822 2000-03-12 Chip Salzenberg <chip@valinux.com>
1823 Neil Brown <neilb@cse.unsw.edu.au>
1825 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1827 2000-03-13 H.J. Lu <hjl@lucon.org>
1829 * etc/redhat/nfsd.init: Updated.
1831 * etc/redhat/nfslock.init: Updated.
1833 * nfs-utils.spec.in: Updated.
1835 * configure.in (VERSION): Set to "0.1.7".
1836 * configure: Regenerated.
1837 * nfs-utils.spec: Updated.
1841 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1843 * utils/exportfs/exportfs.c (dump): Included printing of
1844 nohide, no_subtree_check, and insecure_locks
1846 2000-02-26 Chip Salzenberg <chip@valinux.com>
1848 * config.mk.in (INSTALLSUID): Strip ("-s").
1849 (INSTALLSCRIPT): Define.
1850 * utils/nhfsstone/Makefile: Use it.
1852 2000-02-26 Chip Salzenberg <chip@valinux.com>
1854 * utils/lockd/lockd.man: Create.
1855 * utils/lockd/Makefile: Install it.
1856 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1857 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1858 * utils/nhfsstone/Makefile: Install the helper scripts and
1860 * utils/exportfs/exports.man: Fix typo.
1862 2000-02-26 Chip Salzenberg <chip@valinux.com>
1864 * support/nfs/xio.c (xungetc): Decrement line number when
1865 character to unget is newline. Make first parameter int, so
1866 it can distinguish EOF from \377.
1867 * support/include/xio.h (xungetc): Adjust prototype.
1869 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1871 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1872 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1873 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1875 This is for supporting a new option introduced in 2.3.42
1877 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1879 * COPYING: Added. GPL.
1881 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1883 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1884 to get the block size.
1886 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1888 * nfs-utils.spec.in: Update ftp site.
1890 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1892 * README: Update hostnames.
1894 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1896 * configure.in (VERSION): Set to "0.1.6".
1897 * configure: Regenerated.
1898 * nfs-utils.spec: Updated.
1902 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1904 * utils/mountd/auth.c (auth_authenticate_internal): Call
1905 xstrdup for hostname before passing it to gethostbyname.
1907 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1910 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1912 * README: Update the mailing list address.
1914 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1916 * configure.in (VERSION): Set to "0.1.5".
1917 * configure: Regenerated.
1918 * nfs-utils.spec: Updated.
1922 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1924 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1927 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1929 * configure.in (VERSION): Set to "0.1.4".
1930 * configure: Regenerated.
1931 * nfs-utils.spec: Updated.
1935 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1937 * nfs-utils.spec.in: New file.
1939 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1941 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1943 1999-12-04 Chip Salzenberg <chip@valinux.com>
1945 * config.mk.in: Use $(CC) as set by configure.
1947 1999-12-04 Chip Salzenberg <chip@valinux.com>
1949 * rules.mk: Call $(MAKE) with $(MFLAGS).
1951 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1953 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1954 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1956 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1958 * nfs-utils.spec (Version): Set to 0.1.3.
1960 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1961 * configure: Regenerated.
1965 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1967 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1968 (_PATH_DEV_DSK): Likewise.
1969 (getquotainfo): Match the mounting point from /etc/mtab
1970 instead of calling nfsmount_to_devname ().
1972 1999-11-24 Chip Salzenberg <chip@valinux.com>
1974 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1975 to the new port 24 as well as the historical port 100021.
1977 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1979 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1980 stopping nfsd to stop spurious ESTALE on server shutdown.
1982 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1984 * support/nfs/exports.c (parseopts): make copy of opt string
1985 before 'nul'ing out commas so that
1987 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1989 applies both options to both exports.
1991 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1993 * README: Fix a few typos.
1995 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1997 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1998 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1999 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
2000 (unsigned_dec): Likewise.
2001 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
2002 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
2004 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
2006 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
2007 (unsigned_dec): Likewise.
2008 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
2009 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
2010 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
2012 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
2014 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
2015 * support/nfs/exports.c: added {no_,}subtree_check and changed
2017 * utils/exportfs/exports.man: added no_subtree_check and nohide
2018 and removed irrelevant stuff from unfsd.
2019 * support/export/rmtab.c: rmtab_read didn't quite do the right
2020 thing if a pathname from rmtab was a subdirectory of an export-point
2022 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
2024 * README: Updated ftp site.
2026 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
2028 * nfs-utils.spec (Version): Set to 0.1.2.
2030 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
2031 * configure: Regenerated.
2035 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
2037 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
2038 (auth_authenticate_internal): Check for NULL return on forward
2040 (auth_authenticate): Handle "no_forward_dns".
2042 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
2044 * Version 0.1.1 released.
2046 * nfs-utils.spec (Version): Set to 0.1.1.
2048 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
2049 * configure: Regenerated.
2053 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
2055 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
2057 (Provides): Likewise.
2059 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
2061 * Initial version 0.1 released.
2063 * configure.in (VERSION): Set to "nfs-utils 0.1".
2064 * configure: Regenerated.
2066 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
2068 * utils/mountd/mountd.c (get_exportlist): Cleanup.
2070 * utils/exportfs/exportfs.c (unexport_all): Unexport from
2071 kernel only if the entry is exported to kernel.
2072 (unexportfs): Likewise.
2074 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
2076 1/ utils/mountd/rmtab.c::mountlist_list
2078 This routine stats the rmtab file to see if it has changed. It
2079 if has, it cleans up it's old copy of the data. But it still
2080 always re-read the file, thus returning multiple copies of the
2081 data on consecutive calls without intervening changes.
2082 "Showmount -a" didn't show this as it appears to sort/unique the
2083 data, but 'strace showmount -a' showed that the size of the
2084 datagram that it received grew.
2086 I moved the getrmtabent loop inside the mtime test.
2088 2/ utils/exportfs/exportfs.c
2090 Many routines used the m_path field of m_export instead of
2092 According to the comment in nfslib.h, m_path should only
2093 be used when processing a mount request (i.e. in mountd)
2094 where the mountpoint may be a subdirectory of the export point.
2096 I changed all occurances of m_path to e_path
2099 3/ utils/exportfs/exportfs.c:main
2101 extra arguments are not meaningful with -a or -r, but
2102 exportfs accepted them and then ignored the -a/-r, expect that
2103 -r would still unexport everything first.
2105 I generate an error if there are extra args and f_all
2107 4/ utils/exportfs/exportfs.c:main
2108 extract dump out as a special case.
2110 5/ utils/exportfs/exportfs.c
2111 made f_reexport a local variable.
2114 6/ utils/exportfs/exportfs.c:main,exportall
2116 support/export/rmtab.c
2117 only mayexport on newly created entries, don't set xtabent at all
2119 7/ support/include/nfslib.h
2121 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
2123 8/ support/export/xtab.c
2125 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
2129 9/ support/export/xtab.c
2131 xtab_mount_read now sets m_exported, and NOT
2132 xtabent and mayexport
2134 removed the append arguement from xtab_write as it was
2137 added is_export flag to xtab_write similar to xtab_read
2138 if is_export, only write entries with m_xtabent or m_addxtab
2139 if !is_export, only write entries with m_exported
2141 10/ support/export/export.c::export_allowed_internal
2143 added test for exp->m_mayexport, as the export tree
2144 may have entries that are no longer allowed to be exported,
2145 and so shouldn't caused deduced exported by rmtab_read
2147 11/ utils/exportfs/exportfs.c::main
2148 error checking of flags.
2150 12/ utils/exportfs/exportfs.c
2152 total rewrite of export and unexport logic.
2154 - build an exportslist of valid exports, based on
2155 current etab file and arguments,
2156 - read rmtab to instantiate relevant wild card entries
2157 - read etab to find out what is currently exported
2158 - synchronise intention with reality
2159 - write out etab and xtab
2162 discard the m_addxtab flag
2163 add m_changed flag so we know what to report in exportfs
2165 14/ utils/mountd/auth.c:auth_authenticate
2167 the value returned by gethostbyaddr was trusted.
2169 It now follows this with a call to gethostbyname
2170 and checks that the address is in the list.
2172 15/ support/export/nfsctl.c::cltsetup,expsetup
2174 force client names to lowercase as kernel is
2177 16/ quietened a few compiler warnings
2179 17/ support/export/client:client_lookup
2181 look for pre-existing client with same name before creating
2184 18/ support/include/exportfs.h
2186 The ordering of the MCL_* enum was:
2187 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
2189 I moved ANONYMOUS to the end.
2191 The ordering is significant when an export entry is being searched for to
2192 match a given address. There are two problems with ANONYMOUS being first.
2194 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
2195 then the ro case will always be found first and the privileged hosts won't get
2197 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
2198 export entry for the specific host, and writes it to xtab.
2199 When another request comes from the same host, the ANONYMOUS entry is found again,
2200 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
2201 again. If causes bloat in xtab.
2203 Putting ANONYMOUS at the end reflects it's nature as a catch-all
2205 19/ utils/exportfs/exportfs.man
2206 many updates to the man page to reflect changes to the code
2208 -----------------------
2214 - allow exportfs to modify rmtab file
2215 - make sure kernel never gets two clients with same IP address
2216 - possible kernel should reject
2217 - needs to be some way to lookup client in kernel by IP address
2218 - maybe get kernel to do case-insensitive comparisons on client names
2219 - remove unused clients from kernel
2221 - change etab to xtab and xtab to xtab.active
2223 - timestamp and/or statd-stamp in rmtab for removing old entries.
2225 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
2227 * linux-nfs: New directory.
2228 * linux-nfs/ChangeLog: Moved from ..
2229 * linux-nfs/INSTALL: Likewise.
2230 * linux-nfs/KNOWNBUGS: Likewise.
2231 * linux-nfs/NEW: Likewise.
2232 * linux-nfs/README: Likewise.
2233 * linux-nfs/THANKS: Likewise.
2234 * linux-nfs/TODO: Likewise.
2236 * Starting from knfsd 1.4.7.