1 2006-04-10 NeilBrown <neilb@suse.de>
2 Add checking for innetgr back to configure.in
4 2006-04-10 kwc@citi.umich.edu
5 Update calls to gss_export_lucid_sec_context()
7 Change the calls to gss_export_lucid_sec_context() to match the corrected
8 interface definition in libgssapi-0.9.
10 2006-04-10 kwc@citi.umich.edu
11 Plug memory leaks in svcgssd
13 Various memory leaks in the svcgssd context processing are eliminated.
15 2006-04-10 kwc@citi.umich.edu
16 Fix memory leak of the AUTH structure on context negotiations
18 Free AUTH structure after completing context negotiation and sending
19 context information to the kernel.
21 2006-04-10 kwc@citi.umich.edu
22 Fix support/include/config.h.in such as would be done be running autoheader.
24 2006-03-28 NeilBrown <neilb@suse.de>
25 1.0.8-pre3, aclocal/autoconf/automake
27 2006-03-28 kwc@citi.umich.edu
28 Use PKGCONFIG to locate gssapi and rpcsecgss header files
30 Instead of having separate copies of the gssapi and rpcsecgss
31 header files, or depending on the Kerberos gssapi header,
32 locate the headers now installed with the libgssapi and librpcsecgss
35 Remove local copies of the gssapi and rpcsecgss header files.
37 This depends on the configure_use_autotools patch.
39 2006-03-28 kwc@citi.umich.edu
40 Add debugging to better detect negotiation of enctype not supported by kernel
42 Print debugging message indicating the type of encryption keys being sent
43 down to the kernel. This should make it easier to detect cases where
44 unsupported encryption types are being negotiated.
47 2006-03-28 kwc@citi.umich.edu
49 Don't close and reopen all pipes on every DNOTIFY signal.
51 From: Vince Busam <vbusam@google.com>
52 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
54 Don't unnecessarily close and re-open all pipes after every DNOTIFY
55 signal. These unnecessary closes were triggering a kernel Oops.
56 Original patch modified to correct segfault when unmounting last
59 2006-03-28 kwc@citi.umich.edu
60 Add option to specify directory to search for credentials cache files
63 From: Vince Busam <vbusam@google.com>
64 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
66 Add command line option to specify which directory should be searched
67 to find credentials caches.
70 2006-03-28 kwc@citi.umich.edu
71 Must still use knowledge of the glue context for pre-1.4 versions of MIT krb5
73 We need to get access to the internal krb5 context pointer for
74 older (pre-1.4) versions of MIT Kerberos. We get a pointer to
75 the gss glue's context. Get the right pointer before accessing
76 the context information.
79 2006-03-28 kwc@citi.umich.edu
81 Remove unused groups variable from get_ids() which was causing a compiler warning.
84 2006-03-28 kwc@citi.umich.edu
85 Update krb5 code to use glue routine lucid context functions
89 The gssd code should not know about the glue layer's context structure.
90 A previous patch added gss_export_lucid_sec_context() and
91 gss_free_lucid_sec_context() functions to the gssapi glue layer.
92 Use these functions rather than calling directly to the Kerberos
93 gssapi code (which requires the Kerberos context handle rather
94 than the glue's context handle).
98 2006-03-28 kwc@citi.umich.edu
100 Separate out context handling code for MIT Kerberos and SPKM3
104 2006-03-28 Kevin Coffman <kwc@citi.umich.edu>
105 User-selectable idmapping cache lifetime
107 Read and process new configuration option, Cache-Expiration, and use
108 the value to determine how long idmapping entries are cached.
111 2006-03-27 NeilBrown <neilb@suse.de>
114 2006-03-27 kwc@citi.umich.edu
115 Add debugging to better detect negotiation of enctype not supported by kernel
117 Print debugging message indicating the type of encryption keys being sent
118 down to the kernel. This should make it easier to detect cases where
119 unsupported encryption types are being negotiated.
122 Don't close and reopen all pipes on every DNOTIFY signal.
124 Don't unnecessarily close and re-open all pipes after every DNOTIFY
125 signal. These unnecessary closes were triggering a kernel Oops.
126 Original patch modified to correct segfault when unmounting last
130 Add option to specify directory to search for credentials cache files
132 Add command line option to specify which directory should be searched
133 to find credentials caches.
135 2006-03-27 kwc@citi.umich.edu
136 Must still use knowledge of the glue context for pre-1.4 versions of MIT krb5
138 We need to get access to the internal krb5 context pointer for
139 older (pre-1.4) versions of MIT Kerberos. We get a pointer to
140 the gss glue's context. Get the right pointer before accessing
141 the context information.
143 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
144 Remove unused variable causing compile warning
146 Remove unused groups variable from get_ids() which was causing a compiler warning.
148 2006-03-27 kwc@citi.umich.edu
149 Update krb5 code to use glue routine lucid context functions
151 The gssd code should not know about the glue layer's context structure.
152 A previous patch added gss_export_lucid_sec_context() and
153 gss_free_lucid_sec_context() functions to the gssapi glue layer.
154 Use these functions rather than calling directly to the Kerberos
155 gssapi code (which requires the Kerberos context handle rather
156 than the glue's context handle).
158 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
159 Separate out context handling code for MIT Kerberos and SPKM3
162 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
163 Consolidate gssd and svcgssd since they share much code
165 Remove directory svcgssd which was only created because the old
166 build system could not handle building two daemons in the same
167 directory. This eliminates build complications since gssd and
168 svcgssd also share many source files.
170 This patch effectively removes the utils/svcgssd directory, moving
171 all its files to the utils/gssd directory. File utils/gssd/Makefile.am
172 is modified with directions to build both gssd and svcgssd.
174 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
175 Use PKGCONFIG to locate gssapi and rpcsecgss header files
177 Instead of having separate copies of the gssapi and rpcsecgss
178 header files, or depending on the Kerberos gssapi header,
179 locate the headers now installed with the libgssapi and librpcsecgss
182 Remove local copies of the gssapi and rpcsecgss header files.
184 This depends on the configure_use_autotools patch.
186 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
187 User-selectable idmapping cache lifetime
189 Read and process new configuration option, Cache-Expiration, and use
190 the value to determine how long idmapping entries are cached.
192 2006-03-27 Steve Dickson <steved@redhat.com>
193 Set libnfsidmap library debugging level and logging function.
195 This patch adds a call to the new libnfsidmap library function
196 nfs4_set_debug(), which defines the verbosity level libnfsidmap
197 should use as well as the logging function.
199 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
200 Don't close file descriptor until after calling event_del().
202 Delete event processing for a file descriptor before closing it.
203 This was causing hangs when used in combination with libevent-1.0b.
205 2006-03-27 kwc@citi.umich.edu
206 Find krb5-config on SuSE 10
208 SuSE 10.0 puts krb5-config in yet another obscure location.
209 Look for it there and use it if found.
211 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
212 Update debian package information.
214 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
215 Install /var/lib/nfs files using DESTDIR and add rpcsec headers to distribution
217 Add "$(DESTDIR)" to the paths for the "$(statedir)" files so they are
218 put in the right place when DESTDIR is defined.
220 Add the rpcsec header files to EXTRA_DIST list.
222 2005-12-21 NeilBrown <neilb@suse.de>
223 *utils/rquotad/rquota_server.c: Detect and handle both old-style
224 (2.4) and new-style(2.6) quotactl.
225 *utils/gssd/gss_destroy_cred: remove dependence on "head -1" which
226 might need to be "head -n 1"
227 *utils/nhfsstone/nhfsrun: convert "tail -1" to "tail -n 1"
229 2005-12-20 Kevin Coffman <kwc@citi.umich.edu> NeilBrown <neilb@suse.de>
230 Substantial Makefile/configure rewrite.
231 Run 'autogen.sh' to create "Makefile.in" etc.
233 Also add -D_FILE_OFFSET_BITS=64 to CPP_FLAGS so that mountd can
234 stat and export files larger than 2Gig.
238 2005-12-20 NeilBrown <neilb@suse.de>
239 support/nfs/exports.c(getexportent): is a null host name is given,
240 replace it with '*' so we have a non-empty host name for messages
242 utils/exportfs/exportfs.man: Correct documentation about default
245 2005-12-20 Kevin Coffman <kwc@citi.umich.edu>
246 utils/gssd/gssd_proc.c(create_auth_rpc_client): Use service
247 portion of clp->servicename rather than hard-coding "nfs".
249 2005-12-16 NeilBrown <neilb@suse.de>
252 2005-12-16 Kevin Coffman <kwc@citi.umich.edu>
253 svcgssd needs -lnfs when using new function closeall().
256 Remove unused argument from nfsdopen()
258 After previous changes, the arguement to nfsdopen() has become unused.
262 Fix idmapd error reporting after call to mydaemon()
264 After call to mydaemon(), calls to err[x] and warn[x] result
265 in the message going nowhere. Change to using idmapd_*
266 versions of these routines which write to syslog.
267 Original problem reported by Vincent Roqueta <vincent.roqueta@ext.bull.net>
268 with a different patch.
271 Don't add @domain to names that cannot be mapped.
273 Per rfc3530 section 5.8: when unable to map a uid to a name, don't
274 add the @domain to the "nobody" name.
277 Fix idmapd for systems where sizeof(uid_t)!=4 and sizeof(gid_t)!=4
279 Fix conversion cases where uid_t and gid_t are not 32 bits.
282 Don't segfault because mech wasn't filled in because of an error
284 From Kevin Coffman <kwc@citi.umich.edu>
286 Initialize mech to null to avoid segfault if an error occurs
287 and mech is never returned from gss_accept_sec_context.
290 Remove use of static buffer in do_downcall
292 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
294 Dynamically allocate buffer of the correct length rather
295 than using fixed-length buffer.
298 Print better error message if rpc routine clnt_create() fails.
301 Print appropriate error messages after gss calls.
303 Print gss error messages after calls to gss functions, even if they
304 are for Kerberos only.
307 Update gssd and svcgssd to use the new gss mech glue lucid context calls.
309 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
311 Update gssd and svcgssd to use a lucid context from SPKM3 to send down
313 Update gssd and svcgssd to use the new gss mech glue lucid context calls.
314 Add configure check to see if spkm3 support is available.
317 Add support for CONTINUE_NEEDED return from gss_accept_sec_context.
319 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
321 Add CONTINUE_INIT handling to svcgssd. Store the partially complete spkm
322 context handle in the out_handle of CONTINUE_INIT messages so that it is
323 returned in the in_handle of subsequent messages.
326 Replace GSS_C_ANON_FLAG with GSS_C_MUTUAL_FLAG.
328 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
330 Specify GSS_C_MUTUAL_FLAG rather than GSS_C_ANON_FLAG for
333 NOTE: we need a way to pass the appropriate value rather than
334 hard-coding this flag.
337 Increase size of rpc send/receive buffers
339 Change the clnt_create() to use routines which allow us to set the
340 send and receive buffer size. This is needed for larger spkm3
341 exchanges including certificate chains.
343 This has the side-effect of skipping the portmap call since
344 we specify the port (by specifying the service) when getting
345 the server's address information.
348 Define _LINUX_QUOTA_VERSION to 1
350 The rquotad code is written against the "old" kernel quota interface.
351 Fedora Core 4 is the only platform known to check for different
352 versions, so this should not have any affect on other platforms
353 and fixes the build for FC4.
357 2005-12-12 Usha Ketineni <ketineni@us.ibm.com>, NeilBrown <neilb@suse.de>
358 *support/nfs/rpcmisc.c(rpc_init): is stdin is a socket, but
359 is already connected (as e.g. from ssh), don't assume we
360 were started by inetd.
362 2005-11-03 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
363 *utils/idmapd/idmaps.c:
365 I've recently updated the nfs-utils in rawhide with the
366 latest patches from the SourceForge CVS tree and the
367 latest CITI patches (1.0.7-4).
369 In testing these patches, I notice that when the server was started
370 and a SIGHUP was sent to rpc.idmapd to open the nfs4.nametoid/channel
371 and nfs4.idtoname/channel files, the second open (the nfs4.idtoname one)
372 failed because the path (i.e. ic->ic_path) was NULL.
374 Now the reason the ic_path was NULL was because it was never set
375 during the call to nfsdopen(). nfsdopen() looks like:
378 return ((nfsdopenone(&nfsd_ic[IC_NAMEID], IC_NAMEID, path) == 0 &&
379 nfsdopenone(&nfsd_ic[IC_IDNAME], IC_IDNAME, path) == 0) ? 0
383 Note: the call to nfsdopenone() is how the path is set in each nfsd_ic[]
384 entry and nfsdopen() is only called once.
386 So when rpc.idmap comes up and the first call to nfsdopenone() fails
387 (because the server is not running) the path in nfsd_ic[IC_IDNAME] is
388 never filled in because the second nfsdopenone() never happen...
390 Now there was a CITI patche (idmapd_revert_fix_reopen_on_sighup.dif)
391 that tried to address this problem but did seem to fix it.. The
392 attached patch fix the problem by initializing both nfsd_ic[IC_IDNAME]
393 and nfsd_ic[IC_NAMEID] structures with the needed info...
394 I figured since there is no way of changing these paths or filenames
395 by command line args, why not just set them during compile time...
396 so that's what this patch does.
398 This patch also changes how nfsdreopen_one() handles the
399 case where the event has already been set. Unlike the CITI
400 patch (idmapd_revert_fix_reopen_on_sighup.dif) which just
401 just does not register the second event, my patch deletes
402 the old event and the registers the new one. It just seems like
403 the right thing to do since a SIGHUP means a new server just
404 started so we probably should create a new event as well...
408 2005-10-14 NeilBrown <neilb@suse.de>
409 *utils/mountd/cache.c(nfsd_fh): Understand type 2 and type 3
410 filesystem identifiers, which are used with device numbers
411 That don't fit into 16 bits.
413 2005-10-07 Olaf Kirch <okir@suse.de>
414 * utils/mountd/mountd.c(get_exportlist): Without this patch,
415 showmount -e would sometimes display host names that should really
416 have been subsumed under a wildcard entry.
418 The problem was that the code in get_exportlist would always
419 skip the next group entry after removing one FQDN.
421 2005-10-06 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
422 * support/nfs/export.c: don't warn about sync/async for readonly
424 * support/nfs/closeall.c: new file with function to close all
425 file descriptors from a give minimum upwards.
426 * nfsd/mountd/statd/idmapd/gsssvcd: use closeall.
427 * utils/mountd/mountd.c: Eliminate 3 syslog message that are
428 logged for successful events.
429 * utils/mountd/mountd.c: make sure the correct hostname is used in
430 the SM_NOTIFY message that is sent from a rebooted server which
431 has multiple network interfaces. (bz 139101)
433 Details can be found in:
434 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=139101
436 *utils/idmapd/idmapd.c:Fixed subscripting problem in idmapd (bz
437 158188) This fixes the following problem:
438 rpc.idmapd: nfsdreopen: Opening '' failed: errno 2 (No such file or directory)
440 Details can be found in:
441 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=158188
443 *utils/statd/statd.c(drop_privs): clear st_gid as well as st_uid
445 *utils/statd/svc_run.c(my_svc_run): remove usage of undocumented
447 *utils/statd/montor.c(sm_mon_1_svc): as above
448 *support/nfs/xlog.c(xlog): Changed xlog to use LOG_INFO instead of
449 LOG_DEBUG so debug messages will appear w/out any config changes
453 2005-09-02 Mike Frysinger <vapier@gentoo.org>
454 * utils/rquotad/rquota_server.c(getquotainfo): use explicit
455 struture-member copying rather than memcpy, as the element
456 sizes are the same on all architectures.
458 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
459 Add option to set rpcsec_gss debugging level (if available)
461 Changes to allow gssd/svcgssd to build when using Hiemdal Kerberos
462 libraries. Note that there are still run-time issues preventing
463 this from working when shared libraries for libgssapi and librpcsecgss
466 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
467 Remove the rpcsec_gss code and rely on an external library instead.
469 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
470 *utils/mountd/mountd.c:
471 mountd currently always returns AUTH_NULL and AUTH_SYS as the
472 allowable flavors in mount replies. We want it to also return gss
473 flavors when appropriate. For now as a hack we just have it always
474 return the KRB5 flavors as well.
476 *utils/mountd/cache.c:
478 When attempting to mount an NFSv4 pseudofilesystem (fsid=0) and the
479 actual exported directory does not exist on the server, rpc.mountd
480 doesn't check the directory exists (when fsidtype=1, i.e. using fsid,
481 but does check for fsidtype=0, i.e. using dev/ino). The non-existent
482 exported directory path with fsid=0 is written to the kernel via
483 /proc/net/rpc/nfsd.export/channel, which leads to path_lookup() to
484 return ENOENT (seems appropriate). Unfortunately, the new_cache
485 approach ignores errors returned when writing via the channel file so
486 that particular error is lost and the mount request is silently ignored.
488 Assuming it doesn't make sense to revamp the new_cache/up-call method to
489 not ignore returned errors, it seems appropriate to fix the case where
490 rpc.mountd doesn't check for the existence of an exported directory with
491 fsid= semantics. The following patch does this by moving the stat() up
492 so it is done for both fsidtype's. I'm not certain whether the other
493 tests need to be executed for fsidtype=1, but it doesn't appear to hurt
494 [Not exactly true: the comparison of inode numbers caused problems so
495 now it's kept for fsidtype=0 only].
497 Would it be also desirable to log a warning for every error, if any,
498 returned by a write to any of the /proc/net/rpc/*/channel files which
499 would otherwise be ignored (maybe under a debug flag)?
501 * gssd/mountd/svcgssd: Changes gssd, svcgssd, and mountd to ignore a
502 SIGHUP rather than dying.
504 * many: Remove the gssapi code and rely on an external library instead.
506 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
507 * utils/exportfs/exports.man: Document the "crossmnt" export export option
508 * utils/gssd/krb5_util.c:
509 Add better debugging and partially revert the function
510 check for gss_krb5_ccache_name.
512 For MIT Kerberos releases up to and including 1.3.1, we *must*
513 use the routine gss_krb5_ccache_name to get the K5 gssapi code
514 to use a different credentials cache.
516 For releases 1.3.2 and on, we want to use the KRB5CCNAME
517 environment variable to tell it what to use.
518 (A problem was reported where 1.3.5 was being used, our
519 code was using gss_krb5_ccache_name, but the underlying
520 code continued to use the first (or default?) credentials
521 cache. Switching to using the env variable fixed the problem.
522 I cannot recreate this problem.
524 *utils/gssd/krb5_util.c:
525 Andrew Mahone <andrew.mahone@gmail.com> reported that reiser4
526 always has DT_UNKNOWN. He supplied patch to move the check
527 for regular files after the stat() call to correctly find
528 ccache files in reiser4 filesystem.
530 Also change the name comparison so that the wrong file is
531 not selected when the substring comparison is done.
533 *utils/gssd/krb5_util.c:
534 Limit the set of encryption types that can be negotiated by
535 the Kerberos library to those that the kernel code currently
538 This should eventually query the kernel for the list of
541 *utils/gssd/gss_util.c, utils/svcgssd/svcgssd_main_loop.c:
542 Print more information in error messages to help debugging failures.
544 *utils/svcgssd/svcgssd_proc.c: Increase token buffer size and
545 update error handling so that a response is always sent.
547 *utils/svcgssd/svcgssd_proc.c: Add support to retrieve
548 supplementary groups.
551 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
553 Consolidate some of the Kerberos checking instead of repeating
554 the same things for MIT and Heimdal.
555 Also adds more checks to distinguish 32-bit from 64-bit
556 (mainly for gssapi.h)
557 Fix svcgssd Makefile so make TOP=../../ works correctly there.
558 Enable running a modern autoheader.
559 * utils/gssd/gss_oids.c: Use correct OID value for SPKM-3
560 * utils/gssd/gss_util.c: Fix build with older MIT releases that do not define GSS_C_NT_HOSTBASED_SERVICE
561 * utils/gssd/write_bytes.h, support/include/gssapi/gssapi.h:
562 Length of gss_buffer_desc is a size_t which is 64-bits on a
563 64-bit machine. Kernel code expects 32-bit integer for length.
564 Coerce length value into a 32-bit value when reading from or
565 writing to the kernel.
566 Change gssapi.h to use datatype size values obtained from
567 configure rather than hard-coded values.
568 * utils/idmapd/idmapd.c: The EV_INIT check here was wrong, and was
569 causing idmapd to become unresponsive to server requests after
571 * utils/idmapd/idmapd.c: Idmapd should flush the server id<->name
572 caches when its started.
574 2005-04-12 G. Allen Morris III <gam3@gam3.net>
576 * All Makefile: added TOP as needed for easier compile.
578 * utils/nfsstat/nfsstat.c: added NFS V4 support; added the -m
579 option; Added -2, -3, and -4 options; changed -a option to -v
580 option; added long options; changed default output to not
581 show V2 NFS statistics unless used.
583 * utils/nfsstat/nfsstat.man: Documented above changes; changed
584 authors email address; added BUGS section.
586 2005-04-07 Chip Salzenberg <chip@pobox.com>
588 * debian/changelog: Version 1.0.7-2.
590 2005-04-06 Chip Salzenberg <chip@pobox.com>
592 * config.guess, config.sub: Update.
594 * support/rpc/svc_auth_gss.c (_svcauth_gss): Avoid using a cast as
595 an lvalue, as it is non-portable.
597 * support/nfs/exports.c (parseopts): Accept "acl" option to mean
598 ~NFSEXP_NOACL, and "no_acl" to mean NFSEXP_NOACL.
599 (putexportent): Report NFSEXP_NOACL as "no_acl", and ~NFSEXP_NOACL
601 * utils/exportfs/exportfs.c (dump): Report NFSEXP_NOACL as
603 * utils/exportfs/exports.man: Document "no_acl".
605 2005-03-14 NeilBrown <neilb@cse.unsw.edu.au>
606 Denis Vlasenko <vda@ilport.com.ua>
607 * support/export/client.c(client_init and client_gettype):
608 treat N.N.N.N as a special case of MCL_SUBNETWORK instead of
611 2005-03-06 G. Allen Morris III <gam3@gam3.net>
612 * support/nfs/cacheio.c(readline): Could not read lines greater
613 than 128 bytes. [1157791]
614 * utils/exportfs/exports.man: Added a SEE ALSO section and
615 fixed 2 typos. [1018450]
617 2005-02-28 Trond Myklebust <trond.myklebust@fys.uio.no>
618 * utils/statd/rmtcall.c(statd_get_socket): If a port number is
619 explicitly given, make sure to try to bind to that.
621 2005-01-11 Chip Salzenberg <chip@pobox.com>
623 * debian/changelog: Version 1.0.7-1.
624 * debian/nfs-common.default (NEED_IDMAPD, NEED_GSSD):
625 Disable by default, on advice of upstream.
626 * debian/nfs-kernel-server.default (NEED_SVCGSSD):
629 * utils/svcgssd/Makefile (predep): Symbolically link duplicated
631 (distclean): Remove symlinks to duplicated files.
633 2004-12-17 NeilBrown <neilb@cse.unsw.edu.au>
636 * config.mk, configure.in: update version number, run autoconf
637 * configure.in: require nfsidmap.h if gss is enabled.
639 2004-12-10 NeilBrown <neilb@cse.unsw.edu.au>
642 * config.mk, configure.in: update version number, run autoconf
644 2004-12-10 Neil Brown <neilb@cse.unsw.edu.au>
645 * README : note dependancy on kerberos, libevent, and nfsidmap
646 * configure.in : fail if --enable-nfsv4 and libevent or
647 libnfsidmap are missing.
648 * configuyre.in: improve message if krb5 support is missing
650 2004-12-06 Paul Clements <paul.clements@steeleye.com>
651 * support/include/ha-callout.h: get return status from waitpid
653 * support/include/ha-callout.h: don't ignore SIGCHLD while waiting
654 for a callout to complete.
655 * utils/statd/statd.c(sigusr): print current start when re-reading
656 notify list due to SIGUSR1
657 * utils/statd/svc_run.c(my_svc_run): call change_state when
658 re-notifying clients.
660 2004-12-06 Marc Eshel <eshel@almaden.ibm.com>
661 * utils/statd/svc_run.c(my_svc_run): allow loop to exit when in
663 *utils/statd/rmtcall.c(statd_get_socket): if a hostname is given
664 to statd with -n, prefer it's IP address to the default for
667 2004-12-06 Bruce Allan <bwa@us.ibm.com>
668 * utils/mountd/auth.c(auth_reload) Clear the "my_client" cache on
669 an auth_reload to avoid old data getting used.
671 2004-12-03 NeilBrown <neilb@cse.unsw.edu.au>
672 Release 1.0.7-pre1 for testing
674 * config.mk, configure.in: update version number, run autoconf
676 2004-12-03 Trond Myklebust <trond.myklebust@fys.uio.no>
678 * utils/statd/statd.c(main): ignore SIGPIPE
680 2004-11-22 "J. Bruce Fields" <bfields@fieldses.org>
682 * tools/rpcdebug/rpcdebug.c: support aliases "nfsdebug" and
683 "nfsddebug" and update flag names.
684 * configure.in, nodist/* redhat/* nfs-utils.spec*: remove redhat
685 specific files (as no-one actually uses them, especially not
686 redhat), and the nodist /etc files (as they drift out-of-date, and
687 the debian directory provides a suitable example.
688 * utils/svcgssd_proc.c(get_ids): fix memory leak
689 * utils/svcgssd/svcgssd_proc.c: Rely on count of the number of
690 groups instead of using a special guard value to identify the end
692 * utils/idmapd/idmapd.c: don't allow Default domain and anon-uid
693 or -gid to be specified on command line.
694 * utils/idmapd/idmapd.c: improve error messages
695 * utils/idmapd/idmapd.c: Reopen nfsd files on sighup. Allows us
696 to start up client side only (even when nfsd module not loaded),
697 and then sighup later after insmodding nfsd module.
698 * utils/idmapd/idmapd.c: Make sure we catch all errors on
699 daemonizing by waiting for child to report succesfull startup
701 * utils/idmapd/idmapd.c: Let libnfsidmapd parse the idmapd.conf
702 file for the default domain, instead of doing that ourselves.
703 * utils/gssd/gssd_proc.c: Make sure we get an error when a gssd
705 * utils/gssd/gssd_proc.c: We were forgetting to restore the euid
706 on certain failures, which meant gssd could get stuck in a state
707 where it didn't have permissions to read the files in rpc_pipefs
709 * utils/gssd/gssd_proc.c: Use libnfsidmapd to map gss principals
711 * debian/nfs-kernel-server.default: Document the NEED_SVCGSSD
712 variable in /etc/default/nfs-kernel-server.
715 2004-11-22 NeilBrown <neilb@cse.unsw.edu.au>
717 * utils/exportfs/nfsd.man: corrected typo in .BR macro usage -
718 reported by Eric Raymond
720 2004-10-19 "J. Bruce Fields" <bfields@fieldses.org>
722 * support/gssapi/* support/rpc/* utils/gssd/* utils/svcgssd/* etc
723 initial support for GSSAPI authentication
725 2004-09-15 Neil Brown <neilb@cse.unsw.edu.au>
727 * utils/statd/monitor.c(sm_unmon_1_svc): is RESTRICTED_STATD, then
728 check IP address and force my_name to 127.0.0.1 to match
729 what happens in sm_mon_1_svc. This avoid spurious "erroneous
731 * utils/statd.monitor.c(sm_unmon_all_1_svc): likewise
733 2004-09-15 "J. Bruce Fields" <bfields@fieldses.org>
735 * Assorted changes to support "gss/*" style authentication
736 * utils/idmapd: new idmapd daemon for nfsv4 username lookup
738 2004-09-06 Trond Myklebust <trond.myklebust@fys.uio.no>
739 Neil Brown <neilb@cse.unsw.edu.au>
741 * utils/mountd/auth.c(auth_authenticate_internal): fix
742 uninitialsed variable problem (causes bad error messages).
744 2004-09-06 Paul Clements <paul.clements@steeleye.com>
745 Neil Brown <neilb@cse.unsw.edu.au>
747 * utils/mountd/mountd.c(main): support --ha-callout (-H) for
748 specifying a callout program
749 * utils/mountd/rmtab.c: Call ha_callout on mount/unmount
750 * utils/statd/monitor.c: Call ha_callout on add/del client
751 * utils/statd/rmtcall.c: as above
752 * utils/statd/statd.c: handle --ha-callout (-H)
753 * utils/statd/svc_run.c: call notify_hosts is we have received a
755 * support/include/ha-callout.h: define ha_callout function
758 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
759 * utils/mountd/cache.c(cache_process_req): clear fd after
760 processing so as not to confused libc/sunrpc into thinking
761 it need to do something with that fd.
763 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
765 * debian/nfs-kernel-server.init(start,stop) mount the nfsd
766 filesystem, if available, before starting nfs services, and
767 unmount it afterwards.
768 * etc/nodist/nfs-server: ditto
769 * etc/redhat/nfs.init: likewise
770 * etc/redhat/nfs: add "MOUNT_NFSD" flag to control above.
772 2004-06-08 NeilBrown <neilb@cse.unsw.edu.au>
774 * utils/exportfs/exportfs.c: Don't rmtab_read if new_cache, it
776 * support/nfs/cacheio.c(cache_flush): Change order in which caches
777 are flushed so that dependancies don't keep things in the cache
780 2004-03-18 Chip Salzenberg <chip@pobox.com>
782 * debian/changelog: Version 1.0.6-2.
784 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
785 from "J. Bruce Fields" <bfields@fieldses.org>
787 * utils/mountd/cache.c: call auth_reload to make sure auth data is
788 current before responding to kernel upcall.
790 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
791 Based on patch from Greg Banks <gnb@melbourne.sgi.com>
793 * utils/exportfs/exports.man: Document fsid= option.
795 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
799 * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
800 support/include, and depend in "predep"
801 * support/export/Makefile, tools/rpcgen/Makefile,
802 utils/statd/Makefile: add "predep" rule so that "make dep" works.
803 * Makefile: allow a simple "make" to run ./configure and "make dep"
805 * configure.in, nfs-utils.spec: Update version to 1.0.6
808 2003-09-12 Chip Salzenberg <chip@pobox.com>
810 * debian/changelog: Version 1.0.6-1.
812 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
814 * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
816 * utils/statd/statd.c(main): Ditto.
818 michael <michael@newdream.net> discovered that svc_setreqsize
819 in glibc can segfault if RLIMIT_NOFILE is bigger than
820 FD_SETSIZE, so a simple solution is to impose a hard limit.
822 2003-09-09 Chip Salzenberg <chip@pobox.com>
824 * debian/changelog: Version 1.0.5-3.
825 * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
826 on invalid reverse DNS.
827 * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
828 * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
829 * tools/rpcgen/rpc_parse.c (def_union): Likewise.
831 2003-08-22 Chip Salzenberg <chip@pobox.com>
833 * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
834 N_*, to avoid conflict with ISO C built-in log() function.
835 * utils/statd/*.c: Use note().
837 2003-08-20 Chip Salzenberg <chip@pobox.com>
839 * debian/changelog: Version 1.0.5-2.
841 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
843 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
846 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
848 * support/include/nfs/export.h, support/nfs/exports.c,
849 utils/exportfs/exports.c, utils/mountd/mountd.c: change
850 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
851 meaning. Also remove meaningless
852 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
854 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
856 * support/export/xtab.c, support/include/nfslib.h,
857 support/nfs/cacheio.c, support/nfs/nfssvc.c,
858 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
859 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
860 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
861 (nfs-utils-1.0.5-post2)
863 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
865 * support/nfs/nfsexport.c: open channel file O_WRONLY when
867 * utils/mountd/cache.c: maintain mountlist when new_cache is
868 active. Also use O_WRONLY for channel files.
869 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
870 rather than an nfs_export.
871 * utils/mountd/rmtab.c: ditto.
872 (nfs-utils-1.5.0-post1)
874 2003-07-24 Chip Salzenberg <chip@pobox.com>
876 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
877 use Debian security team's cleaner approach.
878 * debian/changelog: Version 1.0.5-1.
879 * debian/nfs-kernel-server.init: Cosmetic changes.
881 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
884 1.0.4 was a bit of a brown-paper-bag-release because of the extra
885 'free' in auth.c. So I'm releasing this just a few days later.
887 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
889 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
890 check if new_cache is enabled, error if not, flush and exit if it
892 * utils/exportfs/exportfs.man: Explain -f option and explain the
893 two different modes that exportfs can work in.
894 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
896 * utils/mountd/mountd.man: Record the change if default behaviour
898 * configure.in, nfs-utils.spec: update version to 1.0.5 and
901 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
903 * utils/mountd/mountd.c(main): getopt string fix for 'o'
904 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
905 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
907 * support/include/nfs/export.h: Reserve a bit for possible ACL
910 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
912 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
913 assorted changed to cope with section 7 of the manual.
914 * configure.in, nfs-utils.spec: Update version to 1.0.4
917 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
918 baseline for 2.6 and 2.8. I.e. it should continue to work right
919 through the 2.8 (or 3.0) kernel series. Previous releases wont.
921 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
922 Steve Dickson <SteveD@redhat.com>
925 * utils/statd/statd.c: create a pidfile with pid of statd, and
926 truncate it when statd exists.
927 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
928 and warn if this is root.
929 * utils/statd/statd.c: when statd forks, connect child to parent
930 with a pipe, and send a byte down the pipe once the child is
932 * Makefile: create and chown sm, sm.bak, state when "make install"
933 * configure.in: add --with-statduser= option which defaults to
934 "rpcuser" or "nobody"
935 * config.mk.in: pass "statduser" through to Makefile
937 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
939 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
940 used as the size was changed somewhere in 2.5.60-2.5.70. Without
941 this nfs-utils compiles against 2.6 headers will not work on a
944 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
946 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
947 set number of threads by writing to there. This means it will
948 still work when the syscall interface goes away in 2.7.
950 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
951 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
953 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
954 so as to only export the wildcard exports that were asked for.
955 * support/export/export.c(export_allowed): changed to return the
956 nfs_export rather than a "struct exportent", as m_changed is
958 * support/export/rmtab.c(rmtab_read): modified to deal with
959 interface change for export_allowed(), and enhanced to preserve
960 m_changed flag when a wild-card export causes the creation of
961 a non-wildcard export.
963 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
964 Steve Dickson <SteveD@redhat.com>
966 * utils/mountd/mountd.man: Add valid kinds of debugging.
967 * utils/mountd/mountd.c(main): ignore SIGPIPE
968 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
969 we don't get warnings about unavailable stats that weren't asked
972 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
974 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
975 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
976 'forever', so things disappear out of the cache rather than just
979 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
981 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
984 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
986 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
987 etc/redhat/nfs.init: when checking if V3 is supported, make sure
988 nfs server 'knows' about 127.0.0.1 first.
990 2003-06-10 Chip Salzenberg <chip@pobox.com>
992 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
993 * debian/changelog: Version 1.0.3-2.
995 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
996 NeilBrown <neilb@cse.unsw.edu.au>
998 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
999 long long to avoid overflow when printing stats.
1001 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
1003 * support/export/export.c, support/include/nfslib.h,
1004 support/nfs/export.c, utils/exportfs/exportfs.c,
1005 utils/mountd/mountd.c: new export option "mountpoint"
1006 If no path is given, then the export point must be a
1007 mount point, or it won't be exported. If a path is
1008 given (e.g. mountpoint=/path) then that path must be
1009 a mountpoint or the exportpoint won't be exported.
1010 * utils/exportfs/exportfs.man: document mountpoint option.
1011 * support/misc/mountpoint.c: New file with is_mountpoint()
1012 to determine if something is a mountpoint.
1014 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
1016 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
1017 argument as we might not be getting the filehandle for the
1019 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
1020 cache_get_filehandle.
1021 * utils/mountd/mountd.c(get_rootfh): check export point and
1022 requested directory are on the same filesystem, and complain if
1025 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
1027 * utils/mountd/auth.c(auth_authenticate_internal): make sure
1028 portnumber is still checked when using new cache lookup.
1030 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
1032 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
1033 Don't actually talk to kernel when new cache is in effect, except
1035 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
1036 * support/export/xtab.c: Only rename new xtab into place if it has
1037 changed, thus preserving modify date for exportfs to use when
1039 * support/nfs/cacheio.c: Add cache_flush
1040 * support/export/xtab.c: Only rename new xtab into place if it has
1041 changed, thus preserving modify date for exportfs to use when
1044 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
1046 * support/export/client.c: Add client_compose, client_member to
1047 handle new composite client names
1048 * support/include/exportfs.h: Declare above functions.
1049 * utils/mountd/auth.c: use client_compose to determine calling
1050 client if new cache is being used.
1051 * utils/mountd/auth.c: call cache_export to export a filesystem if
1052 new_cache, check if new cache is used, and call my_svc_run instead
1054 * utils/mountd/svc_run.c: new file defining my_svc_run
1055 * utils/mountd/cache.c: new file for handling cache upcalls.
1056 * support/nfs/cacheio.c(check_new_cache): new function to check if
1057 new cache should be used.
1060 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
1062 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
1063 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
1064 * utils/exportfs/exportfs.c(dump): ditto
1066 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
1068 * support/export/hostname.c(get_reliable_hostbyaddr): new function
1069 to get host name from address with full checking of authenticity.
1070 * support/include/misc.h: declare above function
1071 * utils/mountd/auth.c(auth_authenticate_internal): remove all
1072 logic for authenticating address.
1073 * utils/mountd/auth.c(auth_authenticate): call new
1074 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
1077 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
1079 * tools/rpcgen/rpc_main.c(find_cpp): removed
1080 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
1081 then try hard-coded paths.
1083 2003-03-26 Chip Salzenberg <chip@pobox.com>
1085 * debian/changelog: Version 1.0.3-1.
1087 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
1089 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
1090 "const char*", not "char*".
1092 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
1094 * configure.in (VERSION): Set to "1.0.3".
1095 * nfs-utils.spec: Likewise.
1096 * configure: Regenerated.
1098 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
1100 * support/nfs/cacheio.c: New File - support for read/writing
1101 to export cache in /proc/rpc/*/channel
1102 * support/nfs/Makefile: compile cacheio.c
1103 * support/include/nfslib.h: declare cacheio.c functions
1104 * support/nfs/nfsexport.c: export and unexport through
1105 /proc/rpc/*/channel if possible, as old syscall interface
1106 may not survive into 2.6 on all architectures.
1108 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
1109 Ben Leslie <benno@sesgroup.net>
1111 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
1112 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
1113 former would incorectly ignore defport if the application
1114 explicitly set __rpcfdtype. The later is sufficient to avoid the
1115 special handling in the case where stdin is an internet socket.
1117 * utils/mountd/mountd.c(main): Add 'n' to option list in
1118 getopt_long as this is a short form of --no-tcp which want being
1121 2003-02-12 Chip Salzenberg <chip@pobox.com>
1123 * debian/changelog: Version 1.0.2-2.
1125 2002-11-27 Chip Salzenberg <chip@pobox.com>
1127 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
1128 overflow bug. Reformat per rest of source file.
1130 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
1132 * utils/exportfs/exports.man: Correct notes about whether the wild
1133 card characters match a period. They do.
1135 2002-10-15 Juan Gomez <juang@us.ibm.com>
1137 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
1139 (mountlist_add): Call slink_safe_rename instead of rename.
1141 2002-10-11 H.J. Lu <hjl@lucon.org>
1143 * support/include/exportfs.h (export_errno): New.
1145 * support/nfs/exports.c: Include <errno.h>.
1146 (export_errno): New.
1147 (getexportent): Set export_errno to EINVAL for bad option.
1148 (parseopts): Likewise.
1149 Report the location of the default sync/async option.
1151 * utils/exportfs/exportfs.c (main): Initialize export_errno to
1152 0. Return export_errno.
1154 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
1155 NeilBrown <neilb@cse.unsw.edu.au>
1157 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
1158 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
1160 2002-09-16 Chip Salzenberg <chip@pobox.com>
1162 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
1164 2002-09-15 Chip Salzenberg <chip@pobox.com>
1166 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
1167 socket, as occurs when run from sshd.
1168 * debian/changelog: Version 1.0.2-1.
1170 2002-09-12 H.J. Lu <hjl@lucon.org>
1172 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
1175 2002-09-12 H.J. Lu <hjl@lucon.org>
1177 * configure.in: Remove checking svctcp_socket and svcudp_socket.
1178 * configure: Regenerated.
1180 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
1181 (HAVE_SVCUDP_SOCKET): Removed.
1183 * support/include/nfslib.h: Undo the last change.
1185 2002-09-12 H.J. Lu <hjl@lucon.org>
1187 * support/include/nfslib.h (svctcp_socket): Protect it with
1189 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
1191 2002-09-12 H.J. Lu <hjl@lucon.org>
1193 * configure.in (VERSION): Set to "1.0.2".
1194 * configure: Regenerated.
1195 * nfs-utils.spec: Likewise.
1197 2002-09-12 H.J. Lu <hjl@lucon.org>
1199 * configure.in: Check svctcp_socket and svcudp_socket.
1200 * configure: Regenerated.
1202 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
1203 (HAVE_SVCUDP_SOCKET): New.
1205 * support/include/nfslib.h (svctcp_socket): New.
1206 (svcudp_socket): New.
1208 * support/nfs/Makefile (OBJS): Add svc_socket.o.
1210 * support/nfs/svc_socket.c: New.
1212 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
1213 svcudp_socket if port is unspecified.
1215 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
1217 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
1218 (killer): New. Signal handler to unregister.
1219 (main): Use killer. Call svcudp_socket to get the default
1222 2002-09-02 Juan Gomez <juang@us.ibm.com>
1223 NeilBrown <neilb@cse.unsw.edu.au>
1225 Add -N option to statd to run in notify-only mode.
1227 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
1228 * utils/statd/statd.man: document -N
1229 * utils/statd/statd.c: enabled -N, largely exists but needed to be
1230 uncommented and completed
1232 2002-09-02 Juan Gomez <juang@us.ibm.com>
1233 NeilBrown <neilb@cse.unsw.edu.au>
1235 statd to have " -P directory" arg to use that directory instead
1236 of /var/lib/nfs. This is useful for fail-over clusters.
1238 * utils/statd/statd.h: define SM_DIR etc as var, not const.
1239 * utils/statd/statd.c: define "-P" option to set SM_*
1241 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
1242 a constant any more.
1243 * utils/statd/notify.c: ditto.
1244 * utils/statd/statd.man: document -P option.
1246 2002-08-26 Chip Salzenberg <chip@pobox.com>
1248 * utils/nfsd/nfsd.man: Fix typo.
1249 * debian/changelog: Version 1.0.1-1.
1251 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
1253 * let parseopts know if /etc/exports was being read or not,
1254 and have it only print "no sync or async" warning in that case.
1256 2002-05-06 Tom McNeal <trmcneal@attbi.com>
1257 NeilBrown <neilb@cse.unsw.edu.au>
1259 * utils/nfsstat/nfsstat.c: Handle differing format for
1260 /proc/net/rpc/nfsd between pre and post 2.4.0
1262 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
1263 James Pearson <james-p@moving-picture.com>
1265 * support/nfs/rmtab.c(fendrmtabent): sync changes to
1266 storage before returning, as this is critical state
1268 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
1269 H.J. Lu <hjl@lucon.org>
1271 * etc/redhat/nfs: New.
1273 2002-04-08 H.J. Lu <hjl@lucon.org>
1275 * etc/redhat/nfs.init: Updated.
1277 * nfs-utils.spec.in: Updated.
1278 * nfs-utils.spec: Regenerated.
1280 * utils/mountd/mountd.c (longopts): Fix a typo.
1282 * utils/mountd/mountd.man: Updated.
1284 2002-04-07 H.J. Lu <hjl@lucon.org>
1286 * etc/redhat/nfslock.init (restart): Just do stop and start.
1288 * etc/redhat/nfs.init: Fix a typo.
1290 2002-04-07 H.J. Lu <hjl@lucon.org>
1292 * configure.in (VERSION): Set to "1.0.1".
1293 * configure: Regenerated.
1294 * nfs-utils.spec: Likewise.
1296 * README: Updated for 1.0.1.
1298 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
1299 H.J. Lu <hjl@lucon.org>
1301 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
1303 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
1304 NeilBrown <neilb@cse.unsw.edu.au>
1306 Add support for fsid=nn export option so that device
1307 numbers don't go in filehandles.
1308 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
1309 is set, pass the fsid in-place of the device number
1310 * support/nfs/exports.c: parse and print fsid= option.
1311 Also check if efname has been set, and use "command line"
1312 instead in error messages.
1313 Also, use strtol instead of atoi for anon[ug]id= so that
1314 bad numbers cause errors.
1316 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
1317 NeilBrown <neilb@cse.unsw.edu.au>
1319 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
1320 flag so that "sync" becomes the default.
1321 Check that either "sync" or "async" is given as an option
1322 and warn if neither are present
1323 * utils/exportfs/exports.man: change documentation for "sync"
1324 to be documentation for "async".
1325 * utils/exportfs/exportfs.man: note that "sync" is the default
1329 2002-01-02 Chip Salzenberg <chip@pobox.com>
1331 * support/export/nfsctl.c (expsetup): Don't export entries that
1332 specify id mappings not supported by the kernel. No extant kernel
1333 supports any significant mapping, only 'identity' (i.e. none).
1334 When other mappings are supported, this code will need changing.
1335 * debian/changelog: Version 1.0-2.
1337 2001-12-26 Chip Salzenberg <chip@pobox.com>
1339 * nfs-utils.spec (Version): Set to "1.0".
1340 * configure.in (VERSION): Likewise.
1341 * configure: Regenerated.
1342 * README: Rewritten.
1343 * debian/changelog: Version 1.0-1.
1345 * utils/exportfs/exports.man: Emphasize the need for options to
1346 immediately follow client names. Explain that wildcards don't
1347 usually work on addresses, but may work when reverse DNS fails.
1348 Comment out a leftover TP that was TPing our indentation.
1349 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
1350 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
1351 * debian/changelog: Version 0.3.3-6.
1353 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
1355 * support/export/client.c(client_lookup): If a host has multiple
1356 IP addresses, then we must always use the result of a
1357 gethostbyname, not that of gethostbyaddr for exporting
1359 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
1361 * support/export/client.c (client_lookup): use strcasecmp when
1362 comparing host names
1363 * support/nfs/export.c (getexportent): add fromkernel arg and use
1364 different defaults as kernels prior to 2.4.11 assume different
1365 defaults in /proc/fs/nfs/exports
1366 * support/include/nfslib.h, support/export/export.c,
1367 support/export/xtab.c: support extra "fromkernel" arg for
1370 2001-12-13 Chip Salzenberg <chip@pobox.com>
1372 * debian/changelog: Version 0.3.3-5.
1374 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
1376 * support/nfs/xio.c (xskip): Call `xungetc' instead of
1377 `ungetc' to keep x_line more properly.
1379 2001-11-26 Chip Salzenberg <chip@pobox.com>
1381 * utils/showmount/showmount.c (main): Don't assume that strings
1382 starting with digits are IP addresses.
1383 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
1384 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
1385 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
1386 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
1387 man pages: We check host names *and* addresses with tcpwrappers.
1388 * debian/changelog: Version 0.3.3-4.
1390 2001-11-21 Chip Salzenberg <chip@pobox.com>
1392 * support/nfs/clients.c (cfname): Added: current clients file name.
1393 (setnfsclntent): Set it.
1394 ({get,end}nfsclntent, syntaxerr): Use it.
1395 * support/nfs/exports.c (efname): Added: current exports file name.
1396 (setnfsexportent): Set it.
1397 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
1398 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
1399 * debian/changelog: Version 0.3.3-3.
1401 2001-10-11 Chip Salzenberg <chip@pobox.com>
1403 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
1404 * debian/changelog: Version 0.3.3-2.
1406 2001-10-08 Chip Salzenberg <chip@pobox.com>
1408 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
1409 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
1410 * utils/mountd/mountd.man: Update paths to /var/lib.
1411 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
1413 2001-10-06 Preston Brown <pbrown@redhat.com>
1415 * utils/nfsstat/nfsstat.man: Updated.
1417 2001-09-24 H.J. Lu <hjl@lucon.org>
1419 * configure.in (VERSION): Set to "0.3.3".
1420 * configure: Regenerated.
1421 * nfs-utils.spec: Likewise.
1423 * README: Updated for 0.3.3.
1425 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
1427 Arrange that "exportfs -au" never does DNS lookup:
1429 * support/export/client.c (client_lookup) : add "canonical"
1430 flag which says that the hostname is known to be canonical, so
1433 * support/export/export.c (export_create) : add "canonical"
1434 flag to be passed down to client_lookup
1435 * support/export/export.c (export_lookup) : Likewise
1437 * support/export/xtab.c (xtab_read) : pass appropriate
1438 "canonical" flag to export_lookup and export_create:
1439 set if reading list of filesystems currently exports
1442 * support/export/export.c (export_read) : pass 0 as
1443 "canonical" flag to export_lookup and export_create
1444 * support/export/rmtab.s (rmtab_read) : Likewise
1446 * support/include/exportfs.h : redeclare various routines
1447 to have "canonical" flag
1449 * utils/exportfs/exportfs.c (main) : redo logic for
1450 "-au" to read in what is currently exported, but never even
1451 look at what "should" be exported.
1453 * utils/exportfs/exportfs.c (unexportall) : remove this
1454 routine. Functionality is completely included in
1457 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
1458 flag to zero in calls to export_lookup and export_create.
1461 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
1462 Anne Milicia <milicia@missioncriticallinux.com>
1464 * support/export/client.c (client_lookup) call gethostbyadd
1465 to make sure that we have a canonical hostname, even for
1467 * utils/exportfs/exportfs.c (exportfs) Likewise
1469 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1471 * support/nfs/exports.c (putexportent): \octal quote any spaces
1473 * support/nfs/xio.c (xgettok): recognise double-quote and
1474 \octal quoting in path names
1475 * utils/exportfs/exports.man: document quoting conventions
1478 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1480 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
1481 change from 2000-08-02: It causes problems if someone exports
1482 to both a hostname and IP addresses. nfs-utils must be
1483 consistant about the canonical name that it chooses.
1485 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
1486 H.J. Lu <hjl@lucon.org>
1488 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
1490 * utils/statd/statd.c (longopts): Add "name".
1491 (usage): Add "-n/--name".
1492 (main): Set MY_NAME with "-n/--name".
1494 * utils/statd/state.c (change_state): Set MY_NAME only if it
1497 * utils/statd/statd.man: Updated for "-n/--name".
1499 2001-07-26 H.J. Lu <hjl@lucon.org>
1501 * nfs-utils.spec (Release): Set to 8.
1503 2001-07-25 H.J. Lu <hjl@lucon.org>
1505 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
1508 2001-06-27 H.J. Lu <hjl@lucon.org>
1510 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
1512 2001-06-27 H.J. Lu <hjl@lucon.org>
1514 * utils/rquotad/rquota_server.c: Don't call statfs () for
1515 the block size. Use BLOCK_SIZE instead.
1517 2001-06-27 H.J. Lu <hjl@lucon.org>
1519 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
1520 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
1522 * configure.in (enable_nfsv3): Set to yes by default.
1523 (--enable-rquotad): Added
1524 (AC_PROG_CXX): Removed.
1525 (AC_OUTPUT): Add utils/Makefile.
1526 (CC_FOR_BUILD): Renamed from BUILD_CC.
1527 * configure: Regenerated.
1529 * utils/Makefile: Removed.
1531 * utils/Makefile.in: New.
1533 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
1535 (CC_FOR_BUILD): Renamed from BUILD_CC.
1536 * nfs-utils.spec: Regenerated.
1538 2001-06-15 Chip Salzenberg <chip@debian.org>
1540 * debian/changelog: Version 0.3.2-2.
1541 * debian/*.init: Minor fixes.
1543 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
1545 * etc/nodist/nfs-server: Fixed a bug where the script would
1546 disable mounts from NFSv3 clients if NFSv3 is present.
1548 2001-06-05 H.J. Lu <hjl@lucon.org>
1550 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
1551 (main): Support --descriptors/-o to set the limit of the number
1552 of open file descriptors.
1555 * utils/mountd/mountd.man: Updated for --descriptors/-o.
1557 2001-06-04 H.J. Lu <hjl@lucon.org>
1559 * nfs-utils.spec (Release): Set to 6.
1561 2001-05-28 H.J. Lu <hjl@lucon.org>
1563 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
1564 * utils/mountd/mountd.c (main): Likewise.
1565 * utils/nfsd/nfsd.c (main): Likewise.
1566 * utils/rquotad/rquota_svc.c (main): Likewise.
1568 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
1570 * support/export/client.c (client_check): Check IP address
1573 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
1575 * support/export/client.c (client_gettype): Treat `*' as
1578 2001-04-22 H.J. Lu <hjl@lucon.org>
1580 * nfs-utils.spec.in: Fix a typo.
1581 * nfs-utils.spec: Regenerated.
1583 2001-04-21 H.J. Lu <hjl@lucon.org>
1585 * nfs-utils.spec.in: Fix cross build.
1586 * nfs-utils.spec: Regenerated.
1587 (Release): Set to 5.
1589 2001-04-18 H.J. Lu <hjl@lucon.org>
1591 * nfs-utils.spec.in: Support cross build.
1592 * nfs-utils.spec: Regenerated.
1593 (Release): Set to 4.
1596 * config.guess: New.
1598 * config.mk.in (BUILD_CC): New.
1599 (CC): Set to $(BUILD_CC) if BUILD is defined.
1602 (RANLIB): Set to @RANLIB@.
1604 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
1605 * configure: Regenerated.
1607 * tools/rpcgen/Makefile (BUILD): Set to true.
1609 2001-04-01 Chip Salzenberg <chip@valinux.com>
1611 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
1612 redundant, and sometimes broken, declaration of svc_fdset;
1614 * support/nfs/rpcmisc.c (closedown): Likewise.
1616 2001-03-21 H.J. Lu <hjl@lucon.org>
1618 * nfs-utils.spec: Regenerated.
1619 (Release): Set to 3.
1621 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
1623 * utils/statd/statd.c (main): make sure file descriptors 0-2
1624 are open to /dev/null.
1626 2001-03-21 H.J. Lu <hjl@lucon.org>
1628 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
1629 * support/nfs/rpcmisc.c: Likewise.
1630 * utils/rquotad/rquota_svc.c: Likewise.
1631 * utils/rquotad/rquotad.man: Likewise.
1632 * utils/statd/Makefile: Likewise.
1633 * utils/statd/rmtcall.c: Likewise.
1634 * utils/statd/simulate.c: Likewise.
1635 * utils/statd/statd.c: Likewise.
1636 * utils/statd/statd.man: Likewise.
1638 2001-03-11 H.J. Lu <hjl@lucon.org>
1640 * configure.in (RELEASE): New. Default to 1, set by
1641 --with-release=XXX. Substitute nfs-utils.spec.
1642 * nfs-utils.spec.in (Release): Set to @RELEASE@.
1643 * configure: Regenerated.
1644 * nfs-utils.spec: Likewise.
1646 2001-03-11 H.J. Lu <hjl@lucon.org>
1648 * utils/rquotad/rquotad.man: Fix a typo.
1650 2001-03-11 H.J. Lu <hjl@lucon.org>
1652 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
1653 * support/nfs/rpcmisc.c: Likewise.
1654 * utils/rquotad/rquota_svc.c: Likewise.
1655 * utils/rquotad/rquotad.man: Likewise.
1656 * utils/statd/Makefile: Likewise.
1657 * utils/statd/rmtcall.c: Likewise.
1658 * utils/statd/simulate.c: Likewise.
1659 * utils/statd/statd.c: Likewise.
1660 * utils/statd/statd.man: Likewise.
1662 2001-03-10 H.J. Lu <hjl@lucon.org>
1664 * configure.in (VERSION): Set to "0.3.2".
1665 * configure: Regenerated.
1666 * nfs-utils.spec: Likewise.
1668 * README: Updated for 0.3.2.
1670 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
1672 * utils/rquotad/rquotad.man: Updated for -p.
1673 * utils/statd/statd.man: Likewise.
1675 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
1677 * support/nfs/rpcmisc.c: export makesock()
1679 * support/include/rpcmisc.h (makesock): Declared.
1681 * utils/rquotad/rquota_svc.c: added longopts, added support for
1682 specifying the port to bind to on the command line.
1684 * utils/statd/statd.c: ditto, also specify port used for
1685 outgoing connections.
1686 (do_regist): Removed.
1688 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
1689 get_socket. Make it extern.
1691 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
1692 instead of do_regist.
1694 * utils/statd/Makefile (LIBS): link with our own libnfs
1696 2001-03-09 H.J. Lu <hjl@lucon.org>
1698 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
1699 * etc/nodist/nfs-client: Likewise.
1701 2001-02-26 Chip Salzenberg <chip@valinux.com>
1703 * debian/changelog: Version 0.3.1-1.
1704 * Mention upstream source and license in copyright file.
1705 * Add build-Depends for debhelper and libwrap0-dev.
1707 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
1709 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
1710 * etc/nodist/nfs-client: Likewise.
1712 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
1714 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
1717 2001-02-17 Patrick J. LoPresti <patl@curl.com>
1719 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
1722 2001-02-14 H.J. Lu <hjl@lucon.org>
1724 * utils/statd/rmtcall.c: Include <time.h>.
1725 * utils/statd/svc_run.c: Likewise.
1727 2001-02-14 H.J. Lu <hjl@lucon.org>
1729 * configure.in (VERSION): Set to "0.3.1".
1730 * configure: Regenerated.
1731 * nfs-utils.spec: Likewise.
1733 * README: Updated for 0.3.1.
1735 2001-02-14 H.J. Lu <hjl@lucon.org>
1737 * support/nfs/rpcmisc.c: Include <time.h>.
1739 2001-02-14 Chip Salzenberg <chip@valinux.com>
1741 * debian/control: Change priority of nhfsstone package to 'extra'.
1743 2001-02-12 Chip Salzenberg <chip@valinux.com>
1745 * debian/changelog: Version 0.3-2.
1747 2001-02-02 H.J. Lu <hjl@lucon.org>
1749 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
1751 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
1752 out SO_SNDBUF/SO_RCVBUF.
1753 (rpc_init): Remove bufsize and remove socksz in calls to
1756 * utils/mountd/mountd.c (main): Remove bufsize in calls to
1759 2001-01-28 Chip Salzenberg <chip@valinux.com>
1761 * debian/changelog: Version 0.3-1.
1763 2001-01-25 H.J. Lu <hjl@lucon.org>
1765 * configure.in (VERSION): Set to "0.3".
1766 * configure: Regenerated.
1767 * nfs-utils.spec: Likewise.
1769 * README: Updated for 0.3.
1771 2001-01-25 H.J. Lu <hjl@lucon.org>
1773 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
1775 2001-01-20 Chip Salzenberg <chip@valinux.com>
1777 * support/include/xio.h (xgetc): Declare to return int.
1778 * support/nfs/xio.c (xgetc): Return int.
1779 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
1780 * utils/statd/statd.c (main): Use int for value of getopt.
1781 * debian/changelog: Version 0.2.1-5.
1783 2000-12-10 Chip Salzenberg <chip@valinux.com>
1785 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
1786 program and procedure numbers of kernel lockd's callback. Also,
1787 besides the old (and broken) procedure #24, allow #16 per Trond.
1789 2000-12-03 Chip Salzenberg <chip@valinux.com>
1791 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
1792 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
1793 * debian/changelog: Version 0.2.1-4.
1795 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
1797 * utils/mountd/auth.c (auth_authenticate): Log the bad path
1800 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
1802 * support/nfs/exports.c (getexportent): Check for host name
1803 without option, or options without hostname, and print a warning,
1804 as this is most likely a typo.
1806 2000-11-19 Chip Salzenberg <chip@valinux.com>
1808 * debian/control: Add dependency on portmap.
1809 * debian/changelog: Version 0.2.1-3.
1811 2000-11-10 H.J. Lu <hjl@lucon.org>
1813 * nfs-utils.spec.in: Don't use libtool.
1814 Add ChangeLog and COPYING to doc.
1815 * nfs-utils.spec: Rebuild.
1817 2000-11-09 H.J. Lu <hjl@lucon.org>
1819 * etc/redhat/nfs.init (start): Back out the last change.
1821 2000-11-09 H.J. Lu <hjl@lucon.org>
1823 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
1824 TCP is not supported by kernel.
1826 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
1828 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
1829 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
1831 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
1833 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
1835 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
1836 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
1837 callbacks to local lockd.
1839 2000-10-18 Scott McDermott <mcdermot@questra.com>
1841 * utils/exportfs/exports.man: Updated for CIDR netmask.
1843 2000-10-17 Scott McDermott <mcdermot@questra.com>
1845 * support/export/client.c (client_init): Support CIDR netmask
1848 2000-10-11 H.J. Lu <hjl@lucon.org>
1850 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1851 * configure: Rebuilt.
1853 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
1855 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1856 "/var/lib/nfs/state".
1858 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
1860 * utils/statd/statd.h (run_mode): New global bitmask of runtime
1861 behaviors: fg/bg, logging, etc.
1862 * utils/statd/statd.c: New command line options: -V -h -? -d .
1863 * utils/statd/statd.man: Update for changes to statd.
1865 * utils/statd/log.h (log_init): Remove parameter of function; use
1866 global variable "name_p" instead.
1867 * utils/statd/log.c: Add support for logging to stderr.
1869 * utils/statd/notlist.c: Partially rewrite notify list handling
1870 functions. Eliminate run-off-end-of-list bug when calling
1871 nlist_insert_timer. Add lots of comments.
1873 2000-09-27 H.J. Lu <hjl@lucon.org>
1875 * README: Updated for RedHat 7.0.
1877 2000-09-27 H.J. Lu <hjl@lucon.org>
1879 * nfs-utils.spec: Rebuild.
1881 2000-09-27 H.J. Lu <hjl@lucon.org>
1883 * README: Updated for 0.2.1.
1885 2000-09-27 H.J. Lu <hjl@lucon.org>
1887 * nfs-utils.spec.in: Updated to use rpm macros and support
1890 2000-09-25 H.J. Lu <hjl@lucon.org>
1892 * configure.in (VERSION): Set to "0.2.1".
1893 * configure: Regenerated.
1894 * nfs-utils.spec: Updated.
1896 2000-09-25 H.J. Lu <hjl@lucon.org>
1898 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1899 non-NULL hostent is always returned.
1901 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1903 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1904 have an executable (i.e. kernel threads)
1906 2000-09-01 H.J. Lu <hjl@lucon.org>
1908 * README: Updated for 0.2.
1910 2000-09-01 Jay Weber <jweber@valinux.com>
1912 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1913 supporting version 3 of nfs if available, else it will fall back to
1914 version 2 support only.
1916 2000-08-30 H.J. Lu <hjl@lucon.org>
1918 * configure.in (VERSION): Set to "0.2".
1919 * configure: Regenerated.
1920 * nfs-utils.spec: Updated.
1922 2000-08-25 H.J. Lu <hjl@lucon.org>
1924 * support/misc/tcpwrapper.c (logit): Modify the log output.
1926 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1928 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1929 utils/mountd/mountd.man: updated
1931 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1932 * utils/rquotad/Makefile: fix comment
1934 * support/misc/tcpwrapper.c (logit): added comment about waiting
1935 for the children after fork()
1937 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1938 zombies behind (from logit()'s fork)
1939 * utils/rquotad/rquota_svc.c (main): ditto
1940 * utils/statd/statd.c (main): ditto
1942 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1943 to check_default instead of 0, for prognum
1945 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1946 to check_default instead of 0, for prognum
1948 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1949 HAVE_TCP_WRAPPER is defined.
1950 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1951 defined. Reject an RPC call if check_default () fails.
1953 2000-08-25 H.J. Lu <hjl@lucon.org>
1955 * support/include/tcpwrapper.h: New for the tcp wrapper
1957 * support/misc/Makefile: Likewise.
1958 * support/misc/from_local.c: Likewise.
1959 * support/misc/tcpwrapper.c: Likewise.
1961 * aclocal.m4 (AC_TCP_WRAPPER): New.
1962 * configure.in: Use it. Substitute LIBWRAP.
1963 * configure: Rebuilt.
1965 * config.mk.in (LIBNSL): New.
1966 (LIBWRAP): Likewise.
1968 * support/Makefile (SUBDIRS): Add misc.
1970 * support/lib/Makefile (LIBS): Add libmisc.a.
1972 * utils/rquotad/Makefile (LIBS): Add
1974 -lmisc $(LIBWRAP) $(LIBNSL)
1976 * utils/statd/Makefile (LIBS): Likewise.
1978 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1979 HAVE_TCP_WRAPPER is defined.
1980 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1981 defined. Reject an RPC call if check_default () fails.
1983 * utils/statd/statd.c: Include "tcpwrapper.h" if
1984 HAVE_TCP_WRAPPER is defined.
1985 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1986 check_default () before calling sm_prog_1 (). Define it as
1987 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1989 2000-08-25 Chip Salzenberg <chip@valinux.com>
1991 * debian/*: Complete Debian build support.
1992 * etc/debian/*: Remove.
1994 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1996 * support/export/client.c(client_check): removed the "dot+1" as a
1997 ypdomain argument to innetgr as this is entirely bogus.
1998 It should always be NULL.
2000 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
2002 * support/export/xtab.c(xtab_read): introduce new mode for
2003 reading xtab. i.e. a list of exports that might be known to the
2004 kernel, or might not. These are flagged as m_exported == -1
2005 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
2006 value "2" for xtab, meaning don't trust this too much.
2007 * support/include/exportfs.h(struct mexport): changed m_exported
2008 from one bit to an int so that it can hold new value
2009 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
2010 kernel if it is uncertain whether the kernel knows (m_exported == -1)
2011 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
2014 * support/nfs/xio.c(xflock): added O_CREAT when getting
2015 a write lock so that missing files aren't fatal.
2017 * etc/debian/nfs-common: new file from "potato"
2018 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
2020 2000-08-09 H.J. Lu <hjl@lucon.org>
2022 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
2023 startup to ensure all existing clients work fine.
2025 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
2026 to xtab_read () for reading _PATH_XTAB.
2028 2000-08-02 H.J. Lu <hjl@lucon.org>
2030 * utils/mountd/auth.c (auth_authenticate_internal): Try to
2031 avoid the reverse name lookup.
2033 2000-07-04 H.J. Lu <hjl@lucon.org>
2035 * utils/statd/log.c: Include <stdlib.h> for exit ().
2037 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
2040 2000-07-04 H.J. Lu <hjl@lucon.org>
2042 * configure.in (VERSION): Set to "0.1.9.1".
2043 * configure: Regenerated.
2044 * nfs-utils.spec: Updated.
2048 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
2050 * support/export/hostname.c (hostent_dup): Handle the NULL
2053 2000-07-03 H.J. Lu <hjl@lucon.org>
2055 * README: Update the util-linux requirement.
2057 2000-07-03 H.J. Lu <hjl@lucon.org>
2059 * configure.in (VERSION): Set to "0.1.9".
2060 * configure: Regenerated.
2061 * nfs-utils.spec: Updated.
2065 2000-07-03 H.J. Lu <hjl@lucon.org>
2067 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
2068 stop to ensure all clients can still access the server
2069 before it is shutdown.
2071 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
2073 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
2074 calls with format string.
2076 2000-06-28 Chip Salzenberg <chip@valinux.com>
2078 * utils/statd/log.c (log): Call syslog with format string.
2080 2000-06-27 H.J. Lu <hjl@lucon.org>
2082 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
2083 instead of OPEN_MAX.
2085 2000-06-27 H.J. Lu <hjl@lucon.org>
2089 2000-06-27 H.J. Lu <hjl@lucon.org>
2091 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
2092 startup to ensure all existing clients are exported.
2094 * configure.in (VERSION): Set to "0.1.8.2".
2095 * configure: Regenerated.
2096 * nfs-utils.spec: Updated.
2098 2000-06-06 H.J. Lu <hjl@lucon.org>
2100 * configure.in (VERSION): Set to "0.1.8.1".
2101 * configure: Regenerated.
2102 * nfs-utils.spec: Updated.
2104 2000-06-06 H.J. Lu <hjl@lucon.org>
2106 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
2107 to "struct sockaddr_in *" for glibc 2.2.
2108 (mount_umnt_1_svc): Likewise.
2109 (mount_umntall_1_svc): Likewise.
2110 (mount_export_1_svc): Likewise.
2111 (mount_exportall_1_svc): Likewise.
2112 (mount_pathconf_2_svc): Likewise.
2113 (get_rootfh): Likewise.
2115 2000-06-04 H.J. Lu <hjl@lucon.org>
2117 * etc/redhat/nfs.init: Fix a typo in comment.
2119 2000-05-31 H.J. Lu <hjl@lucon.org>
2121 * configure.in (VERSION): Set to "0.1.8".
2122 * configure: Regenerated.
2123 * nfs-utils.spec: Updated.
2127 2000-05-31 H.J. Lu <hjl@lucon.org>
2129 * configure.in (VERSION): Set to "0.1.7.5".
2130 * configure: Regenerated.
2131 * nfs-utils.spec: Updated.
2133 * support/include/nfslib.h (exportent): Add a new field,
2134 r_count, to count the number of mounts from a client.
2135 (getrmtabent): Take a new argument for position in file.
2136 (putrmtabent): Likewise.
2137 (fgetrmtabent): Likewise.
2138 (fputrmtabent): Likewise.
2139 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
2140 for position in file.
2141 (fgetrmtabent): Likewise.
2142 (putrmtabent): Likewise.
2143 (fputrmtabent): Likewise.
2145 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
2148 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
2149 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
2150 and fputrmtabent ().
2151 * utils/mountd/rmtab.c (mountlist_add): Likewise.
2152 (mountlist_del): Likewise.
2153 (mountlist_del_all): Likewise.
2154 (mountlist_list): Likewise.
2156 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
2157 for the existing entry and initialize "r_count" to 1.
2158 (mountlist_del): Decrement "r_count".
2160 2000-05-18 H.J. Lu <hjl@lucon.org>
2162 * configure.in (VERSION): Set to "0.1.7.4".
2163 * configure: Regenerated.
2164 * nfs-utils.spec: Updated.
2166 2000-05-18 H.J. Lu <hjl@lucon.org>
2168 * etc/redhat/nfs.init (restart): Just do stop and start.
2170 2000-05-09 Jay Weber <jweber@valinux.com>
2172 * utils/rquotad/hasquota.c: added support for ext3 recognition
2174 * utils/rquotad/mntent.h: Likewise.
2176 2000-05-01 H.J. Lu <hjl@lucon.org>
2178 * configure.in (VERSION): Set to "0.1.7.3".
2179 * configure: Regenerated.
2180 * nfs-utils.spec: Updated.
2182 2000-05-01 H.J. Lu <hjl@lucon.org>
2184 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
2185 mounting poins in /etc/fstab.
2187 2000-05-01 H.J. Lu <hjl@lucon.org>
2189 * configure.in (VERSION): Set to "0.1.7.2".
2190 * configure: Regenerated.
2191 * nfs-utils.spec: Updated.
2193 2000-05-01 H.J. Lu <hjl@lucon.org>
2195 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
2196 to check for the mounting point.
2198 2000-04-29 Chip Salzenberg <chip@valinux.com>
2199 Neil Brown <neilb@cse.unsw.edu.au>
2201 * Really re-use RPC ports.
2202 (Fixes earlier patch. Sorry, Neil.)
2204 2000-04-26 H.J. Lu <hjl@lucon.org>
2206 * configure.in (VERSION): Set to "0.1.7.1".
2207 * configure: Regenerated.
2208 * nfs-utils.spec: Updated.
2210 2000-04-26 H.J. Lu <hjl@lucon.org>
2212 * etc/redhat/nfslock.init: Check if lockd exits before killing
2215 2000-04-25 H.J. Lu <hjl@lucon.org>
2217 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
2219 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
2221 * support/nfs/exports.c (parsesquash): Correctly set the
2224 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
2226 * support/include/nfs/nfs.h: Removed knowledge of internals of
2227 kernel filehandles (which can change) and defined nfs_fh_size
2228 which has variable size
2230 * support/nfs/getfh.c: defined getfh_size to use new syscall to
2231 get variable sized file handles, and change getfh{,old} to
2234 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
2237 * tools/Makefile, tools/nlmtest/nlmtest.c
2238 nlmtest.c depended on internel format of file handles, so now
2242 2000-03-12 Chip Salzenberg <chip@valinux.com>
2243 Neil Brown <neilb@cse.unsw.edu.au>
2245 * support/nfs/rpcmisc.c (rpc_init): Share transports.
2247 2000-03-13 H.J. Lu <hjl@lucon.org>
2249 * etc/redhat/nfsd.init: Updated.
2251 * etc/redhat/nfslock.init: Updated.
2253 * nfs-utils.spec.in: Updated.
2255 * configure.in (VERSION): Set to "0.1.7".
2256 * configure: Regenerated.
2257 * nfs-utils.spec: Updated.
2261 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
2263 * utils/exportfs/exportfs.c (dump): Included printing of
2264 nohide, no_subtree_check, and insecure_locks
2266 2000-02-26 Chip Salzenberg <chip@valinux.com>
2268 * config.mk.in (INSTALLSUID): Strip ("-s").
2269 (INSTALLSCRIPT): Define.
2270 * utils/nhfsstone/Makefile: Use it.
2272 2000-02-26 Chip Salzenberg <chip@valinux.com>
2274 * utils/lockd/lockd.man: Create.
2275 * utils/lockd/Makefile: Install it.
2276 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
2277 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
2278 * utils/nhfsstone/Makefile: Install the helper scripts and
2280 * utils/exportfs/exports.man: Fix typo.
2282 2000-02-26 Chip Salzenberg <chip@valinux.com>
2284 * support/nfs/xio.c (xungetc): Decrement line number when
2285 character to unget is newline. Make first parameter int, so
2286 it can distinguish EOF from \377.
2287 * support/include/xio.h (xungetc): Adjust prototype.
2289 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
2291 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
2292 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
2293 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
2295 This is for supporting a new option introduced in 2.3.42
2297 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
2299 * COPYING: Added. GPL.
2301 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
2303 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
2304 to get the block size.
2306 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
2308 * nfs-utils.spec.in: Update ftp site.
2310 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
2312 * README: Update hostnames.
2314 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
2316 * configure.in (VERSION): Set to "0.1.6".
2317 * configure: Regenerated.
2318 * nfs-utils.spec: Updated.
2322 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
2324 * utils/mountd/auth.c (auth_authenticate_internal): Call
2325 xstrdup for hostname before passing it to gethostbyname.
2327 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
2330 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
2332 * README: Update the mailing list address.
2334 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
2336 * configure.in (VERSION): Set to "0.1.5".
2337 * configure: Regenerated.
2338 * nfs-utils.spec: Updated.
2342 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
2344 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
2347 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
2349 * configure.in (VERSION): Set to "0.1.4".
2350 * configure: Regenerated.
2351 * nfs-utils.spec: Updated.
2355 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
2357 * nfs-utils.spec.in: New file.
2359 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
2361 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
2363 1999-12-04 Chip Salzenberg <chip@valinux.com>
2365 * config.mk.in: Use $(CC) as set by configure.
2367 1999-12-04 Chip Salzenberg <chip@valinux.com>
2369 * rules.mk: Call $(MAKE) with $(MFLAGS).
2371 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
2373 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
2374 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
2376 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
2378 * nfs-utils.spec (Version): Set to 0.1.3.
2380 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
2381 * configure: Regenerated.
2385 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
2387 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
2388 (_PATH_DEV_DSK): Likewise.
2389 (getquotainfo): Match the mounting point from /etc/mtab
2390 instead of calling nfsmount_to_devname ().
2392 1999-11-24 Chip Salzenberg <chip@valinux.com>
2394 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
2395 to the new port 24 as well as the historical port 100021.
2397 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
2399 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
2400 stopping nfsd to stop spurious ESTALE on server shutdown.
2402 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
2404 * support/nfs/exports.c (parseopts): make copy of opt string
2405 before 'nul'ing out commas so that
2407 # exportfs -o option1,option2 hosta:/fs hostb:/fs
2409 applies both options to both exports.
2411 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
2413 * README: Fix a few typos.
2415 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
2417 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
2418 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
2419 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
2420 (unsigned_dec): Likewise.
2421 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
2422 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
2424 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
2426 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
2427 (unsigned_dec): Likewise.
2428 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
2429 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
2430 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
2432 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
2434 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
2435 * support/nfs/exports.c: added {no_,}subtree_check and changed
2437 * utils/exportfs/exports.man: added no_subtree_check and nohide
2438 and removed irrelevant stuff from unfsd.
2439 * support/export/rmtab.c: rmtab_read didn't quite do the right
2440 thing if a pathname from rmtab was a subdirectory of an export-point
2442 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
2444 * README: Updated ftp site.
2446 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
2448 * nfs-utils.spec (Version): Set to 0.1.2.
2450 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
2451 * configure: Regenerated.
2455 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
2457 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
2458 (auth_authenticate_internal): Check for NULL return on forward
2460 (auth_authenticate): Handle "no_forward_dns".
2462 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
2464 * Version 0.1.1 released.
2466 * nfs-utils.spec (Version): Set to 0.1.1.
2468 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
2469 * configure: Regenerated.
2473 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
2475 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
2477 (Provides): Likewise.
2479 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
2481 * Initial version 0.1 released.
2483 * configure.in (VERSION): Set to "nfs-utils 0.1".
2484 * configure: Regenerated.
2486 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
2488 * utils/mountd/mountd.c (get_exportlist): Cleanup.
2490 * utils/exportfs/exportfs.c (unexport_all): Unexport from
2491 kernel only if the entry is exported to kernel.
2492 (unexportfs): Likewise.
2494 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
2496 1/ utils/mountd/rmtab.c::mountlist_list
2498 This routine stats the rmtab file to see if it has changed. It
2499 if has, it cleans up it's old copy of the data. But it still
2500 always re-read the file, thus returning multiple copies of the
2501 data on consecutive calls without intervening changes.
2502 "Showmount -a" didn't show this as it appears to sort/unique the
2503 data, but 'strace showmount -a' showed that the size of the
2504 datagram that it received grew.
2506 I moved the getrmtabent loop inside the mtime test.
2508 2/ utils/exportfs/exportfs.c
2510 Many routines used the m_path field of m_export instead of
2512 According to the comment in nfslib.h, m_path should only
2513 be used when processing a mount request (i.e. in mountd)
2514 where the mountpoint may be a subdirectory of the export point.
2516 I changed all occurances of m_path to e_path
2519 3/ utils/exportfs/exportfs.c:main
2521 extra arguments are not meaningful with -a or -r, but
2522 exportfs accepted them and then ignored the -a/-r, expect that
2523 -r would still unexport everything first.
2525 I generate an error if there are extra args and f_all
2527 4/ utils/exportfs/exportfs.c:main
2528 extract dump out as a special case.
2530 5/ utils/exportfs/exportfs.c
2531 made f_reexport a local variable.
2534 6/ utils/exportfs/exportfs.c:main,exportall
2536 support/export/rmtab.c
2537 only mayexport on newly created entries, don't set xtabent at all
2539 7/ support/include/nfslib.h
2541 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
2543 8/ support/export/xtab.c
2545 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
2549 9/ support/export/xtab.c
2551 xtab_mount_read now sets m_exported, and NOT
2552 xtabent and mayexport
2554 removed the append arguement from xtab_write as it was
2557 added is_export flag to xtab_write similar to xtab_read
2558 if is_export, only write entries with m_xtabent or m_addxtab
2559 if !is_export, only write entries with m_exported
2561 10/ support/export/export.c::export_allowed_internal
2563 added test for exp->m_mayexport, as the export tree
2564 may have entries that are no longer allowed to be exported,
2565 and so shouldn't caused deduced exported by rmtab_read
2567 11/ utils/exportfs/exportfs.c::main
2568 error checking of flags.
2570 12/ utils/exportfs/exportfs.c
2572 total rewrite of export and unexport logic.
2574 - build an exportslist of valid exports, based on
2575 current etab file and arguments,
2576 - read rmtab to instantiate relevant wild card entries
2577 - read etab to find out what is currently exported
2578 - synchronise intention with reality
2579 - write out etab and xtab
2582 discard the m_addxtab flag
2583 add m_changed flag so we know what to report in exportfs
2585 14/ utils/mountd/auth.c:auth_authenticate
2587 the value returned by gethostbyaddr was trusted.
2589 It now follows this with a call to gethostbyname
2590 and checks that the address is in the list.
2592 15/ support/export/nfsctl.c::cltsetup,expsetup
2594 force client names to lowercase as kernel is
2597 16/ quietened a few compiler warnings
2599 17/ support/export/client:client_lookup
2601 look for pre-existing client with same name before creating
2604 18/ support/include/exportfs.h
2606 The ordering of the MCL_* enum was:
2607 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
2609 I moved ANONYMOUS to the end.
2611 The ordering is significant when an export entry is being searched for to
2612 match a given address. There are two problems with ANONYMOUS being first.
2614 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
2615 then the ro case will always be found first and the privileged hosts won't get
2617 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
2618 export entry for the specific host, and writes it to xtab.
2619 When another request comes from the same host, the ANONYMOUS entry is found again,
2620 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
2621 again. If causes bloat in xtab.
2623 Putting ANONYMOUS at the end reflects it's nature as a catch-all
2625 19/ utils/exportfs/exportfs.man
2626 many updates to the man page to reflect changes to the code
2628 -----------------------
2634 - allow exportfs to modify rmtab file
2635 - make sure kernel never gets two clients with same IP address
2636 - possible kernel should reject
2637 - needs to be some way to lookup client in kernel by IP address
2638 - maybe get kernel to do case-insensitive comparisons on client names
2639 - remove unused clients from kernel
2641 - change etab to xtab and xtab to xtab.active
2643 - timestamp and/or statd-stamp in rmtab for removing old entries.
2645 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
2647 * linux-nfs: New directory.
2648 * linux-nfs/ChangeLog: Moved from ..
2649 * linux-nfs/INSTALL: Likewise.
2650 * linux-nfs/KNOWNBUGS: Likewise.
2651 * linux-nfs/NEW: Likewise.
2652 * linux-nfs/README: Likewise.
2653 * linux-nfs/THANKS: Likewise.
2654 * linux-nfs/TODO: Likewise.
2656 * Starting from knfsd 1.4.7.