1 2005-10-07 Olaf Kirch <okir@suse.de>
2 * utils/mountd/mountd.c(get_exportlist): Without this patch,
3 showmount -e would sometimes display host names that should really
4 have been subsumed under a wildcard entry.
6 The problem was that the code in get_exportlist would always
7 skip the next group entry after removing one FQDN.
9 2005-10-06 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
10 * support/nfs/export.c: don't warn about sync/async for readonly
12 * support/nfs/closeall.c: new file with function to close all
13 file descriptors from a give minimum upwards.
14 * nfsd/mountd/statd/idmapd/gsssvcd: use closeall.
15 * utils/mountd/mountd.c: Eliminate 3 syslog message that are
16 logged for successful events.
17 * utils/mountd/mountd.c: make sure the correct hostname is used in
18 the SM_NOTIFY message that is sent from a rebooted server which
19 has multiple network interfaces. (bz 139101)
21 Details can be found in:
22 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=139101
24 *utils/idmapd/idmapd.c:Fixed subscripting problem in idmapd (bz
25 158188) This fixes the following problem:
26 rpc.idmapd: nfsdreopen: Opening '' failed: errno 2 (No such file or directory)
28 Details can be found in:
29 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=158188
31 *utils/statd/statd.c(drop_privs): clear st_gid as well as st_uid
33 *utils/statd/svc_run.c(my_svc_run): remove usage of undocumented
35 *utils/statd/montor.c(sm_mon_1_svc): as above
36 *support/nfs/xlog.c(xlog): Changed xlog to use LOG_INFO instead of
37 LOG_DEBUG so debug messages will appear w/out any config changes
41 2005-09-02 Mike Frysinger <vapier@gentoo.org>
42 * utils/rquotad/rquota_server.c(getquotainfo): use explicit
43 struture-member copying rather than memcpy, as the element
44 sizes are the same on all architectures.
46 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
47 Add option to set rpcsec_gss debugging level (if available)
49 Changes to allow gssd/svcgssd to build when using Hiemdal Kerberos
50 libraries. Note that there are still run-time issues preventing
51 this from working when shared libraries for libgssapi and librpcsecgss
54 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
55 Remove the rpcsec_gss code and rely on an external library instead.
57 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
58 *utils/mountd/mountd.c:
59 mountd currently always returns AUTH_NULL and AUTH_SYS as the
60 allowable flavors in mount replies. We want it to also return gss
61 flavors when appropriate. For now as a hack we just have it always
62 return the KRB5 flavors as well.
64 *utils/mountd/cache.c:
66 When attempting to mount an NFSv4 pseudofilesystem (fsid=0) and the
67 actual exported directory does not exist on the server, rpc.mountd
68 doesn't check the directory exists (when fsidtype=1, i.e. using fsid,
69 but does check for fsidtype=0, i.e. using dev/ino). The non-existent
70 exported directory path with fsid=0 is written to the kernel via
71 /proc/net/rpc/nfsd.export/channel, which leads to path_lookup() to
72 return ENOENT (seems appropriate). Unfortunately, the new_cache
73 approach ignores errors returned when writing via the channel file so
74 that particular error is lost and the mount request is silently ignored.
76 Assuming it doesn't make sense to revamp the new_cache/up-call method to
77 not ignore returned errors, it seems appropriate to fix the case where
78 rpc.mountd doesn't check for the existence of an exported directory with
79 fsid= semantics. The following patch does this by moving the stat() up
80 so it is done for both fsidtype's. I'm not certain whether the other
81 tests need to be executed for fsidtype=1, but it doesn't appear to hurt
82 [Not exactly true: the comparison of inode numbers caused problems so
83 now it's kept for fsidtype=0 only].
85 Would it be also desirable to log a warning for every error, if any,
86 returned by a write to any of the /proc/net/rpc/*/channel files which
87 would otherwise be ignored (maybe under a debug flag)?
89 * gssd/mountd/svcgssd: Changes gssd, svcgssd, and mountd to ignore a
90 SIGHUP rather than dying.
92 * many: Remove the gssapi code and rely on an external library instead.
94 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
95 * utils/exportfs/exports.man: Document the "crossmnt" export export option
96 * utils/gssd/krb5_util.c:
97 Add better debugging and partially revert the function
98 check for gss_krb5_ccache_name.
100 For MIT Kerberos releases up to and including 1.3.1, we *must*
101 use the routine gss_krb5_ccache_name to get the K5 gssapi code
102 to use a different credentials cache.
104 For releases 1.3.2 and on, we want to use the KRB5CCNAME
105 environment variable to tell it what to use.
106 (A problem was reported where 1.3.5 was being used, our
107 code was using gss_krb5_ccache_name, but the underlying
108 code continued to use the first (or default?) credentials
109 cache. Switching to using the env variable fixed the problem.
110 I cannot recreate this problem.
112 *utils/gssd/krb5_util.c:
113 Andrew Mahone <andrew.mahone@gmail.com> reported that reiser4
114 always has DT_UNKNOWN. He supplied patch to move the check
115 for regular files after the stat() call to correctly find
116 ccache files in reiser4 filesystem.
118 Also change the name comparison so that the wrong file is
119 not selected when the substring comparison is done.
121 *utils/gssd/krb5_util.c:
122 Limit the set of encryption types that can be negotiated by
123 the Kerberos library to those that the kernel code currently
126 This should eventually query the kernel for the list of
129 *utils/gssd/gss_util.c, utils/svcgssd/svcgssd_main_loop.c:
130 Print more information in error messages to help debugging failures.
132 *utils/svcgssd/svcgssd_proc.c: Increase token buffer size and
133 update error handling so that a response is always sent.
135 *utils/svcgssd/svcgssd_proc.c: Add support to retrieve
136 supplementary groups.
139 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
141 Consolidate some of the Kerberos checking instead of repeating
142 the same things for MIT and Heimdal.
143 Also adds more checks to distinguish 32-bit from 64-bit
144 (mainly for gssapi.h)
145 Fix svcgssd Makefile so make TOP=../../ works correctly there.
146 Enable running a modern autoheader.
147 * utils/gssd/gss_oids.c: Use correct OID value for SPKM-3
148 * utils/gssd/gss_util.c: Fix build with older MIT releases that do not define GSS_C_NT_HOSTBASED_SERVICE
149 * utils/gssd/write_bytes.h, support/include/gssapi/gssapi.h:
150 Length of gss_buffer_desc is a size_t which is 64-bits on a
151 64-bit machine. Kernel code expects 32-bit integer for length.
152 Coerce length value into a 32-bit value when reading from or
153 writing to the kernel.
154 Change gssapi.h to use datatype size values obtained from
155 configure rather than hard-coded values.
156 * utils/idmapd/idmapd.c: The EV_INIT check here was wrong, and was
157 causing idmapd to become unresponsive to server requests after
159 * utils/idmapd/idmapd.c: Idmapd should flush the server id<->name
160 caches when its started.
162 2005-04-12 G. Allen Morris III <gam3@gam3.net>
164 * All Makefile: added TOP as needed for easier compile.
166 * utils/nfsstat/nfsstat.c: added NFS V4 support; added the -m
167 option; Added -2, -3, and -4 options; changed -a option to -v
168 option; added long options; changed default output to not
169 show V2 NFS statistics unless used.
171 * utils/nfsstat/nfsstat.man: Documented above changes; changed
172 authors email address; added BUGS section.
174 2005-04-07 Chip Salzenberg <chip@pobox.com>
176 * debian/changelog: Version 1.0.7-2.
178 2005-04-06 Chip Salzenberg <chip@pobox.com>
180 * config.guess, config.sub: Update.
182 * support/rpc/svc_auth_gss.c (_svcauth_gss): Avoid using a cast as
183 an lvalue, as it is non-portable.
185 * support/nfs/exports.c (parseopts): Accept "acl" option to mean
186 ~NFSEXP_NOACL, and "no_acl" to mean NFSEXP_NOACL.
187 (putexportent): Report NFSEXP_NOACL as "no_acl", and ~NFSEXP_NOACL
189 * utils/exportfs/exportfs.c (dump): Report NFSEXP_NOACL as
191 * utils/exportfs/exports.man: Document "no_acl".
193 2005-03-14 NeilBrown <neilb@cse.unsw.edu.au>
194 Denis Vlasenko <vda@ilport.com.ua>
195 * support/export/client.c(client_init and client_gettype):
196 treat N.N.N.N as a special case of MCL_SUBNETWORK instead of
199 2005-03-06 G. Allen Morris III <gam3@gam3.net>
200 * support/nfs/cacheio.c(readline): Could not read lines greater
201 than 128 bytes. [1157791]
202 * utils/exportfs/exports.man: Added a SEE ALSO section and
203 fixed 2 typos. [1018450]
205 2005-02-28 Trond Myklebust <trond.myklebust@fys.uio.no>
206 * utils/statd/rmtcall.c(statd_get_socket): If a port number is
207 explicitly given, make sure to try to bind to that.
209 2005-01-11 Chip Salzenberg <chip@pobox.com>
211 * debian/changelog: Version 1.0.7-1.
212 * debian/nfs-common.default (NEED_IDMAPD, NEED_GSSD):
213 Disable by default, on advice of upstream.
214 * debian/nfs-kernel-server.default (NEED_SVCGSSD):
217 * utils/svcgssd/Makefile (predep): Symbolically link duplicated
219 (distclean): Remove symlinks to duplicated files.
221 2004-12-17 NeilBrown <neilb@cse.unsw.edu.au>
224 * config.mk, configure.in: update version number, run autoconf
225 * configure.in: require nfsidmap.h if gss is enabled.
227 2004-12-10 NeilBrown <neilb@cse.unsw.edu.au>
230 * config.mk, configure.in: update version number, run autoconf
232 2004-12-10 Neil Brown <neilb@cse.unsw.edu.au>
233 * README : note dependancy on kerberos, libevent, and nfsidmap
234 * configure.in : fail if --enable-nfsv4 and libevent or
235 libnfsidmap are missing.
236 * configuyre.in: improve message if krb5 support is missing
238 2004-12-06 Paul Clements <paul.clements@steeleye.com>
239 * support/include/ha-callout.h: get return status from waitpid
241 * support/include/ha-callout.h: don't ignore SIGCHLD while waiting
242 for a callout to complete.
243 * utils/statd/statd.c(sigusr): print current start when re-reading
244 notify list due to SIGUSR1
245 * utils/statd/svc_run.c(my_svc_run): call change_state when
246 re-notifying clients.
248 2004-12-06 Marc Eshel <eshel@almaden.ibm.com>
249 * utils/statd/svc_run.c(my_svc_run): allow loop to exit when in
251 *utils/statd/rmtcall.c(statd_get_socket): if a hostname is given
252 to statd with -n, prefer it's IP address to the default for
255 2004-12-06 Bruce Allan <bwa@us.ibm.com>
256 * utils/mountd/auth.c(auth_reload) Clear the "my_client" cache on
257 an auth_reload to avoid old data getting used.
259 2004-12-03 NeilBrown <neilb@cse.unsw.edu.au>
260 Release 1.0.7-pre1 for testing
262 * config.mk, configure.in: update version number, run autoconf
264 2004-12-03 Trond Myklebust <trond.myklebust@fys.uio.no>
266 * utils/statd/statd.c(main): ignore SIGPIPE
268 2004-11-22 "J. Bruce Fields" <bfields@fieldses.org>
270 * tools/rpcdebug/rpcdebug.c: support aliases "nfsdebug" and
271 "nfsddebug" and update flag names.
272 * configure.in, nodist/* redhat/* nfs-utils.spec*: remove redhat
273 specific files (as no-one actually uses them, especially not
274 redhat), and the nodist /etc files (as they drift out-of-date, and
275 the debian directory provides a suitable example.
276 * utils/svcgssd_proc.c(get_ids): fix memory leak
277 * utils/svcgssd/svcgssd_proc.c: Rely on count of the number of
278 groups instead of using a special guard value to identify the end
280 * utils/idmapd/idmapd.c: don't allow Default domain and anon-uid
281 or -gid to be specified on command line.
282 * utils/idmapd/idmapd.c: improve error messages
283 * utils/idmapd/idmapd.c: Reopen nfsd files on sighup. Allows us
284 to start up client side only (even when nfsd module not loaded),
285 and then sighup later after insmodding nfsd module.
286 * utils/idmapd/idmapd.c: Make sure we catch all errors on
287 daemonizing by waiting for child to report succesfull startup
289 * utils/idmapd/idmapd.c: Let libnfsidmapd parse the idmapd.conf
290 file for the default domain, instead of doing that ourselves.
291 * utils/gssd/gssd_proc.c: Make sure we get an error when a gssd
293 * utils/gssd/gssd_proc.c: We were forgetting to restore the euid
294 on certain failures, which meant gssd could get stuck in a state
295 where it didn't have permissions to read the files in rpc_pipefs
297 * utils/gssd/gssd_proc.c: Use libnfsidmapd to map gss principals
299 * debian/nfs-kernel-server.default: Document the NEED_SVCGSSD
300 variable in /etc/default/nfs-kernel-server.
303 2004-11-22 NeilBrown <neilb@cse.unsw.edu.au>
305 * utils/exportfs/nfsd.man: corrected typo in .BR macro usage -
306 reported by Eric Raymond
308 2004-10-19 "J. Bruce Fields" <bfields@fieldses.org>
310 * support/gssapi/* support/rpc/* utils/gssd/* utils/svcgssd/* etc
311 initial support for GSSAPI authentication
313 2004-09-15 Neil Brown <neilb@cse.unsw.edu.au>
315 * utils/statd/monitor.c(sm_unmon_1_svc): is RESTRICTED_STATD, then
316 check IP address and force my_name to 127.0.0.1 to match
317 what happens in sm_mon_1_svc. This avoid spurious "erroneous
319 * utils/statd.monitor.c(sm_unmon_all_1_svc): likewise
321 2004-09-15 "J. Bruce Fields" <bfields@fieldses.org>
323 * Assorted changes to support "gss/*" style authentication
324 * utils/idmapd: new idmapd daemon for nfsv4 username lookup
326 2004-09-06 Trond Myklebust <trond.myklebust@fys.uio.no>
327 Neil Brown <neilb@cse.unsw.edu.au>
329 * utils/mountd/auth.c(auth_authenticate_internal): fix
330 uninitialsed variable problem (causes bad error messages).
332 2004-09-06 Paul Clements <paul.clements@steeleye.com>
333 Neil Brown <neilb@cse.unsw.edu.au>
335 * utils/mountd/mountd.c(main): support --ha-callout (-H) for
336 specifying a callout program
337 * utils/mountd/rmtab.c: Call ha_callout on mount/unmount
338 * utils/statd/monitor.c: Call ha_callout on add/del client
339 * utils/statd/rmtcall.c: as above
340 * utils/statd/statd.c: handle --ha-callout (-H)
341 * utils/statd/svc_run.c: call notify_hosts is we have received a
343 * support/include/ha-callout.h: define ha_callout function
346 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
347 * utils/mountd/cache.c(cache_process_req): clear fd after
348 processing so as not to confused libc/sunrpc into thinking
349 it need to do something with that fd.
351 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
353 * debian/nfs-kernel-server.init(start,stop) mount the nfsd
354 filesystem, if available, before starting nfs services, and
355 unmount it afterwards.
356 * etc/nodist/nfs-server: ditto
357 * etc/redhat/nfs.init: likewise
358 * etc/redhat/nfs: add "MOUNT_NFSD" flag to control above.
360 2004-06-08 NeilBrown <neilb@cse.unsw.edu.au>
362 * utils/exportfs/exportfs.c: Don't rmtab_read if new_cache, it
364 * support/nfs/cacheio.c(cache_flush): Change order in which caches
365 are flushed so that dependancies don't keep things in the cache
368 2004-03-18 Chip Salzenberg <chip@pobox.com>
370 * debian/changelog: Version 1.0.6-2.
372 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
373 from "J. Bruce Fields" <bfields@fieldses.org>
375 * utils/mountd/cache.c: call auth_reload to make sure auth data is
376 current before responding to kernel upcall.
378 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
379 Based on patch from Greg Banks <gnb@melbourne.sgi.com>
381 * utils/exportfs/exports.man: Document fsid= option.
383 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
387 * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
388 support/include, and depend in "predep"
389 * support/export/Makefile, tools/rpcgen/Makefile,
390 utils/statd/Makefile: add "predep" rule so that "make dep" works.
391 * Makefile: allow a simple "make" to run ./configure and "make dep"
393 * configure.in, nfs-utils.spec: Update version to 1.0.6
396 2003-09-12 Chip Salzenberg <chip@pobox.com>
398 * debian/changelog: Version 1.0.6-1.
400 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
402 * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
404 * utils/statd/statd.c(main): Ditto.
406 michael <michael@newdream.net> discovered that svc_setreqsize
407 in glibc can segfault if RLIMIT_NOFILE is bigger than
408 FD_SETSIZE, so a simple solution is to impose a hard limit.
410 2003-09-09 Chip Salzenberg <chip@pobox.com>
412 * debian/changelog: Version 1.0.5-3.
413 * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
414 on invalid reverse DNS.
415 * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
416 * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
417 * tools/rpcgen/rpc_parse.c (def_union): Likewise.
419 2003-08-22 Chip Salzenberg <chip@pobox.com>
421 * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
422 N_*, to avoid conflict with ISO C built-in log() function.
423 * utils/statd/*.c: Use note().
425 2003-08-20 Chip Salzenberg <chip@pobox.com>
427 * debian/changelog: Version 1.0.5-2.
429 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
431 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
434 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
436 * support/include/nfs/export.h, support/nfs/exports.c,
437 utils/exportfs/exports.c, utils/mountd/mountd.c: change
438 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
439 meaning. Also remove meaningless
440 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
442 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
444 * support/export/xtab.c, support/include/nfslib.h,
445 support/nfs/cacheio.c, support/nfs/nfssvc.c,
446 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
447 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
448 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
449 (nfs-utils-1.0.5-post2)
451 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
453 * support/nfs/nfsexport.c: open channel file O_WRONLY when
455 * utils/mountd/cache.c: maintain mountlist when new_cache is
456 active. Also use O_WRONLY for channel files.
457 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
458 rather than an nfs_export.
459 * utils/mountd/rmtab.c: ditto.
460 (nfs-utils-1.5.0-post1)
462 2003-07-24 Chip Salzenberg <chip@pobox.com>
464 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
465 use Debian security team's cleaner approach.
466 * debian/changelog: Version 1.0.5-1.
467 * debian/nfs-kernel-server.init: Cosmetic changes.
469 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
472 1.0.4 was a bit of a brown-paper-bag-release because of the extra
473 'free' in auth.c. So I'm releasing this just a few days later.
475 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
477 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
478 check if new_cache is enabled, error if not, flush and exit if it
480 * utils/exportfs/exportfs.man: Explain -f option and explain the
481 two different modes that exportfs can work in.
482 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
484 * utils/mountd/mountd.man: Record the change if default behaviour
486 * configure.in, nfs-utils.spec: update version to 1.0.5 and
489 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
491 * utils/mountd/mountd.c(main): getopt string fix for 'o'
492 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
493 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
495 * support/include/nfs/export.h: Reserve a bit for possible ACL
498 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
500 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
501 assorted changed to cope with section 7 of the manual.
502 * configure.in, nfs-utils.spec: Update version to 1.0.4
505 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
506 baseline for 2.6 and 2.8. I.e. it should continue to work right
507 through the 2.8 (or 3.0) kernel series. Previous releases wont.
509 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
510 Steve Dickson <SteveD@redhat.com>
513 * utils/statd/statd.c: create a pidfile with pid of statd, and
514 truncate it when statd exists.
515 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
516 and warn if this is root.
517 * utils/statd/statd.c: when statd forks, connect child to parent
518 with a pipe, and send a byte down the pipe once the child is
520 * Makefile: create and chown sm, sm.bak, state when "make install"
521 * configure.in: add --with-statduser= option which defaults to
522 "rpcuser" or "nobody"
523 * config.mk.in: pass "statduser" through to Makefile
525 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
527 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
528 used as the size was changed somewhere in 2.5.60-2.5.70. Without
529 this nfs-utils compiles against 2.6 headers will not work on a
532 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
534 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
535 set number of threads by writing to there. This means it will
536 still work when the syscall interface goes away in 2.7.
538 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
539 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
541 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
542 so as to only export the wildcard exports that were asked for.
543 * support/export/export.c(export_allowed): changed to return the
544 nfs_export rather than a "struct exportent", as m_changed is
546 * support/export/rmtab.c(rmtab_read): modified to deal with
547 interface change for export_allowed(), and enhanced to preserve
548 m_changed flag when a wild-card export causes the creation of
549 a non-wildcard export.
551 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
552 Steve Dickson <SteveD@redhat.com>
554 * utils/mountd/mountd.man: Add valid kinds of debugging.
555 * utils/mountd/mountd.c(main): ignore SIGPIPE
556 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
557 we don't get warnings about unavailable stats that weren't asked
560 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
562 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
563 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
564 'forever', so things disappear out of the cache rather than just
567 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
569 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
572 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
574 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
575 etc/redhat/nfs.init: when checking if V3 is supported, make sure
576 nfs server 'knows' about 127.0.0.1 first.
578 2003-06-10 Chip Salzenberg <chip@pobox.com>
580 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
581 * debian/changelog: Version 1.0.3-2.
583 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
584 NeilBrown <neilb@cse.unsw.edu.au>
586 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
587 long long to avoid overflow when printing stats.
589 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
591 * support/export/export.c, support/include/nfslib.h,
592 support/nfs/export.c, utils/exportfs/exportfs.c,
593 utils/mountd/mountd.c: new export option "mountpoint"
594 If no path is given, then the export point must be a
595 mount point, or it won't be exported. If a path is
596 given (e.g. mountpoint=/path) then that path must be
597 a mountpoint or the exportpoint won't be exported.
598 * utils/exportfs/exportfs.man: document mountpoint option.
599 * support/misc/mountpoint.c: New file with is_mountpoint()
600 to determine if something is a mountpoint.
602 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
604 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
605 argument as we might not be getting the filehandle for the
607 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
608 cache_get_filehandle.
609 * utils/mountd/mountd.c(get_rootfh): check export point and
610 requested directory are on the same filesystem, and complain if
613 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
615 * utils/mountd/auth.c(auth_authenticate_internal): make sure
616 portnumber is still checked when using new cache lookup.
618 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
620 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
621 Don't actually talk to kernel when new cache is in effect, except
623 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
624 * support/export/xtab.c: Only rename new xtab into place if it has
625 changed, thus preserving modify date for exportfs to use when
627 * support/nfs/cacheio.c: Add cache_flush
628 * support/export/xtab.c: Only rename new xtab into place if it has
629 changed, thus preserving modify date for exportfs to use when
632 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
634 * support/export/client.c: Add client_compose, client_member to
635 handle new composite client names
636 * support/include/exportfs.h: Declare above functions.
637 * utils/mountd/auth.c: use client_compose to determine calling
638 client if new cache is being used.
639 * utils/mountd/auth.c: call cache_export to export a filesystem if
640 new_cache, check if new cache is used, and call my_svc_run instead
642 * utils/mountd/svc_run.c: new file defining my_svc_run
643 * utils/mountd/cache.c: new file for handling cache upcalls.
644 * support/nfs/cacheio.c(check_new_cache): new function to check if
645 new cache should be used.
648 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
650 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
651 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
652 * utils/exportfs/exportfs.c(dump): ditto
654 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
656 * support/export/hostname.c(get_reliable_hostbyaddr): new function
657 to get host name from address with full checking of authenticity.
658 * support/include/misc.h: declare above function
659 * utils/mountd/auth.c(auth_authenticate_internal): remove all
660 logic for authenticating address.
661 * utils/mountd/auth.c(auth_authenticate): call new
662 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
665 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
667 * tools/rpcgen/rpc_main.c(find_cpp): removed
668 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
669 then try hard-coded paths.
671 2003-03-26 Chip Salzenberg <chip@pobox.com>
673 * debian/changelog: Version 1.0.3-1.
675 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
677 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
678 "const char*", not "char*".
680 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
682 * configure.in (VERSION): Set to "1.0.3".
683 * nfs-utils.spec: Likewise.
684 * configure: Regenerated.
686 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
688 * support/nfs/cacheio.c: New File - support for read/writing
689 to export cache in /proc/rpc/*/channel
690 * support/nfs/Makefile: compile cacheio.c
691 * support/include/nfslib.h: declare cacheio.c functions
692 * support/nfs/nfsexport.c: export and unexport through
693 /proc/rpc/*/channel if possible, as old syscall interface
694 may not survive into 2.6 on all architectures.
696 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
697 Ben Leslie <benno@sesgroup.net>
699 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
700 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
701 former would incorectly ignore defport if the application
702 explicitly set __rpcfdtype. The later is sufficient to avoid the
703 special handling in the case where stdin is an internet socket.
705 * utils/mountd/mountd.c(main): Add 'n' to option list in
706 getopt_long as this is a short form of --no-tcp which want being
709 2003-02-12 Chip Salzenberg <chip@pobox.com>
711 * debian/changelog: Version 1.0.2-2.
713 2002-11-27 Chip Salzenberg <chip@pobox.com>
715 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
716 overflow bug. Reformat per rest of source file.
718 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
720 * utils/exportfs/exports.man: Correct notes about whether the wild
721 card characters match a period. They do.
723 2002-10-15 Juan Gomez <juang@us.ibm.com>
725 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
727 (mountlist_add): Call slink_safe_rename instead of rename.
729 2002-10-11 H.J. Lu <hjl@lucon.org>
731 * support/include/exportfs.h (export_errno): New.
733 * support/nfs/exports.c: Include <errno.h>.
735 (getexportent): Set export_errno to EINVAL for bad option.
736 (parseopts): Likewise.
737 Report the location of the default sync/async option.
739 * utils/exportfs/exportfs.c (main): Initialize export_errno to
740 0. Return export_errno.
742 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
743 NeilBrown <neilb@cse.unsw.edu.au>
745 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
746 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
748 2002-09-16 Chip Salzenberg <chip@pobox.com>
750 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
752 2002-09-15 Chip Salzenberg <chip@pobox.com>
754 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
755 socket, as occurs when run from sshd.
756 * debian/changelog: Version 1.0.2-1.
758 2002-09-12 H.J. Lu <hjl@lucon.org>
760 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
763 2002-09-12 H.J. Lu <hjl@lucon.org>
765 * configure.in: Remove checking svctcp_socket and svcudp_socket.
766 * configure: Regenerated.
768 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
769 (HAVE_SVCUDP_SOCKET): Removed.
771 * support/include/nfslib.h: Undo the last change.
773 2002-09-12 H.J. Lu <hjl@lucon.org>
775 * support/include/nfslib.h (svctcp_socket): Protect it with
777 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
779 2002-09-12 H.J. Lu <hjl@lucon.org>
781 * configure.in (VERSION): Set to "1.0.2".
782 * configure: Regenerated.
783 * nfs-utils.spec: Likewise.
785 2002-09-12 H.J. Lu <hjl@lucon.org>
787 * configure.in: Check svctcp_socket and svcudp_socket.
788 * configure: Regenerated.
790 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
791 (HAVE_SVCUDP_SOCKET): New.
793 * support/include/nfslib.h (svctcp_socket): New.
794 (svcudp_socket): New.
796 * support/nfs/Makefile (OBJS): Add svc_socket.o.
798 * support/nfs/svc_socket.c: New.
800 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
801 svcudp_socket if port is unspecified.
803 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
805 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
806 (killer): New. Signal handler to unregister.
807 (main): Use killer. Call svcudp_socket to get the default
810 2002-09-02 Juan Gomez <juang@us.ibm.com>
811 NeilBrown <neilb@cse.unsw.edu.au>
813 Add -N option to statd to run in notify-only mode.
815 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
816 * utils/statd/statd.man: document -N
817 * utils/statd/statd.c: enabled -N, largely exists but needed to be
818 uncommented and completed
820 2002-09-02 Juan Gomez <juang@us.ibm.com>
821 NeilBrown <neilb@cse.unsw.edu.au>
823 statd to have " -P directory" arg to use that directory instead
824 of /var/lib/nfs. This is useful for fail-over clusters.
826 * utils/statd/statd.h: define SM_DIR etc as var, not const.
827 * utils/statd/statd.c: define "-P" option to set SM_*
829 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
831 * utils/statd/notify.c: ditto.
832 * utils/statd/statd.man: document -P option.
834 2002-08-26 Chip Salzenberg <chip@pobox.com>
836 * utils/nfsd/nfsd.man: Fix typo.
837 * debian/changelog: Version 1.0.1-1.
839 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
841 * let parseopts know if /etc/exports was being read or not,
842 and have it only print "no sync or async" warning in that case.
844 2002-05-06 Tom McNeal <trmcneal@attbi.com>
845 NeilBrown <neilb@cse.unsw.edu.au>
847 * utils/nfsstat/nfsstat.c: Handle differing format for
848 /proc/net/rpc/nfsd between pre and post 2.4.0
850 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
851 James Pearson <james-p@moving-picture.com>
853 * support/nfs/rmtab.c(fendrmtabent): sync changes to
854 storage before returning, as this is critical state
856 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
857 H.J. Lu <hjl@lucon.org>
859 * etc/redhat/nfs: New.
861 2002-04-08 H.J. Lu <hjl@lucon.org>
863 * etc/redhat/nfs.init: Updated.
865 * nfs-utils.spec.in: Updated.
866 * nfs-utils.spec: Regenerated.
868 * utils/mountd/mountd.c (longopts): Fix a typo.
870 * utils/mountd/mountd.man: Updated.
872 2002-04-07 H.J. Lu <hjl@lucon.org>
874 * etc/redhat/nfslock.init (restart): Just do stop and start.
876 * etc/redhat/nfs.init: Fix a typo.
878 2002-04-07 H.J. Lu <hjl@lucon.org>
880 * configure.in (VERSION): Set to "1.0.1".
881 * configure: Regenerated.
882 * nfs-utils.spec: Likewise.
884 * README: Updated for 1.0.1.
886 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
887 H.J. Lu <hjl@lucon.org>
889 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
891 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
892 NeilBrown <neilb@cse.unsw.edu.au>
894 Add support for fsid=nn export option so that device
895 numbers don't go in filehandles.
896 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
897 is set, pass the fsid in-place of the device number
898 * support/nfs/exports.c: parse and print fsid= option.
899 Also check if efname has been set, and use "command line"
900 instead in error messages.
901 Also, use strtol instead of atoi for anon[ug]id= so that
902 bad numbers cause errors.
904 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
905 NeilBrown <neilb@cse.unsw.edu.au>
907 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
908 flag so that "sync" becomes the default.
909 Check that either "sync" or "async" is given as an option
910 and warn if neither are present
911 * utils/exportfs/exports.man: change documentation for "sync"
912 to be documentation for "async".
913 * utils/exportfs/exportfs.man: note that "sync" is the default
917 2002-01-02 Chip Salzenberg <chip@pobox.com>
919 * support/export/nfsctl.c (expsetup): Don't export entries that
920 specify id mappings not supported by the kernel. No extant kernel
921 supports any significant mapping, only 'identity' (i.e. none).
922 When other mappings are supported, this code will need changing.
923 * debian/changelog: Version 1.0-2.
925 2001-12-26 Chip Salzenberg <chip@pobox.com>
927 * nfs-utils.spec (Version): Set to "1.0".
928 * configure.in (VERSION): Likewise.
929 * configure: Regenerated.
931 * debian/changelog: Version 1.0-1.
933 * utils/exportfs/exports.man: Emphasize the need for options to
934 immediately follow client names. Explain that wildcards don't
935 usually work on addresses, but may work when reverse DNS fails.
936 Comment out a leftover TP that was TPing our indentation.
937 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
938 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
939 * debian/changelog: Version 0.3.3-6.
941 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
943 * support/export/client.c(client_lookup): If a host has multiple
944 IP addresses, then we must always use the result of a
945 gethostbyname, not that of gethostbyaddr for exporting
947 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
949 * support/export/client.c (client_lookup): use strcasecmp when
951 * support/nfs/export.c (getexportent): add fromkernel arg and use
952 different defaults as kernels prior to 2.4.11 assume different
953 defaults in /proc/fs/nfs/exports
954 * support/include/nfslib.h, support/export/export.c,
955 support/export/xtab.c: support extra "fromkernel" arg for
958 2001-12-13 Chip Salzenberg <chip@pobox.com>
960 * debian/changelog: Version 0.3.3-5.
962 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
964 * support/nfs/xio.c (xskip): Call `xungetc' instead of
965 `ungetc' to keep x_line more properly.
967 2001-11-26 Chip Salzenberg <chip@pobox.com>
969 * utils/showmount/showmount.c (main): Don't assume that strings
970 starting with digits are IP addresses.
971 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
972 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
973 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
974 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
975 man pages: We check host names *and* addresses with tcpwrappers.
976 * debian/changelog: Version 0.3.3-4.
978 2001-11-21 Chip Salzenberg <chip@pobox.com>
980 * support/nfs/clients.c (cfname): Added: current clients file name.
981 (setnfsclntent): Set it.
982 ({get,end}nfsclntent, syntaxerr): Use it.
983 * support/nfs/exports.c (efname): Added: current exports file name.
984 (setnfsexportent): Set it.
985 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
986 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
987 * debian/changelog: Version 0.3.3-3.
989 2001-10-11 Chip Salzenberg <chip@pobox.com>
991 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
992 * debian/changelog: Version 0.3.3-2.
994 2001-10-08 Chip Salzenberg <chip@pobox.com>
996 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
997 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
998 * utils/mountd/mountd.man: Update paths to /var/lib.
999 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
1001 2001-10-06 Preston Brown <pbrown@redhat.com>
1003 * utils/nfsstat/nfsstat.man: Updated.
1005 2001-09-24 H.J. Lu <hjl@lucon.org>
1007 * configure.in (VERSION): Set to "0.3.3".
1008 * configure: Regenerated.
1009 * nfs-utils.spec: Likewise.
1011 * README: Updated for 0.3.3.
1013 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
1015 Arrange that "exportfs -au" never does DNS lookup:
1017 * support/export/client.c (client_lookup) : add "canonical"
1018 flag which says that the hostname is known to be canonical, so
1021 * support/export/export.c (export_create) : add "canonical"
1022 flag to be passed down to client_lookup
1023 * support/export/export.c (export_lookup) : Likewise
1025 * support/export/xtab.c (xtab_read) : pass appropriate
1026 "canonical" flag to export_lookup and export_create:
1027 set if reading list of filesystems currently exports
1030 * support/export/export.c (export_read) : pass 0 as
1031 "canonical" flag to export_lookup and export_create
1032 * support/export/rmtab.s (rmtab_read) : Likewise
1034 * support/include/exportfs.h : redeclare various routines
1035 to have "canonical" flag
1037 * utils/exportfs/exportfs.c (main) : redo logic for
1038 "-au" to read in what is currently exported, but never even
1039 look at what "should" be exported.
1041 * utils/exportfs/exportfs.c (unexportall) : remove this
1042 routine. Functionality is completely included in
1045 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
1046 flag to zero in calls to export_lookup and export_create.
1049 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
1050 Anne Milicia <milicia@missioncriticallinux.com>
1052 * support/export/client.c (client_lookup) call gethostbyadd
1053 to make sure that we have a canonical hostname, even for
1055 * utils/exportfs/exportfs.c (exportfs) Likewise
1057 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1059 * support/nfs/exports.c (putexportent): \octal quote any spaces
1061 * support/nfs/xio.c (xgettok): recognise double-quote and
1062 \octal quoting in path names
1063 * utils/exportfs/exports.man: document quoting conventions
1066 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1068 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
1069 change from 2000-08-02: It causes problems if someone exports
1070 to both a hostname and IP addresses. nfs-utils must be
1071 consistant about the canonical name that it chooses.
1073 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
1074 H.J. Lu <hjl@lucon.org>
1076 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
1078 * utils/statd/statd.c (longopts): Add "name".
1079 (usage): Add "-n/--name".
1080 (main): Set MY_NAME with "-n/--name".
1082 * utils/statd/state.c (change_state): Set MY_NAME only if it
1085 * utils/statd/statd.man: Updated for "-n/--name".
1087 2001-07-26 H.J. Lu <hjl@lucon.org>
1089 * nfs-utils.spec (Release): Set to 8.
1091 2001-07-25 H.J. Lu <hjl@lucon.org>
1093 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
1096 2001-06-27 H.J. Lu <hjl@lucon.org>
1098 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
1100 2001-06-27 H.J. Lu <hjl@lucon.org>
1102 * utils/rquotad/rquota_server.c: Don't call statfs () for
1103 the block size. Use BLOCK_SIZE instead.
1105 2001-06-27 H.J. Lu <hjl@lucon.org>
1107 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
1108 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
1110 * configure.in (enable_nfsv3): Set to yes by default.
1111 (--enable-rquotad): Added
1112 (AC_PROG_CXX): Removed.
1113 (AC_OUTPUT): Add utils/Makefile.
1114 (CC_FOR_BUILD): Renamed from BUILD_CC.
1115 * configure: Regenerated.
1117 * utils/Makefile: Removed.
1119 * utils/Makefile.in: New.
1121 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
1123 (CC_FOR_BUILD): Renamed from BUILD_CC.
1124 * nfs-utils.spec: Regenerated.
1126 2001-06-15 Chip Salzenberg <chip@debian.org>
1128 * debian/changelog: Version 0.3.2-2.
1129 * debian/*.init: Minor fixes.
1131 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
1133 * etc/nodist/nfs-server: Fixed a bug where the script would
1134 disable mounts from NFSv3 clients if NFSv3 is present.
1136 2001-06-05 H.J. Lu <hjl@lucon.org>
1138 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
1139 (main): Support --descriptors/-o to set the limit of the number
1140 of open file descriptors.
1143 * utils/mountd/mountd.man: Updated for --descriptors/-o.
1145 2001-06-04 H.J. Lu <hjl@lucon.org>
1147 * nfs-utils.spec (Release): Set to 6.
1149 2001-05-28 H.J. Lu <hjl@lucon.org>
1151 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
1152 * utils/mountd/mountd.c (main): Likewise.
1153 * utils/nfsd/nfsd.c (main): Likewise.
1154 * utils/rquotad/rquota_svc.c (main): Likewise.
1156 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
1158 * support/export/client.c (client_check): Check IP address
1161 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
1163 * support/export/client.c (client_gettype): Treat `*' as
1166 2001-04-22 H.J. Lu <hjl@lucon.org>
1168 * nfs-utils.spec.in: Fix a typo.
1169 * nfs-utils.spec: Regenerated.
1171 2001-04-21 H.J. Lu <hjl@lucon.org>
1173 * nfs-utils.spec.in: Fix cross build.
1174 * nfs-utils.spec: Regenerated.
1175 (Release): Set to 5.
1177 2001-04-18 H.J. Lu <hjl@lucon.org>
1179 * nfs-utils.spec.in: Support cross build.
1180 * nfs-utils.spec: Regenerated.
1181 (Release): Set to 4.
1184 * config.guess: New.
1186 * config.mk.in (BUILD_CC): New.
1187 (CC): Set to $(BUILD_CC) if BUILD is defined.
1190 (RANLIB): Set to @RANLIB@.
1192 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
1193 * configure: Regenerated.
1195 * tools/rpcgen/Makefile (BUILD): Set to true.
1197 2001-04-01 Chip Salzenberg <chip@valinux.com>
1199 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
1200 redundant, and sometimes broken, declaration of svc_fdset;
1202 * support/nfs/rpcmisc.c (closedown): Likewise.
1204 2001-03-21 H.J. Lu <hjl@lucon.org>
1206 * nfs-utils.spec: Regenerated.
1207 (Release): Set to 3.
1209 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
1211 * utils/statd/statd.c (main): make sure file descriptors 0-2
1212 are open to /dev/null.
1214 2001-03-21 H.J. Lu <hjl@lucon.org>
1216 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
1217 * support/nfs/rpcmisc.c: Likewise.
1218 * utils/rquotad/rquota_svc.c: Likewise.
1219 * utils/rquotad/rquotad.man: Likewise.
1220 * utils/statd/Makefile: Likewise.
1221 * utils/statd/rmtcall.c: Likewise.
1222 * utils/statd/simulate.c: Likewise.
1223 * utils/statd/statd.c: Likewise.
1224 * utils/statd/statd.man: Likewise.
1226 2001-03-11 H.J. Lu <hjl@lucon.org>
1228 * configure.in (RELEASE): New. Default to 1, set by
1229 --with-release=XXX. Substitute nfs-utils.spec.
1230 * nfs-utils.spec.in (Release): Set to @RELEASE@.
1231 * configure: Regenerated.
1232 * nfs-utils.spec: Likewise.
1234 2001-03-11 H.J. Lu <hjl@lucon.org>
1236 * utils/rquotad/rquotad.man: Fix a typo.
1238 2001-03-11 H.J. Lu <hjl@lucon.org>
1240 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
1241 * support/nfs/rpcmisc.c: Likewise.
1242 * utils/rquotad/rquota_svc.c: Likewise.
1243 * utils/rquotad/rquotad.man: Likewise.
1244 * utils/statd/Makefile: Likewise.
1245 * utils/statd/rmtcall.c: Likewise.
1246 * utils/statd/simulate.c: Likewise.
1247 * utils/statd/statd.c: Likewise.
1248 * utils/statd/statd.man: Likewise.
1250 2001-03-10 H.J. Lu <hjl@lucon.org>
1252 * configure.in (VERSION): Set to "0.3.2".
1253 * configure: Regenerated.
1254 * nfs-utils.spec: Likewise.
1256 * README: Updated for 0.3.2.
1258 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
1260 * utils/rquotad/rquotad.man: Updated for -p.
1261 * utils/statd/statd.man: Likewise.
1263 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
1265 * support/nfs/rpcmisc.c: export makesock()
1267 * support/include/rpcmisc.h (makesock): Declared.
1269 * utils/rquotad/rquota_svc.c: added longopts, added support for
1270 specifying the port to bind to on the command line.
1272 * utils/statd/statd.c: ditto, also specify port used for
1273 outgoing connections.
1274 (do_regist): Removed.
1276 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
1277 get_socket. Make it extern.
1279 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
1280 instead of do_regist.
1282 * utils/statd/Makefile (LIBS): link with our own libnfs
1284 2001-03-09 H.J. Lu <hjl@lucon.org>
1286 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
1287 * etc/nodist/nfs-client: Likewise.
1289 2001-02-26 Chip Salzenberg <chip@valinux.com>
1291 * debian/changelog: Version 0.3.1-1.
1292 * Mention upstream source and license in copyright file.
1293 * Add build-Depends for debhelper and libwrap0-dev.
1295 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
1297 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
1298 * etc/nodist/nfs-client: Likewise.
1300 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
1302 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
1305 2001-02-17 Patrick J. LoPresti <patl@curl.com>
1307 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
1310 2001-02-14 H.J. Lu <hjl@lucon.org>
1312 * utils/statd/rmtcall.c: Include <time.h>.
1313 * utils/statd/svc_run.c: Likewise.
1315 2001-02-14 H.J. Lu <hjl@lucon.org>
1317 * configure.in (VERSION): Set to "0.3.1".
1318 * configure: Regenerated.
1319 * nfs-utils.spec: Likewise.
1321 * README: Updated for 0.3.1.
1323 2001-02-14 H.J. Lu <hjl@lucon.org>
1325 * support/nfs/rpcmisc.c: Include <time.h>.
1327 2001-02-14 Chip Salzenberg <chip@valinux.com>
1329 * debian/control: Change priority of nhfsstone package to 'extra'.
1331 2001-02-12 Chip Salzenberg <chip@valinux.com>
1333 * debian/changelog: Version 0.3-2.
1335 2001-02-02 H.J. Lu <hjl@lucon.org>
1337 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
1339 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
1340 out SO_SNDBUF/SO_RCVBUF.
1341 (rpc_init): Remove bufsize and remove socksz in calls to
1344 * utils/mountd/mountd.c (main): Remove bufsize in calls to
1347 2001-01-28 Chip Salzenberg <chip@valinux.com>
1349 * debian/changelog: Version 0.3-1.
1351 2001-01-25 H.J. Lu <hjl@lucon.org>
1353 * configure.in (VERSION): Set to "0.3".
1354 * configure: Regenerated.
1355 * nfs-utils.spec: Likewise.
1357 * README: Updated for 0.3.
1359 2001-01-25 H.J. Lu <hjl@lucon.org>
1361 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
1363 2001-01-20 Chip Salzenberg <chip@valinux.com>
1365 * support/include/xio.h (xgetc): Declare to return int.
1366 * support/nfs/xio.c (xgetc): Return int.
1367 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
1368 * utils/statd/statd.c (main): Use int for value of getopt.
1369 * debian/changelog: Version 0.2.1-5.
1371 2000-12-10 Chip Salzenberg <chip@valinux.com>
1373 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
1374 program and procedure numbers of kernel lockd's callback. Also,
1375 besides the old (and broken) procedure #24, allow #16 per Trond.
1377 2000-12-03 Chip Salzenberg <chip@valinux.com>
1379 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
1380 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
1381 * debian/changelog: Version 0.2.1-4.
1383 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
1385 * utils/mountd/auth.c (auth_authenticate): Log the bad path
1388 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
1390 * support/nfs/exports.c (getexportent): Check for host name
1391 without option, or options without hostname, and print a warning,
1392 as this is most likely a typo.
1394 2000-11-19 Chip Salzenberg <chip@valinux.com>
1396 * debian/control: Add dependency on portmap.
1397 * debian/changelog: Version 0.2.1-3.
1399 2000-11-10 H.J. Lu <hjl@lucon.org>
1401 * nfs-utils.spec.in: Don't use libtool.
1402 Add ChangeLog and COPYING to doc.
1403 * nfs-utils.spec: Rebuild.
1405 2000-11-09 H.J. Lu <hjl@lucon.org>
1407 * etc/redhat/nfs.init (start): Back out the last change.
1409 2000-11-09 H.J. Lu <hjl@lucon.org>
1411 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
1412 TCP is not supported by kernel.
1414 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
1416 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
1417 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
1419 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
1421 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
1423 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
1424 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
1425 callbacks to local lockd.
1427 2000-10-18 Scott McDermott <mcdermot@questra.com>
1429 * utils/exportfs/exports.man: Updated for CIDR netmask.
1431 2000-10-17 Scott McDermott <mcdermot@questra.com>
1433 * support/export/client.c (client_init): Support CIDR netmask
1436 2000-10-11 H.J. Lu <hjl@lucon.org>
1438 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1439 * configure: Rebuilt.
1441 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
1443 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1444 "/var/lib/nfs/state".
1446 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
1448 * utils/statd/statd.h (run_mode): New global bitmask of runtime
1449 behaviors: fg/bg, logging, etc.
1450 * utils/statd/statd.c: New command line options: -V -h -? -d .
1451 * utils/statd/statd.man: Update for changes to statd.
1453 * utils/statd/log.h (log_init): Remove parameter of function; use
1454 global variable "name_p" instead.
1455 * utils/statd/log.c: Add support for logging to stderr.
1457 * utils/statd/notlist.c: Partially rewrite notify list handling
1458 functions. Eliminate run-off-end-of-list bug when calling
1459 nlist_insert_timer. Add lots of comments.
1461 2000-09-27 H.J. Lu <hjl@lucon.org>
1463 * README: Updated for RedHat 7.0.
1465 2000-09-27 H.J. Lu <hjl@lucon.org>
1467 * nfs-utils.spec: Rebuild.
1469 2000-09-27 H.J. Lu <hjl@lucon.org>
1471 * README: Updated for 0.2.1.
1473 2000-09-27 H.J. Lu <hjl@lucon.org>
1475 * nfs-utils.spec.in: Updated to use rpm macros and support
1478 2000-09-25 H.J. Lu <hjl@lucon.org>
1480 * configure.in (VERSION): Set to "0.2.1".
1481 * configure: Regenerated.
1482 * nfs-utils.spec: Updated.
1484 2000-09-25 H.J. Lu <hjl@lucon.org>
1486 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1487 non-NULL hostent is always returned.
1489 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1491 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1492 have an executable (i.e. kernel threads)
1494 2000-09-01 H.J. Lu <hjl@lucon.org>
1496 * README: Updated for 0.2.
1498 2000-09-01 Jay Weber <jweber@valinux.com>
1500 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1501 supporting version 3 of nfs if available, else it will fall back to
1502 version 2 support only.
1504 2000-08-30 H.J. Lu <hjl@lucon.org>
1506 * configure.in (VERSION): Set to "0.2".
1507 * configure: Regenerated.
1508 * nfs-utils.spec: Updated.
1510 2000-08-25 H.J. Lu <hjl@lucon.org>
1512 * support/misc/tcpwrapper.c (logit): Modify the log output.
1514 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1516 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1517 utils/mountd/mountd.man: updated
1519 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1520 * utils/rquotad/Makefile: fix comment
1522 * support/misc/tcpwrapper.c (logit): added comment about waiting
1523 for the children after fork()
1525 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1526 zombies behind (from logit()'s fork)
1527 * utils/rquotad/rquota_svc.c (main): ditto
1528 * utils/statd/statd.c (main): ditto
1530 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1531 to check_default instead of 0, for prognum
1533 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1534 to check_default instead of 0, for prognum
1536 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1537 HAVE_TCP_WRAPPER is defined.
1538 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1539 defined. Reject an RPC call if check_default () fails.
1541 2000-08-25 H.J. Lu <hjl@lucon.org>
1543 * support/include/tcpwrapper.h: New for the tcp wrapper
1545 * support/misc/Makefile: Likewise.
1546 * support/misc/from_local.c: Likewise.
1547 * support/misc/tcpwrapper.c: Likewise.
1549 * aclocal.m4 (AC_TCP_WRAPPER): New.
1550 * configure.in: Use it. Substitute LIBWRAP.
1551 * configure: Rebuilt.
1553 * config.mk.in (LIBNSL): New.
1554 (LIBWRAP): Likewise.
1556 * support/Makefile (SUBDIRS): Add misc.
1558 * support/lib/Makefile (LIBS): Add libmisc.a.
1560 * utils/rquotad/Makefile (LIBS): Add
1562 -lmisc $(LIBWRAP) $(LIBNSL)
1564 * utils/statd/Makefile (LIBS): Likewise.
1566 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1567 HAVE_TCP_WRAPPER is defined.
1568 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1569 defined. Reject an RPC call if check_default () fails.
1571 * utils/statd/statd.c: Include "tcpwrapper.h" if
1572 HAVE_TCP_WRAPPER is defined.
1573 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1574 check_default () before calling sm_prog_1 (). Define it as
1575 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1577 2000-08-25 Chip Salzenberg <chip@valinux.com>
1579 * debian/*: Complete Debian build support.
1580 * etc/debian/*: Remove.
1582 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1584 * support/export/client.c(client_check): removed the "dot+1" as a
1585 ypdomain argument to innetgr as this is entirely bogus.
1586 It should always be NULL.
1588 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1590 * support/export/xtab.c(xtab_read): introduce new mode for
1591 reading xtab. i.e. a list of exports that might be known to the
1592 kernel, or might not. These are flagged as m_exported == -1
1593 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1594 value "2" for xtab, meaning don't trust this too much.
1595 * support/include/exportfs.h(struct mexport): changed m_exported
1596 from one bit to an int so that it can hold new value
1597 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1598 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1599 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1602 * support/nfs/xio.c(xflock): added O_CREAT when getting
1603 a write lock so that missing files aren't fatal.
1605 * etc/debian/nfs-common: new file from "potato"
1606 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1608 2000-08-09 H.J. Lu <hjl@lucon.org>
1610 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1611 startup to ensure all existing clients work fine.
1613 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1614 to xtab_read () for reading _PATH_XTAB.
1616 2000-08-02 H.J. Lu <hjl@lucon.org>
1618 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1619 avoid the reverse name lookup.
1621 2000-07-04 H.J. Lu <hjl@lucon.org>
1623 * utils/statd/log.c: Include <stdlib.h> for exit ().
1625 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1628 2000-07-04 H.J. Lu <hjl@lucon.org>
1630 * configure.in (VERSION): Set to "0.1.9.1".
1631 * configure: Regenerated.
1632 * nfs-utils.spec: Updated.
1636 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1638 * support/export/hostname.c (hostent_dup): Handle the NULL
1641 2000-07-03 H.J. Lu <hjl@lucon.org>
1643 * README: Update the util-linux requirement.
1645 2000-07-03 H.J. Lu <hjl@lucon.org>
1647 * configure.in (VERSION): Set to "0.1.9".
1648 * configure: Regenerated.
1649 * nfs-utils.spec: Updated.
1653 2000-07-03 H.J. Lu <hjl@lucon.org>
1655 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1656 stop to ensure all clients can still access the server
1657 before it is shutdown.
1659 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1661 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1662 calls with format string.
1664 2000-06-28 Chip Salzenberg <chip@valinux.com>
1666 * utils/statd/log.c (log): Call syslog with format string.
1668 2000-06-27 H.J. Lu <hjl@lucon.org>
1670 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1671 instead of OPEN_MAX.
1673 2000-06-27 H.J. Lu <hjl@lucon.org>
1677 2000-06-27 H.J. Lu <hjl@lucon.org>
1679 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1680 startup to ensure all existing clients are exported.
1682 * configure.in (VERSION): Set to "0.1.8.2".
1683 * configure: Regenerated.
1684 * nfs-utils.spec: Updated.
1686 2000-06-06 H.J. Lu <hjl@lucon.org>
1688 * configure.in (VERSION): Set to "0.1.8.1".
1689 * configure: Regenerated.
1690 * nfs-utils.spec: Updated.
1692 2000-06-06 H.J. Lu <hjl@lucon.org>
1694 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1695 to "struct sockaddr_in *" for glibc 2.2.
1696 (mount_umnt_1_svc): Likewise.
1697 (mount_umntall_1_svc): Likewise.
1698 (mount_export_1_svc): Likewise.
1699 (mount_exportall_1_svc): Likewise.
1700 (mount_pathconf_2_svc): Likewise.
1701 (get_rootfh): Likewise.
1703 2000-06-04 H.J. Lu <hjl@lucon.org>
1705 * etc/redhat/nfs.init: Fix a typo in comment.
1707 2000-05-31 H.J. Lu <hjl@lucon.org>
1709 * configure.in (VERSION): Set to "0.1.8".
1710 * configure: Regenerated.
1711 * nfs-utils.spec: Updated.
1715 2000-05-31 H.J. Lu <hjl@lucon.org>
1717 * configure.in (VERSION): Set to "0.1.7.5".
1718 * configure: Regenerated.
1719 * nfs-utils.spec: Updated.
1721 * support/include/nfslib.h (exportent): Add a new field,
1722 r_count, to count the number of mounts from a client.
1723 (getrmtabent): Take a new argument for position in file.
1724 (putrmtabent): Likewise.
1725 (fgetrmtabent): Likewise.
1726 (fputrmtabent): Likewise.
1727 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1728 for position in file.
1729 (fgetrmtabent): Likewise.
1730 (putrmtabent): Likewise.
1731 (fputrmtabent): Likewise.
1733 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1736 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1737 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1738 and fputrmtabent ().
1739 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1740 (mountlist_del): Likewise.
1741 (mountlist_del_all): Likewise.
1742 (mountlist_list): Likewise.
1744 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1745 for the existing entry and initialize "r_count" to 1.
1746 (mountlist_del): Decrement "r_count".
1748 2000-05-18 H.J. Lu <hjl@lucon.org>
1750 * configure.in (VERSION): Set to "0.1.7.4".
1751 * configure: Regenerated.
1752 * nfs-utils.spec: Updated.
1754 2000-05-18 H.J. Lu <hjl@lucon.org>
1756 * etc/redhat/nfs.init (restart): Just do stop and start.
1758 2000-05-09 Jay Weber <jweber@valinux.com>
1760 * utils/rquotad/hasquota.c: added support for ext3 recognition
1762 * utils/rquotad/mntent.h: Likewise.
1764 2000-05-01 H.J. Lu <hjl@lucon.org>
1766 * configure.in (VERSION): Set to "0.1.7.3".
1767 * configure: Regenerated.
1768 * nfs-utils.spec: Updated.
1770 2000-05-01 H.J. Lu <hjl@lucon.org>
1772 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1773 mounting poins in /etc/fstab.
1775 2000-05-01 H.J. Lu <hjl@lucon.org>
1777 * configure.in (VERSION): Set to "0.1.7.2".
1778 * configure: Regenerated.
1779 * nfs-utils.spec: Updated.
1781 2000-05-01 H.J. Lu <hjl@lucon.org>
1783 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1784 to check for the mounting point.
1786 2000-04-29 Chip Salzenberg <chip@valinux.com>
1787 Neil Brown <neilb@cse.unsw.edu.au>
1789 * Really re-use RPC ports.
1790 (Fixes earlier patch. Sorry, Neil.)
1792 2000-04-26 H.J. Lu <hjl@lucon.org>
1794 * configure.in (VERSION): Set to "0.1.7.1".
1795 * configure: Regenerated.
1796 * nfs-utils.spec: Updated.
1798 2000-04-26 H.J. Lu <hjl@lucon.org>
1800 * etc/redhat/nfslock.init: Check if lockd exits before killing
1803 2000-04-25 H.J. Lu <hjl@lucon.org>
1805 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1807 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1809 * support/nfs/exports.c (parsesquash): Correctly set the
1812 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1814 * support/include/nfs/nfs.h: Removed knowledge of internals of
1815 kernel filehandles (which can change) and defined nfs_fh_size
1816 which has variable size
1818 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1819 get variable sized file handles, and change getfh{,old} to
1822 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1825 * tools/Makefile, tools/nlmtest/nlmtest.c
1826 nlmtest.c depended on internel format of file handles, so now
1830 2000-03-12 Chip Salzenberg <chip@valinux.com>
1831 Neil Brown <neilb@cse.unsw.edu.au>
1833 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1835 2000-03-13 H.J. Lu <hjl@lucon.org>
1837 * etc/redhat/nfsd.init: Updated.
1839 * etc/redhat/nfslock.init: Updated.
1841 * nfs-utils.spec.in: Updated.
1843 * configure.in (VERSION): Set to "0.1.7".
1844 * configure: Regenerated.
1845 * nfs-utils.spec: Updated.
1849 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1851 * utils/exportfs/exportfs.c (dump): Included printing of
1852 nohide, no_subtree_check, and insecure_locks
1854 2000-02-26 Chip Salzenberg <chip@valinux.com>
1856 * config.mk.in (INSTALLSUID): Strip ("-s").
1857 (INSTALLSCRIPT): Define.
1858 * utils/nhfsstone/Makefile: Use it.
1860 2000-02-26 Chip Salzenberg <chip@valinux.com>
1862 * utils/lockd/lockd.man: Create.
1863 * utils/lockd/Makefile: Install it.
1864 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1865 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1866 * utils/nhfsstone/Makefile: Install the helper scripts and
1868 * utils/exportfs/exports.man: Fix typo.
1870 2000-02-26 Chip Salzenberg <chip@valinux.com>
1872 * support/nfs/xio.c (xungetc): Decrement line number when
1873 character to unget is newline. Make first parameter int, so
1874 it can distinguish EOF from \377.
1875 * support/include/xio.h (xungetc): Adjust prototype.
1877 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1879 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1880 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1881 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1883 This is for supporting a new option introduced in 2.3.42
1885 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1887 * COPYING: Added. GPL.
1889 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1891 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1892 to get the block size.
1894 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1896 * nfs-utils.spec.in: Update ftp site.
1898 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1900 * README: Update hostnames.
1902 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1904 * configure.in (VERSION): Set to "0.1.6".
1905 * configure: Regenerated.
1906 * nfs-utils.spec: Updated.
1910 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1912 * utils/mountd/auth.c (auth_authenticate_internal): Call
1913 xstrdup for hostname before passing it to gethostbyname.
1915 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1918 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1920 * README: Update the mailing list address.
1922 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1924 * configure.in (VERSION): Set to "0.1.5".
1925 * configure: Regenerated.
1926 * nfs-utils.spec: Updated.
1930 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1932 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1935 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1937 * configure.in (VERSION): Set to "0.1.4".
1938 * configure: Regenerated.
1939 * nfs-utils.spec: Updated.
1943 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1945 * nfs-utils.spec.in: New file.
1947 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1949 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1951 1999-12-04 Chip Salzenberg <chip@valinux.com>
1953 * config.mk.in: Use $(CC) as set by configure.
1955 1999-12-04 Chip Salzenberg <chip@valinux.com>
1957 * rules.mk: Call $(MAKE) with $(MFLAGS).
1959 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1961 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1962 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1964 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1966 * nfs-utils.spec (Version): Set to 0.1.3.
1968 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1969 * configure: Regenerated.
1973 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1975 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1976 (_PATH_DEV_DSK): Likewise.
1977 (getquotainfo): Match the mounting point from /etc/mtab
1978 instead of calling nfsmount_to_devname ().
1980 1999-11-24 Chip Salzenberg <chip@valinux.com>
1982 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1983 to the new port 24 as well as the historical port 100021.
1985 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1987 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1988 stopping nfsd to stop spurious ESTALE on server shutdown.
1990 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1992 * support/nfs/exports.c (parseopts): make copy of opt string
1993 before 'nul'ing out commas so that
1995 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1997 applies both options to both exports.
1999 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
2001 * README: Fix a few typos.
2003 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
2005 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
2006 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
2007 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
2008 (unsigned_dec): Likewise.
2009 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
2010 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
2012 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
2014 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
2015 (unsigned_dec): Likewise.
2016 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
2017 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
2018 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
2020 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
2022 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
2023 * support/nfs/exports.c: added {no_,}subtree_check and changed
2025 * utils/exportfs/exports.man: added no_subtree_check and nohide
2026 and removed irrelevant stuff from unfsd.
2027 * support/export/rmtab.c: rmtab_read didn't quite do the right
2028 thing if a pathname from rmtab was a subdirectory of an export-point
2030 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
2032 * README: Updated ftp site.
2034 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
2036 * nfs-utils.spec (Version): Set to 0.1.2.
2038 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
2039 * configure: Regenerated.
2043 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
2045 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
2046 (auth_authenticate_internal): Check for NULL return on forward
2048 (auth_authenticate): Handle "no_forward_dns".
2050 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
2052 * Version 0.1.1 released.
2054 * nfs-utils.spec (Version): Set to 0.1.1.
2056 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
2057 * configure: Regenerated.
2061 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
2063 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
2065 (Provides): Likewise.
2067 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
2069 * Initial version 0.1 released.
2071 * configure.in (VERSION): Set to "nfs-utils 0.1".
2072 * configure: Regenerated.
2074 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
2076 * utils/mountd/mountd.c (get_exportlist): Cleanup.
2078 * utils/exportfs/exportfs.c (unexport_all): Unexport from
2079 kernel only if the entry is exported to kernel.
2080 (unexportfs): Likewise.
2082 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
2084 1/ utils/mountd/rmtab.c::mountlist_list
2086 This routine stats the rmtab file to see if it has changed. It
2087 if has, it cleans up it's old copy of the data. But it still
2088 always re-read the file, thus returning multiple copies of the
2089 data on consecutive calls without intervening changes.
2090 "Showmount -a" didn't show this as it appears to sort/unique the
2091 data, but 'strace showmount -a' showed that the size of the
2092 datagram that it received grew.
2094 I moved the getrmtabent loop inside the mtime test.
2096 2/ utils/exportfs/exportfs.c
2098 Many routines used the m_path field of m_export instead of
2100 According to the comment in nfslib.h, m_path should only
2101 be used when processing a mount request (i.e. in mountd)
2102 where the mountpoint may be a subdirectory of the export point.
2104 I changed all occurances of m_path to e_path
2107 3/ utils/exportfs/exportfs.c:main
2109 extra arguments are not meaningful with -a or -r, but
2110 exportfs accepted them and then ignored the -a/-r, expect that
2111 -r would still unexport everything first.
2113 I generate an error if there are extra args and f_all
2115 4/ utils/exportfs/exportfs.c:main
2116 extract dump out as a special case.
2118 5/ utils/exportfs/exportfs.c
2119 made f_reexport a local variable.
2122 6/ utils/exportfs/exportfs.c:main,exportall
2124 support/export/rmtab.c
2125 only mayexport on newly created entries, don't set xtabent at all
2127 7/ support/include/nfslib.h
2129 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
2131 8/ support/export/xtab.c
2133 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
2137 9/ support/export/xtab.c
2139 xtab_mount_read now sets m_exported, and NOT
2140 xtabent and mayexport
2142 removed the append arguement from xtab_write as it was
2145 added is_export flag to xtab_write similar to xtab_read
2146 if is_export, only write entries with m_xtabent or m_addxtab
2147 if !is_export, only write entries with m_exported
2149 10/ support/export/export.c::export_allowed_internal
2151 added test for exp->m_mayexport, as the export tree
2152 may have entries that are no longer allowed to be exported,
2153 and so shouldn't caused deduced exported by rmtab_read
2155 11/ utils/exportfs/exportfs.c::main
2156 error checking of flags.
2158 12/ utils/exportfs/exportfs.c
2160 total rewrite of export and unexport logic.
2162 - build an exportslist of valid exports, based on
2163 current etab file and arguments,
2164 - read rmtab to instantiate relevant wild card entries
2165 - read etab to find out what is currently exported
2166 - synchronise intention with reality
2167 - write out etab and xtab
2170 discard the m_addxtab flag
2171 add m_changed flag so we know what to report in exportfs
2173 14/ utils/mountd/auth.c:auth_authenticate
2175 the value returned by gethostbyaddr was trusted.
2177 It now follows this with a call to gethostbyname
2178 and checks that the address is in the list.
2180 15/ support/export/nfsctl.c::cltsetup,expsetup
2182 force client names to lowercase as kernel is
2185 16/ quietened a few compiler warnings
2187 17/ support/export/client:client_lookup
2189 look for pre-existing client with same name before creating
2192 18/ support/include/exportfs.h
2194 The ordering of the MCL_* enum was:
2195 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
2197 I moved ANONYMOUS to the end.
2199 The ordering is significant when an export entry is being searched for to
2200 match a given address. There are two problems with ANONYMOUS being first.
2202 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
2203 then the ro case will always be found first and the privileged hosts won't get
2205 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
2206 export entry for the specific host, and writes it to xtab.
2207 When another request comes from the same host, the ANONYMOUS entry is found again,
2208 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
2209 again. If causes bloat in xtab.
2211 Putting ANONYMOUS at the end reflects it's nature as a catch-all
2213 19/ utils/exportfs/exportfs.man
2214 many updates to the man page to reflect changes to the code
2216 -----------------------
2222 - allow exportfs to modify rmtab file
2223 - make sure kernel never gets two clients with same IP address
2224 - possible kernel should reject
2225 - needs to be some way to lookup client in kernel by IP address
2226 - maybe get kernel to do case-insensitive comparisons on client names
2227 - remove unused clients from kernel
2229 - change etab to xtab and xtab to xtab.active
2231 - timestamp and/or statd-stamp in rmtab for removing old entries.
2233 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
2235 * linux-nfs: New directory.
2236 * linux-nfs/ChangeLog: Moved from ..
2237 * linux-nfs/INSTALL: Likewise.
2238 * linux-nfs/KNOWNBUGS: Likewise.
2239 * linux-nfs/NEW: Likewise.
2240 * linux-nfs/README: Likewise.
2241 * linux-nfs/THANKS: Likewise.
2242 * linux-nfs/TODO: Likewise.
2244 * Starting from knfsd 1.4.7.