1 2005-11-03 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
2 *utils/idmapd/idmaps.c:
4 I've recently updated the nfs-utils in rawhide with the
5 latest patches from the SourceForge CVS tree and the
6 latest CITI patches (1.0.7-4).
8 In testing these patches, I notice that when the server was started
9 and a SIGHUP was sent to rpc.idmapd to open the nfs4.nametoid/channel
10 and nfs4.idtoname/channel files, the second open (the nfs4.idtoname one)
11 failed because the path (i.e. ic->ic_path) was NULL.
13 Now the reason the ic_path was NULL was because it was never set
14 during the call to nfsdopen(). nfsdopen() looks like:
17 return ((nfsdopenone(&nfsd_ic[IC_NAMEID], IC_NAMEID, path) == 0 &&
18 nfsdopenone(&nfsd_ic[IC_IDNAME], IC_IDNAME, path) == 0) ? 0
22 Note: the call to nfsdopenone() is how the path is set in each nfsd_ic[]
23 entry and nfsdopen() is only called once.
25 So when rpc.idmap comes up and the first call to nfsdopenone() fails
26 (because the server is not running) the path in nfsd_ic[IC_IDNAME] is
27 never filled in because the second nfsdopenone() never happen...
29 Now there was a CITI patche (idmapd_revert_fix_reopen_on_sighup.dif)
30 that tried to address this problem but did seem to fix it.. The
31 attached patch fix the problem by initializing both nfsd_ic[IC_IDNAME]
32 and nfsd_ic[IC_NAMEID] structures with the needed info...
33 I figured since there is no way of changing these paths or filenames
34 by command line args, why not just set them during compile time...
35 so that's what this patch does.
37 This patch also changes how nfsdreopen_one() handles the
38 case where the event has already been set. Unlike the CITI
39 patch (idmapd_revert_fix_reopen_on_sighup.dif) which just
40 just does not register the second event, my patch deletes
41 the old event and the registers the new one. It just seems like
42 the right thing to do since a SIGHUP means a new server just
43 started so we probably should create a new event as well...
47 2005-10-14 NeilBrown <neilb@suse.de>
48 *utils/mountd/cache.c(nfsd_fh): Understand type 2 and type 3
49 filesystem identifiers, which are used with device numbers
50 That don't fit into 16 bits.
52 2005-10-07 Olaf Kirch <okir@suse.de>
53 * utils/mountd/mountd.c(get_exportlist): Without this patch,
54 showmount -e would sometimes display host names that should really
55 have been subsumed under a wildcard entry.
57 The problem was that the code in get_exportlist would always
58 skip the next group entry after removing one FQDN.
60 2005-10-06 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
61 * support/nfs/export.c: don't warn about sync/async for readonly
63 * support/nfs/closeall.c: new file with function to close all
64 file descriptors from a give minimum upwards.
65 * nfsd/mountd/statd/idmapd/gsssvcd: use closeall.
66 * utils/mountd/mountd.c: Eliminate 3 syslog message that are
67 logged for successful events.
68 * utils/mountd/mountd.c: make sure the correct hostname is used in
69 the SM_NOTIFY message that is sent from a rebooted server which
70 has multiple network interfaces. (bz 139101)
72 Details can be found in:
73 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=139101
75 *utils/idmapd/idmapd.c:Fixed subscripting problem in idmapd (bz
76 158188) This fixes the following problem:
77 rpc.idmapd: nfsdreopen: Opening '' failed: errno 2 (No such file or directory)
79 Details can be found in:
80 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=158188
82 *utils/statd/statd.c(drop_privs): clear st_gid as well as st_uid
84 *utils/statd/svc_run.c(my_svc_run): remove usage of undocumented
86 *utils/statd/montor.c(sm_mon_1_svc): as above
87 *support/nfs/xlog.c(xlog): Changed xlog to use LOG_INFO instead of
88 LOG_DEBUG so debug messages will appear w/out any config changes
92 2005-09-02 Mike Frysinger <vapier@gentoo.org>
93 * utils/rquotad/rquota_server.c(getquotainfo): use explicit
94 struture-member copying rather than memcpy, as the element
95 sizes are the same on all architectures.
97 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
98 Add option to set rpcsec_gss debugging level (if available)
100 Changes to allow gssd/svcgssd to build when using Hiemdal Kerberos
101 libraries. Note that there are still run-time issues preventing
102 this from working when shared libraries for libgssapi and librpcsecgss
105 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
106 Remove the rpcsec_gss code and rely on an external library instead.
108 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
109 *utils/mountd/mountd.c:
110 mountd currently always returns AUTH_NULL and AUTH_SYS as the
111 allowable flavors in mount replies. We want it to also return gss
112 flavors when appropriate. For now as a hack we just have it always
113 return the KRB5 flavors as well.
115 *utils/mountd/cache.c:
117 When attempting to mount an NFSv4 pseudofilesystem (fsid=0) and the
118 actual exported directory does not exist on the server, rpc.mountd
119 doesn't check the directory exists (when fsidtype=1, i.e. using fsid,
120 but does check for fsidtype=0, i.e. using dev/ino). The non-existent
121 exported directory path with fsid=0 is written to the kernel via
122 /proc/net/rpc/nfsd.export/channel, which leads to path_lookup() to
123 return ENOENT (seems appropriate). Unfortunately, the new_cache
124 approach ignores errors returned when writing via the channel file so
125 that particular error is lost and the mount request is silently ignored.
127 Assuming it doesn't make sense to revamp the new_cache/up-call method to
128 not ignore returned errors, it seems appropriate to fix the case where
129 rpc.mountd doesn't check for the existence of an exported directory with
130 fsid= semantics. The following patch does this by moving the stat() up
131 so it is done for both fsidtype's. I'm not certain whether the other
132 tests need to be executed for fsidtype=1, but it doesn't appear to hurt
133 [Not exactly true: the comparison of inode numbers caused problems so
134 now it's kept for fsidtype=0 only].
136 Would it be also desirable to log a warning for every error, if any,
137 returned by a write to any of the /proc/net/rpc/*/channel files which
138 would otherwise be ignored (maybe under a debug flag)?
140 * gssd/mountd/svcgssd: Changes gssd, svcgssd, and mountd to ignore a
141 SIGHUP rather than dying.
143 * many: Remove the gssapi code and rely on an external library instead.
145 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
146 * utils/exportfs/exports.man: Document the "crossmnt" export export option
147 * utils/gssd/krb5_util.c:
148 Add better debugging and partially revert the function
149 check for gss_krb5_ccache_name.
151 For MIT Kerberos releases up to and including 1.3.1, we *must*
152 use the routine gss_krb5_ccache_name to get the K5 gssapi code
153 to use a different credentials cache.
155 For releases 1.3.2 and on, we want to use the KRB5CCNAME
156 environment variable to tell it what to use.
157 (A problem was reported where 1.3.5 was being used, our
158 code was using gss_krb5_ccache_name, but the underlying
159 code continued to use the first (or default?) credentials
160 cache. Switching to using the env variable fixed the problem.
161 I cannot recreate this problem.
163 *utils/gssd/krb5_util.c:
164 Andrew Mahone <andrew.mahone@gmail.com> reported that reiser4
165 always has DT_UNKNOWN. He supplied patch to move the check
166 for regular files after the stat() call to correctly find
167 ccache files in reiser4 filesystem.
169 Also change the name comparison so that the wrong file is
170 not selected when the substring comparison is done.
172 *utils/gssd/krb5_util.c:
173 Limit the set of encryption types that can be negotiated by
174 the Kerberos library to those that the kernel code currently
177 This should eventually query the kernel for the list of
180 *utils/gssd/gss_util.c, utils/svcgssd/svcgssd_main_loop.c:
181 Print more information in error messages to help debugging failures.
183 *utils/svcgssd/svcgssd_proc.c: Increase token buffer size and
184 update error handling so that a response is always sent.
186 *utils/svcgssd/svcgssd_proc.c: Add support to retrieve
187 supplementary groups.
190 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
192 Consolidate some of the Kerberos checking instead of repeating
193 the same things for MIT and Heimdal.
194 Also adds more checks to distinguish 32-bit from 64-bit
195 (mainly for gssapi.h)
196 Fix svcgssd Makefile so make TOP=../../ works correctly there.
197 Enable running a modern autoheader.
198 * utils/gssd/gss_oids.c: Use correct OID value for SPKM-3
199 * utils/gssd/gss_util.c: Fix build with older MIT releases that do not define GSS_C_NT_HOSTBASED_SERVICE
200 * utils/gssd/write_bytes.h, support/include/gssapi/gssapi.h:
201 Length of gss_buffer_desc is a size_t which is 64-bits on a
202 64-bit machine. Kernel code expects 32-bit integer for length.
203 Coerce length value into a 32-bit value when reading from or
204 writing to the kernel.
205 Change gssapi.h to use datatype size values obtained from
206 configure rather than hard-coded values.
207 * utils/idmapd/idmapd.c: The EV_INIT check here was wrong, and was
208 causing idmapd to become unresponsive to server requests after
210 * utils/idmapd/idmapd.c: Idmapd should flush the server id<->name
211 caches when its started.
213 2005-04-12 G. Allen Morris III <gam3@gam3.net>
215 * All Makefile: added TOP as needed for easier compile.
217 * utils/nfsstat/nfsstat.c: added NFS V4 support; added the -m
218 option; Added -2, -3, and -4 options; changed -a option to -v
219 option; added long options; changed default output to not
220 show V2 NFS statistics unless used.
222 * utils/nfsstat/nfsstat.man: Documented above changes; changed
223 authors email address; added BUGS section.
225 2005-04-07 Chip Salzenberg <chip@pobox.com>
227 * debian/changelog: Version 1.0.7-2.
229 2005-04-06 Chip Salzenberg <chip@pobox.com>
231 * config.guess, config.sub: Update.
233 * support/rpc/svc_auth_gss.c (_svcauth_gss): Avoid using a cast as
234 an lvalue, as it is non-portable.
236 * support/nfs/exports.c (parseopts): Accept "acl" option to mean
237 ~NFSEXP_NOACL, and "no_acl" to mean NFSEXP_NOACL.
238 (putexportent): Report NFSEXP_NOACL as "no_acl", and ~NFSEXP_NOACL
240 * utils/exportfs/exportfs.c (dump): Report NFSEXP_NOACL as
242 * utils/exportfs/exports.man: Document "no_acl".
244 2005-03-14 NeilBrown <neilb@cse.unsw.edu.au>
245 Denis Vlasenko <vda@ilport.com.ua>
246 * support/export/client.c(client_init and client_gettype):
247 treat N.N.N.N as a special case of MCL_SUBNETWORK instead of
250 2005-03-06 G. Allen Morris III <gam3@gam3.net>
251 * support/nfs/cacheio.c(readline): Could not read lines greater
252 than 128 bytes. [1157791]
253 * utils/exportfs/exports.man: Added a SEE ALSO section and
254 fixed 2 typos. [1018450]
256 2005-02-28 Trond Myklebust <trond.myklebust@fys.uio.no>
257 * utils/statd/rmtcall.c(statd_get_socket): If a port number is
258 explicitly given, make sure to try to bind to that.
260 2005-01-11 Chip Salzenberg <chip@pobox.com>
262 * debian/changelog: Version 1.0.7-1.
263 * debian/nfs-common.default (NEED_IDMAPD, NEED_GSSD):
264 Disable by default, on advice of upstream.
265 * debian/nfs-kernel-server.default (NEED_SVCGSSD):
268 * utils/svcgssd/Makefile (predep): Symbolically link duplicated
270 (distclean): Remove symlinks to duplicated files.
272 2004-12-17 NeilBrown <neilb@cse.unsw.edu.au>
275 * config.mk, configure.in: update version number, run autoconf
276 * configure.in: require nfsidmap.h if gss is enabled.
278 2004-12-10 NeilBrown <neilb@cse.unsw.edu.au>
281 * config.mk, configure.in: update version number, run autoconf
283 2004-12-10 Neil Brown <neilb@cse.unsw.edu.au>
284 * README : note dependancy on kerberos, libevent, and nfsidmap
285 * configure.in : fail if --enable-nfsv4 and libevent or
286 libnfsidmap are missing.
287 * configuyre.in: improve message if krb5 support is missing
289 2004-12-06 Paul Clements <paul.clements@steeleye.com>
290 * support/include/ha-callout.h: get return status from waitpid
292 * support/include/ha-callout.h: don't ignore SIGCHLD while waiting
293 for a callout to complete.
294 * utils/statd/statd.c(sigusr): print current start when re-reading
295 notify list due to SIGUSR1
296 * utils/statd/svc_run.c(my_svc_run): call change_state when
297 re-notifying clients.
299 2004-12-06 Marc Eshel <eshel@almaden.ibm.com>
300 * utils/statd/svc_run.c(my_svc_run): allow loop to exit when in
302 *utils/statd/rmtcall.c(statd_get_socket): if a hostname is given
303 to statd with -n, prefer it's IP address to the default for
306 2004-12-06 Bruce Allan <bwa@us.ibm.com>
307 * utils/mountd/auth.c(auth_reload) Clear the "my_client" cache on
308 an auth_reload to avoid old data getting used.
310 2004-12-03 NeilBrown <neilb@cse.unsw.edu.au>
311 Release 1.0.7-pre1 for testing
313 * config.mk, configure.in: update version number, run autoconf
315 2004-12-03 Trond Myklebust <trond.myklebust@fys.uio.no>
317 * utils/statd/statd.c(main): ignore SIGPIPE
319 2004-11-22 "J. Bruce Fields" <bfields@fieldses.org>
321 * tools/rpcdebug/rpcdebug.c: support aliases "nfsdebug" and
322 "nfsddebug" and update flag names.
323 * configure.in, nodist/* redhat/* nfs-utils.spec*: remove redhat
324 specific files (as no-one actually uses them, especially not
325 redhat), and the nodist /etc files (as they drift out-of-date, and
326 the debian directory provides a suitable example.
327 * utils/svcgssd_proc.c(get_ids): fix memory leak
328 * utils/svcgssd/svcgssd_proc.c: Rely on count of the number of
329 groups instead of using a special guard value to identify the end
331 * utils/idmapd/idmapd.c: don't allow Default domain and anon-uid
332 or -gid to be specified on command line.
333 * utils/idmapd/idmapd.c: improve error messages
334 * utils/idmapd/idmapd.c: Reopen nfsd files on sighup. Allows us
335 to start up client side only (even when nfsd module not loaded),
336 and then sighup later after insmodding nfsd module.
337 * utils/idmapd/idmapd.c: Make sure we catch all errors on
338 daemonizing by waiting for child to report succesfull startup
340 * utils/idmapd/idmapd.c: Let libnfsidmapd parse the idmapd.conf
341 file for the default domain, instead of doing that ourselves.
342 * utils/gssd/gssd_proc.c: Make sure we get an error when a gssd
344 * utils/gssd/gssd_proc.c: We were forgetting to restore the euid
345 on certain failures, which meant gssd could get stuck in a state
346 where it didn't have permissions to read the files in rpc_pipefs
348 * utils/gssd/gssd_proc.c: Use libnfsidmapd to map gss principals
350 * debian/nfs-kernel-server.default: Document the NEED_SVCGSSD
351 variable in /etc/default/nfs-kernel-server.
354 2004-11-22 NeilBrown <neilb@cse.unsw.edu.au>
356 * utils/exportfs/nfsd.man: corrected typo in .BR macro usage -
357 reported by Eric Raymond
359 2004-10-19 "J. Bruce Fields" <bfields@fieldses.org>
361 * support/gssapi/* support/rpc/* utils/gssd/* utils/svcgssd/* etc
362 initial support for GSSAPI authentication
364 2004-09-15 Neil Brown <neilb@cse.unsw.edu.au>
366 * utils/statd/monitor.c(sm_unmon_1_svc): is RESTRICTED_STATD, then
367 check IP address and force my_name to 127.0.0.1 to match
368 what happens in sm_mon_1_svc. This avoid spurious "erroneous
370 * utils/statd.monitor.c(sm_unmon_all_1_svc): likewise
372 2004-09-15 "J. Bruce Fields" <bfields@fieldses.org>
374 * Assorted changes to support "gss/*" style authentication
375 * utils/idmapd: new idmapd daemon for nfsv4 username lookup
377 2004-09-06 Trond Myklebust <trond.myklebust@fys.uio.no>
378 Neil Brown <neilb@cse.unsw.edu.au>
380 * utils/mountd/auth.c(auth_authenticate_internal): fix
381 uninitialsed variable problem (causes bad error messages).
383 2004-09-06 Paul Clements <paul.clements@steeleye.com>
384 Neil Brown <neilb@cse.unsw.edu.au>
386 * utils/mountd/mountd.c(main): support --ha-callout (-H) for
387 specifying a callout program
388 * utils/mountd/rmtab.c: Call ha_callout on mount/unmount
389 * utils/statd/monitor.c: Call ha_callout on add/del client
390 * utils/statd/rmtcall.c: as above
391 * utils/statd/statd.c: handle --ha-callout (-H)
392 * utils/statd/svc_run.c: call notify_hosts is we have received a
394 * support/include/ha-callout.h: define ha_callout function
397 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
398 * utils/mountd/cache.c(cache_process_req): clear fd after
399 processing so as not to confused libc/sunrpc into thinking
400 it need to do something with that fd.
402 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
404 * debian/nfs-kernel-server.init(start,stop) mount the nfsd
405 filesystem, if available, before starting nfs services, and
406 unmount it afterwards.
407 * etc/nodist/nfs-server: ditto
408 * etc/redhat/nfs.init: likewise
409 * etc/redhat/nfs: add "MOUNT_NFSD" flag to control above.
411 2004-06-08 NeilBrown <neilb@cse.unsw.edu.au>
413 * utils/exportfs/exportfs.c: Don't rmtab_read if new_cache, it
415 * support/nfs/cacheio.c(cache_flush): Change order in which caches
416 are flushed so that dependancies don't keep things in the cache
419 2004-03-18 Chip Salzenberg <chip@pobox.com>
421 * debian/changelog: Version 1.0.6-2.
423 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
424 from "J. Bruce Fields" <bfields@fieldses.org>
426 * utils/mountd/cache.c: call auth_reload to make sure auth data is
427 current before responding to kernel upcall.
429 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
430 Based on patch from Greg Banks <gnb@melbourne.sgi.com>
432 * utils/exportfs/exports.man: Document fsid= option.
434 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
438 * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
439 support/include, and depend in "predep"
440 * support/export/Makefile, tools/rpcgen/Makefile,
441 utils/statd/Makefile: add "predep" rule so that "make dep" works.
442 * Makefile: allow a simple "make" to run ./configure and "make dep"
444 * configure.in, nfs-utils.spec: Update version to 1.0.6
447 2003-09-12 Chip Salzenberg <chip@pobox.com>
449 * debian/changelog: Version 1.0.6-1.
451 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
453 * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
455 * utils/statd/statd.c(main): Ditto.
457 michael <michael@newdream.net> discovered that svc_setreqsize
458 in glibc can segfault if RLIMIT_NOFILE is bigger than
459 FD_SETSIZE, so a simple solution is to impose a hard limit.
461 2003-09-09 Chip Salzenberg <chip@pobox.com>
463 * debian/changelog: Version 1.0.5-3.
464 * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
465 on invalid reverse DNS.
466 * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
467 * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
468 * tools/rpcgen/rpc_parse.c (def_union): Likewise.
470 2003-08-22 Chip Salzenberg <chip@pobox.com>
472 * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
473 N_*, to avoid conflict with ISO C built-in log() function.
474 * utils/statd/*.c: Use note().
476 2003-08-20 Chip Salzenberg <chip@pobox.com>
478 * debian/changelog: Version 1.0.5-2.
480 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
482 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
485 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
487 * support/include/nfs/export.h, support/nfs/exports.c,
488 utils/exportfs/exports.c, utils/mountd/mountd.c: change
489 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
490 meaning. Also remove meaningless
491 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
493 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
495 * support/export/xtab.c, support/include/nfslib.h,
496 support/nfs/cacheio.c, support/nfs/nfssvc.c,
497 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
498 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
499 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
500 (nfs-utils-1.0.5-post2)
502 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
504 * support/nfs/nfsexport.c: open channel file O_WRONLY when
506 * utils/mountd/cache.c: maintain mountlist when new_cache is
507 active. Also use O_WRONLY for channel files.
508 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
509 rather than an nfs_export.
510 * utils/mountd/rmtab.c: ditto.
511 (nfs-utils-1.5.0-post1)
513 2003-07-24 Chip Salzenberg <chip@pobox.com>
515 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
516 use Debian security team's cleaner approach.
517 * debian/changelog: Version 1.0.5-1.
518 * debian/nfs-kernel-server.init: Cosmetic changes.
520 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
523 1.0.4 was a bit of a brown-paper-bag-release because of the extra
524 'free' in auth.c. So I'm releasing this just a few days later.
526 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
528 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
529 check if new_cache is enabled, error if not, flush and exit if it
531 * utils/exportfs/exportfs.man: Explain -f option and explain the
532 two different modes that exportfs can work in.
533 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
535 * utils/mountd/mountd.man: Record the change if default behaviour
537 * configure.in, nfs-utils.spec: update version to 1.0.5 and
540 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
542 * utils/mountd/mountd.c(main): getopt string fix for 'o'
543 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
544 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
546 * support/include/nfs/export.h: Reserve a bit for possible ACL
549 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
551 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
552 assorted changed to cope with section 7 of the manual.
553 * configure.in, nfs-utils.spec: Update version to 1.0.4
556 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
557 baseline for 2.6 and 2.8. I.e. it should continue to work right
558 through the 2.8 (or 3.0) kernel series. Previous releases wont.
560 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
561 Steve Dickson <SteveD@redhat.com>
564 * utils/statd/statd.c: create a pidfile with pid of statd, and
565 truncate it when statd exists.
566 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
567 and warn if this is root.
568 * utils/statd/statd.c: when statd forks, connect child to parent
569 with a pipe, and send a byte down the pipe once the child is
571 * Makefile: create and chown sm, sm.bak, state when "make install"
572 * configure.in: add --with-statduser= option which defaults to
573 "rpcuser" or "nobody"
574 * config.mk.in: pass "statduser" through to Makefile
576 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
578 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
579 used as the size was changed somewhere in 2.5.60-2.5.70. Without
580 this nfs-utils compiles against 2.6 headers will not work on a
583 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
585 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
586 set number of threads by writing to there. This means it will
587 still work when the syscall interface goes away in 2.7.
589 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
590 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
592 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
593 so as to only export the wildcard exports that were asked for.
594 * support/export/export.c(export_allowed): changed to return the
595 nfs_export rather than a "struct exportent", as m_changed is
597 * support/export/rmtab.c(rmtab_read): modified to deal with
598 interface change for export_allowed(), and enhanced to preserve
599 m_changed flag when a wild-card export causes the creation of
600 a non-wildcard export.
602 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
603 Steve Dickson <SteveD@redhat.com>
605 * utils/mountd/mountd.man: Add valid kinds of debugging.
606 * utils/mountd/mountd.c(main): ignore SIGPIPE
607 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
608 we don't get warnings about unavailable stats that weren't asked
611 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
613 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
614 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
615 'forever', so things disappear out of the cache rather than just
618 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
620 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
623 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
625 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
626 etc/redhat/nfs.init: when checking if V3 is supported, make sure
627 nfs server 'knows' about 127.0.0.1 first.
629 2003-06-10 Chip Salzenberg <chip@pobox.com>
631 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
632 * debian/changelog: Version 1.0.3-2.
634 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
635 NeilBrown <neilb@cse.unsw.edu.au>
637 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
638 long long to avoid overflow when printing stats.
640 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
642 * support/export/export.c, support/include/nfslib.h,
643 support/nfs/export.c, utils/exportfs/exportfs.c,
644 utils/mountd/mountd.c: new export option "mountpoint"
645 If no path is given, then the export point must be a
646 mount point, or it won't be exported. If a path is
647 given (e.g. mountpoint=/path) then that path must be
648 a mountpoint or the exportpoint won't be exported.
649 * utils/exportfs/exportfs.man: document mountpoint option.
650 * support/misc/mountpoint.c: New file with is_mountpoint()
651 to determine if something is a mountpoint.
653 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
655 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
656 argument as we might not be getting the filehandle for the
658 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
659 cache_get_filehandle.
660 * utils/mountd/mountd.c(get_rootfh): check export point and
661 requested directory are on the same filesystem, and complain if
664 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
666 * utils/mountd/auth.c(auth_authenticate_internal): make sure
667 portnumber is still checked when using new cache lookup.
669 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
671 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
672 Don't actually talk to kernel when new cache is in effect, except
674 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
675 * support/export/xtab.c: Only rename new xtab into place if it has
676 changed, thus preserving modify date for exportfs to use when
678 * support/nfs/cacheio.c: Add cache_flush
679 * support/export/xtab.c: Only rename new xtab into place if it has
680 changed, thus preserving modify date for exportfs to use when
683 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
685 * support/export/client.c: Add client_compose, client_member to
686 handle new composite client names
687 * support/include/exportfs.h: Declare above functions.
688 * utils/mountd/auth.c: use client_compose to determine calling
689 client if new cache is being used.
690 * utils/mountd/auth.c: call cache_export to export a filesystem if
691 new_cache, check if new cache is used, and call my_svc_run instead
693 * utils/mountd/svc_run.c: new file defining my_svc_run
694 * utils/mountd/cache.c: new file for handling cache upcalls.
695 * support/nfs/cacheio.c(check_new_cache): new function to check if
696 new cache should be used.
699 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
701 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
702 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
703 * utils/exportfs/exportfs.c(dump): ditto
705 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
707 * support/export/hostname.c(get_reliable_hostbyaddr): new function
708 to get host name from address with full checking of authenticity.
709 * support/include/misc.h: declare above function
710 * utils/mountd/auth.c(auth_authenticate_internal): remove all
711 logic for authenticating address.
712 * utils/mountd/auth.c(auth_authenticate): call new
713 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
716 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
718 * tools/rpcgen/rpc_main.c(find_cpp): removed
719 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
720 then try hard-coded paths.
722 2003-03-26 Chip Salzenberg <chip@pobox.com>
724 * debian/changelog: Version 1.0.3-1.
726 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
728 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
729 "const char*", not "char*".
731 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
733 * configure.in (VERSION): Set to "1.0.3".
734 * nfs-utils.spec: Likewise.
735 * configure: Regenerated.
737 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
739 * support/nfs/cacheio.c: New File - support for read/writing
740 to export cache in /proc/rpc/*/channel
741 * support/nfs/Makefile: compile cacheio.c
742 * support/include/nfslib.h: declare cacheio.c functions
743 * support/nfs/nfsexport.c: export and unexport through
744 /proc/rpc/*/channel if possible, as old syscall interface
745 may not survive into 2.6 on all architectures.
747 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
748 Ben Leslie <benno@sesgroup.net>
750 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
751 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
752 former would incorectly ignore defport if the application
753 explicitly set __rpcfdtype. The later is sufficient to avoid the
754 special handling in the case where stdin is an internet socket.
756 * utils/mountd/mountd.c(main): Add 'n' to option list in
757 getopt_long as this is a short form of --no-tcp which want being
760 2003-02-12 Chip Salzenberg <chip@pobox.com>
762 * debian/changelog: Version 1.0.2-2.
764 2002-11-27 Chip Salzenberg <chip@pobox.com>
766 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
767 overflow bug. Reformat per rest of source file.
769 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
771 * utils/exportfs/exports.man: Correct notes about whether the wild
772 card characters match a period. They do.
774 2002-10-15 Juan Gomez <juang@us.ibm.com>
776 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
778 (mountlist_add): Call slink_safe_rename instead of rename.
780 2002-10-11 H.J. Lu <hjl@lucon.org>
782 * support/include/exportfs.h (export_errno): New.
784 * support/nfs/exports.c: Include <errno.h>.
786 (getexportent): Set export_errno to EINVAL for bad option.
787 (parseopts): Likewise.
788 Report the location of the default sync/async option.
790 * utils/exportfs/exportfs.c (main): Initialize export_errno to
791 0. Return export_errno.
793 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
794 NeilBrown <neilb@cse.unsw.edu.au>
796 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
797 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
799 2002-09-16 Chip Salzenberg <chip@pobox.com>
801 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
803 2002-09-15 Chip Salzenberg <chip@pobox.com>
805 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
806 socket, as occurs when run from sshd.
807 * debian/changelog: Version 1.0.2-1.
809 2002-09-12 H.J. Lu <hjl@lucon.org>
811 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
814 2002-09-12 H.J. Lu <hjl@lucon.org>
816 * configure.in: Remove checking svctcp_socket and svcudp_socket.
817 * configure: Regenerated.
819 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
820 (HAVE_SVCUDP_SOCKET): Removed.
822 * support/include/nfslib.h: Undo the last change.
824 2002-09-12 H.J. Lu <hjl@lucon.org>
826 * support/include/nfslib.h (svctcp_socket): Protect it with
828 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
830 2002-09-12 H.J. Lu <hjl@lucon.org>
832 * configure.in (VERSION): Set to "1.0.2".
833 * configure: Regenerated.
834 * nfs-utils.spec: Likewise.
836 2002-09-12 H.J. Lu <hjl@lucon.org>
838 * configure.in: Check svctcp_socket and svcudp_socket.
839 * configure: Regenerated.
841 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
842 (HAVE_SVCUDP_SOCKET): New.
844 * support/include/nfslib.h (svctcp_socket): New.
845 (svcudp_socket): New.
847 * support/nfs/Makefile (OBJS): Add svc_socket.o.
849 * support/nfs/svc_socket.c: New.
851 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
852 svcudp_socket if port is unspecified.
854 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
856 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
857 (killer): New. Signal handler to unregister.
858 (main): Use killer. Call svcudp_socket to get the default
861 2002-09-02 Juan Gomez <juang@us.ibm.com>
862 NeilBrown <neilb@cse.unsw.edu.au>
864 Add -N option to statd to run in notify-only mode.
866 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
867 * utils/statd/statd.man: document -N
868 * utils/statd/statd.c: enabled -N, largely exists but needed to be
869 uncommented and completed
871 2002-09-02 Juan Gomez <juang@us.ibm.com>
872 NeilBrown <neilb@cse.unsw.edu.au>
874 statd to have " -P directory" arg to use that directory instead
875 of /var/lib/nfs. This is useful for fail-over clusters.
877 * utils/statd/statd.h: define SM_DIR etc as var, not const.
878 * utils/statd/statd.c: define "-P" option to set SM_*
880 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
882 * utils/statd/notify.c: ditto.
883 * utils/statd/statd.man: document -P option.
885 2002-08-26 Chip Salzenberg <chip@pobox.com>
887 * utils/nfsd/nfsd.man: Fix typo.
888 * debian/changelog: Version 1.0.1-1.
890 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
892 * let parseopts know if /etc/exports was being read or not,
893 and have it only print "no sync or async" warning in that case.
895 2002-05-06 Tom McNeal <trmcneal@attbi.com>
896 NeilBrown <neilb@cse.unsw.edu.au>
898 * utils/nfsstat/nfsstat.c: Handle differing format for
899 /proc/net/rpc/nfsd between pre and post 2.4.0
901 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
902 James Pearson <james-p@moving-picture.com>
904 * support/nfs/rmtab.c(fendrmtabent): sync changes to
905 storage before returning, as this is critical state
907 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
908 H.J. Lu <hjl@lucon.org>
910 * etc/redhat/nfs: New.
912 2002-04-08 H.J. Lu <hjl@lucon.org>
914 * etc/redhat/nfs.init: Updated.
916 * nfs-utils.spec.in: Updated.
917 * nfs-utils.spec: Regenerated.
919 * utils/mountd/mountd.c (longopts): Fix a typo.
921 * utils/mountd/mountd.man: Updated.
923 2002-04-07 H.J. Lu <hjl@lucon.org>
925 * etc/redhat/nfslock.init (restart): Just do stop and start.
927 * etc/redhat/nfs.init: Fix a typo.
929 2002-04-07 H.J. Lu <hjl@lucon.org>
931 * configure.in (VERSION): Set to "1.0.1".
932 * configure: Regenerated.
933 * nfs-utils.spec: Likewise.
935 * README: Updated for 1.0.1.
937 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
938 H.J. Lu <hjl@lucon.org>
940 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
942 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
943 NeilBrown <neilb@cse.unsw.edu.au>
945 Add support for fsid=nn export option so that device
946 numbers don't go in filehandles.
947 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
948 is set, pass the fsid in-place of the device number
949 * support/nfs/exports.c: parse and print fsid= option.
950 Also check if efname has been set, and use "command line"
951 instead in error messages.
952 Also, use strtol instead of atoi for anon[ug]id= so that
953 bad numbers cause errors.
955 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
956 NeilBrown <neilb@cse.unsw.edu.au>
958 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
959 flag so that "sync" becomes the default.
960 Check that either "sync" or "async" is given as an option
961 and warn if neither are present
962 * utils/exportfs/exports.man: change documentation for "sync"
963 to be documentation for "async".
964 * utils/exportfs/exportfs.man: note that "sync" is the default
968 2002-01-02 Chip Salzenberg <chip@pobox.com>
970 * support/export/nfsctl.c (expsetup): Don't export entries that
971 specify id mappings not supported by the kernel. No extant kernel
972 supports any significant mapping, only 'identity' (i.e. none).
973 When other mappings are supported, this code will need changing.
974 * debian/changelog: Version 1.0-2.
976 2001-12-26 Chip Salzenberg <chip@pobox.com>
978 * nfs-utils.spec (Version): Set to "1.0".
979 * configure.in (VERSION): Likewise.
980 * configure: Regenerated.
982 * debian/changelog: Version 1.0-1.
984 * utils/exportfs/exports.man: Emphasize the need for options to
985 immediately follow client names. Explain that wildcards don't
986 usually work on addresses, but may work when reverse DNS fails.
987 Comment out a leftover TP that was TPing our indentation.
988 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
989 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
990 * debian/changelog: Version 0.3.3-6.
992 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
994 * support/export/client.c(client_lookup): If a host has multiple
995 IP addresses, then we must always use the result of a
996 gethostbyname, not that of gethostbyaddr for exporting
998 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
1000 * support/export/client.c (client_lookup): use strcasecmp when
1001 comparing host names
1002 * support/nfs/export.c (getexportent): add fromkernel arg and use
1003 different defaults as kernels prior to 2.4.11 assume different
1004 defaults in /proc/fs/nfs/exports
1005 * support/include/nfslib.h, support/export/export.c,
1006 support/export/xtab.c: support extra "fromkernel" arg for
1009 2001-12-13 Chip Salzenberg <chip@pobox.com>
1011 * debian/changelog: Version 0.3.3-5.
1013 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
1015 * support/nfs/xio.c (xskip): Call `xungetc' instead of
1016 `ungetc' to keep x_line more properly.
1018 2001-11-26 Chip Salzenberg <chip@pobox.com>
1020 * utils/showmount/showmount.c (main): Don't assume that strings
1021 starting with digits are IP addresses.
1022 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
1023 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
1024 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
1025 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
1026 man pages: We check host names *and* addresses with tcpwrappers.
1027 * debian/changelog: Version 0.3.3-4.
1029 2001-11-21 Chip Salzenberg <chip@pobox.com>
1031 * support/nfs/clients.c (cfname): Added: current clients file name.
1032 (setnfsclntent): Set it.
1033 ({get,end}nfsclntent, syntaxerr): Use it.
1034 * support/nfs/exports.c (efname): Added: current exports file name.
1035 (setnfsexportent): Set it.
1036 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
1037 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
1038 * debian/changelog: Version 0.3.3-3.
1040 2001-10-11 Chip Salzenberg <chip@pobox.com>
1042 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
1043 * debian/changelog: Version 0.3.3-2.
1045 2001-10-08 Chip Salzenberg <chip@pobox.com>
1047 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
1048 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
1049 * utils/mountd/mountd.man: Update paths to /var/lib.
1050 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
1052 2001-10-06 Preston Brown <pbrown@redhat.com>
1054 * utils/nfsstat/nfsstat.man: Updated.
1056 2001-09-24 H.J. Lu <hjl@lucon.org>
1058 * configure.in (VERSION): Set to "0.3.3".
1059 * configure: Regenerated.
1060 * nfs-utils.spec: Likewise.
1062 * README: Updated for 0.3.3.
1064 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
1066 Arrange that "exportfs -au" never does DNS lookup:
1068 * support/export/client.c (client_lookup) : add "canonical"
1069 flag which says that the hostname is known to be canonical, so
1072 * support/export/export.c (export_create) : add "canonical"
1073 flag to be passed down to client_lookup
1074 * support/export/export.c (export_lookup) : Likewise
1076 * support/export/xtab.c (xtab_read) : pass appropriate
1077 "canonical" flag to export_lookup and export_create:
1078 set if reading list of filesystems currently exports
1081 * support/export/export.c (export_read) : pass 0 as
1082 "canonical" flag to export_lookup and export_create
1083 * support/export/rmtab.s (rmtab_read) : Likewise
1085 * support/include/exportfs.h : redeclare various routines
1086 to have "canonical" flag
1088 * utils/exportfs/exportfs.c (main) : redo logic for
1089 "-au" to read in what is currently exported, but never even
1090 look at what "should" be exported.
1092 * utils/exportfs/exportfs.c (unexportall) : remove this
1093 routine. Functionality is completely included in
1096 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
1097 flag to zero in calls to export_lookup and export_create.
1100 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
1101 Anne Milicia <milicia@missioncriticallinux.com>
1103 * support/export/client.c (client_lookup) call gethostbyadd
1104 to make sure that we have a canonical hostname, even for
1106 * utils/exportfs/exportfs.c (exportfs) Likewise
1108 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1110 * support/nfs/exports.c (putexportent): \octal quote any spaces
1112 * support/nfs/xio.c (xgettok): recognise double-quote and
1113 \octal quoting in path names
1114 * utils/exportfs/exports.man: document quoting conventions
1117 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1119 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
1120 change from 2000-08-02: It causes problems if someone exports
1121 to both a hostname and IP addresses. nfs-utils must be
1122 consistant about the canonical name that it chooses.
1124 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
1125 H.J. Lu <hjl@lucon.org>
1127 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
1129 * utils/statd/statd.c (longopts): Add "name".
1130 (usage): Add "-n/--name".
1131 (main): Set MY_NAME with "-n/--name".
1133 * utils/statd/state.c (change_state): Set MY_NAME only if it
1136 * utils/statd/statd.man: Updated for "-n/--name".
1138 2001-07-26 H.J. Lu <hjl@lucon.org>
1140 * nfs-utils.spec (Release): Set to 8.
1142 2001-07-25 H.J. Lu <hjl@lucon.org>
1144 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
1147 2001-06-27 H.J. Lu <hjl@lucon.org>
1149 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
1151 2001-06-27 H.J. Lu <hjl@lucon.org>
1153 * utils/rquotad/rquota_server.c: Don't call statfs () for
1154 the block size. Use BLOCK_SIZE instead.
1156 2001-06-27 H.J. Lu <hjl@lucon.org>
1158 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
1159 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
1161 * configure.in (enable_nfsv3): Set to yes by default.
1162 (--enable-rquotad): Added
1163 (AC_PROG_CXX): Removed.
1164 (AC_OUTPUT): Add utils/Makefile.
1165 (CC_FOR_BUILD): Renamed from BUILD_CC.
1166 * configure: Regenerated.
1168 * utils/Makefile: Removed.
1170 * utils/Makefile.in: New.
1172 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
1174 (CC_FOR_BUILD): Renamed from BUILD_CC.
1175 * nfs-utils.spec: Regenerated.
1177 2001-06-15 Chip Salzenberg <chip@debian.org>
1179 * debian/changelog: Version 0.3.2-2.
1180 * debian/*.init: Minor fixes.
1182 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
1184 * etc/nodist/nfs-server: Fixed a bug where the script would
1185 disable mounts from NFSv3 clients if NFSv3 is present.
1187 2001-06-05 H.J. Lu <hjl@lucon.org>
1189 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
1190 (main): Support --descriptors/-o to set the limit of the number
1191 of open file descriptors.
1194 * utils/mountd/mountd.man: Updated for --descriptors/-o.
1196 2001-06-04 H.J. Lu <hjl@lucon.org>
1198 * nfs-utils.spec (Release): Set to 6.
1200 2001-05-28 H.J. Lu <hjl@lucon.org>
1202 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
1203 * utils/mountd/mountd.c (main): Likewise.
1204 * utils/nfsd/nfsd.c (main): Likewise.
1205 * utils/rquotad/rquota_svc.c (main): Likewise.
1207 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
1209 * support/export/client.c (client_check): Check IP address
1212 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
1214 * support/export/client.c (client_gettype): Treat `*' as
1217 2001-04-22 H.J. Lu <hjl@lucon.org>
1219 * nfs-utils.spec.in: Fix a typo.
1220 * nfs-utils.spec: Regenerated.
1222 2001-04-21 H.J. Lu <hjl@lucon.org>
1224 * nfs-utils.spec.in: Fix cross build.
1225 * nfs-utils.spec: Regenerated.
1226 (Release): Set to 5.
1228 2001-04-18 H.J. Lu <hjl@lucon.org>
1230 * nfs-utils.spec.in: Support cross build.
1231 * nfs-utils.spec: Regenerated.
1232 (Release): Set to 4.
1235 * config.guess: New.
1237 * config.mk.in (BUILD_CC): New.
1238 (CC): Set to $(BUILD_CC) if BUILD is defined.
1241 (RANLIB): Set to @RANLIB@.
1243 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
1244 * configure: Regenerated.
1246 * tools/rpcgen/Makefile (BUILD): Set to true.
1248 2001-04-01 Chip Salzenberg <chip@valinux.com>
1250 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
1251 redundant, and sometimes broken, declaration of svc_fdset;
1253 * support/nfs/rpcmisc.c (closedown): Likewise.
1255 2001-03-21 H.J. Lu <hjl@lucon.org>
1257 * nfs-utils.spec: Regenerated.
1258 (Release): Set to 3.
1260 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
1262 * utils/statd/statd.c (main): make sure file descriptors 0-2
1263 are open to /dev/null.
1265 2001-03-21 H.J. Lu <hjl@lucon.org>
1267 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
1268 * support/nfs/rpcmisc.c: Likewise.
1269 * utils/rquotad/rquota_svc.c: Likewise.
1270 * utils/rquotad/rquotad.man: Likewise.
1271 * utils/statd/Makefile: Likewise.
1272 * utils/statd/rmtcall.c: Likewise.
1273 * utils/statd/simulate.c: Likewise.
1274 * utils/statd/statd.c: Likewise.
1275 * utils/statd/statd.man: Likewise.
1277 2001-03-11 H.J. Lu <hjl@lucon.org>
1279 * configure.in (RELEASE): New. Default to 1, set by
1280 --with-release=XXX. Substitute nfs-utils.spec.
1281 * nfs-utils.spec.in (Release): Set to @RELEASE@.
1282 * configure: Regenerated.
1283 * nfs-utils.spec: Likewise.
1285 2001-03-11 H.J. Lu <hjl@lucon.org>
1287 * utils/rquotad/rquotad.man: Fix a typo.
1289 2001-03-11 H.J. Lu <hjl@lucon.org>
1291 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
1292 * support/nfs/rpcmisc.c: Likewise.
1293 * utils/rquotad/rquota_svc.c: Likewise.
1294 * utils/rquotad/rquotad.man: Likewise.
1295 * utils/statd/Makefile: Likewise.
1296 * utils/statd/rmtcall.c: Likewise.
1297 * utils/statd/simulate.c: Likewise.
1298 * utils/statd/statd.c: Likewise.
1299 * utils/statd/statd.man: Likewise.
1301 2001-03-10 H.J. Lu <hjl@lucon.org>
1303 * configure.in (VERSION): Set to "0.3.2".
1304 * configure: Regenerated.
1305 * nfs-utils.spec: Likewise.
1307 * README: Updated for 0.3.2.
1309 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
1311 * utils/rquotad/rquotad.man: Updated for -p.
1312 * utils/statd/statd.man: Likewise.
1314 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
1316 * support/nfs/rpcmisc.c: export makesock()
1318 * support/include/rpcmisc.h (makesock): Declared.
1320 * utils/rquotad/rquota_svc.c: added longopts, added support for
1321 specifying the port to bind to on the command line.
1323 * utils/statd/statd.c: ditto, also specify port used for
1324 outgoing connections.
1325 (do_regist): Removed.
1327 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
1328 get_socket. Make it extern.
1330 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
1331 instead of do_regist.
1333 * utils/statd/Makefile (LIBS): link with our own libnfs
1335 2001-03-09 H.J. Lu <hjl@lucon.org>
1337 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
1338 * etc/nodist/nfs-client: Likewise.
1340 2001-02-26 Chip Salzenberg <chip@valinux.com>
1342 * debian/changelog: Version 0.3.1-1.
1343 * Mention upstream source and license in copyright file.
1344 * Add build-Depends for debhelper and libwrap0-dev.
1346 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
1348 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
1349 * etc/nodist/nfs-client: Likewise.
1351 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
1353 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
1356 2001-02-17 Patrick J. LoPresti <patl@curl.com>
1358 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
1361 2001-02-14 H.J. Lu <hjl@lucon.org>
1363 * utils/statd/rmtcall.c: Include <time.h>.
1364 * utils/statd/svc_run.c: Likewise.
1366 2001-02-14 H.J. Lu <hjl@lucon.org>
1368 * configure.in (VERSION): Set to "0.3.1".
1369 * configure: Regenerated.
1370 * nfs-utils.spec: Likewise.
1372 * README: Updated for 0.3.1.
1374 2001-02-14 H.J. Lu <hjl@lucon.org>
1376 * support/nfs/rpcmisc.c: Include <time.h>.
1378 2001-02-14 Chip Salzenberg <chip@valinux.com>
1380 * debian/control: Change priority of nhfsstone package to 'extra'.
1382 2001-02-12 Chip Salzenberg <chip@valinux.com>
1384 * debian/changelog: Version 0.3-2.
1386 2001-02-02 H.J. Lu <hjl@lucon.org>
1388 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
1390 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
1391 out SO_SNDBUF/SO_RCVBUF.
1392 (rpc_init): Remove bufsize and remove socksz in calls to
1395 * utils/mountd/mountd.c (main): Remove bufsize in calls to
1398 2001-01-28 Chip Salzenberg <chip@valinux.com>
1400 * debian/changelog: Version 0.3-1.
1402 2001-01-25 H.J. Lu <hjl@lucon.org>
1404 * configure.in (VERSION): Set to "0.3".
1405 * configure: Regenerated.
1406 * nfs-utils.spec: Likewise.
1408 * README: Updated for 0.3.
1410 2001-01-25 H.J. Lu <hjl@lucon.org>
1412 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
1414 2001-01-20 Chip Salzenberg <chip@valinux.com>
1416 * support/include/xio.h (xgetc): Declare to return int.
1417 * support/nfs/xio.c (xgetc): Return int.
1418 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
1419 * utils/statd/statd.c (main): Use int for value of getopt.
1420 * debian/changelog: Version 0.2.1-5.
1422 2000-12-10 Chip Salzenberg <chip@valinux.com>
1424 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
1425 program and procedure numbers of kernel lockd's callback. Also,
1426 besides the old (and broken) procedure #24, allow #16 per Trond.
1428 2000-12-03 Chip Salzenberg <chip@valinux.com>
1430 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
1431 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
1432 * debian/changelog: Version 0.2.1-4.
1434 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
1436 * utils/mountd/auth.c (auth_authenticate): Log the bad path
1439 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
1441 * support/nfs/exports.c (getexportent): Check for host name
1442 without option, or options without hostname, and print a warning,
1443 as this is most likely a typo.
1445 2000-11-19 Chip Salzenberg <chip@valinux.com>
1447 * debian/control: Add dependency on portmap.
1448 * debian/changelog: Version 0.2.1-3.
1450 2000-11-10 H.J. Lu <hjl@lucon.org>
1452 * nfs-utils.spec.in: Don't use libtool.
1453 Add ChangeLog and COPYING to doc.
1454 * nfs-utils.spec: Rebuild.
1456 2000-11-09 H.J. Lu <hjl@lucon.org>
1458 * etc/redhat/nfs.init (start): Back out the last change.
1460 2000-11-09 H.J. Lu <hjl@lucon.org>
1462 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
1463 TCP is not supported by kernel.
1465 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
1467 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
1468 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
1470 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
1472 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
1474 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
1475 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
1476 callbacks to local lockd.
1478 2000-10-18 Scott McDermott <mcdermot@questra.com>
1480 * utils/exportfs/exports.man: Updated for CIDR netmask.
1482 2000-10-17 Scott McDermott <mcdermot@questra.com>
1484 * support/export/client.c (client_init): Support CIDR netmask
1487 2000-10-11 H.J. Lu <hjl@lucon.org>
1489 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1490 * configure: Rebuilt.
1492 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
1494 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1495 "/var/lib/nfs/state".
1497 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
1499 * utils/statd/statd.h (run_mode): New global bitmask of runtime
1500 behaviors: fg/bg, logging, etc.
1501 * utils/statd/statd.c: New command line options: -V -h -? -d .
1502 * utils/statd/statd.man: Update for changes to statd.
1504 * utils/statd/log.h (log_init): Remove parameter of function; use
1505 global variable "name_p" instead.
1506 * utils/statd/log.c: Add support for logging to stderr.
1508 * utils/statd/notlist.c: Partially rewrite notify list handling
1509 functions. Eliminate run-off-end-of-list bug when calling
1510 nlist_insert_timer. Add lots of comments.
1512 2000-09-27 H.J. Lu <hjl@lucon.org>
1514 * README: Updated for RedHat 7.0.
1516 2000-09-27 H.J. Lu <hjl@lucon.org>
1518 * nfs-utils.spec: Rebuild.
1520 2000-09-27 H.J. Lu <hjl@lucon.org>
1522 * README: Updated for 0.2.1.
1524 2000-09-27 H.J. Lu <hjl@lucon.org>
1526 * nfs-utils.spec.in: Updated to use rpm macros and support
1529 2000-09-25 H.J. Lu <hjl@lucon.org>
1531 * configure.in (VERSION): Set to "0.2.1".
1532 * configure: Regenerated.
1533 * nfs-utils.spec: Updated.
1535 2000-09-25 H.J. Lu <hjl@lucon.org>
1537 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1538 non-NULL hostent is always returned.
1540 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1542 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1543 have an executable (i.e. kernel threads)
1545 2000-09-01 H.J. Lu <hjl@lucon.org>
1547 * README: Updated for 0.2.
1549 2000-09-01 Jay Weber <jweber@valinux.com>
1551 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1552 supporting version 3 of nfs if available, else it will fall back to
1553 version 2 support only.
1555 2000-08-30 H.J. Lu <hjl@lucon.org>
1557 * configure.in (VERSION): Set to "0.2".
1558 * configure: Regenerated.
1559 * nfs-utils.spec: Updated.
1561 2000-08-25 H.J. Lu <hjl@lucon.org>
1563 * support/misc/tcpwrapper.c (logit): Modify the log output.
1565 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1567 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1568 utils/mountd/mountd.man: updated
1570 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1571 * utils/rquotad/Makefile: fix comment
1573 * support/misc/tcpwrapper.c (logit): added comment about waiting
1574 for the children after fork()
1576 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1577 zombies behind (from logit()'s fork)
1578 * utils/rquotad/rquota_svc.c (main): ditto
1579 * utils/statd/statd.c (main): ditto
1581 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1582 to check_default instead of 0, for prognum
1584 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1585 to check_default instead of 0, for prognum
1587 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1588 HAVE_TCP_WRAPPER is defined.
1589 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1590 defined. Reject an RPC call if check_default () fails.
1592 2000-08-25 H.J. Lu <hjl@lucon.org>
1594 * support/include/tcpwrapper.h: New for the tcp wrapper
1596 * support/misc/Makefile: Likewise.
1597 * support/misc/from_local.c: Likewise.
1598 * support/misc/tcpwrapper.c: Likewise.
1600 * aclocal.m4 (AC_TCP_WRAPPER): New.
1601 * configure.in: Use it. Substitute LIBWRAP.
1602 * configure: Rebuilt.
1604 * config.mk.in (LIBNSL): New.
1605 (LIBWRAP): Likewise.
1607 * support/Makefile (SUBDIRS): Add misc.
1609 * support/lib/Makefile (LIBS): Add libmisc.a.
1611 * utils/rquotad/Makefile (LIBS): Add
1613 -lmisc $(LIBWRAP) $(LIBNSL)
1615 * utils/statd/Makefile (LIBS): Likewise.
1617 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1618 HAVE_TCP_WRAPPER is defined.
1619 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1620 defined. Reject an RPC call if check_default () fails.
1622 * utils/statd/statd.c: Include "tcpwrapper.h" if
1623 HAVE_TCP_WRAPPER is defined.
1624 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1625 check_default () before calling sm_prog_1 (). Define it as
1626 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1628 2000-08-25 Chip Salzenberg <chip@valinux.com>
1630 * debian/*: Complete Debian build support.
1631 * etc/debian/*: Remove.
1633 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1635 * support/export/client.c(client_check): removed the "dot+1" as a
1636 ypdomain argument to innetgr as this is entirely bogus.
1637 It should always be NULL.
1639 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1641 * support/export/xtab.c(xtab_read): introduce new mode for
1642 reading xtab. i.e. a list of exports that might be known to the
1643 kernel, or might not. These are flagged as m_exported == -1
1644 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1645 value "2" for xtab, meaning don't trust this too much.
1646 * support/include/exportfs.h(struct mexport): changed m_exported
1647 from one bit to an int so that it can hold new value
1648 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1649 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1650 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1653 * support/nfs/xio.c(xflock): added O_CREAT when getting
1654 a write lock so that missing files aren't fatal.
1656 * etc/debian/nfs-common: new file from "potato"
1657 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1659 2000-08-09 H.J. Lu <hjl@lucon.org>
1661 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1662 startup to ensure all existing clients work fine.
1664 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1665 to xtab_read () for reading _PATH_XTAB.
1667 2000-08-02 H.J. Lu <hjl@lucon.org>
1669 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1670 avoid the reverse name lookup.
1672 2000-07-04 H.J. Lu <hjl@lucon.org>
1674 * utils/statd/log.c: Include <stdlib.h> for exit ().
1676 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1679 2000-07-04 H.J. Lu <hjl@lucon.org>
1681 * configure.in (VERSION): Set to "0.1.9.1".
1682 * configure: Regenerated.
1683 * nfs-utils.spec: Updated.
1687 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1689 * support/export/hostname.c (hostent_dup): Handle the NULL
1692 2000-07-03 H.J. Lu <hjl@lucon.org>
1694 * README: Update the util-linux requirement.
1696 2000-07-03 H.J. Lu <hjl@lucon.org>
1698 * configure.in (VERSION): Set to "0.1.9".
1699 * configure: Regenerated.
1700 * nfs-utils.spec: Updated.
1704 2000-07-03 H.J. Lu <hjl@lucon.org>
1706 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1707 stop to ensure all clients can still access the server
1708 before it is shutdown.
1710 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1712 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1713 calls with format string.
1715 2000-06-28 Chip Salzenberg <chip@valinux.com>
1717 * utils/statd/log.c (log): Call syslog with format string.
1719 2000-06-27 H.J. Lu <hjl@lucon.org>
1721 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1722 instead of OPEN_MAX.
1724 2000-06-27 H.J. Lu <hjl@lucon.org>
1728 2000-06-27 H.J. Lu <hjl@lucon.org>
1730 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1731 startup to ensure all existing clients are exported.
1733 * configure.in (VERSION): Set to "0.1.8.2".
1734 * configure: Regenerated.
1735 * nfs-utils.spec: Updated.
1737 2000-06-06 H.J. Lu <hjl@lucon.org>
1739 * configure.in (VERSION): Set to "0.1.8.1".
1740 * configure: Regenerated.
1741 * nfs-utils.spec: Updated.
1743 2000-06-06 H.J. Lu <hjl@lucon.org>
1745 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1746 to "struct sockaddr_in *" for glibc 2.2.
1747 (mount_umnt_1_svc): Likewise.
1748 (mount_umntall_1_svc): Likewise.
1749 (mount_export_1_svc): Likewise.
1750 (mount_exportall_1_svc): Likewise.
1751 (mount_pathconf_2_svc): Likewise.
1752 (get_rootfh): Likewise.
1754 2000-06-04 H.J. Lu <hjl@lucon.org>
1756 * etc/redhat/nfs.init: Fix a typo in comment.
1758 2000-05-31 H.J. Lu <hjl@lucon.org>
1760 * configure.in (VERSION): Set to "0.1.8".
1761 * configure: Regenerated.
1762 * nfs-utils.spec: Updated.
1766 2000-05-31 H.J. Lu <hjl@lucon.org>
1768 * configure.in (VERSION): Set to "0.1.7.5".
1769 * configure: Regenerated.
1770 * nfs-utils.spec: Updated.
1772 * support/include/nfslib.h (exportent): Add a new field,
1773 r_count, to count the number of mounts from a client.
1774 (getrmtabent): Take a new argument for position in file.
1775 (putrmtabent): Likewise.
1776 (fgetrmtabent): Likewise.
1777 (fputrmtabent): Likewise.
1778 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1779 for position in file.
1780 (fgetrmtabent): Likewise.
1781 (putrmtabent): Likewise.
1782 (fputrmtabent): Likewise.
1784 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1787 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1788 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1789 and fputrmtabent ().
1790 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1791 (mountlist_del): Likewise.
1792 (mountlist_del_all): Likewise.
1793 (mountlist_list): Likewise.
1795 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1796 for the existing entry and initialize "r_count" to 1.
1797 (mountlist_del): Decrement "r_count".
1799 2000-05-18 H.J. Lu <hjl@lucon.org>
1801 * configure.in (VERSION): Set to "0.1.7.4".
1802 * configure: Regenerated.
1803 * nfs-utils.spec: Updated.
1805 2000-05-18 H.J. Lu <hjl@lucon.org>
1807 * etc/redhat/nfs.init (restart): Just do stop and start.
1809 2000-05-09 Jay Weber <jweber@valinux.com>
1811 * utils/rquotad/hasquota.c: added support for ext3 recognition
1813 * utils/rquotad/mntent.h: Likewise.
1815 2000-05-01 H.J. Lu <hjl@lucon.org>
1817 * configure.in (VERSION): Set to "0.1.7.3".
1818 * configure: Regenerated.
1819 * nfs-utils.spec: Updated.
1821 2000-05-01 H.J. Lu <hjl@lucon.org>
1823 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1824 mounting poins in /etc/fstab.
1826 2000-05-01 H.J. Lu <hjl@lucon.org>
1828 * configure.in (VERSION): Set to "0.1.7.2".
1829 * configure: Regenerated.
1830 * nfs-utils.spec: Updated.
1832 2000-05-01 H.J. Lu <hjl@lucon.org>
1834 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1835 to check for the mounting point.
1837 2000-04-29 Chip Salzenberg <chip@valinux.com>
1838 Neil Brown <neilb@cse.unsw.edu.au>
1840 * Really re-use RPC ports.
1841 (Fixes earlier patch. Sorry, Neil.)
1843 2000-04-26 H.J. Lu <hjl@lucon.org>
1845 * configure.in (VERSION): Set to "0.1.7.1".
1846 * configure: Regenerated.
1847 * nfs-utils.spec: Updated.
1849 2000-04-26 H.J. Lu <hjl@lucon.org>
1851 * etc/redhat/nfslock.init: Check if lockd exits before killing
1854 2000-04-25 H.J. Lu <hjl@lucon.org>
1856 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1858 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1860 * support/nfs/exports.c (parsesquash): Correctly set the
1863 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1865 * support/include/nfs/nfs.h: Removed knowledge of internals of
1866 kernel filehandles (which can change) and defined nfs_fh_size
1867 which has variable size
1869 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1870 get variable sized file handles, and change getfh{,old} to
1873 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1876 * tools/Makefile, tools/nlmtest/nlmtest.c
1877 nlmtest.c depended on internel format of file handles, so now
1881 2000-03-12 Chip Salzenberg <chip@valinux.com>
1882 Neil Brown <neilb@cse.unsw.edu.au>
1884 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1886 2000-03-13 H.J. Lu <hjl@lucon.org>
1888 * etc/redhat/nfsd.init: Updated.
1890 * etc/redhat/nfslock.init: Updated.
1892 * nfs-utils.spec.in: Updated.
1894 * configure.in (VERSION): Set to "0.1.7".
1895 * configure: Regenerated.
1896 * nfs-utils.spec: Updated.
1900 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1902 * utils/exportfs/exportfs.c (dump): Included printing of
1903 nohide, no_subtree_check, and insecure_locks
1905 2000-02-26 Chip Salzenberg <chip@valinux.com>
1907 * config.mk.in (INSTALLSUID): Strip ("-s").
1908 (INSTALLSCRIPT): Define.
1909 * utils/nhfsstone/Makefile: Use it.
1911 2000-02-26 Chip Salzenberg <chip@valinux.com>
1913 * utils/lockd/lockd.man: Create.
1914 * utils/lockd/Makefile: Install it.
1915 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1916 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1917 * utils/nhfsstone/Makefile: Install the helper scripts and
1919 * utils/exportfs/exports.man: Fix typo.
1921 2000-02-26 Chip Salzenberg <chip@valinux.com>
1923 * support/nfs/xio.c (xungetc): Decrement line number when
1924 character to unget is newline. Make first parameter int, so
1925 it can distinguish EOF from \377.
1926 * support/include/xio.h (xungetc): Adjust prototype.
1928 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1930 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1931 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1932 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1934 This is for supporting a new option introduced in 2.3.42
1936 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1938 * COPYING: Added. GPL.
1940 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1942 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1943 to get the block size.
1945 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1947 * nfs-utils.spec.in: Update ftp site.
1949 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1951 * README: Update hostnames.
1953 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1955 * configure.in (VERSION): Set to "0.1.6".
1956 * configure: Regenerated.
1957 * nfs-utils.spec: Updated.
1961 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1963 * utils/mountd/auth.c (auth_authenticate_internal): Call
1964 xstrdup for hostname before passing it to gethostbyname.
1966 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1969 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1971 * README: Update the mailing list address.
1973 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1975 * configure.in (VERSION): Set to "0.1.5".
1976 * configure: Regenerated.
1977 * nfs-utils.spec: Updated.
1981 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1983 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1986 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1988 * configure.in (VERSION): Set to "0.1.4".
1989 * configure: Regenerated.
1990 * nfs-utils.spec: Updated.
1994 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1996 * nfs-utils.spec.in: New file.
1998 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
2000 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
2002 1999-12-04 Chip Salzenberg <chip@valinux.com>
2004 * config.mk.in: Use $(CC) as set by configure.
2006 1999-12-04 Chip Salzenberg <chip@valinux.com>
2008 * rules.mk: Call $(MAKE) with $(MFLAGS).
2010 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
2012 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
2013 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
2015 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
2017 * nfs-utils.spec (Version): Set to 0.1.3.
2019 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
2020 * configure: Regenerated.
2024 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
2026 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
2027 (_PATH_DEV_DSK): Likewise.
2028 (getquotainfo): Match the mounting point from /etc/mtab
2029 instead of calling nfsmount_to_devname ().
2031 1999-11-24 Chip Salzenberg <chip@valinux.com>
2033 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
2034 to the new port 24 as well as the historical port 100021.
2036 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
2038 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
2039 stopping nfsd to stop spurious ESTALE on server shutdown.
2041 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
2043 * support/nfs/exports.c (parseopts): make copy of opt string
2044 before 'nul'ing out commas so that
2046 # exportfs -o option1,option2 hosta:/fs hostb:/fs
2048 applies both options to both exports.
2050 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
2052 * README: Fix a few typos.
2054 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
2056 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
2057 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
2058 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
2059 (unsigned_dec): Likewise.
2060 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
2061 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
2063 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
2065 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
2066 (unsigned_dec): Likewise.
2067 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
2068 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
2069 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
2071 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
2073 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
2074 * support/nfs/exports.c: added {no_,}subtree_check and changed
2076 * utils/exportfs/exports.man: added no_subtree_check and nohide
2077 and removed irrelevant stuff from unfsd.
2078 * support/export/rmtab.c: rmtab_read didn't quite do the right
2079 thing if a pathname from rmtab was a subdirectory of an export-point
2081 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
2083 * README: Updated ftp site.
2085 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
2087 * nfs-utils.spec (Version): Set to 0.1.2.
2089 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
2090 * configure: Regenerated.
2094 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
2096 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
2097 (auth_authenticate_internal): Check for NULL return on forward
2099 (auth_authenticate): Handle "no_forward_dns".
2101 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
2103 * Version 0.1.1 released.
2105 * nfs-utils.spec (Version): Set to 0.1.1.
2107 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
2108 * configure: Regenerated.
2112 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
2114 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
2116 (Provides): Likewise.
2118 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
2120 * Initial version 0.1 released.
2122 * configure.in (VERSION): Set to "nfs-utils 0.1".
2123 * configure: Regenerated.
2125 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
2127 * utils/mountd/mountd.c (get_exportlist): Cleanup.
2129 * utils/exportfs/exportfs.c (unexport_all): Unexport from
2130 kernel only if the entry is exported to kernel.
2131 (unexportfs): Likewise.
2133 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
2135 1/ utils/mountd/rmtab.c::mountlist_list
2137 This routine stats the rmtab file to see if it has changed. It
2138 if has, it cleans up it's old copy of the data. But it still
2139 always re-read the file, thus returning multiple copies of the
2140 data on consecutive calls without intervening changes.
2141 "Showmount -a" didn't show this as it appears to sort/unique the
2142 data, but 'strace showmount -a' showed that the size of the
2143 datagram that it received grew.
2145 I moved the getrmtabent loop inside the mtime test.
2147 2/ utils/exportfs/exportfs.c
2149 Many routines used the m_path field of m_export instead of
2151 According to the comment in nfslib.h, m_path should only
2152 be used when processing a mount request (i.e. in mountd)
2153 where the mountpoint may be a subdirectory of the export point.
2155 I changed all occurances of m_path to e_path
2158 3/ utils/exportfs/exportfs.c:main
2160 extra arguments are not meaningful with -a or -r, but
2161 exportfs accepted them and then ignored the -a/-r, expect that
2162 -r would still unexport everything first.
2164 I generate an error if there are extra args and f_all
2166 4/ utils/exportfs/exportfs.c:main
2167 extract dump out as a special case.
2169 5/ utils/exportfs/exportfs.c
2170 made f_reexport a local variable.
2173 6/ utils/exportfs/exportfs.c:main,exportall
2175 support/export/rmtab.c
2176 only mayexport on newly created entries, don't set xtabent at all
2178 7/ support/include/nfslib.h
2180 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
2182 8/ support/export/xtab.c
2184 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
2188 9/ support/export/xtab.c
2190 xtab_mount_read now sets m_exported, and NOT
2191 xtabent and mayexport
2193 removed the append arguement from xtab_write as it was
2196 added is_export flag to xtab_write similar to xtab_read
2197 if is_export, only write entries with m_xtabent or m_addxtab
2198 if !is_export, only write entries with m_exported
2200 10/ support/export/export.c::export_allowed_internal
2202 added test for exp->m_mayexport, as the export tree
2203 may have entries that are no longer allowed to be exported,
2204 and so shouldn't caused deduced exported by rmtab_read
2206 11/ utils/exportfs/exportfs.c::main
2207 error checking of flags.
2209 12/ utils/exportfs/exportfs.c
2211 total rewrite of export and unexport logic.
2213 - build an exportslist of valid exports, based on
2214 current etab file and arguments,
2215 - read rmtab to instantiate relevant wild card entries
2216 - read etab to find out what is currently exported
2217 - synchronise intention with reality
2218 - write out etab and xtab
2221 discard the m_addxtab flag
2222 add m_changed flag so we know what to report in exportfs
2224 14/ utils/mountd/auth.c:auth_authenticate
2226 the value returned by gethostbyaddr was trusted.
2228 It now follows this with a call to gethostbyname
2229 and checks that the address is in the list.
2231 15/ support/export/nfsctl.c::cltsetup,expsetup
2233 force client names to lowercase as kernel is
2236 16/ quietened a few compiler warnings
2238 17/ support/export/client:client_lookup
2240 look for pre-existing client with same name before creating
2243 18/ support/include/exportfs.h
2245 The ordering of the MCL_* enum was:
2246 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
2248 I moved ANONYMOUS to the end.
2250 The ordering is significant when an export entry is being searched for to
2251 match a given address. There are two problems with ANONYMOUS being first.
2253 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
2254 then the ro case will always be found first and the privileged hosts won't get
2256 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
2257 export entry for the specific host, and writes it to xtab.
2258 When another request comes from the same host, the ANONYMOUS entry is found again,
2259 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
2260 again. If causes bloat in xtab.
2262 Putting ANONYMOUS at the end reflects it's nature as a catch-all
2264 19/ utils/exportfs/exportfs.man
2265 many updates to the man page to reflect changes to the code
2267 -----------------------
2273 - allow exportfs to modify rmtab file
2274 - make sure kernel never gets two clients with same IP address
2275 - possible kernel should reject
2276 - needs to be some way to lookup client in kernel by IP address
2277 - maybe get kernel to do case-insensitive comparisons on client names
2278 - remove unused clients from kernel
2280 - change etab to xtab and xtab to xtab.active
2282 - timestamp and/or statd-stamp in rmtab for removing old entries.
2284 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
2286 * linux-nfs: New directory.
2287 * linux-nfs/ChangeLog: Moved from ..
2288 * linux-nfs/INSTALL: Likewise.
2289 * linux-nfs/KNOWNBUGS: Likewise.
2290 * linux-nfs/NEW: Likewise.
2291 * linux-nfs/README: Likewise.
2292 * linux-nfs/THANKS: Likewise.
2293 * linux-nfs/TODO: Likewise.
2295 * Starting from knfsd 1.4.7.