1 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
2 User-selectable idmapping cache lifetime
4 Read and process new configuration option, Cache-Expiration, and use
5 the value to determine how long idmapping entries are cached.
7 2006-03-27 Steve Dickson <steved@redhat.com>
8 Set libnfsidmap library debugging level and logging function.
10 This patch adds a call to the new libnfsidmap library function
11 nfs4_set_debug(), which defines the verbosity level libnfsidmap
12 should use as well as the logging function.
14 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
15 Don't close file descriptor until after calling event_del().
17 Delete event processing for a file descriptor before closing it.
18 This was causing hangs when used in combination with libevent-1.0b.
20 2006-03-27 kwc@citi.umich.edu
21 Find krb5-config on SuSE 10
23 SuSE 10.0 puts krb5-config in yet another obscure location.
24 Look for it there and use it if found.
26 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
27 Update debian package information.
29 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
30 Install /var/lib/nfs files using DESTDIR and add rpcsec headers to distribution
32 Add "$(DESTDIR)" to the paths for the "$(statedir)" files so they are
33 put in the right place when DESTDIR is defined.
35 Add the rpcsec header files to EXTRA_DIST list.
37 2005-12-21 NeilBrown <neilb@suse.de>
38 *utils/rquotad/rquota_server.c: Detect and handle both old-style
39 (2.4) and new-style(2.6) quotactl.
40 *utils/gssd/gss_destroy_cred: remove dependence on "head -1" which
41 might need to be "head -n 1"
42 *utils/nhfsstone/nhfsrun: convert "tail -1" to "tail -n 1"
44 2005-12-20 Kevin Coffman <kwc@citi.umich.edu> NeilBrown <neilb@suse.de>
45 Substantial Makefile/configure rewrite.
46 Run 'autogen.sh' to create "Makefile.in" etc.
48 Also add -D_FILE_OFFSET_BITS=64 to CPP_FLAGS so that mountd can
49 stat and export files larger than 2Gig.
53 2005-12-20 NeilBrown <neilb@suse.de>
54 support/nfs/exports.c(getexportent): is a null host name is given,
55 replace it with '*' so we have a non-empty host name for messages
57 utils/exportfs/exportfs.man: Correct documentation about default
60 2005-12-20 Kevin Coffman <kwc@citi.umich.edu>
61 utils/gssd/gssd_proc.c(create_auth_rpc_client): Use service
62 portion of clp->servicename rather than hard-coding "nfs".
64 2005-12-16 NeilBrown <neilb@suse.de>
67 2005-12-16 Kevin Coffman <kwc@citi.umich.edu>
68 svcgssd needs -lnfs when using new function closeall().
71 Remove unused argument from nfsdopen()
73 After previous changes, the arguement to nfsdopen() has become unused.
77 Fix idmapd error reporting after call to mydaemon()
79 After call to mydaemon(), calls to err[x] and warn[x] result
80 in the message going nowhere. Change to using idmapd_*
81 versions of these routines which write to syslog.
82 Original problem reported by Vincent Roqueta <vincent.roqueta@ext.bull.net>
83 with a different patch.
86 Don't add @domain to names that cannot be mapped.
88 Per rfc3530 section 5.8: when unable to map a uid to a name, don't
89 add the @domain to the "nobody" name.
92 Fix idmapd for systems where sizeof(uid_t)!=4 and sizeof(gid_t)!=4
94 Fix conversion cases where uid_t and gid_t are not 32 bits.
97 Don't segfault because mech wasn't filled in because of an error
99 From Kevin Coffman <kwc@citi.umich.edu>
101 Initialize mech to null to avoid segfault if an error occurs
102 and mech is never returned from gss_accept_sec_context.
105 Remove use of static buffer in do_downcall
107 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
109 Dynamically allocate buffer of the correct length rather
110 than using fixed-length buffer.
113 Print better error message if rpc routine clnt_create() fails.
116 Print appropriate error messages after gss calls.
118 Print gss error messages after calls to gss functions, even if they
119 are for Kerberos only.
122 Update gssd and svcgssd to use the new gss mech glue lucid context calls.
124 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
126 Update gssd and svcgssd to use a lucid context from SPKM3 to send down
128 Update gssd and svcgssd to use the new gss mech glue lucid context calls.
129 Add configure check to see if spkm3 support is available.
132 Add support for CONTINUE_NEEDED return from gss_accept_sec_context.
134 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
136 Add CONTINUE_INIT handling to svcgssd. Store the partially complete spkm
137 context handle in the out_handle of CONTINUE_INIT messages so that it is
138 returned in the in_handle of subsequent messages.
141 Replace GSS_C_ANON_FLAG with GSS_C_MUTUAL_FLAG.
143 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
145 Specify GSS_C_MUTUAL_FLAG rather than GSS_C_ANON_FLAG for
148 NOTE: we need a way to pass the appropriate value rather than
149 hard-coding this flag.
152 Increase size of rpc send/receive buffers
154 Change the clnt_create() to use routines which allow us to set the
155 send and receive buffer size. This is needed for larger spkm3
156 exchanges including certificate chains.
158 This has the side-effect of skipping the portmap call since
159 we specify the port (by specifying the service) when getting
160 the server's address information.
163 Define _LINUX_QUOTA_VERSION to 1
165 The rquotad code is written against the "old" kernel quota interface.
166 Fedora Core 4 is the only platform known to check for different
167 versions, so this should not have any affect on other platforms
168 and fixes the build for FC4.
172 2005-12-12 Usha Ketineni <ketineni@us.ibm.com>, NeilBrown <neilb@suse.de>
173 *support/nfs/rpcmisc.c(rpc_init): is stdin is a socket, but
174 is already connected (as e.g. from ssh), don't assume we
175 were started by inetd.
177 2005-11-03 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
178 *utils/idmapd/idmaps.c:
180 I've recently updated the nfs-utils in rawhide with the
181 latest patches from the SourceForge CVS tree and the
182 latest CITI patches (1.0.7-4).
184 In testing these patches, I notice that when the server was started
185 and a SIGHUP was sent to rpc.idmapd to open the nfs4.nametoid/channel
186 and nfs4.idtoname/channel files, the second open (the nfs4.idtoname one)
187 failed because the path (i.e. ic->ic_path) was NULL.
189 Now the reason the ic_path was NULL was because it was never set
190 during the call to nfsdopen(). nfsdopen() looks like:
193 return ((nfsdopenone(&nfsd_ic[IC_NAMEID], IC_NAMEID, path) == 0 &&
194 nfsdopenone(&nfsd_ic[IC_IDNAME], IC_IDNAME, path) == 0) ? 0
198 Note: the call to nfsdopenone() is how the path is set in each nfsd_ic[]
199 entry and nfsdopen() is only called once.
201 So when rpc.idmap comes up and the first call to nfsdopenone() fails
202 (because the server is not running) the path in nfsd_ic[IC_IDNAME] is
203 never filled in because the second nfsdopenone() never happen...
205 Now there was a CITI patche (idmapd_revert_fix_reopen_on_sighup.dif)
206 that tried to address this problem but did seem to fix it.. The
207 attached patch fix the problem by initializing both nfsd_ic[IC_IDNAME]
208 and nfsd_ic[IC_NAMEID] structures with the needed info...
209 I figured since there is no way of changing these paths or filenames
210 by command line args, why not just set them during compile time...
211 so that's what this patch does.
213 This patch also changes how nfsdreopen_one() handles the
214 case where the event has already been set. Unlike the CITI
215 patch (idmapd_revert_fix_reopen_on_sighup.dif) which just
216 just does not register the second event, my patch deletes
217 the old event and the registers the new one. It just seems like
218 the right thing to do since a SIGHUP means a new server just
219 started so we probably should create a new event as well...
223 2005-10-14 NeilBrown <neilb@suse.de>
224 *utils/mountd/cache.c(nfsd_fh): Understand type 2 and type 3
225 filesystem identifiers, which are used with device numbers
226 That don't fit into 16 bits.
228 2005-10-07 Olaf Kirch <okir@suse.de>
229 * utils/mountd/mountd.c(get_exportlist): Without this patch,
230 showmount -e would sometimes display host names that should really
231 have been subsumed under a wildcard entry.
233 The problem was that the code in get_exportlist would always
234 skip the next group entry after removing one FQDN.
236 2005-10-06 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
237 * support/nfs/export.c: don't warn about sync/async for readonly
239 * support/nfs/closeall.c: new file with function to close all
240 file descriptors from a give minimum upwards.
241 * nfsd/mountd/statd/idmapd/gsssvcd: use closeall.
242 * utils/mountd/mountd.c: Eliminate 3 syslog message that are
243 logged for successful events.
244 * utils/mountd/mountd.c: make sure the correct hostname is used in
245 the SM_NOTIFY message that is sent from a rebooted server which
246 has multiple network interfaces. (bz 139101)
248 Details can be found in:
249 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=139101
251 *utils/idmapd/idmapd.c:Fixed subscripting problem in idmapd (bz
252 158188) This fixes the following problem:
253 rpc.idmapd: nfsdreopen: Opening '' failed: errno 2 (No such file or directory)
255 Details can be found in:
256 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=158188
258 *utils/statd/statd.c(drop_privs): clear st_gid as well as st_uid
260 *utils/statd/svc_run.c(my_svc_run): remove usage of undocumented
262 *utils/statd/montor.c(sm_mon_1_svc): as above
263 *support/nfs/xlog.c(xlog): Changed xlog to use LOG_INFO instead of
264 LOG_DEBUG so debug messages will appear w/out any config changes
268 2005-09-02 Mike Frysinger <vapier@gentoo.org>
269 * utils/rquotad/rquota_server.c(getquotainfo): use explicit
270 struture-member copying rather than memcpy, as the element
271 sizes are the same on all architectures.
273 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
274 Add option to set rpcsec_gss debugging level (if available)
276 Changes to allow gssd/svcgssd to build when using Hiemdal Kerberos
277 libraries. Note that there are still run-time issues preventing
278 this from working when shared libraries for libgssapi and librpcsecgss
281 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
282 Remove the rpcsec_gss code and rely on an external library instead.
284 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
285 *utils/mountd/mountd.c:
286 mountd currently always returns AUTH_NULL and AUTH_SYS as the
287 allowable flavors in mount replies. We want it to also return gss
288 flavors when appropriate. For now as a hack we just have it always
289 return the KRB5 flavors as well.
291 *utils/mountd/cache.c:
293 When attempting to mount an NFSv4 pseudofilesystem (fsid=0) and the
294 actual exported directory does not exist on the server, rpc.mountd
295 doesn't check the directory exists (when fsidtype=1, i.e. using fsid,
296 but does check for fsidtype=0, i.e. using dev/ino). The non-existent
297 exported directory path with fsid=0 is written to the kernel via
298 /proc/net/rpc/nfsd.export/channel, which leads to path_lookup() to
299 return ENOENT (seems appropriate). Unfortunately, the new_cache
300 approach ignores errors returned when writing via the channel file so
301 that particular error is lost and the mount request is silently ignored.
303 Assuming it doesn't make sense to revamp the new_cache/up-call method to
304 not ignore returned errors, it seems appropriate to fix the case where
305 rpc.mountd doesn't check for the existence of an exported directory with
306 fsid= semantics. The following patch does this by moving the stat() up
307 so it is done for both fsidtype's. I'm not certain whether the other
308 tests need to be executed for fsidtype=1, but it doesn't appear to hurt
309 [Not exactly true: the comparison of inode numbers caused problems so
310 now it's kept for fsidtype=0 only].
312 Would it be also desirable to log a warning for every error, if any,
313 returned by a write to any of the /proc/net/rpc/*/channel files which
314 would otherwise be ignored (maybe under a debug flag)?
316 * gssd/mountd/svcgssd: Changes gssd, svcgssd, and mountd to ignore a
317 SIGHUP rather than dying.
319 * many: Remove the gssapi code and rely on an external library instead.
321 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
322 * utils/exportfs/exports.man: Document the "crossmnt" export export option
323 * utils/gssd/krb5_util.c:
324 Add better debugging and partially revert the function
325 check for gss_krb5_ccache_name.
327 For MIT Kerberos releases up to and including 1.3.1, we *must*
328 use the routine gss_krb5_ccache_name to get the K5 gssapi code
329 to use a different credentials cache.
331 For releases 1.3.2 and on, we want to use the KRB5CCNAME
332 environment variable to tell it what to use.
333 (A problem was reported where 1.3.5 was being used, our
334 code was using gss_krb5_ccache_name, but the underlying
335 code continued to use the first (or default?) credentials
336 cache. Switching to using the env variable fixed the problem.
337 I cannot recreate this problem.
339 *utils/gssd/krb5_util.c:
340 Andrew Mahone <andrew.mahone@gmail.com> reported that reiser4
341 always has DT_UNKNOWN. He supplied patch to move the check
342 for regular files after the stat() call to correctly find
343 ccache files in reiser4 filesystem.
345 Also change the name comparison so that the wrong file is
346 not selected when the substring comparison is done.
348 *utils/gssd/krb5_util.c:
349 Limit the set of encryption types that can be negotiated by
350 the Kerberos library to those that the kernel code currently
353 This should eventually query the kernel for the list of
356 *utils/gssd/gss_util.c, utils/svcgssd/svcgssd_main_loop.c:
357 Print more information in error messages to help debugging failures.
359 *utils/svcgssd/svcgssd_proc.c: Increase token buffer size and
360 update error handling so that a response is always sent.
362 *utils/svcgssd/svcgssd_proc.c: Add support to retrieve
363 supplementary groups.
366 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
368 Consolidate some of the Kerberos checking instead of repeating
369 the same things for MIT and Heimdal.
370 Also adds more checks to distinguish 32-bit from 64-bit
371 (mainly for gssapi.h)
372 Fix svcgssd Makefile so make TOP=../../ works correctly there.
373 Enable running a modern autoheader.
374 * utils/gssd/gss_oids.c: Use correct OID value for SPKM-3
375 * utils/gssd/gss_util.c: Fix build with older MIT releases that do not define GSS_C_NT_HOSTBASED_SERVICE
376 * utils/gssd/write_bytes.h, support/include/gssapi/gssapi.h:
377 Length of gss_buffer_desc is a size_t which is 64-bits on a
378 64-bit machine. Kernel code expects 32-bit integer for length.
379 Coerce length value into a 32-bit value when reading from or
380 writing to the kernel.
381 Change gssapi.h to use datatype size values obtained from
382 configure rather than hard-coded values.
383 * utils/idmapd/idmapd.c: The EV_INIT check here was wrong, and was
384 causing idmapd to become unresponsive to server requests after
386 * utils/idmapd/idmapd.c: Idmapd should flush the server id<->name
387 caches when its started.
389 2005-04-12 G. Allen Morris III <gam3@gam3.net>
391 * All Makefile: added TOP as needed for easier compile.
393 * utils/nfsstat/nfsstat.c: added NFS V4 support; added the -m
394 option; Added -2, -3, and -4 options; changed -a option to -v
395 option; added long options; changed default output to not
396 show V2 NFS statistics unless used.
398 * utils/nfsstat/nfsstat.man: Documented above changes; changed
399 authors email address; added BUGS section.
401 2005-04-07 Chip Salzenberg <chip@pobox.com>
403 * debian/changelog: Version 1.0.7-2.
405 2005-04-06 Chip Salzenberg <chip@pobox.com>
407 * config.guess, config.sub: Update.
409 * support/rpc/svc_auth_gss.c (_svcauth_gss): Avoid using a cast as
410 an lvalue, as it is non-portable.
412 * support/nfs/exports.c (parseopts): Accept "acl" option to mean
413 ~NFSEXP_NOACL, and "no_acl" to mean NFSEXP_NOACL.
414 (putexportent): Report NFSEXP_NOACL as "no_acl", and ~NFSEXP_NOACL
416 * utils/exportfs/exportfs.c (dump): Report NFSEXP_NOACL as
418 * utils/exportfs/exports.man: Document "no_acl".
420 2005-03-14 NeilBrown <neilb@cse.unsw.edu.au>
421 Denis Vlasenko <vda@ilport.com.ua>
422 * support/export/client.c(client_init and client_gettype):
423 treat N.N.N.N as a special case of MCL_SUBNETWORK instead of
426 2005-03-06 G. Allen Morris III <gam3@gam3.net>
427 * support/nfs/cacheio.c(readline): Could not read lines greater
428 than 128 bytes. [1157791]
429 * utils/exportfs/exports.man: Added a SEE ALSO section and
430 fixed 2 typos. [1018450]
432 2005-02-28 Trond Myklebust <trond.myklebust@fys.uio.no>
433 * utils/statd/rmtcall.c(statd_get_socket): If a port number is
434 explicitly given, make sure to try to bind to that.
436 2005-01-11 Chip Salzenberg <chip@pobox.com>
438 * debian/changelog: Version 1.0.7-1.
439 * debian/nfs-common.default (NEED_IDMAPD, NEED_GSSD):
440 Disable by default, on advice of upstream.
441 * debian/nfs-kernel-server.default (NEED_SVCGSSD):
444 * utils/svcgssd/Makefile (predep): Symbolically link duplicated
446 (distclean): Remove symlinks to duplicated files.
448 2004-12-17 NeilBrown <neilb@cse.unsw.edu.au>
451 * config.mk, configure.in: update version number, run autoconf
452 * configure.in: require nfsidmap.h if gss is enabled.
454 2004-12-10 NeilBrown <neilb@cse.unsw.edu.au>
457 * config.mk, configure.in: update version number, run autoconf
459 2004-12-10 Neil Brown <neilb@cse.unsw.edu.au>
460 * README : note dependancy on kerberos, libevent, and nfsidmap
461 * configure.in : fail if --enable-nfsv4 and libevent or
462 libnfsidmap are missing.
463 * configuyre.in: improve message if krb5 support is missing
465 2004-12-06 Paul Clements <paul.clements@steeleye.com>
466 * support/include/ha-callout.h: get return status from waitpid
468 * support/include/ha-callout.h: don't ignore SIGCHLD while waiting
469 for a callout to complete.
470 * utils/statd/statd.c(sigusr): print current start when re-reading
471 notify list due to SIGUSR1
472 * utils/statd/svc_run.c(my_svc_run): call change_state when
473 re-notifying clients.
475 2004-12-06 Marc Eshel <eshel@almaden.ibm.com>
476 * utils/statd/svc_run.c(my_svc_run): allow loop to exit when in
478 *utils/statd/rmtcall.c(statd_get_socket): if a hostname is given
479 to statd with -n, prefer it's IP address to the default for
482 2004-12-06 Bruce Allan <bwa@us.ibm.com>
483 * utils/mountd/auth.c(auth_reload) Clear the "my_client" cache on
484 an auth_reload to avoid old data getting used.
486 2004-12-03 NeilBrown <neilb@cse.unsw.edu.au>
487 Release 1.0.7-pre1 for testing
489 * config.mk, configure.in: update version number, run autoconf
491 2004-12-03 Trond Myklebust <trond.myklebust@fys.uio.no>
493 * utils/statd/statd.c(main): ignore SIGPIPE
495 2004-11-22 "J. Bruce Fields" <bfields@fieldses.org>
497 * tools/rpcdebug/rpcdebug.c: support aliases "nfsdebug" and
498 "nfsddebug" and update flag names.
499 * configure.in, nodist/* redhat/* nfs-utils.spec*: remove redhat
500 specific files (as no-one actually uses them, especially not
501 redhat), and the nodist /etc files (as they drift out-of-date, and
502 the debian directory provides a suitable example.
503 * utils/svcgssd_proc.c(get_ids): fix memory leak
504 * utils/svcgssd/svcgssd_proc.c: Rely on count of the number of
505 groups instead of using a special guard value to identify the end
507 * utils/idmapd/idmapd.c: don't allow Default domain and anon-uid
508 or -gid to be specified on command line.
509 * utils/idmapd/idmapd.c: improve error messages
510 * utils/idmapd/idmapd.c: Reopen nfsd files on sighup. Allows us
511 to start up client side only (even when nfsd module not loaded),
512 and then sighup later after insmodding nfsd module.
513 * utils/idmapd/idmapd.c: Make sure we catch all errors on
514 daemonizing by waiting for child to report succesfull startup
516 * utils/idmapd/idmapd.c: Let libnfsidmapd parse the idmapd.conf
517 file for the default domain, instead of doing that ourselves.
518 * utils/gssd/gssd_proc.c: Make sure we get an error when a gssd
520 * utils/gssd/gssd_proc.c: We were forgetting to restore the euid
521 on certain failures, which meant gssd could get stuck in a state
522 where it didn't have permissions to read the files in rpc_pipefs
524 * utils/gssd/gssd_proc.c: Use libnfsidmapd to map gss principals
526 * debian/nfs-kernel-server.default: Document the NEED_SVCGSSD
527 variable in /etc/default/nfs-kernel-server.
530 2004-11-22 NeilBrown <neilb@cse.unsw.edu.au>
532 * utils/exportfs/nfsd.man: corrected typo in .BR macro usage -
533 reported by Eric Raymond
535 2004-10-19 "J. Bruce Fields" <bfields@fieldses.org>
537 * support/gssapi/* support/rpc/* utils/gssd/* utils/svcgssd/* etc
538 initial support for GSSAPI authentication
540 2004-09-15 Neil Brown <neilb@cse.unsw.edu.au>
542 * utils/statd/monitor.c(sm_unmon_1_svc): is RESTRICTED_STATD, then
543 check IP address and force my_name to 127.0.0.1 to match
544 what happens in sm_mon_1_svc. This avoid spurious "erroneous
546 * utils/statd.monitor.c(sm_unmon_all_1_svc): likewise
548 2004-09-15 "J. Bruce Fields" <bfields@fieldses.org>
550 * Assorted changes to support "gss/*" style authentication
551 * utils/idmapd: new idmapd daemon for nfsv4 username lookup
553 2004-09-06 Trond Myklebust <trond.myklebust@fys.uio.no>
554 Neil Brown <neilb@cse.unsw.edu.au>
556 * utils/mountd/auth.c(auth_authenticate_internal): fix
557 uninitialsed variable problem (causes bad error messages).
559 2004-09-06 Paul Clements <paul.clements@steeleye.com>
560 Neil Brown <neilb@cse.unsw.edu.au>
562 * utils/mountd/mountd.c(main): support --ha-callout (-H) for
563 specifying a callout program
564 * utils/mountd/rmtab.c: Call ha_callout on mount/unmount
565 * utils/statd/monitor.c: Call ha_callout on add/del client
566 * utils/statd/rmtcall.c: as above
567 * utils/statd/statd.c: handle --ha-callout (-H)
568 * utils/statd/svc_run.c: call notify_hosts is we have received a
570 * support/include/ha-callout.h: define ha_callout function
573 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
574 * utils/mountd/cache.c(cache_process_req): clear fd after
575 processing so as not to confused libc/sunrpc into thinking
576 it need to do something with that fd.
578 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
580 * debian/nfs-kernel-server.init(start,stop) mount the nfsd
581 filesystem, if available, before starting nfs services, and
582 unmount it afterwards.
583 * etc/nodist/nfs-server: ditto
584 * etc/redhat/nfs.init: likewise
585 * etc/redhat/nfs: add "MOUNT_NFSD" flag to control above.
587 2004-06-08 NeilBrown <neilb@cse.unsw.edu.au>
589 * utils/exportfs/exportfs.c: Don't rmtab_read if new_cache, it
591 * support/nfs/cacheio.c(cache_flush): Change order in which caches
592 are flushed so that dependancies don't keep things in the cache
595 2004-03-18 Chip Salzenberg <chip@pobox.com>
597 * debian/changelog: Version 1.0.6-2.
599 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
600 from "J. Bruce Fields" <bfields@fieldses.org>
602 * utils/mountd/cache.c: call auth_reload to make sure auth data is
603 current before responding to kernel upcall.
605 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
606 Based on patch from Greg Banks <gnb@melbourne.sgi.com>
608 * utils/exportfs/exports.man: Document fsid= option.
610 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
614 * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
615 support/include, and depend in "predep"
616 * support/export/Makefile, tools/rpcgen/Makefile,
617 utils/statd/Makefile: add "predep" rule so that "make dep" works.
618 * Makefile: allow a simple "make" to run ./configure and "make dep"
620 * configure.in, nfs-utils.spec: Update version to 1.0.6
623 2003-09-12 Chip Salzenberg <chip@pobox.com>
625 * debian/changelog: Version 1.0.6-1.
627 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
629 * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
631 * utils/statd/statd.c(main): Ditto.
633 michael <michael@newdream.net> discovered that svc_setreqsize
634 in glibc can segfault if RLIMIT_NOFILE is bigger than
635 FD_SETSIZE, so a simple solution is to impose a hard limit.
637 2003-09-09 Chip Salzenberg <chip@pobox.com>
639 * debian/changelog: Version 1.0.5-3.
640 * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
641 on invalid reverse DNS.
642 * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
643 * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
644 * tools/rpcgen/rpc_parse.c (def_union): Likewise.
646 2003-08-22 Chip Salzenberg <chip@pobox.com>
648 * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
649 N_*, to avoid conflict with ISO C built-in log() function.
650 * utils/statd/*.c: Use note().
652 2003-08-20 Chip Salzenberg <chip@pobox.com>
654 * debian/changelog: Version 1.0.5-2.
656 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
658 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
661 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
663 * support/include/nfs/export.h, support/nfs/exports.c,
664 utils/exportfs/exports.c, utils/mountd/mountd.c: change
665 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
666 meaning. Also remove meaningless
667 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
669 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
671 * support/export/xtab.c, support/include/nfslib.h,
672 support/nfs/cacheio.c, support/nfs/nfssvc.c,
673 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
674 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
675 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
676 (nfs-utils-1.0.5-post2)
678 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
680 * support/nfs/nfsexport.c: open channel file O_WRONLY when
682 * utils/mountd/cache.c: maintain mountlist when new_cache is
683 active. Also use O_WRONLY for channel files.
684 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
685 rather than an nfs_export.
686 * utils/mountd/rmtab.c: ditto.
687 (nfs-utils-1.5.0-post1)
689 2003-07-24 Chip Salzenberg <chip@pobox.com>
691 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
692 use Debian security team's cleaner approach.
693 * debian/changelog: Version 1.0.5-1.
694 * debian/nfs-kernel-server.init: Cosmetic changes.
696 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
699 1.0.4 was a bit of a brown-paper-bag-release because of the extra
700 'free' in auth.c. So I'm releasing this just a few days later.
702 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
704 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
705 check if new_cache is enabled, error if not, flush and exit if it
707 * utils/exportfs/exportfs.man: Explain -f option and explain the
708 two different modes that exportfs can work in.
709 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
711 * utils/mountd/mountd.man: Record the change if default behaviour
713 * configure.in, nfs-utils.spec: update version to 1.0.5 and
716 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
718 * utils/mountd/mountd.c(main): getopt string fix for 'o'
719 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
720 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
722 * support/include/nfs/export.h: Reserve a bit for possible ACL
725 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
727 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
728 assorted changed to cope with section 7 of the manual.
729 * configure.in, nfs-utils.spec: Update version to 1.0.4
732 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
733 baseline for 2.6 and 2.8. I.e. it should continue to work right
734 through the 2.8 (or 3.0) kernel series. Previous releases wont.
736 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
737 Steve Dickson <SteveD@redhat.com>
740 * utils/statd/statd.c: create a pidfile with pid of statd, and
741 truncate it when statd exists.
742 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
743 and warn if this is root.
744 * utils/statd/statd.c: when statd forks, connect child to parent
745 with a pipe, and send a byte down the pipe once the child is
747 * Makefile: create and chown sm, sm.bak, state when "make install"
748 * configure.in: add --with-statduser= option which defaults to
749 "rpcuser" or "nobody"
750 * config.mk.in: pass "statduser" through to Makefile
752 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
754 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
755 used as the size was changed somewhere in 2.5.60-2.5.70. Without
756 this nfs-utils compiles against 2.6 headers will not work on a
759 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
761 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
762 set number of threads by writing to there. This means it will
763 still work when the syscall interface goes away in 2.7.
765 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
766 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
768 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
769 so as to only export the wildcard exports that were asked for.
770 * support/export/export.c(export_allowed): changed to return the
771 nfs_export rather than a "struct exportent", as m_changed is
773 * support/export/rmtab.c(rmtab_read): modified to deal with
774 interface change for export_allowed(), and enhanced to preserve
775 m_changed flag when a wild-card export causes the creation of
776 a non-wildcard export.
778 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
779 Steve Dickson <SteveD@redhat.com>
781 * utils/mountd/mountd.man: Add valid kinds of debugging.
782 * utils/mountd/mountd.c(main): ignore SIGPIPE
783 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
784 we don't get warnings about unavailable stats that weren't asked
787 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
789 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
790 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
791 'forever', so things disappear out of the cache rather than just
794 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
796 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
799 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
801 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
802 etc/redhat/nfs.init: when checking if V3 is supported, make sure
803 nfs server 'knows' about 127.0.0.1 first.
805 2003-06-10 Chip Salzenberg <chip@pobox.com>
807 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
808 * debian/changelog: Version 1.0.3-2.
810 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
811 NeilBrown <neilb@cse.unsw.edu.au>
813 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
814 long long to avoid overflow when printing stats.
816 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
818 * support/export/export.c, support/include/nfslib.h,
819 support/nfs/export.c, utils/exportfs/exportfs.c,
820 utils/mountd/mountd.c: new export option "mountpoint"
821 If no path is given, then the export point must be a
822 mount point, or it won't be exported. If a path is
823 given (e.g. mountpoint=/path) then that path must be
824 a mountpoint or the exportpoint won't be exported.
825 * utils/exportfs/exportfs.man: document mountpoint option.
826 * support/misc/mountpoint.c: New file with is_mountpoint()
827 to determine if something is a mountpoint.
829 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
831 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
832 argument as we might not be getting the filehandle for the
834 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
835 cache_get_filehandle.
836 * utils/mountd/mountd.c(get_rootfh): check export point and
837 requested directory are on the same filesystem, and complain if
840 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
842 * utils/mountd/auth.c(auth_authenticate_internal): make sure
843 portnumber is still checked when using new cache lookup.
845 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
847 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
848 Don't actually talk to kernel when new cache is in effect, except
850 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
851 * support/export/xtab.c: Only rename new xtab into place if it has
852 changed, thus preserving modify date for exportfs to use when
854 * support/nfs/cacheio.c: Add cache_flush
855 * support/export/xtab.c: Only rename new xtab into place if it has
856 changed, thus preserving modify date for exportfs to use when
859 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
861 * support/export/client.c: Add client_compose, client_member to
862 handle new composite client names
863 * support/include/exportfs.h: Declare above functions.
864 * utils/mountd/auth.c: use client_compose to determine calling
865 client if new cache is being used.
866 * utils/mountd/auth.c: call cache_export to export a filesystem if
867 new_cache, check if new cache is used, and call my_svc_run instead
869 * utils/mountd/svc_run.c: new file defining my_svc_run
870 * utils/mountd/cache.c: new file for handling cache upcalls.
871 * support/nfs/cacheio.c(check_new_cache): new function to check if
872 new cache should be used.
875 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
877 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
878 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
879 * utils/exportfs/exportfs.c(dump): ditto
881 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
883 * support/export/hostname.c(get_reliable_hostbyaddr): new function
884 to get host name from address with full checking of authenticity.
885 * support/include/misc.h: declare above function
886 * utils/mountd/auth.c(auth_authenticate_internal): remove all
887 logic for authenticating address.
888 * utils/mountd/auth.c(auth_authenticate): call new
889 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
892 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
894 * tools/rpcgen/rpc_main.c(find_cpp): removed
895 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
896 then try hard-coded paths.
898 2003-03-26 Chip Salzenberg <chip@pobox.com>
900 * debian/changelog: Version 1.0.3-1.
902 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
904 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
905 "const char*", not "char*".
907 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
909 * configure.in (VERSION): Set to "1.0.3".
910 * nfs-utils.spec: Likewise.
911 * configure: Regenerated.
913 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
915 * support/nfs/cacheio.c: New File - support for read/writing
916 to export cache in /proc/rpc/*/channel
917 * support/nfs/Makefile: compile cacheio.c
918 * support/include/nfslib.h: declare cacheio.c functions
919 * support/nfs/nfsexport.c: export and unexport through
920 /proc/rpc/*/channel if possible, as old syscall interface
921 may not survive into 2.6 on all architectures.
923 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
924 Ben Leslie <benno@sesgroup.net>
926 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
927 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
928 former would incorectly ignore defport if the application
929 explicitly set __rpcfdtype. The later is sufficient to avoid the
930 special handling in the case where stdin is an internet socket.
932 * utils/mountd/mountd.c(main): Add 'n' to option list in
933 getopt_long as this is a short form of --no-tcp which want being
936 2003-02-12 Chip Salzenberg <chip@pobox.com>
938 * debian/changelog: Version 1.0.2-2.
940 2002-11-27 Chip Salzenberg <chip@pobox.com>
942 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
943 overflow bug. Reformat per rest of source file.
945 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
947 * utils/exportfs/exports.man: Correct notes about whether the wild
948 card characters match a period. They do.
950 2002-10-15 Juan Gomez <juang@us.ibm.com>
952 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
954 (mountlist_add): Call slink_safe_rename instead of rename.
956 2002-10-11 H.J. Lu <hjl@lucon.org>
958 * support/include/exportfs.h (export_errno): New.
960 * support/nfs/exports.c: Include <errno.h>.
962 (getexportent): Set export_errno to EINVAL for bad option.
963 (parseopts): Likewise.
964 Report the location of the default sync/async option.
966 * utils/exportfs/exportfs.c (main): Initialize export_errno to
967 0. Return export_errno.
969 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
970 NeilBrown <neilb@cse.unsw.edu.au>
972 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
973 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
975 2002-09-16 Chip Salzenberg <chip@pobox.com>
977 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
979 2002-09-15 Chip Salzenberg <chip@pobox.com>
981 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
982 socket, as occurs when run from sshd.
983 * debian/changelog: Version 1.0.2-1.
985 2002-09-12 H.J. Lu <hjl@lucon.org>
987 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
990 2002-09-12 H.J. Lu <hjl@lucon.org>
992 * configure.in: Remove checking svctcp_socket and svcudp_socket.
993 * configure: Regenerated.
995 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
996 (HAVE_SVCUDP_SOCKET): Removed.
998 * support/include/nfslib.h: Undo the last change.
1000 2002-09-12 H.J. Lu <hjl@lucon.org>
1002 * support/include/nfslib.h (svctcp_socket): Protect it with
1004 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
1006 2002-09-12 H.J. Lu <hjl@lucon.org>
1008 * configure.in (VERSION): Set to "1.0.2".
1009 * configure: Regenerated.
1010 * nfs-utils.spec: Likewise.
1012 2002-09-12 H.J. Lu <hjl@lucon.org>
1014 * configure.in: Check svctcp_socket and svcudp_socket.
1015 * configure: Regenerated.
1017 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
1018 (HAVE_SVCUDP_SOCKET): New.
1020 * support/include/nfslib.h (svctcp_socket): New.
1021 (svcudp_socket): New.
1023 * support/nfs/Makefile (OBJS): Add svc_socket.o.
1025 * support/nfs/svc_socket.c: New.
1027 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
1028 svcudp_socket if port is unspecified.
1030 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
1032 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
1033 (killer): New. Signal handler to unregister.
1034 (main): Use killer. Call svcudp_socket to get the default
1037 2002-09-02 Juan Gomez <juang@us.ibm.com>
1038 NeilBrown <neilb@cse.unsw.edu.au>
1040 Add -N option to statd to run in notify-only mode.
1042 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
1043 * utils/statd/statd.man: document -N
1044 * utils/statd/statd.c: enabled -N, largely exists but needed to be
1045 uncommented and completed
1047 2002-09-02 Juan Gomez <juang@us.ibm.com>
1048 NeilBrown <neilb@cse.unsw.edu.au>
1050 statd to have " -P directory" arg to use that directory instead
1051 of /var/lib/nfs. This is useful for fail-over clusters.
1053 * utils/statd/statd.h: define SM_DIR etc as var, not const.
1054 * utils/statd/statd.c: define "-P" option to set SM_*
1056 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
1057 a constant any more.
1058 * utils/statd/notify.c: ditto.
1059 * utils/statd/statd.man: document -P option.
1061 2002-08-26 Chip Salzenberg <chip@pobox.com>
1063 * utils/nfsd/nfsd.man: Fix typo.
1064 * debian/changelog: Version 1.0.1-1.
1066 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
1068 * let parseopts know if /etc/exports was being read or not,
1069 and have it only print "no sync or async" warning in that case.
1071 2002-05-06 Tom McNeal <trmcneal@attbi.com>
1072 NeilBrown <neilb@cse.unsw.edu.au>
1074 * utils/nfsstat/nfsstat.c: Handle differing format for
1075 /proc/net/rpc/nfsd between pre and post 2.4.0
1077 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
1078 James Pearson <james-p@moving-picture.com>
1080 * support/nfs/rmtab.c(fendrmtabent): sync changes to
1081 storage before returning, as this is critical state
1083 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
1084 H.J. Lu <hjl@lucon.org>
1086 * etc/redhat/nfs: New.
1088 2002-04-08 H.J. Lu <hjl@lucon.org>
1090 * etc/redhat/nfs.init: Updated.
1092 * nfs-utils.spec.in: Updated.
1093 * nfs-utils.spec: Regenerated.
1095 * utils/mountd/mountd.c (longopts): Fix a typo.
1097 * utils/mountd/mountd.man: Updated.
1099 2002-04-07 H.J. Lu <hjl@lucon.org>
1101 * etc/redhat/nfslock.init (restart): Just do stop and start.
1103 * etc/redhat/nfs.init: Fix a typo.
1105 2002-04-07 H.J. Lu <hjl@lucon.org>
1107 * configure.in (VERSION): Set to "1.0.1".
1108 * configure: Regenerated.
1109 * nfs-utils.spec: Likewise.
1111 * README: Updated for 1.0.1.
1113 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
1114 H.J. Lu <hjl@lucon.org>
1116 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
1118 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
1119 NeilBrown <neilb@cse.unsw.edu.au>
1121 Add support for fsid=nn export option so that device
1122 numbers don't go in filehandles.
1123 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
1124 is set, pass the fsid in-place of the device number
1125 * support/nfs/exports.c: parse and print fsid= option.
1126 Also check if efname has been set, and use "command line"
1127 instead in error messages.
1128 Also, use strtol instead of atoi for anon[ug]id= so that
1129 bad numbers cause errors.
1131 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
1132 NeilBrown <neilb@cse.unsw.edu.au>
1134 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
1135 flag so that "sync" becomes the default.
1136 Check that either "sync" or "async" is given as an option
1137 and warn if neither are present
1138 * utils/exportfs/exports.man: change documentation for "sync"
1139 to be documentation for "async".
1140 * utils/exportfs/exportfs.man: note that "sync" is the default
1144 2002-01-02 Chip Salzenberg <chip@pobox.com>
1146 * support/export/nfsctl.c (expsetup): Don't export entries that
1147 specify id mappings not supported by the kernel. No extant kernel
1148 supports any significant mapping, only 'identity' (i.e. none).
1149 When other mappings are supported, this code will need changing.
1150 * debian/changelog: Version 1.0-2.
1152 2001-12-26 Chip Salzenberg <chip@pobox.com>
1154 * nfs-utils.spec (Version): Set to "1.0".
1155 * configure.in (VERSION): Likewise.
1156 * configure: Regenerated.
1157 * README: Rewritten.
1158 * debian/changelog: Version 1.0-1.
1160 * utils/exportfs/exports.man: Emphasize the need for options to
1161 immediately follow client names. Explain that wildcards don't
1162 usually work on addresses, but may work when reverse DNS fails.
1163 Comment out a leftover TP that was TPing our indentation.
1164 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
1165 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
1166 * debian/changelog: Version 0.3.3-6.
1168 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
1170 * support/export/client.c(client_lookup): If a host has multiple
1171 IP addresses, then we must always use the result of a
1172 gethostbyname, not that of gethostbyaddr for exporting
1174 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
1176 * support/export/client.c (client_lookup): use strcasecmp when
1177 comparing host names
1178 * support/nfs/export.c (getexportent): add fromkernel arg and use
1179 different defaults as kernels prior to 2.4.11 assume different
1180 defaults in /proc/fs/nfs/exports
1181 * support/include/nfslib.h, support/export/export.c,
1182 support/export/xtab.c: support extra "fromkernel" arg for
1185 2001-12-13 Chip Salzenberg <chip@pobox.com>
1187 * debian/changelog: Version 0.3.3-5.
1189 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
1191 * support/nfs/xio.c (xskip): Call `xungetc' instead of
1192 `ungetc' to keep x_line more properly.
1194 2001-11-26 Chip Salzenberg <chip@pobox.com>
1196 * utils/showmount/showmount.c (main): Don't assume that strings
1197 starting with digits are IP addresses.
1198 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
1199 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
1200 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
1201 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
1202 man pages: We check host names *and* addresses with tcpwrappers.
1203 * debian/changelog: Version 0.3.3-4.
1205 2001-11-21 Chip Salzenberg <chip@pobox.com>
1207 * support/nfs/clients.c (cfname): Added: current clients file name.
1208 (setnfsclntent): Set it.
1209 ({get,end}nfsclntent, syntaxerr): Use it.
1210 * support/nfs/exports.c (efname): Added: current exports file name.
1211 (setnfsexportent): Set it.
1212 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
1213 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
1214 * debian/changelog: Version 0.3.3-3.
1216 2001-10-11 Chip Salzenberg <chip@pobox.com>
1218 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
1219 * debian/changelog: Version 0.3.3-2.
1221 2001-10-08 Chip Salzenberg <chip@pobox.com>
1223 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
1224 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
1225 * utils/mountd/mountd.man: Update paths to /var/lib.
1226 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
1228 2001-10-06 Preston Brown <pbrown@redhat.com>
1230 * utils/nfsstat/nfsstat.man: Updated.
1232 2001-09-24 H.J. Lu <hjl@lucon.org>
1234 * configure.in (VERSION): Set to "0.3.3".
1235 * configure: Regenerated.
1236 * nfs-utils.spec: Likewise.
1238 * README: Updated for 0.3.3.
1240 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
1242 Arrange that "exportfs -au" never does DNS lookup:
1244 * support/export/client.c (client_lookup) : add "canonical"
1245 flag which says that the hostname is known to be canonical, so
1248 * support/export/export.c (export_create) : add "canonical"
1249 flag to be passed down to client_lookup
1250 * support/export/export.c (export_lookup) : Likewise
1252 * support/export/xtab.c (xtab_read) : pass appropriate
1253 "canonical" flag to export_lookup and export_create:
1254 set if reading list of filesystems currently exports
1257 * support/export/export.c (export_read) : pass 0 as
1258 "canonical" flag to export_lookup and export_create
1259 * support/export/rmtab.s (rmtab_read) : Likewise
1261 * support/include/exportfs.h : redeclare various routines
1262 to have "canonical" flag
1264 * utils/exportfs/exportfs.c (main) : redo logic for
1265 "-au" to read in what is currently exported, but never even
1266 look at what "should" be exported.
1268 * utils/exportfs/exportfs.c (unexportall) : remove this
1269 routine. Functionality is completely included in
1272 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
1273 flag to zero in calls to export_lookup and export_create.
1276 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
1277 Anne Milicia <milicia@missioncriticallinux.com>
1279 * support/export/client.c (client_lookup) call gethostbyadd
1280 to make sure that we have a canonical hostname, even for
1282 * utils/exportfs/exportfs.c (exportfs) Likewise
1284 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1286 * support/nfs/exports.c (putexportent): \octal quote any spaces
1288 * support/nfs/xio.c (xgettok): recognise double-quote and
1289 \octal quoting in path names
1290 * utils/exportfs/exports.man: document quoting conventions
1293 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1295 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
1296 change from 2000-08-02: It causes problems if someone exports
1297 to both a hostname and IP addresses. nfs-utils must be
1298 consistant about the canonical name that it chooses.
1300 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
1301 H.J. Lu <hjl@lucon.org>
1303 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
1305 * utils/statd/statd.c (longopts): Add "name".
1306 (usage): Add "-n/--name".
1307 (main): Set MY_NAME with "-n/--name".
1309 * utils/statd/state.c (change_state): Set MY_NAME only if it
1312 * utils/statd/statd.man: Updated for "-n/--name".
1314 2001-07-26 H.J. Lu <hjl@lucon.org>
1316 * nfs-utils.spec (Release): Set to 8.
1318 2001-07-25 H.J. Lu <hjl@lucon.org>
1320 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
1323 2001-06-27 H.J. Lu <hjl@lucon.org>
1325 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
1327 2001-06-27 H.J. Lu <hjl@lucon.org>
1329 * utils/rquotad/rquota_server.c: Don't call statfs () for
1330 the block size. Use BLOCK_SIZE instead.
1332 2001-06-27 H.J. Lu <hjl@lucon.org>
1334 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
1335 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
1337 * configure.in (enable_nfsv3): Set to yes by default.
1338 (--enable-rquotad): Added
1339 (AC_PROG_CXX): Removed.
1340 (AC_OUTPUT): Add utils/Makefile.
1341 (CC_FOR_BUILD): Renamed from BUILD_CC.
1342 * configure: Regenerated.
1344 * utils/Makefile: Removed.
1346 * utils/Makefile.in: New.
1348 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
1350 (CC_FOR_BUILD): Renamed from BUILD_CC.
1351 * nfs-utils.spec: Regenerated.
1353 2001-06-15 Chip Salzenberg <chip@debian.org>
1355 * debian/changelog: Version 0.3.2-2.
1356 * debian/*.init: Minor fixes.
1358 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
1360 * etc/nodist/nfs-server: Fixed a bug where the script would
1361 disable mounts from NFSv3 clients if NFSv3 is present.
1363 2001-06-05 H.J. Lu <hjl@lucon.org>
1365 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
1366 (main): Support --descriptors/-o to set the limit of the number
1367 of open file descriptors.
1370 * utils/mountd/mountd.man: Updated for --descriptors/-o.
1372 2001-06-04 H.J. Lu <hjl@lucon.org>
1374 * nfs-utils.spec (Release): Set to 6.
1376 2001-05-28 H.J. Lu <hjl@lucon.org>
1378 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
1379 * utils/mountd/mountd.c (main): Likewise.
1380 * utils/nfsd/nfsd.c (main): Likewise.
1381 * utils/rquotad/rquota_svc.c (main): Likewise.
1383 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
1385 * support/export/client.c (client_check): Check IP address
1388 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
1390 * support/export/client.c (client_gettype): Treat `*' as
1393 2001-04-22 H.J. Lu <hjl@lucon.org>
1395 * nfs-utils.spec.in: Fix a typo.
1396 * nfs-utils.spec: Regenerated.
1398 2001-04-21 H.J. Lu <hjl@lucon.org>
1400 * nfs-utils.spec.in: Fix cross build.
1401 * nfs-utils.spec: Regenerated.
1402 (Release): Set to 5.
1404 2001-04-18 H.J. Lu <hjl@lucon.org>
1406 * nfs-utils.spec.in: Support cross build.
1407 * nfs-utils.spec: Regenerated.
1408 (Release): Set to 4.
1411 * config.guess: New.
1413 * config.mk.in (BUILD_CC): New.
1414 (CC): Set to $(BUILD_CC) if BUILD is defined.
1417 (RANLIB): Set to @RANLIB@.
1419 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
1420 * configure: Regenerated.
1422 * tools/rpcgen/Makefile (BUILD): Set to true.
1424 2001-04-01 Chip Salzenberg <chip@valinux.com>
1426 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
1427 redundant, and sometimes broken, declaration of svc_fdset;
1429 * support/nfs/rpcmisc.c (closedown): Likewise.
1431 2001-03-21 H.J. Lu <hjl@lucon.org>
1433 * nfs-utils.spec: Regenerated.
1434 (Release): Set to 3.
1436 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
1438 * utils/statd/statd.c (main): make sure file descriptors 0-2
1439 are open to /dev/null.
1441 2001-03-21 H.J. Lu <hjl@lucon.org>
1443 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
1444 * support/nfs/rpcmisc.c: Likewise.
1445 * utils/rquotad/rquota_svc.c: Likewise.
1446 * utils/rquotad/rquotad.man: Likewise.
1447 * utils/statd/Makefile: Likewise.
1448 * utils/statd/rmtcall.c: Likewise.
1449 * utils/statd/simulate.c: Likewise.
1450 * utils/statd/statd.c: Likewise.
1451 * utils/statd/statd.man: Likewise.
1453 2001-03-11 H.J. Lu <hjl@lucon.org>
1455 * configure.in (RELEASE): New. Default to 1, set by
1456 --with-release=XXX. Substitute nfs-utils.spec.
1457 * nfs-utils.spec.in (Release): Set to @RELEASE@.
1458 * configure: Regenerated.
1459 * nfs-utils.spec: Likewise.
1461 2001-03-11 H.J. Lu <hjl@lucon.org>
1463 * utils/rquotad/rquotad.man: Fix a typo.
1465 2001-03-11 H.J. Lu <hjl@lucon.org>
1467 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
1468 * support/nfs/rpcmisc.c: Likewise.
1469 * utils/rquotad/rquota_svc.c: Likewise.
1470 * utils/rquotad/rquotad.man: Likewise.
1471 * utils/statd/Makefile: Likewise.
1472 * utils/statd/rmtcall.c: Likewise.
1473 * utils/statd/simulate.c: Likewise.
1474 * utils/statd/statd.c: Likewise.
1475 * utils/statd/statd.man: Likewise.
1477 2001-03-10 H.J. Lu <hjl@lucon.org>
1479 * configure.in (VERSION): Set to "0.3.2".
1480 * configure: Regenerated.
1481 * nfs-utils.spec: Likewise.
1483 * README: Updated for 0.3.2.
1485 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
1487 * utils/rquotad/rquotad.man: Updated for -p.
1488 * utils/statd/statd.man: Likewise.
1490 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
1492 * support/nfs/rpcmisc.c: export makesock()
1494 * support/include/rpcmisc.h (makesock): Declared.
1496 * utils/rquotad/rquota_svc.c: added longopts, added support for
1497 specifying the port to bind to on the command line.
1499 * utils/statd/statd.c: ditto, also specify port used for
1500 outgoing connections.
1501 (do_regist): Removed.
1503 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
1504 get_socket. Make it extern.
1506 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
1507 instead of do_regist.
1509 * utils/statd/Makefile (LIBS): link with our own libnfs
1511 2001-03-09 H.J. Lu <hjl@lucon.org>
1513 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
1514 * etc/nodist/nfs-client: Likewise.
1516 2001-02-26 Chip Salzenberg <chip@valinux.com>
1518 * debian/changelog: Version 0.3.1-1.
1519 * Mention upstream source and license in copyright file.
1520 * Add build-Depends for debhelper and libwrap0-dev.
1522 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
1524 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
1525 * etc/nodist/nfs-client: Likewise.
1527 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
1529 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
1532 2001-02-17 Patrick J. LoPresti <patl@curl.com>
1534 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
1537 2001-02-14 H.J. Lu <hjl@lucon.org>
1539 * utils/statd/rmtcall.c: Include <time.h>.
1540 * utils/statd/svc_run.c: Likewise.
1542 2001-02-14 H.J. Lu <hjl@lucon.org>
1544 * configure.in (VERSION): Set to "0.3.1".
1545 * configure: Regenerated.
1546 * nfs-utils.spec: Likewise.
1548 * README: Updated for 0.3.1.
1550 2001-02-14 H.J. Lu <hjl@lucon.org>
1552 * support/nfs/rpcmisc.c: Include <time.h>.
1554 2001-02-14 Chip Salzenberg <chip@valinux.com>
1556 * debian/control: Change priority of nhfsstone package to 'extra'.
1558 2001-02-12 Chip Salzenberg <chip@valinux.com>
1560 * debian/changelog: Version 0.3-2.
1562 2001-02-02 H.J. Lu <hjl@lucon.org>
1564 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
1566 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
1567 out SO_SNDBUF/SO_RCVBUF.
1568 (rpc_init): Remove bufsize and remove socksz in calls to
1571 * utils/mountd/mountd.c (main): Remove bufsize in calls to
1574 2001-01-28 Chip Salzenberg <chip@valinux.com>
1576 * debian/changelog: Version 0.3-1.
1578 2001-01-25 H.J. Lu <hjl@lucon.org>
1580 * configure.in (VERSION): Set to "0.3".
1581 * configure: Regenerated.
1582 * nfs-utils.spec: Likewise.
1584 * README: Updated for 0.3.
1586 2001-01-25 H.J. Lu <hjl@lucon.org>
1588 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
1590 2001-01-20 Chip Salzenberg <chip@valinux.com>
1592 * support/include/xio.h (xgetc): Declare to return int.
1593 * support/nfs/xio.c (xgetc): Return int.
1594 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
1595 * utils/statd/statd.c (main): Use int for value of getopt.
1596 * debian/changelog: Version 0.2.1-5.
1598 2000-12-10 Chip Salzenberg <chip@valinux.com>
1600 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
1601 program and procedure numbers of kernel lockd's callback. Also,
1602 besides the old (and broken) procedure #24, allow #16 per Trond.
1604 2000-12-03 Chip Salzenberg <chip@valinux.com>
1606 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
1607 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
1608 * debian/changelog: Version 0.2.1-4.
1610 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
1612 * utils/mountd/auth.c (auth_authenticate): Log the bad path
1615 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
1617 * support/nfs/exports.c (getexportent): Check for host name
1618 without option, or options without hostname, and print a warning,
1619 as this is most likely a typo.
1621 2000-11-19 Chip Salzenberg <chip@valinux.com>
1623 * debian/control: Add dependency on portmap.
1624 * debian/changelog: Version 0.2.1-3.
1626 2000-11-10 H.J. Lu <hjl@lucon.org>
1628 * nfs-utils.spec.in: Don't use libtool.
1629 Add ChangeLog and COPYING to doc.
1630 * nfs-utils.spec: Rebuild.
1632 2000-11-09 H.J. Lu <hjl@lucon.org>
1634 * etc/redhat/nfs.init (start): Back out the last change.
1636 2000-11-09 H.J. Lu <hjl@lucon.org>
1638 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
1639 TCP is not supported by kernel.
1641 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
1643 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
1644 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
1646 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
1648 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
1650 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
1651 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
1652 callbacks to local lockd.
1654 2000-10-18 Scott McDermott <mcdermot@questra.com>
1656 * utils/exportfs/exports.man: Updated for CIDR netmask.
1658 2000-10-17 Scott McDermott <mcdermot@questra.com>
1660 * support/export/client.c (client_init): Support CIDR netmask
1663 2000-10-11 H.J. Lu <hjl@lucon.org>
1665 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1666 * configure: Rebuilt.
1668 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
1670 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1671 "/var/lib/nfs/state".
1673 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
1675 * utils/statd/statd.h (run_mode): New global bitmask of runtime
1676 behaviors: fg/bg, logging, etc.
1677 * utils/statd/statd.c: New command line options: -V -h -? -d .
1678 * utils/statd/statd.man: Update for changes to statd.
1680 * utils/statd/log.h (log_init): Remove parameter of function; use
1681 global variable "name_p" instead.
1682 * utils/statd/log.c: Add support for logging to stderr.
1684 * utils/statd/notlist.c: Partially rewrite notify list handling
1685 functions. Eliminate run-off-end-of-list bug when calling
1686 nlist_insert_timer. Add lots of comments.
1688 2000-09-27 H.J. Lu <hjl@lucon.org>
1690 * README: Updated for RedHat 7.0.
1692 2000-09-27 H.J. Lu <hjl@lucon.org>
1694 * nfs-utils.spec: Rebuild.
1696 2000-09-27 H.J. Lu <hjl@lucon.org>
1698 * README: Updated for 0.2.1.
1700 2000-09-27 H.J. Lu <hjl@lucon.org>
1702 * nfs-utils.spec.in: Updated to use rpm macros and support
1705 2000-09-25 H.J. Lu <hjl@lucon.org>
1707 * configure.in (VERSION): Set to "0.2.1".
1708 * configure: Regenerated.
1709 * nfs-utils.spec: Updated.
1711 2000-09-25 H.J. Lu <hjl@lucon.org>
1713 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1714 non-NULL hostent is always returned.
1716 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1718 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1719 have an executable (i.e. kernel threads)
1721 2000-09-01 H.J. Lu <hjl@lucon.org>
1723 * README: Updated for 0.2.
1725 2000-09-01 Jay Weber <jweber@valinux.com>
1727 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1728 supporting version 3 of nfs if available, else it will fall back to
1729 version 2 support only.
1731 2000-08-30 H.J. Lu <hjl@lucon.org>
1733 * configure.in (VERSION): Set to "0.2".
1734 * configure: Regenerated.
1735 * nfs-utils.spec: Updated.
1737 2000-08-25 H.J. Lu <hjl@lucon.org>
1739 * support/misc/tcpwrapper.c (logit): Modify the log output.
1741 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1743 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1744 utils/mountd/mountd.man: updated
1746 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1747 * utils/rquotad/Makefile: fix comment
1749 * support/misc/tcpwrapper.c (logit): added comment about waiting
1750 for the children after fork()
1752 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1753 zombies behind (from logit()'s fork)
1754 * utils/rquotad/rquota_svc.c (main): ditto
1755 * utils/statd/statd.c (main): ditto
1757 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1758 to check_default instead of 0, for prognum
1760 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1761 to check_default instead of 0, for prognum
1763 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1764 HAVE_TCP_WRAPPER is defined.
1765 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1766 defined. Reject an RPC call if check_default () fails.
1768 2000-08-25 H.J. Lu <hjl@lucon.org>
1770 * support/include/tcpwrapper.h: New for the tcp wrapper
1772 * support/misc/Makefile: Likewise.
1773 * support/misc/from_local.c: Likewise.
1774 * support/misc/tcpwrapper.c: Likewise.
1776 * aclocal.m4 (AC_TCP_WRAPPER): New.
1777 * configure.in: Use it. Substitute LIBWRAP.
1778 * configure: Rebuilt.
1780 * config.mk.in (LIBNSL): New.
1781 (LIBWRAP): Likewise.
1783 * support/Makefile (SUBDIRS): Add misc.
1785 * support/lib/Makefile (LIBS): Add libmisc.a.
1787 * utils/rquotad/Makefile (LIBS): Add
1789 -lmisc $(LIBWRAP) $(LIBNSL)
1791 * utils/statd/Makefile (LIBS): Likewise.
1793 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1794 HAVE_TCP_WRAPPER is defined.
1795 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1796 defined. Reject an RPC call if check_default () fails.
1798 * utils/statd/statd.c: Include "tcpwrapper.h" if
1799 HAVE_TCP_WRAPPER is defined.
1800 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1801 check_default () before calling sm_prog_1 (). Define it as
1802 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1804 2000-08-25 Chip Salzenberg <chip@valinux.com>
1806 * debian/*: Complete Debian build support.
1807 * etc/debian/*: Remove.
1809 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1811 * support/export/client.c(client_check): removed the "dot+1" as a
1812 ypdomain argument to innetgr as this is entirely bogus.
1813 It should always be NULL.
1815 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1817 * support/export/xtab.c(xtab_read): introduce new mode for
1818 reading xtab. i.e. a list of exports that might be known to the
1819 kernel, or might not. These are flagged as m_exported == -1
1820 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1821 value "2" for xtab, meaning don't trust this too much.
1822 * support/include/exportfs.h(struct mexport): changed m_exported
1823 from one bit to an int so that it can hold new value
1824 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1825 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1826 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1829 * support/nfs/xio.c(xflock): added O_CREAT when getting
1830 a write lock so that missing files aren't fatal.
1832 * etc/debian/nfs-common: new file from "potato"
1833 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1835 2000-08-09 H.J. Lu <hjl@lucon.org>
1837 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1838 startup to ensure all existing clients work fine.
1840 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1841 to xtab_read () for reading _PATH_XTAB.
1843 2000-08-02 H.J. Lu <hjl@lucon.org>
1845 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1846 avoid the reverse name lookup.
1848 2000-07-04 H.J. Lu <hjl@lucon.org>
1850 * utils/statd/log.c: Include <stdlib.h> for exit ().
1852 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1855 2000-07-04 H.J. Lu <hjl@lucon.org>
1857 * configure.in (VERSION): Set to "0.1.9.1".
1858 * configure: Regenerated.
1859 * nfs-utils.spec: Updated.
1863 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1865 * support/export/hostname.c (hostent_dup): Handle the NULL
1868 2000-07-03 H.J. Lu <hjl@lucon.org>
1870 * README: Update the util-linux requirement.
1872 2000-07-03 H.J. Lu <hjl@lucon.org>
1874 * configure.in (VERSION): Set to "0.1.9".
1875 * configure: Regenerated.
1876 * nfs-utils.spec: Updated.
1880 2000-07-03 H.J. Lu <hjl@lucon.org>
1882 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1883 stop to ensure all clients can still access the server
1884 before it is shutdown.
1886 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1888 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1889 calls with format string.
1891 2000-06-28 Chip Salzenberg <chip@valinux.com>
1893 * utils/statd/log.c (log): Call syslog with format string.
1895 2000-06-27 H.J. Lu <hjl@lucon.org>
1897 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1898 instead of OPEN_MAX.
1900 2000-06-27 H.J. Lu <hjl@lucon.org>
1904 2000-06-27 H.J. Lu <hjl@lucon.org>
1906 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1907 startup to ensure all existing clients are exported.
1909 * configure.in (VERSION): Set to "0.1.8.2".
1910 * configure: Regenerated.
1911 * nfs-utils.spec: Updated.
1913 2000-06-06 H.J. Lu <hjl@lucon.org>
1915 * configure.in (VERSION): Set to "0.1.8.1".
1916 * configure: Regenerated.
1917 * nfs-utils.spec: Updated.
1919 2000-06-06 H.J. Lu <hjl@lucon.org>
1921 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1922 to "struct sockaddr_in *" for glibc 2.2.
1923 (mount_umnt_1_svc): Likewise.
1924 (mount_umntall_1_svc): Likewise.
1925 (mount_export_1_svc): Likewise.
1926 (mount_exportall_1_svc): Likewise.
1927 (mount_pathconf_2_svc): Likewise.
1928 (get_rootfh): Likewise.
1930 2000-06-04 H.J. Lu <hjl@lucon.org>
1932 * etc/redhat/nfs.init: Fix a typo in comment.
1934 2000-05-31 H.J. Lu <hjl@lucon.org>
1936 * configure.in (VERSION): Set to "0.1.8".
1937 * configure: Regenerated.
1938 * nfs-utils.spec: Updated.
1942 2000-05-31 H.J. Lu <hjl@lucon.org>
1944 * configure.in (VERSION): Set to "0.1.7.5".
1945 * configure: Regenerated.
1946 * nfs-utils.spec: Updated.
1948 * support/include/nfslib.h (exportent): Add a new field,
1949 r_count, to count the number of mounts from a client.
1950 (getrmtabent): Take a new argument for position in file.
1951 (putrmtabent): Likewise.
1952 (fgetrmtabent): Likewise.
1953 (fputrmtabent): Likewise.
1954 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1955 for position in file.
1956 (fgetrmtabent): Likewise.
1957 (putrmtabent): Likewise.
1958 (fputrmtabent): Likewise.
1960 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1963 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1964 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1965 and fputrmtabent ().
1966 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1967 (mountlist_del): Likewise.
1968 (mountlist_del_all): Likewise.
1969 (mountlist_list): Likewise.
1971 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1972 for the existing entry and initialize "r_count" to 1.
1973 (mountlist_del): Decrement "r_count".
1975 2000-05-18 H.J. Lu <hjl@lucon.org>
1977 * configure.in (VERSION): Set to "0.1.7.4".
1978 * configure: Regenerated.
1979 * nfs-utils.spec: Updated.
1981 2000-05-18 H.J. Lu <hjl@lucon.org>
1983 * etc/redhat/nfs.init (restart): Just do stop and start.
1985 2000-05-09 Jay Weber <jweber@valinux.com>
1987 * utils/rquotad/hasquota.c: added support for ext3 recognition
1989 * utils/rquotad/mntent.h: Likewise.
1991 2000-05-01 H.J. Lu <hjl@lucon.org>
1993 * configure.in (VERSION): Set to "0.1.7.3".
1994 * configure: Regenerated.
1995 * nfs-utils.spec: Updated.
1997 2000-05-01 H.J. Lu <hjl@lucon.org>
1999 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
2000 mounting poins in /etc/fstab.
2002 2000-05-01 H.J. Lu <hjl@lucon.org>
2004 * configure.in (VERSION): Set to "0.1.7.2".
2005 * configure: Regenerated.
2006 * nfs-utils.spec: Updated.
2008 2000-05-01 H.J. Lu <hjl@lucon.org>
2010 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
2011 to check for the mounting point.
2013 2000-04-29 Chip Salzenberg <chip@valinux.com>
2014 Neil Brown <neilb@cse.unsw.edu.au>
2016 * Really re-use RPC ports.
2017 (Fixes earlier patch. Sorry, Neil.)
2019 2000-04-26 H.J. Lu <hjl@lucon.org>
2021 * configure.in (VERSION): Set to "0.1.7.1".
2022 * configure: Regenerated.
2023 * nfs-utils.spec: Updated.
2025 2000-04-26 H.J. Lu <hjl@lucon.org>
2027 * etc/redhat/nfslock.init: Check if lockd exits before killing
2030 2000-04-25 H.J. Lu <hjl@lucon.org>
2032 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
2034 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
2036 * support/nfs/exports.c (parsesquash): Correctly set the
2039 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
2041 * support/include/nfs/nfs.h: Removed knowledge of internals of
2042 kernel filehandles (which can change) and defined nfs_fh_size
2043 which has variable size
2045 * support/nfs/getfh.c: defined getfh_size to use new syscall to
2046 get variable sized file handles, and change getfh{,old} to
2049 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
2052 * tools/Makefile, tools/nlmtest/nlmtest.c
2053 nlmtest.c depended on internel format of file handles, so now
2057 2000-03-12 Chip Salzenberg <chip@valinux.com>
2058 Neil Brown <neilb@cse.unsw.edu.au>
2060 * support/nfs/rpcmisc.c (rpc_init): Share transports.
2062 2000-03-13 H.J. Lu <hjl@lucon.org>
2064 * etc/redhat/nfsd.init: Updated.
2066 * etc/redhat/nfslock.init: Updated.
2068 * nfs-utils.spec.in: Updated.
2070 * configure.in (VERSION): Set to "0.1.7".
2071 * configure: Regenerated.
2072 * nfs-utils.spec: Updated.
2076 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
2078 * utils/exportfs/exportfs.c (dump): Included printing of
2079 nohide, no_subtree_check, and insecure_locks
2081 2000-02-26 Chip Salzenberg <chip@valinux.com>
2083 * config.mk.in (INSTALLSUID): Strip ("-s").
2084 (INSTALLSCRIPT): Define.
2085 * utils/nhfsstone/Makefile: Use it.
2087 2000-02-26 Chip Salzenberg <chip@valinux.com>
2089 * utils/lockd/lockd.man: Create.
2090 * utils/lockd/Makefile: Install it.
2091 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
2092 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
2093 * utils/nhfsstone/Makefile: Install the helper scripts and
2095 * utils/exportfs/exports.man: Fix typo.
2097 2000-02-26 Chip Salzenberg <chip@valinux.com>
2099 * support/nfs/xio.c (xungetc): Decrement line number when
2100 character to unget is newline. Make first parameter int, so
2101 it can distinguish EOF from \377.
2102 * support/include/xio.h (xungetc): Adjust prototype.
2104 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
2106 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
2107 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
2108 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
2110 This is for supporting a new option introduced in 2.3.42
2112 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
2114 * COPYING: Added. GPL.
2116 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
2118 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
2119 to get the block size.
2121 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
2123 * nfs-utils.spec.in: Update ftp site.
2125 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
2127 * README: Update hostnames.
2129 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
2131 * configure.in (VERSION): Set to "0.1.6".
2132 * configure: Regenerated.
2133 * nfs-utils.spec: Updated.
2137 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
2139 * utils/mountd/auth.c (auth_authenticate_internal): Call
2140 xstrdup for hostname before passing it to gethostbyname.
2142 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
2145 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
2147 * README: Update the mailing list address.
2149 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
2151 * configure.in (VERSION): Set to "0.1.5".
2152 * configure: Regenerated.
2153 * nfs-utils.spec: Updated.
2157 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
2159 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
2162 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
2164 * configure.in (VERSION): Set to "0.1.4".
2165 * configure: Regenerated.
2166 * nfs-utils.spec: Updated.
2170 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
2172 * nfs-utils.spec.in: New file.
2174 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
2176 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
2178 1999-12-04 Chip Salzenberg <chip@valinux.com>
2180 * config.mk.in: Use $(CC) as set by configure.
2182 1999-12-04 Chip Salzenberg <chip@valinux.com>
2184 * rules.mk: Call $(MAKE) with $(MFLAGS).
2186 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
2188 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
2189 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
2191 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
2193 * nfs-utils.spec (Version): Set to 0.1.3.
2195 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
2196 * configure: Regenerated.
2200 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
2202 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
2203 (_PATH_DEV_DSK): Likewise.
2204 (getquotainfo): Match the mounting point from /etc/mtab
2205 instead of calling nfsmount_to_devname ().
2207 1999-11-24 Chip Salzenberg <chip@valinux.com>
2209 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
2210 to the new port 24 as well as the historical port 100021.
2212 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
2214 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
2215 stopping nfsd to stop spurious ESTALE on server shutdown.
2217 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
2219 * support/nfs/exports.c (parseopts): make copy of opt string
2220 before 'nul'ing out commas so that
2222 # exportfs -o option1,option2 hosta:/fs hostb:/fs
2224 applies both options to both exports.
2226 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
2228 * README: Fix a few typos.
2230 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
2232 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
2233 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
2234 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
2235 (unsigned_dec): Likewise.
2236 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
2237 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
2239 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
2241 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
2242 (unsigned_dec): Likewise.
2243 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
2244 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
2245 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
2247 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
2249 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
2250 * support/nfs/exports.c: added {no_,}subtree_check and changed
2252 * utils/exportfs/exports.man: added no_subtree_check and nohide
2253 and removed irrelevant stuff from unfsd.
2254 * support/export/rmtab.c: rmtab_read didn't quite do the right
2255 thing if a pathname from rmtab was a subdirectory of an export-point
2257 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
2259 * README: Updated ftp site.
2261 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
2263 * nfs-utils.spec (Version): Set to 0.1.2.
2265 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
2266 * configure: Regenerated.
2270 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
2272 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
2273 (auth_authenticate_internal): Check for NULL return on forward
2275 (auth_authenticate): Handle "no_forward_dns".
2277 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
2279 * Version 0.1.1 released.
2281 * nfs-utils.spec (Version): Set to 0.1.1.
2283 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
2284 * configure: Regenerated.
2288 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
2290 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
2292 (Provides): Likewise.
2294 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
2296 * Initial version 0.1 released.
2298 * configure.in (VERSION): Set to "nfs-utils 0.1".
2299 * configure: Regenerated.
2301 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
2303 * utils/mountd/mountd.c (get_exportlist): Cleanup.
2305 * utils/exportfs/exportfs.c (unexport_all): Unexport from
2306 kernel only if the entry is exported to kernel.
2307 (unexportfs): Likewise.
2309 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
2311 1/ utils/mountd/rmtab.c::mountlist_list
2313 This routine stats the rmtab file to see if it has changed. It
2314 if has, it cleans up it's old copy of the data. But it still
2315 always re-read the file, thus returning multiple copies of the
2316 data on consecutive calls without intervening changes.
2317 "Showmount -a" didn't show this as it appears to sort/unique the
2318 data, but 'strace showmount -a' showed that the size of the
2319 datagram that it received grew.
2321 I moved the getrmtabent loop inside the mtime test.
2323 2/ utils/exportfs/exportfs.c
2325 Many routines used the m_path field of m_export instead of
2327 According to the comment in nfslib.h, m_path should only
2328 be used when processing a mount request (i.e. in mountd)
2329 where the mountpoint may be a subdirectory of the export point.
2331 I changed all occurances of m_path to e_path
2334 3/ utils/exportfs/exportfs.c:main
2336 extra arguments are not meaningful with -a or -r, but
2337 exportfs accepted them and then ignored the -a/-r, expect that
2338 -r would still unexport everything first.
2340 I generate an error if there are extra args and f_all
2342 4/ utils/exportfs/exportfs.c:main
2343 extract dump out as a special case.
2345 5/ utils/exportfs/exportfs.c
2346 made f_reexport a local variable.
2349 6/ utils/exportfs/exportfs.c:main,exportall
2351 support/export/rmtab.c
2352 only mayexport on newly created entries, don't set xtabent at all
2354 7/ support/include/nfslib.h
2356 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
2358 8/ support/export/xtab.c
2360 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
2364 9/ support/export/xtab.c
2366 xtab_mount_read now sets m_exported, and NOT
2367 xtabent and mayexport
2369 removed the append arguement from xtab_write as it was
2372 added is_export flag to xtab_write similar to xtab_read
2373 if is_export, only write entries with m_xtabent or m_addxtab
2374 if !is_export, only write entries with m_exported
2376 10/ support/export/export.c::export_allowed_internal
2378 added test for exp->m_mayexport, as the export tree
2379 may have entries that are no longer allowed to be exported,
2380 and so shouldn't caused deduced exported by rmtab_read
2382 11/ utils/exportfs/exportfs.c::main
2383 error checking of flags.
2385 12/ utils/exportfs/exportfs.c
2387 total rewrite of export and unexport logic.
2389 - build an exportslist of valid exports, based on
2390 current etab file and arguments,
2391 - read rmtab to instantiate relevant wild card entries
2392 - read etab to find out what is currently exported
2393 - synchronise intention with reality
2394 - write out etab and xtab
2397 discard the m_addxtab flag
2398 add m_changed flag so we know what to report in exportfs
2400 14/ utils/mountd/auth.c:auth_authenticate
2402 the value returned by gethostbyaddr was trusted.
2404 It now follows this with a call to gethostbyname
2405 and checks that the address is in the list.
2407 15/ support/export/nfsctl.c::cltsetup,expsetup
2409 force client names to lowercase as kernel is
2412 16/ quietened a few compiler warnings
2414 17/ support/export/client:client_lookup
2416 look for pre-existing client with same name before creating
2419 18/ support/include/exportfs.h
2421 The ordering of the MCL_* enum was:
2422 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
2424 I moved ANONYMOUS to the end.
2426 The ordering is significant when an export entry is being searched for to
2427 match a given address. There are two problems with ANONYMOUS being first.
2429 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
2430 then the ro case will always be found first and the privileged hosts won't get
2432 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
2433 export entry for the specific host, and writes it to xtab.
2434 When another request comes from the same host, the ANONYMOUS entry is found again,
2435 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
2436 again. If causes bloat in xtab.
2438 Putting ANONYMOUS at the end reflects it's nature as a catch-all
2440 19/ utils/exportfs/exportfs.man
2441 many updates to the man page to reflect changes to the code
2443 -----------------------
2449 - allow exportfs to modify rmtab file
2450 - make sure kernel never gets two clients with same IP address
2451 - possible kernel should reject
2452 - needs to be some way to lookup client in kernel by IP address
2453 - maybe get kernel to do case-insensitive comparisons on client names
2454 - remove unused clients from kernel
2456 - change etab to xtab and xtab to xtab.active
2458 - timestamp and/or statd-stamp in rmtab for removing old entries.
2460 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
2462 * linux-nfs: New directory.
2463 * linux-nfs/ChangeLog: Moved from ..
2464 * linux-nfs/INSTALL: Likewise.
2465 * linux-nfs/KNOWNBUGS: Likewise.
2466 * linux-nfs/NEW: Likewise.
2467 * linux-nfs/README: Likewise.
2468 * linux-nfs/THANKS: Likewise.
2469 * linux-nfs/TODO: Likewise.
2471 * Starting from knfsd 1.4.7.