1 2006-03-27 NeilBrown <neilb@suse.de>
4 2006-03-27 kwc@citi.umich.edu
5 Add debugging to better detect negotiation of enctype not supported by kernel
7 Print debugging message indicating the type of encryption keys being sent
8 down to the kernel. This should make it easier to detect cases where
9 unsupported encryption types are being negotiated.
12 Don't close and reopen all pipes on every DNOTIFY signal.
14 Don't unnecessarily close and re-open all pipes after every DNOTIFY
15 signal. These unnecessary closes were triggering a kernel Oops.
16 Original patch modified to correct segfault when unmounting last
20 Add option to specify directory to search for credentials cache files
22 Add command line option to specify which directory should be searched
23 to find credentials caches.
25 2006-03-27 kwc@citi.umich.edu
26 Must still use knowledge of the glue context for pre-1.4 versions of MIT krb5
28 We need to get access to the internal krb5 context pointer for
29 older (pre-1.4) versions of MIT Kerberos. We get a pointer to
30 the gss glue's context. Get the right pointer before accessing
31 the context information.
33 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
34 Remove unused variable causing compile warning
36 Remove unused groups variable from get_ids() which was causing a compiler warning.
38 2006-03-27 kwc@citi.umich.edu
39 Update krb5 code to use glue routine lucid context functions
41 The gssd code should not know about the glue layer's context structure.
42 A previous patch added gss_export_lucid_sec_context() and
43 gss_free_lucid_sec_context() functions to the gssapi glue layer.
44 Use these functions rather than calling directly to the Kerberos
45 gssapi code (which requires the Kerberos context handle rather
46 than the glue's context handle).
48 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
49 Separate out context handling code for MIT Kerberos and SPKM3
52 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
53 Consolidate gssd and svcgssd since they share much code
55 Remove directory svcgssd which was only created because the old
56 build system could not handle building two daemons in the same
57 directory. This eliminates build complications since gssd and
58 svcgssd also share many source files.
60 This patch effectively removes the utils/svcgssd directory, moving
61 all its files to the utils/gssd directory. File utils/gssd/Makefile.am
62 is modified with directions to build both gssd and svcgssd.
64 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
65 Use PKGCONFIG to locate gssapi and rpcsecgss header files
67 Instead of having separate copies of the gssapi and rpcsecgss
68 header files, or depending on the Kerberos gssapi header,
69 locate the headers now installed with the libgssapi and librpcsecgss
72 Remove local copies of the gssapi and rpcsecgss header files.
74 This depends on the configure_use_autotools patch.
76 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
77 User-selectable idmapping cache lifetime
79 Read and process new configuration option, Cache-Expiration, and use
80 the value to determine how long idmapping entries are cached.
82 2006-03-27 Steve Dickson <steved@redhat.com>
83 Set libnfsidmap library debugging level and logging function.
85 This patch adds a call to the new libnfsidmap library function
86 nfs4_set_debug(), which defines the verbosity level libnfsidmap
87 should use as well as the logging function.
89 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
90 Don't close file descriptor until after calling event_del().
92 Delete event processing for a file descriptor before closing it.
93 This was causing hangs when used in combination with libevent-1.0b.
95 2006-03-27 kwc@citi.umich.edu
96 Find krb5-config on SuSE 10
98 SuSE 10.0 puts krb5-config in yet another obscure location.
99 Look for it there and use it if found.
101 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
102 Update debian package information.
104 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
105 Install /var/lib/nfs files using DESTDIR and add rpcsec headers to distribution
107 Add "$(DESTDIR)" to the paths for the "$(statedir)" files so they are
108 put in the right place when DESTDIR is defined.
110 Add the rpcsec header files to EXTRA_DIST list.
112 2005-12-21 NeilBrown <neilb@suse.de>
113 *utils/rquotad/rquota_server.c: Detect and handle both old-style
114 (2.4) and new-style(2.6) quotactl.
115 *utils/gssd/gss_destroy_cred: remove dependence on "head -1" which
116 might need to be "head -n 1"
117 *utils/nhfsstone/nhfsrun: convert "tail -1" to "tail -n 1"
119 2005-12-20 Kevin Coffman <kwc@citi.umich.edu> NeilBrown <neilb@suse.de>
120 Substantial Makefile/configure rewrite.
121 Run 'autogen.sh' to create "Makefile.in" etc.
123 Also add -D_FILE_OFFSET_BITS=64 to CPP_FLAGS so that mountd can
124 stat and export files larger than 2Gig.
128 2005-12-20 NeilBrown <neilb@suse.de>
129 support/nfs/exports.c(getexportent): is a null host name is given,
130 replace it with '*' so we have a non-empty host name for messages
132 utils/exportfs/exportfs.man: Correct documentation about default
135 2005-12-20 Kevin Coffman <kwc@citi.umich.edu>
136 utils/gssd/gssd_proc.c(create_auth_rpc_client): Use service
137 portion of clp->servicename rather than hard-coding "nfs".
139 2005-12-16 NeilBrown <neilb@suse.de>
142 2005-12-16 Kevin Coffman <kwc@citi.umich.edu>
143 svcgssd needs -lnfs when using new function closeall().
146 Remove unused argument from nfsdopen()
148 After previous changes, the arguement to nfsdopen() has become unused.
152 Fix idmapd error reporting after call to mydaemon()
154 After call to mydaemon(), calls to err[x] and warn[x] result
155 in the message going nowhere. Change to using idmapd_*
156 versions of these routines which write to syslog.
157 Original problem reported by Vincent Roqueta <vincent.roqueta@ext.bull.net>
158 with a different patch.
161 Don't add @domain to names that cannot be mapped.
163 Per rfc3530 section 5.8: when unable to map a uid to a name, don't
164 add the @domain to the "nobody" name.
167 Fix idmapd for systems where sizeof(uid_t)!=4 and sizeof(gid_t)!=4
169 Fix conversion cases where uid_t and gid_t are not 32 bits.
172 Don't segfault because mech wasn't filled in because of an error
174 From Kevin Coffman <kwc@citi.umich.edu>
176 Initialize mech to null to avoid segfault if an error occurs
177 and mech is never returned from gss_accept_sec_context.
180 Remove use of static buffer in do_downcall
182 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
184 Dynamically allocate buffer of the correct length rather
185 than using fixed-length buffer.
188 Print better error message if rpc routine clnt_create() fails.
191 Print appropriate error messages after gss calls.
193 Print gss error messages after calls to gss functions, even if they
194 are for Kerberos only.
197 Update gssd and svcgssd to use the new gss mech glue lucid context calls.
199 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
201 Update gssd and svcgssd to use a lucid context from SPKM3 to send down
203 Update gssd and svcgssd to use the new gss mech glue lucid context calls.
204 Add configure check to see if spkm3 support is available.
207 Add support for CONTINUE_NEEDED return from gss_accept_sec_context.
209 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
211 Add CONTINUE_INIT handling to svcgssd. Store the partially complete spkm
212 context handle in the out_handle of CONTINUE_INIT messages so that it is
213 returned in the in_handle of subsequent messages.
216 Replace GSS_C_ANON_FLAG with GSS_C_MUTUAL_FLAG.
218 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
220 Specify GSS_C_MUTUAL_FLAG rather than GSS_C_ANON_FLAG for
223 NOTE: we need a way to pass the appropriate value rather than
224 hard-coding this flag.
227 Increase size of rpc send/receive buffers
229 Change the clnt_create() to use routines which allow us to set the
230 send and receive buffer size. This is needed for larger spkm3
231 exchanges including certificate chains.
233 This has the side-effect of skipping the portmap call since
234 we specify the port (by specifying the service) when getting
235 the server's address information.
238 Define _LINUX_QUOTA_VERSION to 1
240 The rquotad code is written against the "old" kernel quota interface.
241 Fedora Core 4 is the only platform known to check for different
242 versions, so this should not have any affect on other platforms
243 and fixes the build for FC4.
247 2005-12-12 Usha Ketineni <ketineni@us.ibm.com>, NeilBrown <neilb@suse.de>
248 *support/nfs/rpcmisc.c(rpc_init): is stdin is a socket, but
249 is already connected (as e.g. from ssh), don't assume we
250 were started by inetd.
252 2005-11-03 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
253 *utils/idmapd/idmaps.c:
255 I've recently updated the nfs-utils in rawhide with the
256 latest patches from the SourceForge CVS tree and the
257 latest CITI patches (1.0.7-4).
259 In testing these patches, I notice that when the server was started
260 and a SIGHUP was sent to rpc.idmapd to open the nfs4.nametoid/channel
261 and nfs4.idtoname/channel files, the second open (the nfs4.idtoname one)
262 failed because the path (i.e. ic->ic_path) was NULL.
264 Now the reason the ic_path was NULL was because it was never set
265 during the call to nfsdopen(). nfsdopen() looks like:
268 return ((nfsdopenone(&nfsd_ic[IC_NAMEID], IC_NAMEID, path) == 0 &&
269 nfsdopenone(&nfsd_ic[IC_IDNAME], IC_IDNAME, path) == 0) ? 0
273 Note: the call to nfsdopenone() is how the path is set in each nfsd_ic[]
274 entry and nfsdopen() is only called once.
276 So when rpc.idmap comes up and the first call to nfsdopenone() fails
277 (because the server is not running) the path in nfsd_ic[IC_IDNAME] is
278 never filled in because the second nfsdopenone() never happen...
280 Now there was a CITI patche (idmapd_revert_fix_reopen_on_sighup.dif)
281 that tried to address this problem but did seem to fix it.. The
282 attached patch fix the problem by initializing both nfsd_ic[IC_IDNAME]
283 and nfsd_ic[IC_NAMEID] structures with the needed info...
284 I figured since there is no way of changing these paths or filenames
285 by command line args, why not just set them during compile time...
286 so that's what this patch does.
288 This patch also changes how nfsdreopen_one() handles the
289 case where the event has already been set. Unlike the CITI
290 patch (idmapd_revert_fix_reopen_on_sighup.dif) which just
291 just does not register the second event, my patch deletes
292 the old event and the registers the new one. It just seems like
293 the right thing to do since a SIGHUP means a new server just
294 started so we probably should create a new event as well...
298 2005-10-14 NeilBrown <neilb@suse.de>
299 *utils/mountd/cache.c(nfsd_fh): Understand type 2 and type 3
300 filesystem identifiers, which are used with device numbers
301 That don't fit into 16 bits.
303 2005-10-07 Olaf Kirch <okir@suse.de>
304 * utils/mountd/mountd.c(get_exportlist): Without this patch,
305 showmount -e would sometimes display host names that should really
306 have been subsumed under a wildcard entry.
308 The problem was that the code in get_exportlist would always
309 skip the next group entry after removing one FQDN.
311 2005-10-06 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
312 * support/nfs/export.c: don't warn about sync/async for readonly
314 * support/nfs/closeall.c: new file with function to close all
315 file descriptors from a give minimum upwards.
316 * nfsd/mountd/statd/idmapd/gsssvcd: use closeall.
317 * utils/mountd/mountd.c: Eliminate 3 syslog message that are
318 logged for successful events.
319 * utils/mountd/mountd.c: make sure the correct hostname is used in
320 the SM_NOTIFY message that is sent from a rebooted server which
321 has multiple network interfaces. (bz 139101)
323 Details can be found in:
324 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=139101
326 *utils/idmapd/idmapd.c:Fixed subscripting problem in idmapd (bz
327 158188) This fixes the following problem:
328 rpc.idmapd: nfsdreopen: Opening '' failed: errno 2 (No such file or directory)
330 Details can be found in:
331 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=158188
333 *utils/statd/statd.c(drop_privs): clear st_gid as well as st_uid
335 *utils/statd/svc_run.c(my_svc_run): remove usage of undocumented
337 *utils/statd/montor.c(sm_mon_1_svc): as above
338 *support/nfs/xlog.c(xlog): Changed xlog to use LOG_INFO instead of
339 LOG_DEBUG so debug messages will appear w/out any config changes
343 2005-09-02 Mike Frysinger <vapier@gentoo.org>
344 * utils/rquotad/rquota_server.c(getquotainfo): use explicit
345 struture-member copying rather than memcpy, as the element
346 sizes are the same on all architectures.
348 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
349 Add option to set rpcsec_gss debugging level (if available)
351 Changes to allow gssd/svcgssd to build when using Hiemdal Kerberos
352 libraries. Note that there are still run-time issues preventing
353 this from working when shared libraries for libgssapi and librpcsecgss
356 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
357 Remove the rpcsec_gss code and rely on an external library instead.
359 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
360 *utils/mountd/mountd.c:
361 mountd currently always returns AUTH_NULL and AUTH_SYS as the
362 allowable flavors in mount replies. We want it to also return gss
363 flavors when appropriate. For now as a hack we just have it always
364 return the KRB5 flavors as well.
366 *utils/mountd/cache.c:
368 When attempting to mount an NFSv4 pseudofilesystem (fsid=0) and the
369 actual exported directory does not exist on the server, rpc.mountd
370 doesn't check the directory exists (when fsidtype=1, i.e. using fsid,
371 but does check for fsidtype=0, i.e. using dev/ino). The non-existent
372 exported directory path with fsid=0 is written to the kernel via
373 /proc/net/rpc/nfsd.export/channel, which leads to path_lookup() to
374 return ENOENT (seems appropriate). Unfortunately, the new_cache
375 approach ignores errors returned when writing via the channel file so
376 that particular error is lost and the mount request is silently ignored.
378 Assuming it doesn't make sense to revamp the new_cache/up-call method to
379 not ignore returned errors, it seems appropriate to fix the case where
380 rpc.mountd doesn't check for the existence of an exported directory with
381 fsid= semantics. The following patch does this by moving the stat() up
382 so it is done for both fsidtype's. I'm not certain whether the other
383 tests need to be executed for fsidtype=1, but it doesn't appear to hurt
384 [Not exactly true: the comparison of inode numbers caused problems so
385 now it's kept for fsidtype=0 only].
387 Would it be also desirable to log a warning for every error, if any,
388 returned by a write to any of the /proc/net/rpc/*/channel files which
389 would otherwise be ignored (maybe under a debug flag)?
391 * gssd/mountd/svcgssd: Changes gssd, svcgssd, and mountd to ignore a
392 SIGHUP rather than dying.
394 * many: Remove the gssapi code and rely on an external library instead.
396 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
397 * utils/exportfs/exports.man: Document the "crossmnt" export export option
398 * utils/gssd/krb5_util.c:
399 Add better debugging and partially revert the function
400 check for gss_krb5_ccache_name.
402 For MIT Kerberos releases up to and including 1.3.1, we *must*
403 use the routine gss_krb5_ccache_name to get the K5 gssapi code
404 to use a different credentials cache.
406 For releases 1.3.2 and on, we want to use the KRB5CCNAME
407 environment variable to tell it what to use.
408 (A problem was reported where 1.3.5 was being used, our
409 code was using gss_krb5_ccache_name, but the underlying
410 code continued to use the first (or default?) credentials
411 cache. Switching to using the env variable fixed the problem.
412 I cannot recreate this problem.
414 *utils/gssd/krb5_util.c:
415 Andrew Mahone <andrew.mahone@gmail.com> reported that reiser4
416 always has DT_UNKNOWN. He supplied patch to move the check
417 for regular files after the stat() call to correctly find
418 ccache files in reiser4 filesystem.
420 Also change the name comparison so that the wrong file is
421 not selected when the substring comparison is done.
423 *utils/gssd/krb5_util.c:
424 Limit the set of encryption types that can be negotiated by
425 the Kerberos library to those that the kernel code currently
428 This should eventually query the kernel for the list of
431 *utils/gssd/gss_util.c, utils/svcgssd/svcgssd_main_loop.c:
432 Print more information in error messages to help debugging failures.
434 *utils/svcgssd/svcgssd_proc.c: Increase token buffer size and
435 update error handling so that a response is always sent.
437 *utils/svcgssd/svcgssd_proc.c: Add support to retrieve
438 supplementary groups.
441 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
443 Consolidate some of the Kerberos checking instead of repeating
444 the same things for MIT and Heimdal.
445 Also adds more checks to distinguish 32-bit from 64-bit
446 (mainly for gssapi.h)
447 Fix svcgssd Makefile so make TOP=../../ works correctly there.
448 Enable running a modern autoheader.
449 * utils/gssd/gss_oids.c: Use correct OID value for SPKM-3
450 * utils/gssd/gss_util.c: Fix build with older MIT releases that do not define GSS_C_NT_HOSTBASED_SERVICE
451 * utils/gssd/write_bytes.h, support/include/gssapi/gssapi.h:
452 Length of gss_buffer_desc is a size_t which is 64-bits on a
453 64-bit machine. Kernel code expects 32-bit integer for length.
454 Coerce length value into a 32-bit value when reading from or
455 writing to the kernel.
456 Change gssapi.h to use datatype size values obtained from
457 configure rather than hard-coded values.
458 * utils/idmapd/idmapd.c: The EV_INIT check here was wrong, and was
459 causing idmapd to become unresponsive to server requests after
461 * utils/idmapd/idmapd.c: Idmapd should flush the server id<->name
462 caches when its started.
464 2005-04-12 G. Allen Morris III <gam3@gam3.net>
466 * All Makefile: added TOP as needed for easier compile.
468 * utils/nfsstat/nfsstat.c: added NFS V4 support; added the -m
469 option; Added -2, -3, and -4 options; changed -a option to -v
470 option; added long options; changed default output to not
471 show V2 NFS statistics unless used.
473 * utils/nfsstat/nfsstat.man: Documented above changes; changed
474 authors email address; added BUGS section.
476 2005-04-07 Chip Salzenberg <chip@pobox.com>
478 * debian/changelog: Version 1.0.7-2.
480 2005-04-06 Chip Salzenberg <chip@pobox.com>
482 * config.guess, config.sub: Update.
484 * support/rpc/svc_auth_gss.c (_svcauth_gss): Avoid using a cast as
485 an lvalue, as it is non-portable.
487 * support/nfs/exports.c (parseopts): Accept "acl" option to mean
488 ~NFSEXP_NOACL, and "no_acl" to mean NFSEXP_NOACL.
489 (putexportent): Report NFSEXP_NOACL as "no_acl", and ~NFSEXP_NOACL
491 * utils/exportfs/exportfs.c (dump): Report NFSEXP_NOACL as
493 * utils/exportfs/exports.man: Document "no_acl".
495 2005-03-14 NeilBrown <neilb@cse.unsw.edu.au>
496 Denis Vlasenko <vda@ilport.com.ua>
497 * support/export/client.c(client_init and client_gettype):
498 treat N.N.N.N as a special case of MCL_SUBNETWORK instead of
501 2005-03-06 G. Allen Morris III <gam3@gam3.net>
502 * support/nfs/cacheio.c(readline): Could not read lines greater
503 than 128 bytes. [1157791]
504 * utils/exportfs/exports.man: Added a SEE ALSO section and
505 fixed 2 typos. [1018450]
507 2005-02-28 Trond Myklebust <trond.myklebust@fys.uio.no>
508 * utils/statd/rmtcall.c(statd_get_socket): If a port number is
509 explicitly given, make sure to try to bind to that.
511 2005-01-11 Chip Salzenberg <chip@pobox.com>
513 * debian/changelog: Version 1.0.7-1.
514 * debian/nfs-common.default (NEED_IDMAPD, NEED_GSSD):
515 Disable by default, on advice of upstream.
516 * debian/nfs-kernel-server.default (NEED_SVCGSSD):
519 * utils/svcgssd/Makefile (predep): Symbolically link duplicated
521 (distclean): Remove symlinks to duplicated files.
523 2004-12-17 NeilBrown <neilb@cse.unsw.edu.au>
526 * config.mk, configure.in: update version number, run autoconf
527 * configure.in: require nfsidmap.h if gss is enabled.
529 2004-12-10 NeilBrown <neilb@cse.unsw.edu.au>
532 * config.mk, configure.in: update version number, run autoconf
534 2004-12-10 Neil Brown <neilb@cse.unsw.edu.au>
535 * README : note dependancy on kerberos, libevent, and nfsidmap
536 * configure.in : fail if --enable-nfsv4 and libevent or
537 libnfsidmap are missing.
538 * configuyre.in: improve message if krb5 support is missing
540 2004-12-06 Paul Clements <paul.clements@steeleye.com>
541 * support/include/ha-callout.h: get return status from waitpid
543 * support/include/ha-callout.h: don't ignore SIGCHLD while waiting
544 for a callout to complete.
545 * utils/statd/statd.c(sigusr): print current start when re-reading
546 notify list due to SIGUSR1
547 * utils/statd/svc_run.c(my_svc_run): call change_state when
548 re-notifying clients.
550 2004-12-06 Marc Eshel <eshel@almaden.ibm.com>
551 * utils/statd/svc_run.c(my_svc_run): allow loop to exit when in
553 *utils/statd/rmtcall.c(statd_get_socket): if a hostname is given
554 to statd with -n, prefer it's IP address to the default for
557 2004-12-06 Bruce Allan <bwa@us.ibm.com>
558 * utils/mountd/auth.c(auth_reload) Clear the "my_client" cache on
559 an auth_reload to avoid old data getting used.
561 2004-12-03 NeilBrown <neilb@cse.unsw.edu.au>
562 Release 1.0.7-pre1 for testing
564 * config.mk, configure.in: update version number, run autoconf
566 2004-12-03 Trond Myklebust <trond.myklebust@fys.uio.no>
568 * utils/statd/statd.c(main): ignore SIGPIPE
570 2004-11-22 "J. Bruce Fields" <bfields@fieldses.org>
572 * tools/rpcdebug/rpcdebug.c: support aliases "nfsdebug" and
573 "nfsddebug" and update flag names.
574 * configure.in, nodist/* redhat/* nfs-utils.spec*: remove redhat
575 specific files (as no-one actually uses them, especially not
576 redhat), and the nodist /etc files (as they drift out-of-date, and
577 the debian directory provides a suitable example.
578 * utils/svcgssd_proc.c(get_ids): fix memory leak
579 * utils/svcgssd/svcgssd_proc.c: Rely on count of the number of
580 groups instead of using a special guard value to identify the end
582 * utils/idmapd/idmapd.c: don't allow Default domain and anon-uid
583 or -gid to be specified on command line.
584 * utils/idmapd/idmapd.c: improve error messages
585 * utils/idmapd/idmapd.c: Reopen nfsd files on sighup. Allows us
586 to start up client side only (even when nfsd module not loaded),
587 and then sighup later after insmodding nfsd module.
588 * utils/idmapd/idmapd.c: Make sure we catch all errors on
589 daemonizing by waiting for child to report succesfull startup
591 * utils/idmapd/idmapd.c: Let libnfsidmapd parse the idmapd.conf
592 file for the default domain, instead of doing that ourselves.
593 * utils/gssd/gssd_proc.c: Make sure we get an error when a gssd
595 * utils/gssd/gssd_proc.c: We were forgetting to restore the euid
596 on certain failures, which meant gssd could get stuck in a state
597 where it didn't have permissions to read the files in rpc_pipefs
599 * utils/gssd/gssd_proc.c: Use libnfsidmapd to map gss principals
601 * debian/nfs-kernel-server.default: Document the NEED_SVCGSSD
602 variable in /etc/default/nfs-kernel-server.
605 2004-11-22 NeilBrown <neilb@cse.unsw.edu.au>
607 * utils/exportfs/nfsd.man: corrected typo in .BR macro usage -
608 reported by Eric Raymond
610 2004-10-19 "J. Bruce Fields" <bfields@fieldses.org>
612 * support/gssapi/* support/rpc/* utils/gssd/* utils/svcgssd/* etc
613 initial support for GSSAPI authentication
615 2004-09-15 Neil Brown <neilb@cse.unsw.edu.au>
617 * utils/statd/monitor.c(sm_unmon_1_svc): is RESTRICTED_STATD, then
618 check IP address and force my_name to 127.0.0.1 to match
619 what happens in sm_mon_1_svc. This avoid spurious "erroneous
621 * utils/statd.monitor.c(sm_unmon_all_1_svc): likewise
623 2004-09-15 "J. Bruce Fields" <bfields@fieldses.org>
625 * Assorted changes to support "gss/*" style authentication
626 * utils/idmapd: new idmapd daemon for nfsv4 username lookup
628 2004-09-06 Trond Myklebust <trond.myklebust@fys.uio.no>
629 Neil Brown <neilb@cse.unsw.edu.au>
631 * utils/mountd/auth.c(auth_authenticate_internal): fix
632 uninitialsed variable problem (causes bad error messages).
634 2004-09-06 Paul Clements <paul.clements@steeleye.com>
635 Neil Brown <neilb@cse.unsw.edu.au>
637 * utils/mountd/mountd.c(main): support --ha-callout (-H) for
638 specifying a callout program
639 * utils/mountd/rmtab.c: Call ha_callout on mount/unmount
640 * utils/statd/monitor.c: Call ha_callout on add/del client
641 * utils/statd/rmtcall.c: as above
642 * utils/statd/statd.c: handle --ha-callout (-H)
643 * utils/statd/svc_run.c: call notify_hosts is we have received a
645 * support/include/ha-callout.h: define ha_callout function
648 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
649 * utils/mountd/cache.c(cache_process_req): clear fd after
650 processing so as not to confused libc/sunrpc into thinking
651 it need to do something with that fd.
653 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
655 * debian/nfs-kernel-server.init(start,stop) mount the nfsd
656 filesystem, if available, before starting nfs services, and
657 unmount it afterwards.
658 * etc/nodist/nfs-server: ditto
659 * etc/redhat/nfs.init: likewise
660 * etc/redhat/nfs: add "MOUNT_NFSD" flag to control above.
662 2004-06-08 NeilBrown <neilb@cse.unsw.edu.au>
664 * utils/exportfs/exportfs.c: Don't rmtab_read if new_cache, it
666 * support/nfs/cacheio.c(cache_flush): Change order in which caches
667 are flushed so that dependancies don't keep things in the cache
670 2004-03-18 Chip Salzenberg <chip@pobox.com>
672 * debian/changelog: Version 1.0.6-2.
674 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
675 from "J. Bruce Fields" <bfields@fieldses.org>
677 * utils/mountd/cache.c: call auth_reload to make sure auth data is
678 current before responding to kernel upcall.
680 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
681 Based on patch from Greg Banks <gnb@melbourne.sgi.com>
683 * utils/exportfs/exports.man: Document fsid= option.
685 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
689 * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
690 support/include, and depend in "predep"
691 * support/export/Makefile, tools/rpcgen/Makefile,
692 utils/statd/Makefile: add "predep" rule so that "make dep" works.
693 * Makefile: allow a simple "make" to run ./configure and "make dep"
695 * configure.in, nfs-utils.spec: Update version to 1.0.6
698 2003-09-12 Chip Salzenberg <chip@pobox.com>
700 * debian/changelog: Version 1.0.6-1.
702 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
704 * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
706 * utils/statd/statd.c(main): Ditto.
708 michael <michael@newdream.net> discovered that svc_setreqsize
709 in glibc can segfault if RLIMIT_NOFILE is bigger than
710 FD_SETSIZE, so a simple solution is to impose a hard limit.
712 2003-09-09 Chip Salzenberg <chip@pobox.com>
714 * debian/changelog: Version 1.0.5-3.
715 * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
716 on invalid reverse DNS.
717 * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
718 * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
719 * tools/rpcgen/rpc_parse.c (def_union): Likewise.
721 2003-08-22 Chip Salzenberg <chip@pobox.com>
723 * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
724 N_*, to avoid conflict with ISO C built-in log() function.
725 * utils/statd/*.c: Use note().
727 2003-08-20 Chip Salzenberg <chip@pobox.com>
729 * debian/changelog: Version 1.0.5-2.
731 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
733 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
736 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
738 * support/include/nfs/export.h, support/nfs/exports.c,
739 utils/exportfs/exports.c, utils/mountd/mountd.c: change
740 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
741 meaning. Also remove meaningless
742 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
744 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
746 * support/export/xtab.c, support/include/nfslib.h,
747 support/nfs/cacheio.c, support/nfs/nfssvc.c,
748 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
749 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
750 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
751 (nfs-utils-1.0.5-post2)
753 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
755 * support/nfs/nfsexport.c: open channel file O_WRONLY when
757 * utils/mountd/cache.c: maintain mountlist when new_cache is
758 active. Also use O_WRONLY for channel files.
759 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
760 rather than an nfs_export.
761 * utils/mountd/rmtab.c: ditto.
762 (nfs-utils-1.5.0-post1)
764 2003-07-24 Chip Salzenberg <chip@pobox.com>
766 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
767 use Debian security team's cleaner approach.
768 * debian/changelog: Version 1.0.5-1.
769 * debian/nfs-kernel-server.init: Cosmetic changes.
771 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
774 1.0.4 was a bit of a brown-paper-bag-release because of the extra
775 'free' in auth.c. So I'm releasing this just a few days later.
777 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
779 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
780 check if new_cache is enabled, error if not, flush and exit if it
782 * utils/exportfs/exportfs.man: Explain -f option and explain the
783 two different modes that exportfs can work in.
784 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
786 * utils/mountd/mountd.man: Record the change if default behaviour
788 * configure.in, nfs-utils.spec: update version to 1.0.5 and
791 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
793 * utils/mountd/mountd.c(main): getopt string fix for 'o'
794 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
795 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
797 * support/include/nfs/export.h: Reserve a bit for possible ACL
800 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
802 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
803 assorted changed to cope with section 7 of the manual.
804 * configure.in, nfs-utils.spec: Update version to 1.0.4
807 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
808 baseline for 2.6 and 2.8. I.e. it should continue to work right
809 through the 2.8 (or 3.0) kernel series. Previous releases wont.
811 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
812 Steve Dickson <SteveD@redhat.com>
815 * utils/statd/statd.c: create a pidfile with pid of statd, and
816 truncate it when statd exists.
817 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
818 and warn if this is root.
819 * utils/statd/statd.c: when statd forks, connect child to parent
820 with a pipe, and send a byte down the pipe once the child is
822 * Makefile: create and chown sm, sm.bak, state when "make install"
823 * configure.in: add --with-statduser= option which defaults to
824 "rpcuser" or "nobody"
825 * config.mk.in: pass "statduser" through to Makefile
827 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
829 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
830 used as the size was changed somewhere in 2.5.60-2.5.70. Without
831 this nfs-utils compiles against 2.6 headers will not work on a
834 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
836 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
837 set number of threads by writing to there. This means it will
838 still work when the syscall interface goes away in 2.7.
840 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
841 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
843 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
844 so as to only export the wildcard exports that were asked for.
845 * support/export/export.c(export_allowed): changed to return the
846 nfs_export rather than a "struct exportent", as m_changed is
848 * support/export/rmtab.c(rmtab_read): modified to deal with
849 interface change for export_allowed(), and enhanced to preserve
850 m_changed flag when a wild-card export causes the creation of
851 a non-wildcard export.
853 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
854 Steve Dickson <SteveD@redhat.com>
856 * utils/mountd/mountd.man: Add valid kinds of debugging.
857 * utils/mountd/mountd.c(main): ignore SIGPIPE
858 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
859 we don't get warnings about unavailable stats that weren't asked
862 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
864 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
865 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
866 'forever', so things disappear out of the cache rather than just
869 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
871 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
874 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
876 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
877 etc/redhat/nfs.init: when checking if V3 is supported, make sure
878 nfs server 'knows' about 127.0.0.1 first.
880 2003-06-10 Chip Salzenberg <chip@pobox.com>
882 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
883 * debian/changelog: Version 1.0.3-2.
885 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
886 NeilBrown <neilb@cse.unsw.edu.au>
888 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
889 long long to avoid overflow when printing stats.
891 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
893 * support/export/export.c, support/include/nfslib.h,
894 support/nfs/export.c, utils/exportfs/exportfs.c,
895 utils/mountd/mountd.c: new export option "mountpoint"
896 If no path is given, then the export point must be a
897 mount point, or it won't be exported. If a path is
898 given (e.g. mountpoint=/path) then that path must be
899 a mountpoint or the exportpoint won't be exported.
900 * utils/exportfs/exportfs.man: document mountpoint option.
901 * support/misc/mountpoint.c: New file with is_mountpoint()
902 to determine if something is a mountpoint.
904 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
906 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
907 argument as we might not be getting the filehandle for the
909 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
910 cache_get_filehandle.
911 * utils/mountd/mountd.c(get_rootfh): check export point and
912 requested directory are on the same filesystem, and complain if
915 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
917 * utils/mountd/auth.c(auth_authenticate_internal): make sure
918 portnumber is still checked when using new cache lookup.
920 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
922 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
923 Don't actually talk to kernel when new cache is in effect, except
925 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
926 * support/export/xtab.c: Only rename new xtab into place if it has
927 changed, thus preserving modify date for exportfs to use when
929 * support/nfs/cacheio.c: Add cache_flush
930 * support/export/xtab.c: Only rename new xtab into place if it has
931 changed, thus preserving modify date for exportfs to use when
934 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
936 * support/export/client.c: Add client_compose, client_member to
937 handle new composite client names
938 * support/include/exportfs.h: Declare above functions.
939 * utils/mountd/auth.c: use client_compose to determine calling
940 client if new cache is being used.
941 * utils/mountd/auth.c: call cache_export to export a filesystem if
942 new_cache, check if new cache is used, and call my_svc_run instead
944 * utils/mountd/svc_run.c: new file defining my_svc_run
945 * utils/mountd/cache.c: new file for handling cache upcalls.
946 * support/nfs/cacheio.c(check_new_cache): new function to check if
947 new cache should be used.
950 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
952 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
953 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
954 * utils/exportfs/exportfs.c(dump): ditto
956 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
958 * support/export/hostname.c(get_reliable_hostbyaddr): new function
959 to get host name from address with full checking of authenticity.
960 * support/include/misc.h: declare above function
961 * utils/mountd/auth.c(auth_authenticate_internal): remove all
962 logic for authenticating address.
963 * utils/mountd/auth.c(auth_authenticate): call new
964 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
967 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
969 * tools/rpcgen/rpc_main.c(find_cpp): removed
970 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
971 then try hard-coded paths.
973 2003-03-26 Chip Salzenberg <chip@pobox.com>
975 * debian/changelog: Version 1.0.3-1.
977 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
979 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
980 "const char*", not "char*".
982 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
984 * configure.in (VERSION): Set to "1.0.3".
985 * nfs-utils.spec: Likewise.
986 * configure: Regenerated.
988 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
990 * support/nfs/cacheio.c: New File - support for read/writing
991 to export cache in /proc/rpc/*/channel
992 * support/nfs/Makefile: compile cacheio.c
993 * support/include/nfslib.h: declare cacheio.c functions
994 * support/nfs/nfsexport.c: export and unexport through
995 /proc/rpc/*/channel if possible, as old syscall interface
996 may not survive into 2.6 on all architectures.
998 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
999 Ben Leslie <benno@sesgroup.net>
1001 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
1002 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
1003 former would incorectly ignore defport if the application
1004 explicitly set __rpcfdtype. The later is sufficient to avoid the
1005 special handling in the case where stdin is an internet socket.
1007 * utils/mountd/mountd.c(main): Add 'n' to option list in
1008 getopt_long as this is a short form of --no-tcp which want being
1011 2003-02-12 Chip Salzenberg <chip@pobox.com>
1013 * debian/changelog: Version 1.0.2-2.
1015 2002-11-27 Chip Salzenberg <chip@pobox.com>
1017 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
1018 overflow bug. Reformat per rest of source file.
1020 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
1022 * utils/exportfs/exports.man: Correct notes about whether the wild
1023 card characters match a period. They do.
1025 2002-10-15 Juan Gomez <juang@us.ibm.com>
1027 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
1029 (mountlist_add): Call slink_safe_rename instead of rename.
1031 2002-10-11 H.J. Lu <hjl@lucon.org>
1033 * support/include/exportfs.h (export_errno): New.
1035 * support/nfs/exports.c: Include <errno.h>.
1036 (export_errno): New.
1037 (getexportent): Set export_errno to EINVAL for bad option.
1038 (parseopts): Likewise.
1039 Report the location of the default sync/async option.
1041 * utils/exportfs/exportfs.c (main): Initialize export_errno to
1042 0. Return export_errno.
1044 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
1045 NeilBrown <neilb@cse.unsw.edu.au>
1047 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
1048 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
1050 2002-09-16 Chip Salzenberg <chip@pobox.com>
1052 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
1054 2002-09-15 Chip Salzenberg <chip@pobox.com>
1056 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
1057 socket, as occurs when run from sshd.
1058 * debian/changelog: Version 1.0.2-1.
1060 2002-09-12 H.J. Lu <hjl@lucon.org>
1062 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
1065 2002-09-12 H.J. Lu <hjl@lucon.org>
1067 * configure.in: Remove checking svctcp_socket and svcudp_socket.
1068 * configure: Regenerated.
1070 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
1071 (HAVE_SVCUDP_SOCKET): Removed.
1073 * support/include/nfslib.h: Undo the last change.
1075 2002-09-12 H.J. Lu <hjl@lucon.org>
1077 * support/include/nfslib.h (svctcp_socket): Protect it with
1079 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
1081 2002-09-12 H.J. Lu <hjl@lucon.org>
1083 * configure.in (VERSION): Set to "1.0.2".
1084 * configure: Regenerated.
1085 * nfs-utils.spec: Likewise.
1087 2002-09-12 H.J. Lu <hjl@lucon.org>
1089 * configure.in: Check svctcp_socket and svcudp_socket.
1090 * configure: Regenerated.
1092 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
1093 (HAVE_SVCUDP_SOCKET): New.
1095 * support/include/nfslib.h (svctcp_socket): New.
1096 (svcudp_socket): New.
1098 * support/nfs/Makefile (OBJS): Add svc_socket.o.
1100 * support/nfs/svc_socket.c: New.
1102 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
1103 svcudp_socket if port is unspecified.
1105 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
1107 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
1108 (killer): New. Signal handler to unregister.
1109 (main): Use killer. Call svcudp_socket to get the default
1112 2002-09-02 Juan Gomez <juang@us.ibm.com>
1113 NeilBrown <neilb@cse.unsw.edu.au>
1115 Add -N option to statd to run in notify-only mode.
1117 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
1118 * utils/statd/statd.man: document -N
1119 * utils/statd/statd.c: enabled -N, largely exists but needed to be
1120 uncommented and completed
1122 2002-09-02 Juan Gomez <juang@us.ibm.com>
1123 NeilBrown <neilb@cse.unsw.edu.au>
1125 statd to have " -P directory" arg to use that directory instead
1126 of /var/lib/nfs. This is useful for fail-over clusters.
1128 * utils/statd/statd.h: define SM_DIR etc as var, not const.
1129 * utils/statd/statd.c: define "-P" option to set SM_*
1131 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
1132 a constant any more.
1133 * utils/statd/notify.c: ditto.
1134 * utils/statd/statd.man: document -P option.
1136 2002-08-26 Chip Salzenberg <chip@pobox.com>
1138 * utils/nfsd/nfsd.man: Fix typo.
1139 * debian/changelog: Version 1.0.1-1.
1141 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
1143 * let parseopts know if /etc/exports was being read or not,
1144 and have it only print "no sync or async" warning in that case.
1146 2002-05-06 Tom McNeal <trmcneal@attbi.com>
1147 NeilBrown <neilb@cse.unsw.edu.au>
1149 * utils/nfsstat/nfsstat.c: Handle differing format for
1150 /proc/net/rpc/nfsd between pre and post 2.4.0
1152 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
1153 James Pearson <james-p@moving-picture.com>
1155 * support/nfs/rmtab.c(fendrmtabent): sync changes to
1156 storage before returning, as this is critical state
1158 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
1159 H.J. Lu <hjl@lucon.org>
1161 * etc/redhat/nfs: New.
1163 2002-04-08 H.J. Lu <hjl@lucon.org>
1165 * etc/redhat/nfs.init: Updated.
1167 * nfs-utils.spec.in: Updated.
1168 * nfs-utils.spec: Regenerated.
1170 * utils/mountd/mountd.c (longopts): Fix a typo.
1172 * utils/mountd/mountd.man: Updated.
1174 2002-04-07 H.J. Lu <hjl@lucon.org>
1176 * etc/redhat/nfslock.init (restart): Just do stop and start.
1178 * etc/redhat/nfs.init: Fix a typo.
1180 2002-04-07 H.J. Lu <hjl@lucon.org>
1182 * configure.in (VERSION): Set to "1.0.1".
1183 * configure: Regenerated.
1184 * nfs-utils.spec: Likewise.
1186 * README: Updated for 1.0.1.
1188 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
1189 H.J. Lu <hjl@lucon.org>
1191 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
1193 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
1194 NeilBrown <neilb@cse.unsw.edu.au>
1196 Add support for fsid=nn export option so that device
1197 numbers don't go in filehandles.
1198 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
1199 is set, pass the fsid in-place of the device number
1200 * support/nfs/exports.c: parse and print fsid= option.
1201 Also check if efname has been set, and use "command line"
1202 instead in error messages.
1203 Also, use strtol instead of atoi for anon[ug]id= so that
1204 bad numbers cause errors.
1206 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
1207 NeilBrown <neilb@cse.unsw.edu.au>
1209 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
1210 flag so that "sync" becomes the default.
1211 Check that either "sync" or "async" is given as an option
1212 and warn if neither are present
1213 * utils/exportfs/exports.man: change documentation for "sync"
1214 to be documentation for "async".
1215 * utils/exportfs/exportfs.man: note that "sync" is the default
1219 2002-01-02 Chip Salzenberg <chip@pobox.com>
1221 * support/export/nfsctl.c (expsetup): Don't export entries that
1222 specify id mappings not supported by the kernel. No extant kernel
1223 supports any significant mapping, only 'identity' (i.e. none).
1224 When other mappings are supported, this code will need changing.
1225 * debian/changelog: Version 1.0-2.
1227 2001-12-26 Chip Salzenberg <chip@pobox.com>
1229 * nfs-utils.spec (Version): Set to "1.0".
1230 * configure.in (VERSION): Likewise.
1231 * configure: Regenerated.
1232 * README: Rewritten.
1233 * debian/changelog: Version 1.0-1.
1235 * utils/exportfs/exports.man: Emphasize the need for options to
1236 immediately follow client names. Explain that wildcards don't
1237 usually work on addresses, but may work when reverse DNS fails.
1238 Comment out a leftover TP that was TPing our indentation.
1239 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
1240 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
1241 * debian/changelog: Version 0.3.3-6.
1243 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
1245 * support/export/client.c(client_lookup): If a host has multiple
1246 IP addresses, then we must always use the result of a
1247 gethostbyname, not that of gethostbyaddr for exporting
1249 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
1251 * support/export/client.c (client_lookup): use strcasecmp when
1252 comparing host names
1253 * support/nfs/export.c (getexportent): add fromkernel arg and use
1254 different defaults as kernels prior to 2.4.11 assume different
1255 defaults in /proc/fs/nfs/exports
1256 * support/include/nfslib.h, support/export/export.c,
1257 support/export/xtab.c: support extra "fromkernel" arg for
1260 2001-12-13 Chip Salzenberg <chip@pobox.com>
1262 * debian/changelog: Version 0.3.3-5.
1264 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
1266 * support/nfs/xio.c (xskip): Call `xungetc' instead of
1267 `ungetc' to keep x_line more properly.
1269 2001-11-26 Chip Salzenberg <chip@pobox.com>
1271 * utils/showmount/showmount.c (main): Don't assume that strings
1272 starting with digits are IP addresses.
1273 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
1274 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
1275 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
1276 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
1277 man pages: We check host names *and* addresses with tcpwrappers.
1278 * debian/changelog: Version 0.3.3-4.
1280 2001-11-21 Chip Salzenberg <chip@pobox.com>
1282 * support/nfs/clients.c (cfname): Added: current clients file name.
1283 (setnfsclntent): Set it.
1284 ({get,end}nfsclntent, syntaxerr): Use it.
1285 * support/nfs/exports.c (efname): Added: current exports file name.
1286 (setnfsexportent): Set it.
1287 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
1288 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
1289 * debian/changelog: Version 0.3.3-3.
1291 2001-10-11 Chip Salzenberg <chip@pobox.com>
1293 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
1294 * debian/changelog: Version 0.3.3-2.
1296 2001-10-08 Chip Salzenberg <chip@pobox.com>
1298 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
1299 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
1300 * utils/mountd/mountd.man: Update paths to /var/lib.
1301 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
1303 2001-10-06 Preston Brown <pbrown@redhat.com>
1305 * utils/nfsstat/nfsstat.man: Updated.
1307 2001-09-24 H.J. Lu <hjl@lucon.org>
1309 * configure.in (VERSION): Set to "0.3.3".
1310 * configure: Regenerated.
1311 * nfs-utils.spec: Likewise.
1313 * README: Updated for 0.3.3.
1315 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
1317 Arrange that "exportfs -au" never does DNS lookup:
1319 * support/export/client.c (client_lookup) : add "canonical"
1320 flag which says that the hostname is known to be canonical, so
1323 * support/export/export.c (export_create) : add "canonical"
1324 flag to be passed down to client_lookup
1325 * support/export/export.c (export_lookup) : Likewise
1327 * support/export/xtab.c (xtab_read) : pass appropriate
1328 "canonical" flag to export_lookup and export_create:
1329 set if reading list of filesystems currently exports
1332 * support/export/export.c (export_read) : pass 0 as
1333 "canonical" flag to export_lookup and export_create
1334 * support/export/rmtab.s (rmtab_read) : Likewise
1336 * support/include/exportfs.h : redeclare various routines
1337 to have "canonical" flag
1339 * utils/exportfs/exportfs.c (main) : redo logic for
1340 "-au" to read in what is currently exported, but never even
1341 look at what "should" be exported.
1343 * utils/exportfs/exportfs.c (unexportall) : remove this
1344 routine. Functionality is completely included in
1347 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
1348 flag to zero in calls to export_lookup and export_create.
1351 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
1352 Anne Milicia <milicia@missioncriticallinux.com>
1354 * support/export/client.c (client_lookup) call gethostbyadd
1355 to make sure that we have a canonical hostname, even for
1357 * utils/exportfs/exportfs.c (exportfs) Likewise
1359 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1361 * support/nfs/exports.c (putexportent): \octal quote any spaces
1363 * support/nfs/xio.c (xgettok): recognise double-quote and
1364 \octal quoting in path names
1365 * utils/exportfs/exports.man: document quoting conventions
1368 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1370 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
1371 change from 2000-08-02: It causes problems if someone exports
1372 to both a hostname and IP addresses. nfs-utils must be
1373 consistant about the canonical name that it chooses.
1375 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
1376 H.J. Lu <hjl@lucon.org>
1378 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
1380 * utils/statd/statd.c (longopts): Add "name".
1381 (usage): Add "-n/--name".
1382 (main): Set MY_NAME with "-n/--name".
1384 * utils/statd/state.c (change_state): Set MY_NAME only if it
1387 * utils/statd/statd.man: Updated for "-n/--name".
1389 2001-07-26 H.J. Lu <hjl@lucon.org>
1391 * nfs-utils.spec (Release): Set to 8.
1393 2001-07-25 H.J. Lu <hjl@lucon.org>
1395 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
1398 2001-06-27 H.J. Lu <hjl@lucon.org>
1400 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
1402 2001-06-27 H.J. Lu <hjl@lucon.org>
1404 * utils/rquotad/rquota_server.c: Don't call statfs () for
1405 the block size. Use BLOCK_SIZE instead.
1407 2001-06-27 H.J. Lu <hjl@lucon.org>
1409 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
1410 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
1412 * configure.in (enable_nfsv3): Set to yes by default.
1413 (--enable-rquotad): Added
1414 (AC_PROG_CXX): Removed.
1415 (AC_OUTPUT): Add utils/Makefile.
1416 (CC_FOR_BUILD): Renamed from BUILD_CC.
1417 * configure: Regenerated.
1419 * utils/Makefile: Removed.
1421 * utils/Makefile.in: New.
1423 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
1425 (CC_FOR_BUILD): Renamed from BUILD_CC.
1426 * nfs-utils.spec: Regenerated.
1428 2001-06-15 Chip Salzenberg <chip@debian.org>
1430 * debian/changelog: Version 0.3.2-2.
1431 * debian/*.init: Minor fixes.
1433 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
1435 * etc/nodist/nfs-server: Fixed a bug where the script would
1436 disable mounts from NFSv3 clients if NFSv3 is present.
1438 2001-06-05 H.J. Lu <hjl@lucon.org>
1440 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
1441 (main): Support --descriptors/-o to set the limit of the number
1442 of open file descriptors.
1445 * utils/mountd/mountd.man: Updated for --descriptors/-o.
1447 2001-06-04 H.J. Lu <hjl@lucon.org>
1449 * nfs-utils.spec (Release): Set to 6.
1451 2001-05-28 H.J. Lu <hjl@lucon.org>
1453 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
1454 * utils/mountd/mountd.c (main): Likewise.
1455 * utils/nfsd/nfsd.c (main): Likewise.
1456 * utils/rquotad/rquota_svc.c (main): Likewise.
1458 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
1460 * support/export/client.c (client_check): Check IP address
1463 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
1465 * support/export/client.c (client_gettype): Treat `*' as
1468 2001-04-22 H.J. Lu <hjl@lucon.org>
1470 * nfs-utils.spec.in: Fix a typo.
1471 * nfs-utils.spec: Regenerated.
1473 2001-04-21 H.J. Lu <hjl@lucon.org>
1475 * nfs-utils.spec.in: Fix cross build.
1476 * nfs-utils.spec: Regenerated.
1477 (Release): Set to 5.
1479 2001-04-18 H.J. Lu <hjl@lucon.org>
1481 * nfs-utils.spec.in: Support cross build.
1482 * nfs-utils.spec: Regenerated.
1483 (Release): Set to 4.
1486 * config.guess: New.
1488 * config.mk.in (BUILD_CC): New.
1489 (CC): Set to $(BUILD_CC) if BUILD is defined.
1492 (RANLIB): Set to @RANLIB@.
1494 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
1495 * configure: Regenerated.
1497 * tools/rpcgen/Makefile (BUILD): Set to true.
1499 2001-04-01 Chip Salzenberg <chip@valinux.com>
1501 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
1502 redundant, and sometimes broken, declaration of svc_fdset;
1504 * support/nfs/rpcmisc.c (closedown): Likewise.
1506 2001-03-21 H.J. Lu <hjl@lucon.org>
1508 * nfs-utils.spec: Regenerated.
1509 (Release): Set to 3.
1511 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
1513 * utils/statd/statd.c (main): make sure file descriptors 0-2
1514 are open to /dev/null.
1516 2001-03-21 H.J. Lu <hjl@lucon.org>
1518 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
1519 * support/nfs/rpcmisc.c: Likewise.
1520 * utils/rquotad/rquota_svc.c: Likewise.
1521 * utils/rquotad/rquotad.man: Likewise.
1522 * utils/statd/Makefile: Likewise.
1523 * utils/statd/rmtcall.c: Likewise.
1524 * utils/statd/simulate.c: Likewise.
1525 * utils/statd/statd.c: Likewise.
1526 * utils/statd/statd.man: Likewise.
1528 2001-03-11 H.J. Lu <hjl@lucon.org>
1530 * configure.in (RELEASE): New. Default to 1, set by
1531 --with-release=XXX. Substitute nfs-utils.spec.
1532 * nfs-utils.spec.in (Release): Set to @RELEASE@.
1533 * configure: Regenerated.
1534 * nfs-utils.spec: Likewise.
1536 2001-03-11 H.J. Lu <hjl@lucon.org>
1538 * utils/rquotad/rquotad.man: Fix a typo.
1540 2001-03-11 H.J. Lu <hjl@lucon.org>
1542 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
1543 * support/nfs/rpcmisc.c: Likewise.
1544 * utils/rquotad/rquota_svc.c: Likewise.
1545 * utils/rquotad/rquotad.man: Likewise.
1546 * utils/statd/Makefile: Likewise.
1547 * utils/statd/rmtcall.c: Likewise.
1548 * utils/statd/simulate.c: Likewise.
1549 * utils/statd/statd.c: Likewise.
1550 * utils/statd/statd.man: Likewise.
1552 2001-03-10 H.J. Lu <hjl@lucon.org>
1554 * configure.in (VERSION): Set to "0.3.2".
1555 * configure: Regenerated.
1556 * nfs-utils.spec: Likewise.
1558 * README: Updated for 0.3.2.
1560 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
1562 * utils/rquotad/rquotad.man: Updated for -p.
1563 * utils/statd/statd.man: Likewise.
1565 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
1567 * support/nfs/rpcmisc.c: export makesock()
1569 * support/include/rpcmisc.h (makesock): Declared.
1571 * utils/rquotad/rquota_svc.c: added longopts, added support for
1572 specifying the port to bind to on the command line.
1574 * utils/statd/statd.c: ditto, also specify port used for
1575 outgoing connections.
1576 (do_regist): Removed.
1578 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
1579 get_socket. Make it extern.
1581 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
1582 instead of do_regist.
1584 * utils/statd/Makefile (LIBS): link with our own libnfs
1586 2001-03-09 H.J. Lu <hjl@lucon.org>
1588 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
1589 * etc/nodist/nfs-client: Likewise.
1591 2001-02-26 Chip Salzenberg <chip@valinux.com>
1593 * debian/changelog: Version 0.3.1-1.
1594 * Mention upstream source and license in copyright file.
1595 * Add build-Depends for debhelper and libwrap0-dev.
1597 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
1599 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
1600 * etc/nodist/nfs-client: Likewise.
1602 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
1604 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
1607 2001-02-17 Patrick J. LoPresti <patl@curl.com>
1609 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
1612 2001-02-14 H.J. Lu <hjl@lucon.org>
1614 * utils/statd/rmtcall.c: Include <time.h>.
1615 * utils/statd/svc_run.c: Likewise.
1617 2001-02-14 H.J. Lu <hjl@lucon.org>
1619 * configure.in (VERSION): Set to "0.3.1".
1620 * configure: Regenerated.
1621 * nfs-utils.spec: Likewise.
1623 * README: Updated for 0.3.1.
1625 2001-02-14 H.J. Lu <hjl@lucon.org>
1627 * support/nfs/rpcmisc.c: Include <time.h>.
1629 2001-02-14 Chip Salzenberg <chip@valinux.com>
1631 * debian/control: Change priority of nhfsstone package to 'extra'.
1633 2001-02-12 Chip Salzenberg <chip@valinux.com>
1635 * debian/changelog: Version 0.3-2.
1637 2001-02-02 H.J. Lu <hjl@lucon.org>
1639 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
1641 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
1642 out SO_SNDBUF/SO_RCVBUF.
1643 (rpc_init): Remove bufsize and remove socksz in calls to
1646 * utils/mountd/mountd.c (main): Remove bufsize in calls to
1649 2001-01-28 Chip Salzenberg <chip@valinux.com>
1651 * debian/changelog: Version 0.3-1.
1653 2001-01-25 H.J. Lu <hjl@lucon.org>
1655 * configure.in (VERSION): Set to "0.3".
1656 * configure: Regenerated.
1657 * nfs-utils.spec: Likewise.
1659 * README: Updated for 0.3.
1661 2001-01-25 H.J. Lu <hjl@lucon.org>
1663 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
1665 2001-01-20 Chip Salzenberg <chip@valinux.com>
1667 * support/include/xio.h (xgetc): Declare to return int.
1668 * support/nfs/xio.c (xgetc): Return int.
1669 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
1670 * utils/statd/statd.c (main): Use int for value of getopt.
1671 * debian/changelog: Version 0.2.1-5.
1673 2000-12-10 Chip Salzenberg <chip@valinux.com>
1675 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
1676 program and procedure numbers of kernel lockd's callback. Also,
1677 besides the old (and broken) procedure #24, allow #16 per Trond.
1679 2000-12-03 Chip Salzenberg <chip@valinux.com>
1681 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
1682 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
1683 * debian/changelog: Version 0.2.1-4.
1685 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
1687 * utils/mountd/auth.c (auth_authenticate): Log the bad path
1690 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
1692 * support/nfs/exports.c (getexportent): Check for host name
1693 without option, or options without hostname, and print a warning,
1694 as this is most likely a typo.
1696 2000-11-19 Chip Salzenberg <chip@valinux.com>
1698 * debian/control: Add dependency on portmap.
1699 * debian/changelog: Version 0.2.1-3.
1701 2000-11-10 H.J. Lu <hjl@lucon.org>
1703 * nfs-utils.spec.in: Don't use libtool.
1704 Add ChangeLog and COPYING to doc.
1705 * nfs-utils.spec: Rebuild.
1707 2000-11-09 H.J. Lu <hjl@lucon.org>
1709 * etc/redhat/nfs.init (start): Back out the last change.
1711 2000-11-09 H.J. Lu <hjl@lucon.org>
1713 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
1714 TCP is not supported by kernel.
1716 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
1718 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
1719 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
1721 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
1723 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
1725 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
1726 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
1727 callbacks to local lockd.
1729 2000-10-18 Scott McDermott <mcdermot@questra.com>
1731 * utils/exportfs/exports.man: Updated for CIDR netmask.
1733 2000-10-17 Scott McDermott <mcdermot@questra.com>
1735 * support/export/client.c (client_init): Support CIDR netmask
1738 2000-10-11 H.J. Lu <hjl@lucon.org>
1740 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1741 * configure: Rebuilt.
1743 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
1745 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1746 "/var/lib/nfs/state".
1748 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
1750 * utils/statd/statd.h (run_mode): New global bitmask of runtime
1751 behaviors: fg/bg, logging, etc.
1752 * utils/statd/statd.c: New command line options: -V -h -? -d .
1753 * utils/statd/statd.man: Update for changes to statd.
1755 * utils/statd/log.h (log_init): Remove parameter of function; use
1756 global variable "name_p" instead.
1757 * utils/statd/log.c: Add support for logging to stderr.
1759 * utils/statd/notlist.c: Partially rewrite notify list handling
1760 functions. Eliminate run-off-end-of-list bug when calling
1761 nlist_insert_timer. Add lots of comments.
1763 2000-09-27 H.J. Lu <hjl@lucon.org>
1765 * README: Updated for RedHat 7.0.
1767 2000-09-27 H.J. Lu <hjl@lucon.org>
1769 * nfs-utils.spec: Rebuild.
1771 2000-09-27 H.J. Lu <hjl@lucon.org>
1773 * README: Updated for 0.2.1.
1775 2000-09-27 H.J. Lu <hjl@lucon.org>
1777 * nfs-utils.spec.in: Updated to use rpm macros and support
1780 2000-09-25 H.J. Lu <hjl@lucon.org>
1782 * configure.in (VERSION): Set to "0.2.1".
1783 * configure: Regenerated.
1784 * nfs-utils.spec: Updated.
1786 2000-09-25 H.J. Lu <hjl@lucon.org>
1788 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1789 non-NULL hostent is always returned.
1791 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1793 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1794 have an executable (i.e. kernel threads)
1796 2000-09-01 H.J. Lu <hjl@lucon.org>
1798 * README: Updated for 0.2.
1800 2000-09-01 Jay Weber <jweber@valinux.com>
1802 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1803 supporting version 3 of nfs if available, else it will fall back to
1804 version 2 support only.
1806 2000-08-30 H.J. Lu <hjl@lucon.org>
1808 * configure.in (VERSION): Set to "0.2".
1809 * configure: Regenerated.
1810 * nfs-utils.spec: Updated.
1812 2000-08-25 H.J. Lu <hjl@lucon.org>
1814 * support/misc/tcpwrapper.c (logit): Modify the log output.
1816 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1818 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1819 utils/mountd/mountd.man: updated
1821 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1822 * utils/rquotad/Makefile: fix comment
1824 * support/misc/tcpwrapper.c (logit): added comment about waiting
1825 for the children after fork()
1827 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1828 zombies behind (from logit()'s fork)
1829 * utils/rquotad/rquota_svc.c (main): ditto
1830 * utils/statd/statd.c (main): ditto
1832 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1833 to check_default instead of 0, for prognum
1835 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1836 to check_default instead of 0, for prognum
1838 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1839 HAVE_TCP_WRAPPER is defined.
1840 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1841 defined. Reject an RPC call if check_default () fails.
1843 2000-08-25 H.J. Lu <hjl@lucon.org>
1845 * support/include/tcpwrapper.h: New for the tcp wrapper
1847 * support/misc/Makefile: Likewise.
1848 * support/misc/from_local.c: Likewise.
1849 * support/misc/tcpwrapper.c: Likewise.
1851 * aclocal.m4 (AC_TCP_WRAPPER): New.
1852 * configure.in: Use it. Substitute LIBWRAP.
1853 * configure: Rebuilt.
1855 * config.mk.in (LIBNSL): New.
1856 (LIBWRAP): Likewise.
1858 * support/Makefile (SUBDIRS): Add misc.
1860 * support/lib/Makefile (LIBS): Add libmisc.a.
1862 * utils/rquotad/Makefile (LIBS): Add
1864 -lmisc $(LIBWRAP) $(LIBNSL)
1866 * utils/statd/Makefile (LIBS): Likewise.
1868 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1869 HAVE_TCP_WRAPPER is defined.
1870 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1871 defined. Reject an RPC call if check_default () fails.
1873 * utils/statd/statd.c: Include "tcpwrapper.h" if
1874 HAVE_TCP_WRAPPER is defined.
1875 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1876 check_default () before calling sm_prog_1 (). Define it as
1877 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1879 2000-08-25 Chip Salzenberg <chip@valinux.com>
1881 * debian/*: Complete Debian build support.
1882 * etc/debian/*: Remove.
1884 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1886 * support/export/client.c(client_check): removed the "dot+1" as a
1887 ypdomain argument to innetgr as this is entirely bogus.
1888 It should always be NULL.
1890 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1892 * support/export/xtab.c(xtab_read): introduce new mode for
1893 reading xtab. i.e. a list of exports that might be known to the
1894 kernel, or might not. These are flagged as m_exported == -1
1895 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1896 value "2" for xtab, meaning don't trust this too much.
1897 * support/include/exportfs.h(struct mexport): changed m_exported
1898 from one bit to an int so that it can hold new value
1899 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1900 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1901 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1904 * support/nfs/xio.c(xflock): added O_CREAT when getting
1905 a write lock so that missing files aren't fatal.
1907 * etc/debian/nfs-common: new file from "potato"
1908 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1910 2000-08-09 H.J. Lu <hjl@lucon.org>
1912 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1913 startup to ensure all existing clients work fine.
1915 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1916 to xtab_read () for reading _PATH_XTAB.
1918 2000-08-02 H.J. Lu <hjl@lucon.org>
1920 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1921 avoid the reverse name lookup.
1923 2000-07-04 H.J. Lu <hjl@lucon.org>
1925 * utils/statd/log.c: Include <stdlib.h> for exit ().
1927 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1930 2000-07-04 H.J. Lu <hjl@lucon.org>
1932 * configure.in (VERSION): Set to "0.1.9.1".
1933 * configure: Regenerated.
1934 * nfs-utils.spec: Updated.
1938 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1940 * support/export/hostname.c (hostent_dup): Handle the NULL
1943 2000-07-03 H.J. Lu <hjl@lucon.org>
1945 * README: Update the util-linux requirement.
1947 2000-07-03 H.J. Lu <hjl@lucon.org>
1949 * configure.in (VERSION): Set to "0.1.9".
1950 * configure: Regenerated.
1951 * nfs-utils.spec: Updated.
1955 2000-07-03 H.J. Lu <hjl@lucon.org>
1957 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1958 stop to ensure all clients can still access the server
1959 before it is shutdown.
1961 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1963 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1964 calls with format string.
1966 2000-06-28 Chip Salzenberg <chip@valinux.com>
1968 * utils/statd/log.c (log): Call syslog with format string.
1970 2000-06-27 H.J. Lu <hjl@lucon.org>
1972 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1973 instead of OPEN_MAX.
1975 2000-06-27 H.J. Lu <hjl@lucon.org>
1979 2000-06-27 H.J. Lu <hjl@lucon.org>
1981 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1982 startup to ensure all existing clients are exported.
1984 * configure.in (VERSION): Set to "0.1.8.2".
1985 * configure: Regenerated.
1986 * nfs-utils.spec: Updated.
1988 2000-06-06 H.J. Lu <hjl@lucon.org>
1990 * configure.in (VERSION): Set to "0.1.8.1".
1991 * configure: Regenerated.
1992 * nfs-utils.spec: Updated.
1994 2000-06-06 H.J. Lu <hjl@lucon.org>
1996 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1997 to "struct sockaddr_in *" for glibc 2.2.
1998 (mount_umnt_1_svc): Likewise.
1999 (mount_umntall_1_svc): Likewise.
2000 (mount_export_1_svc): Likewise.
2001 (mount_exportall_1_svc): Likewise.
2002 (mount_pathconf_2_svc): Likewise.
2003 (get_rootfh): Likewise.
2005 2000-06-04 H.J. Lu <hjl@lucon.org>
2007 * etc/redhat/nfs.init: Fix a typo in comment.
2009 2000-05-31 H.J. Lu <hjl@lucon.org>
2011 * configure.in (VERSION): Set to "0.1.8".
2012 * configure: Regenerated.
2013 * nfs-utils.spec: Updated.
2017 2000-05-31 H.J. Lu <hjl@lucon.org>
2019 * configure.in (VERSION): Set to "0.1.7.5".
2020 * configure: Regenerated.
2021 * nfs-utils.spec: Updated.
2023 * support/include/nfslib.h (exportent): Add a new field,
2024 r_count, to count the number of mounts from a client.
2025 (getrmtabent): Take a new argument for position in file.
2026 (putrmtabent): Likewise.
2027 (fgetrmtabent): Likewise.
2028 (fputrmtabent): Likewise.
2029 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
2030 for position in file.
2031 (fgetrmtabent): Likewise.
2032 (putrmtabent): Likewise.
2033 (fputrmtabent): Likewise.
2035 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
2038 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
2039 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
2040 and fputrmtabent ().
2041 * utils/mountd/rmtab.c (mountlist_add): Likewise.
2042 (mountlist_del): Likewise.
2043 (mountlist_del_all): Likewise.
2044 (mountlist_list): Likewise.
2046 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
2047 for the existing entry and initialize "r_count" to 1.
2048 (mountlist_del): Decrement "r_count".
2050 2000-05-18 H.J. Lu <hjl@lucon.org>
2052 * configure.in (VERSION): Set to "0.1.7.4".
2053 * configure: Regenerated.
2054 * nfs-utils.spec: Updated.
2056 2000-05-18 H.J. Lu <hjl@lucon.org>
2058 * etc/redhat/nfs.init (restart): Just do stop and start.
2060 2000-05-09 Jay Weber <jweber@valinux.com>
2062 * utils/rquotad/hasquota.c: added support for ext3 recognition
2064 * utils/rquotad/mntent.h: Likewise.
2066 2000-05-01 H.J. Lu <hjl@lucon.org>
2068 * configure.in (VERSION): Set to "0.1.7.3".
2069 * configure: Regenerated.
2070 * nfs-utils.spec: Updated.
2072 2000-05-01 H.J. Lu <hjl@lucon.org>
2074 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
2075 mounting poins in /etc/fstab.
2077 2000-05-01 H.J. Lu <hjl@lucon.org>
2079 * configure.in (VERSION): Set to "0.1.7.2".
2080 * configure: Regenerated.
2081 * nfs-utils.spec: Updated.
2083 2000-05-01 H.J. Lu <hjl@lucon.org>
2085 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
2086 to check for the mounting point.
2088 2000-04-29 Chip Salzenberg <chip@valinux.com>
2089 Neil Brown <neilb@cse.unsw.edu.au>
2091 * Really re-use RPC ports.
2092 (Fixes earlier patch. Sorry, Neil.)
2094 2000-04-26 H.J. Lu <hjl@lucon.org>
2096 * configure.in (VERSION): Set to "0.1.7.1".
2097 * configure: Regenerated.
2098 * nfs-utils.spec: Updated.
2100 2000-04-26 H.J. Lu <hjl@lucon.org>
2102 * etc/redhat/nfslock.init: Check if lockd exits before killing
2105 2000-04-25 H.J. Lu <hjl@lucon.org>
2107 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
2109 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
2111 * support/nfs/exports.c (parsesquash): Correctly set the
2114 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
2116 * support/include/nfs/nfs.h: Removed knowledge of internals of
2117 kernel filehandles (which can change) and defined nfs_fh_size
2118 which has variable size
2120 * support/nfs/getfh.c: defined getfh_size to use new syscall to
2121 get variable sized file handles, and change getfh{,old} to
2124 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
2127 * tools/Makefile, tools/nlmtest/nlmtest.c
2128 nlmtest.c depended on internel format of file handles, so now
2132 2000-03-12 Chip Salzenberg <chip@valinux.com>
2133 Neil Brown <neilb@cse.unsw.edu.au>
2135 * support/nfs/rpcmisc.c (rpc_init): Share transports.
2137 2000-03-13 H.J. Lu <hjl@lucon.org>
2139 * etc/redhat/nfsd.init: Updated.
2141 * etc/redhat/nfslock.init: Updated.
2143 * nfs-utils.spec.in: Updated.
2145 * configure.in (VERSION): Set to "0.1.7".
2146 * configure: Regenerated.
2147 * nfs-utils.spec: Updated.
2151 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
2153 * utils/exportfs/exportfs.c (dump): Included printing of
2154 nohide, no_subtree_check, and insecure_locks
2156 2000-02-26 Chip Salzenberg <chip@valinux.com>
2158 * config.mk.in (INSTALLSUID): Strip ("-s").
2159 (INSTALLSCRIPT): Define.
2160 * utils/nhfsstone/Makefile: Use it.
2162 2000-02-26 Chip Salzenberg <chip@valinux.com>
2164 * utils/lockd/lockd.man: Create.
2165 * utils/lockd/Makefile: Install it.
2166 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
2167 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
2168 * utils/nhfsstone/Makefile: Install the helper scripts and
2170 * utils/exportfs/exports.man: Fix typo.
2172 2000-02-26 Chip Salzenberg <chip@valinux.com>
2174 * support/nfs/xio.c (xungetc): Decrement line number when
2175 character to unget is newline. Make first parameter int, so
2176 it can distinguish EOF from \377.
2177 * support/include/xio.h (xungetc): Adjust prototype.
2179 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
2181 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
2182 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
2183 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
2185 This is for supporting a new option introduced in 2.3.42
2187 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
2189 * COPYING: Added. GPL.
2191 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
2193 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
2194 to get the block size.
2196 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
2198 * nfs-utils.spec.in: Update ftp site.
2200 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
2202 * README: Update hostnames.
2204 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
2206 * configure.in (VERSION): Set to "0.1.6".
2207 * configure: Regenerated.
2208 * nfs-utils.spec: Updated.
2212 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
2214 * utils/mountd/auth.c (auth_authenticate_internal): Call
2215 xstrdup for hostname before passing it to gethostbyname.
2217 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
2220 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
2222 * README: Update the mailing list address.
2224 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
2226 * configure.in (VERSION): Set to "0.1.5".
2227 * configure: Regenerated.
2228 * nfs-utils.spec: Updated.
2232 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
2234 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
2237 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
2239 * configure.in (VERSION): Set to "0.1.4".
2240 * configure: Regenerated.
2241 * nfs-utils.spec: Updated.
2245 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
2247 * nfs-utils.spec.in: New file.
2249 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
2251 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
2253 1999-12-04 Chip Salzenberg <chip@valinux.com>
2255 * config.mk.in: Use $(CC) as set by configure.
2257 1999-12-04 Chip Salzenberg <chip@valinux.com>
2259 * rules.mk: Call $(MAKE) with $(MFLAGS).
2261 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
2263 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
2264 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
2266 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
2268 * nfs-utils.spec (Version): Set to 0.1.3.
2270 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
2271 * configure: Regenerated.
2275 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
2277 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
2278 (_PATH_DEV_DSK): Likewise.
2279 (getquotainfo): Match the mounting point from /etc/mtab
2280 instead of calling nfsmount_to_devname ().
2282 1999-11-24 Chip Salzenberg <chip@valinux.com>
2284 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
2285 to the new port 24 as well as the historical port 100021.
2287 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
2289 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
2290 stopping nfsd to stop spurious ESTALE on server shutdown.
2292 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
2294 * support/nfs/exports.c (parseopts): make copy of opt string
2295 before 'nul'ing out commas so that
2297 # exportfs -o option1,option2 hosta:/fs hostb:/fs
2299 applies both options to both exports.
2301 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
2303 * README: Fix a few typos.
2305 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
2307 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
2308 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
2309 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
2310 (unsigned_dec): Likewise.
2311 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
2312 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
2314 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
2316 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
2317 (unsigned_dec): Likewise.
2318 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
2319 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
2320 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
2322 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
2324 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
2325 * support/nfs/exports.c: added {no_,}subtree_check and changed
2327 * utils/exportfs/exports.man: added no_subtree_check and nohide
2328 and removed irrelevant stuff from unfsd.
2329 * support/export/rmtab.c: rmtab_read didn't quite do the right
2330 thing if a pathname from rmtab was a subdirectory of an export-point
2332 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
2334 * README: Updated ftp site.
2336 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
2338 * nfs-utils.spec (Version): Set to 0.1.2.
2340 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
2341 * configure: Regenerated.
2345 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
2347 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
2348 (auth_authenticate_internal): Check for NULL return on forward
2350 (auth_authenticate): Handle "no_forward_dns".
2352 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
2354 * Version 0.1.1 released.
2356 * nfs-utils.spec (Version): Set to 0.1.1.
2358 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
2359 * configure: Regenerated.
2363 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
2365 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
2367 (Provides): Likewise.
2369 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
2371 * Initial version 0.1 released.
2373 * configure.in (VERSION): Set to "nfs-utils 0.1".
2374 * configure: Regenerated.
2376 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
2378 * utils/mountd/mountd.c (get_exportlist): Cleanup.
2380 * utils/exportfs/exportfs.c (unexport_all): Unexport from
2381 kernel only if the entry is exported to kernel.
2382 (unexportfs): Likewise.
2384 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
2386 1/ utils/mountd/rmtab.c::mountlist_list
2388 This routine stats the rmtab file to see if it has changed. It
2389 if has, it cleans up it's old copy of the data. But it still
2390 always re-read the file, thus returning multiple copies of the
2391 data on consecutive calls without intervening changes.
2392 "Showmount -a" didn't show this as it appears to sort/unique the
2393 data, but 'strace showmount -a' showed that the size of the
2394 datagram that it received grew.
2396 I moved the getrmtabent loop inside the mtime test.
2398 2/ utils/exportfs/exportfs.c
2400 Many routines used the m_path field of m_export instead of
2402 According to the comment in nfslib.h, m_path should only
2403 be used when processing a mount request (i.e. in mountd)
2404 where the mountpoint may be a subdirectory of the export point.
2406 I changed all occurances of m_path to e_path
2409 3/ utils/exportfs/exportfs.c:main
2411 extra arguments are not meaningful with -a or -r, but
2412 exportfs accepted them and then ignored the -a/-r, expect that
2413 -r would still unexport everything first.
2415 I generate an error if there are extra args and f_all
2417 4/ utils/exportfs/exportfs.c:main
2418 extract dump out as a special case.
2420 5/ utils/exportfs/exportfs.c
2421 made f_reexport a local variable.
2424 6/ utils/exportfs/exportfs.c:main,exportall
2426 support/export/rmtab.c
2427 only mayexport on newly created entries, don't set xtabent at all
2429 7/ support/include/nfslib.h
2431 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
2433 8/ support/export/xtab.c
2435 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
2439 9/ support/export/xtab.c
2441 xtab_mount_read now sets m_exported, and NOT
2442 xtabent and mayexport
2444 removed the append arguement from xtab_write as it was
2447 added is_export flag to xtab_write similar to xtab_read
2448 if is_export, only write entries with m_xtabent or m_addxtab
2449 if !is_export, only write entries with m_exported
2451 10/ support/export/export.c::export_allowed_internal
2453 added test for exp->m_mayexport, as the export tree
2454 may have entries that are no longer allowed to be exported,
2455 and so shouldn't caused deduced exported by rmtab_read
2457 11/ utils/exportfs/exportfs.c::main
2458 error checking of flags.
2460 12/ utils/exportfs/exportfs.c
2462 total rewrite of export and unexport logic.
2464 - build an exportslist of valid exports, based on
2465 current etab file and arguments,
2466 - read rmtab to instantiate relevant wild card entries
2467 - read etab to find out what is currently exported
2468 - synchronise intention with reality
2469 - write out etab and xtab
2472 discard the m_addxtab flag
2473 add m_changed flag so we know what to report in exportfs
2475 14/ utils/mountd/auth.c:auth_authenticate
2477 the value returned by gethostbyaddr was trusted.
2479 It now follows this with a call to gethostbyname
2480 and checks that the address is in the list.
2482 15/ support/export/nfsctl.c::cltsetup,expsetup
2484 force client names to lowercase as kernel is
2487 16/ quietened a few compiler warnings
2489 17/ support/export/client:client_lookup
2491 look for pre-existing client with same name before creating
2494 18/ support/include/exportfs.h
2496 The ordering of the MCL_* enum was:
2497 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
2499 I moved ANONYMOUS to the end.
2501 The ordering is significant when an export entry is being searched for to
2502 match a given address. There are two problems with ANONYMOUS being first.
2504 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
2505 then the ro case will always be found first and the privileged hosts won't get
2507 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
2508 export entry for the specific host, and writes it to xtab.
2509 When another request comes from the same host, the ANONYMOUS entry is found again,
2510 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
2511 again. If causes bloat in xtab.
2513 Putting ANONYMOUS at the end reflects it's nature as a catch-all
2515 19/ utils/exportfs/exportfs.man
2516 many updates to the man page to reflect changes to the code
2518 -----------------------
2524 - allow exportfs to modify rmtab file
2525 - make sure kernel never gets two clients with same IP address
2526 - possible kernel should reject
2527 - needs to be some way to lookup client in kernel by IP address
2528 - maybe get kernel to do case-insensitive comparisons on client names
2529 - remove unused clients from kernel
2531 - change etab to xtab and xtab to xtab.active
2533 - timestamp and/or statd-stamp in rmtab for removing old entries.
2535 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
2537 * linux-nfs: New directory.
2538 * linux-nfs/ChangeLog: Moved from ..
2539 * linux-nfs/INSTALL: Likewise.
2540 * linux-nfs/KNOWNBUGS: Likewise.
2541 * linux-nfs/NEW: Likewise.
2542 * linux-nfs/README: Likewise.
2543 * linux-nfs/THANKS: Likewise.
2544 * linux-nfs/TODO: Likewise.
2546 * Starting from knfsd 1.4.7.