1 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
2 Use PKGCONFIG to locate gssapi and rpcsecgss header files
4 Instead of having separate copies of the gssapi and rpcsecgss
5 header files, or depending on the Kerberos gssapi header,
6 locate the headers now installed with the libgssapi and librpcsecgss
9 Remove local copies of the gssapi and rpcsecgss header files.
11 This depends on the configure_use_autotools patch.
13 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
14 User-selectable idmapping cache lifetime
16 Read and process new configuration option, Cache-Expiration, and use
17 the value to determine how long idmapping entries are cached.
19 2006-03-27 Steve Dickson <steved@redhat.com>
20 Set libnfsidmap library debugging level and logging function.
22 This patch adds a call to the new libnfsidmap library function
23 nfs4_set_debug(), which defines the verbosity level libnfsidmap
24 should use as well as the logging function.
26 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
27 Don't close file descriptor until after calling event_del().
29 Delete event processing for a file descriptor before closing it.
30 This was causing hangs when used in combination with libevent-1.0b.
32 2006-03-27 kwc@citi.umich.edu
33 Find krb5-config on SuSE 10
35 SuSE 10.0 puts krb5-config in yet another obscure location.
36 Look for it there and use it if found.
38 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
39 Update debian package information.
41 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
42 Install /var/lib/nfs files using DESTDIR and add rpcsec headers to distribution
44 Add "$(DESTDIR)" to the paths for the "$(statedir)" files so they are
45 put in the right place when DESTDIR is defined.
47 Add the rpcsec header files to EXTRA_DIST list.
49 2005-12-21 NeilBrown <neilb@suse.de>
50 *utils/rquotad/rquota_server.c: Detect and handle both old-style
51 (2.4) and new-style(2.6) quotactl.
52 *utils/gssd/gss_destroy_cred: remove dependence on "head -1" which
53 might need to be "head -n 1"
54 *utils/nhfsstone/nhfsrun: convert "tail -1" to "tail -n 1"
56 2005-12-20 Kevin Coffman <kwc@citi.umich.edu> NeilBrown <neilb@suse.de>
57 Substantial Makefile/configure rewrite.
58 Run 'autogen.sh' to create "Makefile.in" etc.
60 Also add -D_FILE_OFFSET_BITS=64 to CPP_FLAGS so that mountd can
61 stat and export files larger than 2Gig.
65 2005-12-20 NeilBrown <neilb@suse.de>
66 support/nfs/exports.c(getexportent): is a null host name is given,
67 replace it with '*' so we have a non-empty host name for messages
69 utils/exportfs/exportfs.man: Correct documentation about default
72 2005-12-20 Kevin Coffman <kwc@citi.umich.edu>
73 utils/gssd/gssd_proc.c(create_auth_rpc_client): Use service
74 portion of clp->servicename rather than hard-coding "nfs".
76 2005-12-16 NeilBrown <neilb@suse.de>
79 2005-12-16 Kevin Coffman <kwc@citi.umich.edu>
80 svcgssd needs -lnfs when using new function closeall().
83 Remove unused argument from nfsdopen()
85 After previous changes, the arguement to nfsdopen() has become unused.
89 Fix idmapd error reporting after call to mydaemon()
91 After call to mydaemon(), calls to err[x] and warn[x] result
92 in the message going nowhere. Change to using idmapd_*
93 versions of these routines which write to syslog.
94 Original problem reported by Vincent Roqueta <vincent.roqueta@ext.bull.net>
95 with a different patch.
98 Don't add @domain to names that cannot be mapped.
100 Per rfc3530 section 5.8: when unable to map a uid to a name, don't
101 add the @domain to the "nobody" name.
104 Fix idmapd for systems where sizeof(uid_t)!=4 and sizeof(gid_t)!=4
106 Fix conversion cases where uid_t and gid_t are not 32 bits.
109 Don't segfault because mech wasn't filled in because of an error
111 From Kevin Coffman <kwc@citi.umich.edu>
113 Initialize mech to null to avoid segfault if an error occurs
114 and mech is never returned from gss_accept_sec_context.
117 Remove use of static buffer in do_downcall
119 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
121 Dynamically allocate buffer of the correct length rather
122 than using fixed-length buffer.
125 Print better error message if rpc routine clnt_create() fails.
128 Print appropriate error messages after gss calls.
130 Print gss error messages after calls to gss functions, even if they
131 are for Kerberos only.
134 Update gssd and svcgssd to use the new gss mech glue lucid context calls.
136 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
138 Update gssd and svcgssd to use a lucid context from SPKM3 to send down
140 Update gssd and svcgssd to use the new gss mech glue lucid context calls.
141 Add configure check to see if spkm3 support is available.
144 Add support for CONTINUE_NEEDED return from gss_accept_sec_context.
146 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
148 Add CONTINUE_INIT handling to svcgssd. Store the partially complete spkm
149 context handle in the out_handle of CONTINUE_INIT messages so that it is
150 returned in the in_handle of subsequent messages.
153 Replace GSS_C_ANON_FLAG with GSS_C_MUTUAL_FLAG.
155 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
157 Specify GSS_C_MUTUAL_FLAG rather than GSS_C_ANON_FLAG for
160 NOTE: we need a way to pass the appropriate value rather than
161 hard-coding this flag.
164 Increase size of rpc send/receive buffers
166 Change the clnt_create() to use routines which allow us to set the
167 send and receive buffer size. This is needed for larger spkm3
168 exchanges including certificate chains.
170 This has the side-effect of skipping the portmap call since
171 we specify the port (by specifying the service) when getting
172 the server's address information.
175 Define _LINUX_QUOTA_VERSION to 1
177 The rquotad code is written against the "old" kernel quota interface.
178 Fedora Core 4 is the only platform known to check for different
179 versions, so this should not have any affect on other platforms
180 and fixes the build for FC4.
184 2005-12-12 Usha Ketineni <ketineni@us.ibm.com>, NeilBrown <neilb@suse.de>
185 *support/nfs/rpcmisc.c(rpc_init): is stdin is a socket, but
186 is already connected (as e.g. from ssh), don't assume we
187 were started by inetd.
189 2005-11-03 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
190 *utils/idmapd/idmaps.c:
192 I've recently updated the nfs-utils in rawhide with the
193 latest patches from the SourceForge CVS tree and the
194 latest CITI patches (1.0.7-4).
196 In testing these patches, I notice that when the server was started
197 and a SIGHUP was sent to rpc.idmapd to open the nfs4.nametoid/channel
198 and nfs4.idtoname/channel files, the second open (the nfs4.idtoname one)
199 failed because the path (i.e. ic->ic_path) was NULL.
201 Now the reason the ic_path was NULL was because it was never set
202 during the call to nfsdopen(). nfsdopen() looks like:
205 return ((nfsdopenone(&nfsd_ic[IC_NAMEID], IC_NAMEID, path) == 0 &&
206 nfsdopenone(&nfsd_ic[IC_IDNAME], IC_IDNAME, path) == 0) ? 0
210 Note: the call to nfsdopenone() is how the path is set in each nfsd_ic[]
211 entry and nfsdopen() is only called once.
213 So when rpc.idmap comes up and the first call to nfsdopenone() fails
214 (because the server is not running) the path in nfsd_ic[IC_IDNAME] is
215 never filled in because the second nfsdopenone() never happen...
217 Now there was a CITI patche (idmapd_revert_fix_reopen_on_sighup.dif)
218 that tried to address this problem but did seem to fix it.. The
219 attached patch fix the problem by initializing both nfsd_ic[IC_IDNAME]
220 and nfsd_ic[IC_NAMEID] structures with the needed info...
221 I figured since there is no way of changing these paths or filenames
222 by command line args, why not just set them during compile time...
223 so that's what this patch does.
225 This patch also changes how nfsdreopen_one() handles the
226 case where the event has already been set. Unlike the CITI
227 patch (idmapd_revert_fix_reopen_on_sighup.dif) which just
228 just does not register the second event, my patch deletes
229 the old event and the registers the new one. It just seems like
230 the right thing to do since a SIGHUP means a new server just
231 started so we probably should create a new event as well...
235 2005-10-14 NeilBrown <neilb@suse.de>
236 *utils/mountd/cache.c(nfsd_fh): Understand type 2 and type 3
237 filesystem identifiers, which are used with device numbers
238 That don't fit into 16 bits.
240 2005-10-07 Olaf Kirch <okir@suse.de>
241 * utils/mountd/mountd.c(get_exportlist): Without this patch,
242 showmount -e would sometimes display host names that should really
243 have been subsumed under a wildcard entry.
245 The problem was that the code in get_exportlist would always
246 skip the next group entry after removing one FQDN.
248 2005-10-06 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
249 * support/nfs/export.c: don't warn about sync/async for readonly
251 * support/nfs/closeall.c: new file with function to close all
252 file descriptors from a give minimum upwards.
253 * nfsd/mountd/statd/idmapd/gsssvcd: use closeall.
254 * utils/mountd/mountd.c: Eliminate 3 syslog message that are
255 logged for successful events.
256 * utils/mountd/mountd.c: make sure the correct hostname is used in
257 the SM_NOTIFY message that is sent from a rebooted server which
258 has multiple network interfaces. (bz 139101)
260 Details can be found in:
261 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=139101
263 *utils/idmapd/idmapd.c:Fixed subscripting problem in idmapd (bz
264 158188) This fixes the following problem:
265 rpc.idmapd: nfsdreopen: Opening '' failed: errno 2 (No such file or directory)
267 Details can be found in:
268 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=158188
270 *utils/statd/statd.c(drop_privs): clear st_gid as well as st_uid
272 *utils/statd/svc_run.c(my_svc_run): remove usage of undocumented
274 *utils/statd/montor.c(sm_mon_1_svc): as above
275 *support/nfs/xlog.c(xlog): Changed xlog to use LOG_INFO instead of
276 LOG_DEBUG so debug messages will appear w/out any config changes
280 2005-09-02 Mike Frysinger <vapier@gentoo.org>
281 * utils/rquotad/rquota_server.c(getquotainfo): use explicit
282 struture-member copying rather than memcpy, as the element
283 sizes are the same on all architectures.
285 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
286 Add option to set rpcsec_gss debugging level (if available)
288 Changes to allow gssd/svcgssd to build when using Hiemdal Kerberos
289 libraries. Note that there are still run-time issues preventing
290 this from working when shared libraries for libgssapi and librpcsecgss
293 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
294 Remove the rpcsec_gss code and rely on an external library instead.
296 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
297 *utils/mountd/mountd.c:
298 mountd currently always returns AUTH_NULL and AUTH_SYS as the
299 allowable flavors in mount replies. We want it to also return gss
300 flavors when appropriate. For now as a hack we just have it always
301 return the KRB5 flavors as well.
303 *utils/mountd/cache.c:
305 When attempting to mount an NFSv4 pseudofilesystem (fsid=0) and the
306 actual exported directory does not exist on the server, rpc.mountd
307 doesn't check the directory exists (when fsidtype=1, i.e. using fsid,
308 but does check for fsidtype=0, i.e. using dev/ino). The non-existent
309 exported directory path with fsid=0 is written to the kernel via
310 /proc/net/rpc/nfsd.export/channel, which leads to path_lookup() to
311 return ENOENT (seems appropriate). Unfortunately, the new_cache
312 approach ignores errors returned when writing via the channel file so
313 that particular error is lost and the mount request is silently ignored.
315 Assuming it doesn't make sense to revamp the new_cache/up-call method to
316 not ignore returned errors, it seems appropriate to fix the case where
317 rpc.mountd doesn't check for the existence of an exported directory with
318 fsid= semantics. The following patch does this by moving the stat() up
319 so it is done for both fsidtype's. I'm not certain whether the other
320 tests need to be executed for fsidtype=1, but it doesn't appear to hurt
321 [Not exactly true: the comparison of inode numbers caused problems so
322 now it's kept for fsidtype=0 only].
324 Would it be also desirable to log a warning for every error, if any,
325 returned by a write to any of the /proc/net/rpc/*/channel files which
326 would otherwise be ignored (maybe under a debug flag)?
328 * gssd/mountd/svcgssd: Changes gssd, svcgssd, and mountd to ignore a
329 SIGHUP rather than dying.
331 * many: Remove the gssapi code and rely on an external library instead.
333 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
334 * utils/exportfs/exports.man: Document the "crossmnt" export export option
335 * utils/gssd/krb5_util.c:
336 Add better debugging and partially revert the function
337 check for gss_krb5_ccache_name.
339 For MIT Kerberos releases up to and including 1.3.1, we *must*
340 use the routine gss_krb5_ccache_name to get the K5 gssapi code
341 to use a different credentials cache.
343 For releases 1.3.2 and on, we want to use the KRB5CCNAME
344 environment variable to tell it what to use.
345 (A problem was reported where 1.3.5 was being used, our
346 code was using gss_krb5_ccache_name, but the underlying
347 code continued to use the first (or default?) credentials
348 cache. Switching to using the env variable fixed the problem.
349 I cannot recreate this problem.
351 *utils/gssd/krb5_util.c:
352 Andrew Mahone <andrew.mahone@gmail.com> reported that reiser4
353 always has DT_UNKNOWN. He supplied patch to move the check
354 for regular files after the stat() call to correctly find
355 ccache files in reiser4 filesystem.
357 Also change the name comparison so that the wrong file is
358 not selected when the substring comparison is done.
360 *utils/gssd/krb5_util.c:
361 Limit the set of encryption types that can be negotiated by
362 the Kerberos library to those that the kernel code currently
365 This should eventually query the kernel for the list of
368 *utils/gssd/gss_util.c, utils/svcgssd/svcgssd_main_loop.c:
369 Print more information in error messages to help debugging failures.
371 *utils/svcgssd/svcgssd_proc.c: Increase token buffer size and
372 update error handling so that a response is always sent.
374 *utils/svcgssd/svcgssd_proc.c: Add support to retrieve
375 supplementary groups.
378 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
380 Consolidate some of the Kerberos checking instead of repeating
381 the same things for MIT and Heimdal.
382 Also adds more checks to distinguish 32-bit from 64-bit
383 (mainly for gssapi.h)
384 Fix svcgssd Makefile so make TOP=../../ works correctly there.
385 Enable running a modern autoheader.
386 * utils/gssd/gss_oids.c: Use correct OID value for SPKM-3
387 * utils/gssd/gss_util.c: Fix build with older MIT releases that do not define GSS_C_NT_HOSTBASED_SERVICE
388 * utils/gssd/write_bytes.h, support/include/gssapi/gssapi.h:
389 Length of gss_buffer_desc is a size_t which is 64-bits on a
390 64-bit machine. Kernel code expects 32-bit integer for length.
391 Coerce length value into a 32-bit value when reading from or
392 writing to the kernel.
393 Change gssapi.h to use datatype size values obtained from
394 configure rather than hard-coded values.
395 * utils/idmapd/idmapd.c: The EV_INIT check here was wrong, and was
396 causing idmapd to become unresponsive to server requests after
398 * utils/idmapd/idmapd.c: Idmapd should flush the server id<->name
399 caches when its started.
401 2005-04-12 G. Allen Morris III <gam3@gam3.net>
403 * All Makefile: added TOP as needed for easier compile.
405 * utils/nfsstat/nfsstat.c: added NFS V4 support; added the -m
406 option; Added -2, -3, and -4 options; changed -a option to -v
407 option; added long options; changed default output to not
408 show V2 NFS statistics unless used.
410 * utils/nfsstat/nfsstat.man: Documented above changes; changed
411 authors email address; added BUGS section.
413 2005-04-07 Chip Salzenberg <chip@pobox.com>
415 * debian/changelog: Version 1.0.7-2.
417 2005-04-06 Chip Salzenberg <chip@pobox.com>
419 * config.guess, config.sub: Update.
421 * support/rpc/svc_auth_gss.c (_svcauth_gss): Avoid using a cast as
422 an lvalue, as it is non-portable.
424 * support/nfs/exports.c (parseopts): Accept "acl" option to mean
425 ~NFSEXP_NOACL, and "no_acl" to mean NFSEXP_NOACL.
426 (putexportent): Report NFSEXP_NOACL as "no_acl", and ~NFSEXP_NOACL
428 * utils/exportfs/exportfs.c (dump): Report NFSEXP_NOACL as
430 * utils/exportfs/exports.man: Document "no_acl".
432 2005-03-14 NeilBrown <neilb@cse.unsw.edu.au>
433 Denis Vlasenko <vda@ilport.com.ua>
434 * support/export/client.c(client_init and client_gettype):
435 treat N.N.N.N as a special case of MCL_SUBNETWORK instead of
438 2005-03-06 G. Allen Morris III <gam3@gam3.net>
439 * support/nfs/cacheio.c(readline): Could not read lines greater
440 than 128 bytes. [1157791]
441 * utils/exportfs/exports.man: Added a SEE ALSO section and
442 fixed 2 typos. [1018450]
444 2005-02-28 Trond Myklebust <trond.myklebust@fys.uio.no>
445 * utils/statd/rmtcall.c(statd_get_socket): If a port number is
446 explicitly given, make sure to try to bind to that.
448 2005-01-11 Chip Salzenberg <chip@pobox.com>
450 * debian/changelog: Version 1.0.7-1.
451 * debian/nfs-common.default (NEED_IDMAPD, NEED_GSSD):
452 Disable by default, on advice of upstream.
453 * debian/nfs-kernel-server.default (NEED_SVCGSSD):
456 * utils/svcgssd/Makefile (predep): Symbolically link duplicated
458 (distclean): Remove symlinks to duplicated files.
460 2004-12-17 NeilBrown <neilb@cse.unsw.edu.au>
463 * config.mk, configure.in: update version number, run autoconf
464 * configure.in: require nfsidmap.h if gss is enabled.
466 2004-12-10 NeilBrown <neilb@cse.unsw.edu.au>
469 * config.mk, configure.in: update version number, run autoconf
471 2004-12-10 Neil Brown <neilb@cse.unsw.edu.au>
472 * README : note dependancy on kerberos, libevent, and nfsidmap
473 * configure.in : fail if --enable-nfsv4 and libevent or
474 libnfsidmap are missing.
475 * configuyre.in: improve message if krb5 support is missing
477 2004-12-06 Paul Clements <paul.clements@steeleye.com>
478 * support/include/ha-callout.h: get return status from waitpid
480 * support/include/ha-callout.h: don't ignore SIGCHLD while waiting
481 for a callout to complete.
482 * utils/statd/statd.c(sigusr): print current start when re-reading
483 notify list due to SIGUSR1
484 * utils/statd/svc_run.c(my_svc_run): call change_state when
485 re-notifying clients.
487 2004-12-06 Marc Eshel <eshel@almaden.ibm.com>
488 * utils/statd/svc_run.c(my_svc_run): allow loop to exit when in
490 *utils/statd/rmtcall.c(statd_get_socket): if a hostname is given
491 to statd with -n, prefer it's IP address to the default for
494 2004-12-06 Bruce Allan <bwa@us.ibm.com>
495 * utils/mountd/auth.c(auth_reload) Clear the "my_client" cache on
496 an auth_reload to avoid old data getting used.
498 2004-12-03 NeilBrown <neilb@cse.unsw.edu.au>
499 Release 1.0.7-pre1 for testing
501 * config.mk, configure.in: update version number, run autoconf
503 2004-12-03 Trond Myklebust <trond.myklebust@fys.uio.no>
505 * utils/statd/statd.c(main): ignore SIGPIPE
507 2004-11-22 "J. Bruce Fields" <bfields@fieldses.org>
509 * tools/rpcdebug/rpcdebug.c: support aliases "nfsdebug" and
510 "nfsddebug" and update flag names.
511 * configure.in, nodist/* redhat/* nfs-utils.spec*: remove redhat
512 specific files (as no-one actually uses them, especially not
513 redhat), and the nodist /etc files (as they drift out-of-date, and
514 the debian directory provides a suitable example.
515 * utils/svcgssd_proc.c(get_ids): fix memory leak
516 * utils/svcgssd/svcgssd_proc.c: Rely on count of the number of
517 groups instead of using a special guard value to identify the end
519 * utils/idmapd/idmapd.c: don't allow Default domain and anon-uid
520 or -gid to be specified on command line.
521 * utils/idmapd/idmapd.c: improve error messages
522 * utils/idmapd/idmapd.c: Reopen nfsd files on sighup. Allows us
523 to start up client side only (even when nfsd module not loaded),
524 and then sighup later after insmodding nfsd module.
525 * utils/idmapd/idmapd.c: Make sure we catch all errors on
526 daemonizing by waiting for child to report succesfull startup
528 * utils/idmapd/idmapd.c: Let libnfsidmapd parse the idmapd.conf
529 file for the default domain, instead of doing that ourselves.
530 * utils/gssd/gssd_proc.c: Make sure we get an error when a gssd
532 * utils/gssd/gssd_proc.c: We were forgetting to restore the euid
533 on certain failures, which meant gssd could get stuck in a state
534 where it didn't have permissions to read the files in rpc_pipefs
536 * utils/gssd/gssd_proc.c: Use libnfsidmapd to map gss principals
538 * debian/nfs-kernel-server.default: Document the NEED_SVCGSSD
539 variable in /etc/default/nfs-kernel-server.
542 2004-11-22 NeilBrown <neilb@cse.unsw.edu.au>
544 * utils/exportfs/nfsd.man: corrected typo in .BR macro usage -
545 reported by Eric Raymond
547 2004-10-19 "J. Bruce Fields" <bfields@fieldses.org>
549 * support/gssapi/* support/rpc/* utils/gssd/* utils/svcgssd/* etc
550 initial support for GSSAPI authentication
552 2004-09-15 Neil Brown <neilb@cse.unsw.edu.au>
554 * utils/statd/monitor.c(sm_unmon_1_svc): is RESTRICTED_STATD, then
555 check IP address and force my_name to 127.0.0.1 to match
556 what happens in sm_mon_1_svc. This avoid spurious "erroneous
558 * utils/statd.monitor.c(sm_unmon_all_1_svc): likewise
560 2004-09-15 "J. Bruce Fields" <bfields@fieldses.org>
562 * Assorted changes to support "gss/*" style authentication
563 * utils/idmapd: new idmapd daemon for nfsv4 username lookup
565 2004-09-06 Trond Myklebust <trond.myklebust@fys.uio.no>
566 Neil Brown <neilb@cse.unsw.edu.au>
568 * utils/mountd/auth.c(auth_authenticate_internal): fix
569 uninitialsed variable problem (causes bad error messages).
571 2004-09-06 Paul Clements <paul.clements@steeleye.com>
572 Neil Brown <neilb@cse.unsw.edu.au>
574 * utils/mountd/mountd.c(main): support --ha-callout (-H) for
575 specifying a callout program
576 * utils/mountd/rmtab.c: Call ha_callout on mount/unmount
577 * utils/statd/monitor.c: Call ha_callout on add/del client
578 * utils/statd/rmtcall.c: as above
579 * utils/statd/statd.c: handle --ha-callout (-H)
580 * utils/statd/svc_run.c: call notify_hosts is we have received a
582 * support/include/ha-callout.h: define ha_callout function
585 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
586 * utils/mountd/cache.c(cache_process_req): clear fd after
587 processing so as not to confused libc/sunrpc into thinking
588 it need to do something with that fd.
590 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
592 * debian/nfs-kernel-server.init(start,stop) mount the nfsd
593 filesystem, if available, before starting nfs services, and
594 unmount it afterwards.
595 * etc/nodist/nfs-server: ditto
596 * etc/redhat/nfs.init: likewise
597 * etc/redhat/nfs: add "MOUNT_NFSD" flag to control above.
599 2004-06-08 NeilBrown <neilb@cse.unsw.edu.au>
601 * utils/exportfs/exportfs.c: Don't rmtab_read if new_cache, it
603 * support/nfs/cacheio.c(cache_flush): Change order in which caches
604 are flushed so that dependancies don't keep things in the cache
607 2004-03-18 Chip Salzenberg <chip@pobox.com>
609 * debian/changelog: Version 1.0.6-2.
611 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
612 from "J. Bruce Fields" <bfields@fieldses.org>
614 * utils/mountd/cache.c: call auth_reload to make sure auth data is
615 current before responding to kernel upcall.
617 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
618 Based on patch from Greg Banks <gnb@melbourne.sgi.com>
620 * utils/exportfs/exports.man: Document fsid= option.
622 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
626 * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
627 support/include, and depend in "predep"
628 * support/export/Makefile, tools/rpcgen/Makefile,
629 utils/statd/Makefile: add "predep" rule so that "make dep" works.
630 * Makefile: allow a simple "make" to run ./configure and "make dep"
632 * configure.in, nfs-utils.spec: Update version to 1.0.6
635 2003-09-12 Chip Salzenberg <chip@pobox.com>
637 * debian/changelog: Version 1.0.6-1.
639 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
641 * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
643 * utils/statd/statd.c(main): Ditto.
645 michael <michael@newdream.net> discovered that svc_setreqsize
646 in glibc can segfault if RLIMIT_NOFILE is bigger than
647 FD_SETSIZE, so a simple solution is to impose a hard limit.
649 2003-09-09 Chip Salzenberg <chip@pobox.com>
651 * debian/changelog: Version 1.0.5-3.
652 * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
653 on invalid reverse DNS.
654 * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
655 * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
656 * tools/rpcgen/rpc_parse.c (def_union): Likewise.
658 2003-08-22 Chip Salzenberg <chip@pobox.com>
660 * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
661 N_*, to avoid conflict with ISO C built-in log() function.
662 * utils/statd/*.c: Use note().
664 2003-08-20 Chip Salzenberg <chip@pobox.com>
666 * debian/changelog: Version 1.0.5-2.
668 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
670 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
673 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
675 * support/include/nfs/export.h, support/nfs/exports.c,
676 utils/exportfs/exports.c, utils/mountd/mountd.c: change
677 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
678 meaning. Also remove meaningless
679 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
681 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
683 * support/export/xtab.c, support/include/nfslib.h,
684 support/nfs/cacheio.c, support/nfs/nfssvc.c,
685 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
686 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
687 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
688 (nfs-utils-1.0.5-post2)
690 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
692 * support/nfs/nfsexport.c: open channel file O_WRONLY when
694 * utils/mountd/cache.c: maintain mountlist when new_cache is
695 active. Also use O_WRONLY for channel files.
696 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
697 rather than an nfs_export.
698 * utils/mountd/rmtab.c: ditto.
699 (nfs-utils-1.5.0-post1)
701 2003-07-24 Chip Salzenberg <chip@pobox.com>
703 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
704 use Debian security team's cleaner approach.
705 * debian/changelog: Version 1.0.5-1.
706 * debian/nfs-kernel-server.init: Cosmetic changes.
708 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
711 1.0.4 was a bit of a brown-paper-bag-release because of the extra
712 'free' in auth.c. So I'm releasing this just a few days later.
714 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
716 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
717 check if new_cache is enabled, error if not, flush and exit if it
719 * utils/exportfs/exportfs.man: Explain -f option and explain the
720 two different modes that exportfs can work in.
721 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
723 * utils/mountd/mountd.man: Record the change if default behaviour
725 * configure.in, nfs-utils.spec: update version to 1.0.5 and
728 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
730 * utils/mountd/mountd.c(main): getopt string fix for 'o'
731 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
732 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
734 * support/include/nfs/export.h: Reserve a bit for possible ACL
737 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
739 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
740 assorted changed to cope with section 7 of the manual.
741 * configure.in, nfs-utils.spec: Update version to 1.0.4
744 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
745 baseline for 2.6 and 2.8. I.e. it should continue to work right
746 through the 2.8 (or 3.0) kernel series. Previous releases wont.
748 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
749 Steve Dickson <SteveD@redhat.com>
752 * utils/statd/statd.c: create a pidfile with pid of statd, and
753 truncate it when statd exists.
754 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
755 and warn if this is root.
756 * utils/statd/statd.c: when statd forks, connect child to parent
757 with a pipe, and send a byte down the pipe once the child is
759 * Makefile: create and chown sm, sm.bak, state when "make install"
760 * configure.in: add --with-statduser= option which defaults to
761 "rpcuser" or "nobody"
762 * config.mk.in: pass "statduser" through to Makefile
764 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
766 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
767 used as the size was changed somewhere in 2.5.60-2.5.70. Without
768 this nfs-utils compiles against 2.6 headers will not work on a
771 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
773 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
774 set number of threads by writing to there. This means it will
775 still work when the syscall interface goes away in 2.7.
777 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
778 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
780 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
781 so as to only export the wildcard exports that were asked for.
782 * support/export/export.c(export_allowed): changed to return the
783 nfs_export rather than a "struct exportent", as m_changed is
785 * support/export/rmtab.c(rmtab_read): modified to deal with
786 interface change for export_allowed(), and enhanced to preserve
787 m_changed flag when a wild-card export causes the creation of
788 a non-wildcard export.
790 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
791 Steve Dickson <SteveD@redhat.com>
793 * utils/mountd/mountd.man: Add valid kinds of debugging.
794 * utils/mountd/mountd.c(main): ignore SIGPIPE
795 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
796 we don't get warnings about unavailable stats that weren't asked
799 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
801 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
802 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
803 'forever', so things disappear out of the cache rather than just
806 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
808 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
811 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
813 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
814 etc/redhat/nfs.init: when checking if V3 is supported, make sure
815 nfs server 'knows' about 127.0.0.1 first.
817 2003-06-10 Chip Salzenberg <chip@pobox.com>
819 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
820 * debian/changelog: Version 1.0.3-2.
822 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
823 NeilBrown <neilb@cse.unsw.edu.au>
825 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
826 long long to avoid overflow when printing stats.
828 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
830 * support/export/export.c, support/include/nfslib.h,
831 support/nfs/export.c, utils/exportfs/exportfs.c,
832 utils/mountd/mountd.c: new export option "mountpoint"
833 If no path is given, then the export point must be a
834 mount point, or it won't be exported. If a path is
835 given (e.g. mountpoint=/path) then that path must be
836 a mountpoint or the exportpoint won't be exported.
837 * utils/exportfs/exportfs.man: document mountpoint option.
838 * support/misc/mountpoint.c: New file with is_mountpoint()
839 to determine if something is a mountpoint.
841 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
843 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
844 argument as we might not be getting the filehandle for the
846 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
847 cache_get_filehandle.
848 * utils/mountd/mountd.c(get_rootfh): check export point and
849 requested directory are on the same filesystem, and complain if
852 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
854 * utils/mountd/auth.c(auth_authenticate_internal): make sure
855 portnumber is still checked when using new cache lookup.
857 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
859 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
860 Don't actually talk to kernel when new cache is in effect, except
862 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
863 * support/export/xtab.c: Only rename new xtab into place if it has
864 changed, thus preserving modify date for exportfs to use when
866 * support/nfs/cacheio.c: Add cache_flush
867 * support/export/xtab.c: Only rename new xtab into place if it has
868 changed, thus preserving modify date for exportfs to use when
871 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
873 * support/export/client.c: Add client_compose, client_member to
874 handle new composite client names
875 * support/include/exportfs.h: Declare above functions.
876 * utils/mountd/auth.c: use client_compose to determine calling
877 client if new cache is being used.
878 * utils/mountd/auth.c: call cache_export to export a filesystem if
879 new_cache, check if new cache is used, and call my_svc_run instead
881 * utils/mountd/svc_run.c: new file defining my_svc_run
882 * utils/mountd/cache.c: new file for handling cache upcalls.
883 * support/nfs/cacheio.c(check_new_cache): new function to check if
884 new cache should be used.
887 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
889 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
890 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
891 * utils/exportfs/exportfs.c(dump): ditto
893 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
895 * support/export/hostname.c(get_reliable_hostbyaddr): new function
896 to get host name from address with full checking of authenticity.
897 * support/include/misc.h: declare above function
898 * utils/mountd/auth.c(auth_authenticate_internal): remove all
899 logic for authenticating address.
900 * utils/mountd/auth.c(auth_authenticate): call new
901 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
904 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
906 * tools/rpcgen/rpc_main.c(find_cpp): removed
907 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
908 then try hard-coded paths.
910 2003-03-26 Chip Salzenberg <chip@pobox.com>
912 * debian/changelog: Version 1.0.3-1.
914 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
916 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
917 "const char*", not "char*".
919 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
921 * configure.in (VERSION): Set to "1.0.3".
922 * nfs-utils.spec: Likewise.
923 * configure: Regenerated.
925 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
927 * support/nfs/cacheio.c: New File - support for read/writing
928 to export cache in /proc/rpc/*/channel
929 * support/nfs/Makefile: compile cacheio.c
930 * support/include/nfslib.h: declare cacheio.c functions
931 * support/nfs/nfsexport.c: export and unexport through
932 /proc/rpc/*/channel if possible, as old syscall interface
933 may not survive into 2.6 on all architectures.
935 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
936 Ben Leslie <benno@sesgroup.net>
938 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
939 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
940 former would incorectly ignore defport if the application
941 explicitly set __rpcfdtype. The later is sufficient to avoid the
942 special handling in the case where stdin is an internet socket.
944 * utils/mountd/mountd.c(main): Add 'n' to option list in
945 getopt_long as this is a short form of --no-tcp which want being
948 2003-02-12 Chip Salzenberg <chip@pobox.com>
950 * debian/changelog: Version 1.0.2-2.
952 2002-11-27 Chip Salzenberg <chip@pobox.com>
954 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
955 overflow bug. Reformat per rest of source file.
957 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
959 * utils/exportfs/exports.man: Correct notes about whether the wild
960 card characters match a period. They do.
962 2002-10-15 Juan Gomez <juang@us.ibm.com>
964 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
966 (mountlist_add): Call slink_safe_rename instead of rename.
968 2002-10-11 H.J. Lu <hjl@lucon.org>
970 * support/include/exportfs.h (export_errno): New.
972 * support/nfs/exports.c: Include <errno.h>.
974 (getexportent): Set export_errno to EINVAL for bad option.
975 (parseopts): Likewise.
976 Report the location of the default sync/async option.
978 * utils/exportfs/exportfs.c (main): Initialize export_errno to
979 0. Return export_errno.
981 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
982 NeilBrown <neilb@cse.unsw.edu.au>
984 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
985 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
987 2002-09-16 Chip Salzenberg <chip@pobox.com>
989 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
991 2002-09-15 Chip Salzenberg <chip@pobox.com>
993 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
994 socket, as occurs when run from sshd.
995 * debian/changelog: Version 1.0.2-1.
997 2002-09-12 H.J. Lu <hjl@lucon.org>
999 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
1002 2002-09-12 H.J. Lu <hjl@lucon.org>
1004 * configure.in: Remove checking svctcp_socket and svcudp_socket.
1005 * configure: Regenerated.
1007 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
1008 (HAVE_SVCUDP_SOCKET): Removed.
1010 * support/include/nfslib.h: Undo the last change.
1012 2002-09-12 H.J. Lu <hjl@lucon.org>
1014 * support/include/nfslib.h (svctcp_socket): Protect it with
1016 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
1018 2002-09-12 H.J. Lu <hjl@lucon.org>
1020 * configure.in (VERSION): Set to "1.0.2".
1021 * configure: Regenerated.
1022 * nfs-utils.spec: Likewise.
1024 2002-09-12 H.J. Lu <hjl@lucon.org>
1026 * configure.in: Check svctcp_socket and svcudp_socket.
1027 * configure: Regenerated.
1029 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
1030 (HAVE_SVCUDP_SOCKET): New.
1032 * support/include/nfslib.h (svctcp_socket): New.
1033 (svcudp_socket): New.
1035 * support/nfs/Makefile (OBJS): Add svc_socket.o.
1037 * support/nfs/svc_socket.c: New.
1039 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
1040 svcudp_socket if port is unspecified.
1042 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
1044 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
1045 (killer): New. Signal handler to unregister.
1046 (main): Use killer. Call svcudp_socket to get the default
1049 2002-09-02 Juan Gomez <juang@us.ibm.com>
1050 NeilBrown <neilb@cse.unsw.edu.au>
1052 Add -N option to statd to run in notify-only mode.
1054 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
1055 * utils/statd/statd.man: document -N
1056 * utils/statd/statd.c: enabled -N, largely exists but needed to be
1057 uncommented and completed
1059 2002-09-02 Juan Gomez <juang@us.ibm.com>
1060 NeilBrown <neilb@cse.unsw.edu.au>
1062 statd to have " -P directory" arg to use that directory instead
1063 of /var/lib/nfs. This is useful for fail-over clusters.
1065 * utils/statd/statd.h: define SM_DIR etc as var, not const.
1066 * utils/statd/statd.c: define "-P" option to set SM_*
1068 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
1069 a constant any more.
1070 * utils/statd/notify.c: ditto.
1071 * utils/statd/statd.man: document -P option.
1073 2002-08-26 Chip Salzenberg <chip@pobox.com>
1075 * utils/nfsd/nfsd.man: Fix typo.
1076 * debian/changelog: Version 1.0.1-1.
1078 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
1080 * let parseopts know if /etc/exports was being read or not,
1081 and have it only print "no sync or async" warning in that case.
1083 2002-05-06 Tom McNeal <trmcneal@attbi.com>
1084 NeilBrown <neilb@cse.unsw.edu.au>
1086 * utils/nfsstat/nfsstat.c: Handle differing format for
1087 /proc/net/rpc/nfsd between pre and post 2.4.0
1089 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
1090 James Pearson <james-p@moving-picture.com>
1092 * support/nfs/rmtab.c(fendrmtabent): sync changes to
1093 storage before returning, as this is critical state
1095 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
1096 H.J. Lu <hjl@lucon.org>
1098 * etc/redhat/nfs: New.
1100 2002-04-08 H.J. Lu <hjl@lucon.org>
1102 * etc/redhat/nfs.init: Updated.
1104 * nfs-utils.spec.in: Updated.
1105 * nfs-utils.spec: Regenerated.
1107 * utils/mountd/mountd.c (longopts): Fix a typo.
1109 * utils/mountd/mountd.man: Updated.
1111 2002-04-07 H.J. Lu <hjl@lucon.org>
1113 * etc/redhat/nfslock.init (restart): Just do stop and start.
1115 * etc/redhat/nfs.init: Fix a typo.
1117 2002-04-07 H.J. Lu <hjl@lucon.org>
1119 * configure.in (VERSION): Set to "1.0.1".
1120 * configure: Regenerated.
1121 * nfs-utils.spec: Likewise.
1123 * README: Updated for 1.0.1.
1125 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
1126 H.J. Lu <hjl@lucon.org>
1128 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
1130 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
1131 NeilBrown <neilb@cse.unsw.edu.au>
1133 Add support for fsid=nn export option so that device
1134 numbers don't go in filehandles.
1135 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
1136 is set, pass the fsid in-place of the device number
1137 * support/nfs/exports.c: parse and print fsid= option.
1138 Also check if efname has been set, and use "command line"
1139 instead in error messages.
1140 Also, use strtol instead of atoi for anon[ug]id= so that
1141 bad numbers cause errors.
1143 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
1144 NeilBrown <neilb@cse.unsw.edu.au>
1146 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
1147 flag so that "sync" becomes the default.
1148 Check that either "sync" or "async" is given as an option
1149 and warn if neither are present
1150 * utils/exportfs/exports.man: change documentation for "sync"
1151 to be documentation for "async".
1152 * utils/exportfs/exportfs.man: note that "sync" is the default
1156 2002-01-02 Chip Salzenberg <chip@pobox.com>
1158 * support/export/nfsctl.c (expsetup): Don't export entries that
1159 specify id mappings not supported by the kernel. No extant kernel
1160 supports any significant mapping, only 'identity' (i.e. none).
1161 When other mappings are supported, this code will need changing.
1162 * debian/changelog: Version 1.0-2.
1164 2001-12-26 Chip Salzenberg <chip@pobox.com>
1166 * nfs-utils.spec (Version): Set to "1.0".
1167 * configure.in (VERSION): Likewise.
1168 * configure: Regenerated.
1169 * README: Rewritten.
1170 * debian/changelog: Version 1.0-1.
1172 * utils/exportfs/exports.man: Emphasize the need for options to
1173 immediately follow client names. Explain that wildcards don't
1174 usually work on addresses, but may work when reverse DNS fails.
1175 Comment out a leftover TP that was TPing our indentation.
1176 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
1177 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
1178 * debian/changelog: Version 0.3.3-6.
1180 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
1182 * support/export/client.c(client_lookup): If a host has multiple
1183 IP addresses, then we must always use the result of a
1184 gethostbyname, not that of gethostbyaddr for exporting
1186 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
1188 * support/export/client.c (client_lookup): use strcasecmp when
1189 comparing host names
1190 * support/nfs/export.c (getexportent): add fromkernel arg and use
1191 different defaults as kernels prior to 2.4.11 assume different
1192 defaults in /proc/fs/nfs/exports
1193 * support/include/nfslib.h, support/export/export.c,
1194 support/export/xtab.c: support extra "fromkernel" arg for
1197 2001-12-13 Chip Salzenberg <chip@pobox.com>
1199 * debian/changelog: Version 0.3.3-5.
1201 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
1203 * support/nfs/xio.c (xskip): Call `xungetc' instead of
1204 `ungetc' to keep x_line more properly.
1206 2001-11-26 Chip Salzenberg <chip@pobox.com>
1208 * utils/showmount/showmount.c (main): Don't assume that strings
1209 starting with digits are IP addresses.
1210 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
1211 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
1212 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
1213 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
1214 man pages: We check host names *and* addresses with tcpwrappers.
1215 * debian/changelog: Version 0.3.3-4.
1217 2001-11-21 Chip Salzenberg <chip@pobox.com>
1219 * support/nfs/clients.c (cfname): Added: current clients file name.
1220 (setnfsclntent): Set it.
1221 ({get,end}nfsclntent, syntaxerr): Use it.
1222 * support/nfs/exports.c (efname): Added: current exports file name.
1223 (setnfsexportent): Set it.
1224 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
1225 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
1226 * debian/changelog: Version 0.3.3-3.
1228 2001-10-11 Chip Salzenberg <chip@pobox.com>
1230 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
1231 * debian/changelog: Version 0.3.3-2.
1233 2001-10-08 Chip Salzenberg <chip@pobox.com>
1235 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
1236 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
1237 * utils/mountd/mountd.man: Update paths to /var/lib.
1238 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
1240 2001-10-06 Preston Brown <pbrown@redhat.com>
1242 * utils/nfsstat/nfsstat.man: Updated.
1244 2001-09-24 H.J. Lu <hjl@lucon.org>
1246 * configure.in (VERSION): Set to "0.3.3".
1247 * configure: Regenerated.
1248 * nfs-utils.spec: Likewise.
1250 * README: Updated for 0.3.3.
1252 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
1254 Arrange that "exportfs -au" never does DNS lookup:
1256 * support/export/client.c (client_lookup) : add "canonical"
1257 flag which says that the hostname is known to be canonical, so
1260 * support/export/export.c (export_create) : add "canonical"
1261 flag to be passed down to client_lookup
1262 * support/export/export.c (export_lookup) : Likewise
1264 * support/export/xtab.c (xtab_read) : pass appropriate
1265 "canonical" flag to export_lookup and export_create:
1266 set if reading list of filesystems currently exports
1269 * support/export/export.c (export_read) : pass 0 as
1270 "canonical" flag to export_lookup and export_create
1271 * support/export/rmtab.s (rmtab_read) : Likewise
1273 * support/include/exportfs.h : redeclare various routines
1274 to have "canonical" flag
1276 * utils/exportfs/exportfs.c (main) : redo logic for
1277 "-au" to read in what is currently exported, but never even
1278 look at what "should" be exported.
1280 * utils/exportfs/exportfs.c (unexportall) : remove this
1281 routine. Functionality is completely included in
1284 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
1285 flag to zero in calls to export_lookup and export_create.
1288 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
1289 Anne Milicia <milicia@missioncriticallinux.com>
1291 * support/export/client.c (client_lookup) call gethostbyadd
1292 to make sure that we have a canonical hostname, even for
1294 * utils/exportfs/exportfs.c (exportfs) Likewise
1296 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1298 * support/nfs/exports.c (putexportent): \octal quote any spaces
1300 * support/nfs/xio.c (xgettok): recognise double-quote and
1301 \octal quoting in path names
1302 * utils/exportfs/exports.man: document quoting conventions
1305 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1307 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
1308 change from 2000-08-02: It causes problems if someone exports
1309 to both a hostname and IP addresses. nfs-utils must be
1310 consistant about the canonical name that it chooses.
1312 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
1313 H.J. Lu <hjl@lucon.org>
1315 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
1317 * utils/statd/statd.c (longopts): Add "name".
1318 (usage): Add "-n/--name".
1319 (main): Set MY_NAME with "-n/--name".
1321 * utils/statd/state.c (change_state): Set MY_NAME only if it
1324 * utils/statd/statd.man: Updated for "-n/--name".
1326 2001-07-26 H.J. Lu <hjl@lucon.org>
1328 * nfs-utils.spec (Release): Set to 8.
1330 2001-07-25 H.J. Lu <hjl@lucon.org>
1332 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
1335 2001-06-27 H.J. Lu <hjl@lucon.org>
1337 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
1339 2001-06-27 H.J. Lu <hjl@lucon.org>
1341 * utils/rquotad/rquota_server.c: Don't call statfs () for
1342 the block size. Use BLOCK_SIZE instead.
1344 2001-06-27 H.J. Lu <hjl@lucon.org>
1346 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
1347 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
1349 * configure.in (enable_nfsv3): Set to yes by default.
1350 (--enable-rquotad): Added
1351 (AC_PROG_CXX): Removed.
1352 (AC_OUTPUT): Add utils/Makefile.
1353 (CC_FOR_BUILD): Renamed from BUILD_CC.
1354 * configure: Regenerated.
1356 * utils/Makefile: Removed.
1358 * utils/Makefile.in: New.
1360 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
1362 (CC_FOR_BUILD): Renamed from BUILD_CC.
1363 * nfs-utils.spec: Regenerated.
1365 2001-06-15 Chip Salzenberg <chip@debian.org>
1367 * debian/changelog: Version 0.3.2-2.
1368 * debian/*.init: Minor fixes.
1370 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
1372 * etc/nodist/nfs-server: Fixed a bug where the script would
1373 disable mounts from NFSv3 clients if NFSv3 is present.
1375 2001-06-05 H.J. Lu <hjl@lucon.org>
1377 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
1378 (main): Support --descriptors/-o to set the limit of the number
1379 of open file descriptors.
1382 * utils/mountd/mountd.man: Updated for --descriptors/-o.
1384 2001-06-04 H.J. Lu <hjl@lucon.org>
1386 * nfs-utils.spec (Release): Set to 6.
1388 2001-05-28 H.J. Lu <hjl@lucon.org>
1390 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
1391 * utils/mountd/mountd.c (main): Likewise.
1392 * utils/nfsd/nfsd.c (main): Likewise.
1393 * utils/rquotad/rquota_svc.c (main): Likewise.
1395 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
1397 * support/export/client.c (client_check): Check IP address
1400 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
1402 * support/export/client.c (client_gettype): Treat `*' as
1405 2001-04-22 H.J. Lu <hjl@lucon.org>
1407 * nfs-utils.spec.in: Fix a typo.
1408 * nfs-utils.spec: Regenerated.
1410 2001-04-21 H.J. Lu <hjl@lucon.org>
1412 * nfs-utils.spec.in: Fix cross build.
1413 * nfs-utils.spec: Regenerated.
1414 (Release): Set to 5.
1416 2001-04-18 H.J. Lu <hjl@lucon.org>
1418 * nfs-utils.spec.in: Support cross build.
1419 * nfs-utils.spec: Regenerated.
1420 (Release): Set to 4.
1423 * config.guess: New.
1425 * config.mk.in (BUILD_CC): New.
1426 (CC): Set to $(BUILD_CC) if BUILD is defined.
1429 (RANLIB): Set to @RANLIB@.
1431 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
1432 * configure: Regenerated.
1434 * tools/rpcgen/Makefile (BUILD): Set to true.
1436 2001-04-01 Chip Salzenberg <chip@valinux.com>
1438 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
1439 redundant, and sometimes broken, declaration of svc_fdset;
1441 * support/nfs/rpcmisc.c (closedown): Likewise.
1443 2001-03-21 H.J. Lu <hjl@lucon.org>
1445 * nfs-utils.spec: Regenerated.
1446 (Release): Set to 3.
1448 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
1450 * utils/statd/statd.c (main): make sure file descriptors 0-2
1451 are open to /dev/null.
1453 2001-03-21 H.J. Lu <hjl@lucon.org>
1455 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
1456 * support/nfs/rpcmisc.c: Likewise.
1457 * utils/rquotad/rquota_svc.c: Likewise.
1458 * utils/rquotad/rquotad.man: Likewise.
1459 * utils/statd/Makefile: Likewise.
1460 * utils/statd/rmtcall.c: Likewise.
1461 * utils/statd/simulate.c: Likewise.
1462 * utils/statd/statd.c: Likewise.
1463 * utils/statd/statd.man: Likewise.
1465 2001-03-11 H.J. Lu <hjl@lucon.org>
1467 * configure.in (RELEASE): New. Default to 1, set by
1468 --with-release=XXX. Substitute nfs-utils.spec.
1469 * nfs-utils.spec.in (Release): Set to @RELEASE@.
1470 * configure: Regenerated.
1471 * nfs-utils.spec: Likewise.
1473 2001-03-11 H.J. Lu <hjl@lucon.org>
1475 * utils/rquotad/rquotad.man: Fix a typo.
1477 2001-03-11 H.J. Lu <hjl@lucon.org>
1479 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
1480 * support/nfs/rpcmisc.c: Likewise.
1481 * utils/rquotad/rquota_svc.c: Likewise.
1482 * utils/rquotad/rquotad.man: Likewise.
1483 * utils/statd/Makefile: Likewise.
1484 * utils/statd/rmtcall.c: Likewise.
1485 * utils/statd/simulate.c: Likewise.
1486 * utils/statd/statd.c: Likewise.
1487 * utils/statd/statd.man: Likewise.
1489 2001-03-10 H.J. Lu <hjl@lucon.org>
1491 * configure.in (VERSION): Set to "0.3.2".
1492 * configure: Regenerated.
1493 * nfs-utils.spec: Likewise.
1495 * README: Updated for 0.3.2.
1497 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
1499 * utils/rquotad/rquotad.man: Updated for -p.
1500 * utils/statd/statd.man: Likewise.
1502 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
1504 * support/nfs/rpcmisc.c: export makesock()
1506 * support/include/rpcmisc.h (makesock): Declared.
1508 * utils/rquotad/rquota_svc.c: added longopts, added support for
1509 specifying the port to bind to on the command line.
1511 * utils/statd/statd.c: ditto, also specify port used for
1512 outgoing connections.
1513 (do_regist): Removed.
1515 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
1516 get_socket. Make it extern.
1518 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
1519 instead of do_regist.
1521 * utils/statd/Makefile (LIBS): link with our own libnfs
1523 2001-03-09 H.J. Lu <hjl@lucon.org>
1525 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
1526 * etc/nodist/nfs-client: Likewise.
1528 2001-02-26 Chip Salzenberg <chip@valinux.com>
1530 * debian/changelog: Version 0.3.1-1.
1531 * Mention upstream source and license in copyright file.
1532 * Add build-Depends for debhelper and libwrap0-dev.
1534 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
1536 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
1537 * etc/nodist/nfs-client: Likewise.
1539 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
1541 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
1544 2001-02-17 Patrick J. LoPresti <patl@curl.com>
1546 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
1549 2001-02-14 H.J. Lu <hjl@lucon.org>
1551 * utils/statd/rmtcall.c: Include <time.h>.
1552 * utils/statd/svc_run.c: Likewise.
1554 2001-02-14 H.J. Lu <hjl@lucon.org>
1556 * configure.in (VERSION): Set to "0.3.1".
1557 * configure: Regenerated.
1558 * nfs-utils.spec: Likewise.
1560 * README: Updated for 0.3.1.
1562 2001-02-14 H.J. Lu <hjl@lucon.org>
1564 * support/nfs/rpcmisc.c: Include <time.h>.
1566 2001-02-14 Chip Salzenberg <chip@valinux.com>
1568 * debian/control: Change priority of nhfsstone package to 'extra'.
1570 2001-02-12 Chip Salzenberg <chip@valinux.com>
1572 * debian/changelog: Version 0.3-2.
1574 2001-02-02 H.J. Lu <hjl@lucon.org>
1576 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
1578 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
1579 out SO_SNDBUF/SO_RCVBUF.
1580 (rpc_init): Remove bufsize and remove socksz in calls to
1583 * utils/mountd/mountd.c (main): Remove bufsize in calls to
1586 2001-01-28 Chip Salzenberg <chip@valinux.com>
1588 * debian/changelog: Version 0.3-1.
1590 2001-01-25 H.J. Lu <hjl@lucon.org>
1592 * configure.in (VERSION): Set to "0.3".
1593 * configure: Regenerated.
1594 * nfs-utils.spec: Likewise.
1596 * README: Updated for 0.3.
1598 2001-01-25 H.J. Lu <hjl@lucon.org>
1600 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
1602 2001-01-20 Chip Salzenberg <chip@valinux.com>
1604 * support/include/xio.h (xgetc): Declare to return int.
1605 * support/nfs/xio.c (xgetc): Return int.
1606 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
1607 * utils/statd/statd.c (main): Use int for value of getopt.
1608 * debian/changelog: Version 0.2.1-5.
1610 2000-12-10 Chip Salzenberg <chip@valinux.com>
1612 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
1613 program and procedure numbers of kernel lockd's callback. Also,
1614 besides the old (and broken) procedure #24, allow #16 per Trond.
1616 2000-12-03 Chip Salzenberg <chip@valinux.com>
1618 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
1619 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
1620 * debian/changelog: Version 0.2.1-4.
1622 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
1624 * utils/mountd/auth.c (auth_authenticate): Log the bad path
1627 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
1629 * support/nfs/exports.c (getexportent): Check for host name
1630 without option, or options without hostname, and print a warning,
1631 as this is most likely a typo.
1633 2000-11-19 Chip Salzenberg <chip@valinux.com>
1635 * debian/control: Add dependency on portmap.
1636 * debian/changelog: Version 0.2.1-3.
1638 2000-11-10 H.J. Lu <hjl@lucon.org>
1640 * nfs-utils.spec.in: Don't use libtool.
1641 Add ChangeLog and COPYING to doc.
1642 * nfs-utils.spec: Rebuild.
1644 2000-11-09 H.J. Lu <hjl@lucon.org>
1646 * etc/redhat/nfs.init (start): Back out the last change.
1648 2000-11-09 H.J. Lu <hjl@lucon.org>
1650 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
1651 TCP is not supported by kernel.
1653 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
1655 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
1656 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
1658 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
1660 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
1662 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
1663 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
1664 callbacks to local lockd.
1666 2000-10-18 Scott McDermott <mcdermot@questra.com>
1668 * utils/exportfs/exports.man: Updated for CIDR netmask.
1670 2000-10-17 Scott McDermott <mcdermot@questra.com>
1672 * support/export/client.c (client_init): Support CIDR netmask
1675 2000-10-11 H.J. Lu <hjl@lucon.org>
1677 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1678 * configure: Rebuilt.
1680 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
1682 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1683 "/var/lib/nfs/state".
1685 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
1687 * utils/statd/statd.h (run_mode): New global bitmask of runtime
1688 behaviors: fg/bg, logging, etc.
1689 * utils/statd/statd.c: New command line options: -V -h -? -d .
1690 * utils/statd/statd.man: Update for changes to statd.
1692 * utils/statd/log.h (log_init): Remove parameter of function; use
1693 global variable "name_p" instead.
1694 * utils/statd/log.c: Add support for logging to stderr.
1696 * utils/statd/notlist.c: Partially rewrite notify list handling
1697 functions. Eliminate run-off-end-of-list bug when calling
1698 nlist_insert_timer. Add lots of comments.
1700 2000-09-27 H.J. Lu <hjl@lucon.org>
1702 * README: Updated for RedHat 7.0.
1704 2000-09-27 H.J. Lu <hjl@lucon.org>
1706 * nfs-utils.spec: Rebuild.
1708 2000-09-27 H.J. Lu <hjl@lucon.org>
1710 * README: Updated for 0.2.1.
1712 2000-09-27 H.J. Lu <hjl@lucon.org>
1714 * nfs-utils.spec.in: Updated to use rpm macros and support
1717 2000-09-25 H.J. Lu <hjl@lucon.org>
1719 * configure.in (VERSION): Set to "0.2.1".
1720 * configure: Regenerated.
1721 * nfs-utils.spec: Updated.
1723 2000-09-25 H.J. Lu <hjl@lucon.org>
1725 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1726 non-NULL hostent is always returned.
1728 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1730 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1731 have an executable (i.e. kernel threads)
1733 2000-09-01 H.J. Lu <hjl@lucon.org>
1735 * README: Updated for 0.2.
1737 2000-09-01 Jay Weber <jweber@valinux.com>
1739 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1740 supporting version 3 of nfs if available, else it will fall back to
1741 version 2 support only.
1743 2000-08-30 H.J. Lu <hjl@lucon.org>
1745 * configure.in (VERSION): Set to "0.2".
1746 * configure: Regenerated.
1747 * nfs-utils.spec: Updated.
1749 2000-08-25 H.J. Lu <hjl@lucon.org>
1751 * support/misc/tcpwrapper.c (logit): Modify the log output.
1753 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1755 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1756 utils/mountd/mountd.man: updated
1758 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1759 * utils/rquotad/Makefile: fix comment
1761 * support/misc/tcpwrapper.c (logit): added comment about waiting
1762 for the children after fork()
1764 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1765 zombies behind (from logit()'s fork)
1766 * utils/rquotad/rquota_svc.c (main): ditto
1767 * utils/statd/statd.c (main): ditto
1769 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1770 to check_default instead of 0, for prognum
1772 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1773 to check_default instead of 0, for prognum
1775 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1776 HAVE_TCP_WRAPPER is defined.
1777 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1778 defined. Reject an RPC call if check_default () fails.
1780 2000-08-25 H.J. Lu <hjl@lucon.org>
1782 * support/include/tcpwrapper.h: New for the tcp wrapper
1784 * support/misc/Makefile: Likewise.
1785 * support/misc/from_local.c: Likewise.
1786 * support/misc/tcpwrapper.c: Likewise.
1788 * aclocal.m4 (AC_TCP_WRAPPER): New.
1789 * configure.in: Use it. Substitute LIBWRAP.
1790 * configure: Rebuilt.
1792 * config.mk.in (LIBNSL): New.
1793 (LIBWRAP): Likewise.
1795 * support/Makefile (SUBDIRS): Add misc.
1797 * support/lib/Makefile (LIBS): Add libmisc.a.
1799 * utils/rquotad/Makefile (LIBS): Add
1801 -lmisc $(LIBWRAP) $(LIBNSL)
1803 * utils/statd/Makefile (LIBS): Likewise.
1805 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1806 HAVE_TCP_WRAPPER is defined.
1807 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1808 defined. Reject an RPC call if check_default () fails.
1810 * utils/statd/statd.c: Include "tcpwrapper.h" if
1811 HAVE_TCP_WRAPPER is defined.
1812 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1813 check_default () before calling sm_prog_1 (). Define it as
1814 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1816 2000-08-25 Chip Salzenberg <chip@valinux.com>
1818 * debian/*: Complete Debian build support.
1819 * etc/debian/*: Remove.
1821 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1823 * support/export/client.c(client_check): removed the "dot+1" as a
1824 ypdomain argument to innetgr as this is entirely bogus.
1825 It should always be NULL.
1827 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1829 * support/export/xtab.c(xtab_read): introduce new mode for
1830 reading xtab. i.e. a list of exports that might be known to the
1831 kernel, or might not. These are flagged as m_exported == -1
1832 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1833 value "2" for xtab, meaning don't trust this too much.
1834 * support/include/exportfs.h(struct mexport): changed m_exported
1835 from one bit to an int so that it can hold new value
1836 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1837 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1838 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1841 * support/nfs/xio.c(xflock): added O_CREAT when getting
1842 a write lock so that missing files aren't fatal.
1844 * etc/debian/nfs-common: new file from "potato"
1845 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1847 2000-08-09 H.J. Lu <hjl@lucon.org>
1849 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1850 startup to ensure all existing clients work fine.
1852 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1853 to xtab_read () for reading _PATH_XTAB.
1855 2000-08-02 H.J. Lu <hjl@lucon.org>
1857 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1858 avoid the reverse name lookup.
1860 2000-07-04 H.J. Lu <hjl@lucon.org>
1862 * utils/statd/log.c: Include <stdlib.h> for exit ().
1864 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1867 2000-07-04 H.J. Lu <hjl@lucon.org>
1869 * configure.in (VERSION): Set to "0.1.9.1".
1870 * configure: Regenerated.
1871 * nfs-utils.spec: Updated.
1875 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1877 * support/export/hostname.c (hostent_dup): Handle the NULL
1880 2000-07-03 H.J. Lu <hjl@lucon.org>
1882 * README: Update the util-linux requirement.
1884 2000-07-03 H.J. Lu <hjl@lucon.org>
1886 * configure.in (VERSION): Set to "0.1.9".
1887 * configure: Regenerated.
1888 * nfs-utils.spec: Updated.
1892 2000-07-03 H.J. Lu <hjl@lucon.org>
1894 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1895 stop to ensure all clients can still access the server
1896 before it is shutdown.
1898 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1900 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1901 calls with format string.
1903 2000-06-28 Chip Salzenberg <chip@valinux.com>
1905 * utils/statd/log.c (log): Call syslog with format string.
1907 2000-06-27 H.J. Lu <hjl@lucon.org>
1909 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1910 instead of OPEN_MAX.
1912 2000-06-27 H.J. Lu <hjl@lucon.org>
1916 2000-06-27 H.J. Lu <hjl@lucon.org>
1918 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1919 startup to ensure all existing clients are exported.
1921 * configure.in (VERSION): Set to "0.1.8.2".
1922 * configure: Regenerated.
1923 * nfs-utils.spec: Updated.
1925 2000-06-06 H.J. Lu <hjl@lucon.org>
1927 * configure.in (VERSION): Set to "0.1.8.1".
1928 * configure: Regenerated.
1929 * nfs-utils.spec: Updated.
1931 2000-06-06 H.J. Lu <hjl@lucon.org>
1933 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1934 to "struct sockaddr_in *" for glibc 2.2.
1935 (mount_umnt_1_svc): Likewise.
1936 (mount_umntall_1_svc): Likewise.
1937 (mount_export_1_svc): Likewise.
1938 (mount_exportall_1_svc): Likewise.
1939 (mount_pathconf_2_svc): Likewise.
1940 (get_rootfh): Likewise.
1942 2000-06-04 H.J. Lu <hjl@lucon.org>
1944 * etc/redhat/nfs.init: Fix a typo in comment.
1946 2000-05-31 H.J. Lu <hjl@lucon.org>
1948 * configure.in (VERSION): Set to "0.1.8".
1949 * configure: Regenerated.
1950 * nfs-utils.spec: Updated.
1954 2000-05-31 H.J. Lu <hjl@lucon.org>
1956 * configure.in (VERSION): Set to "0.1.7.5".
1957 * configure: Regenerated.
1958 * nfs-utils.spec: Updated.
1960 * support/include/nfslib.h (exportent): Add a new field,
1961 r_count, to count the number of mounts from a client.
1962 (getrmtabent): Take a new argument for position in file.
1963 (putrmtabent): Likewise.
1964 (fgetrmtabent): Likewise.
1965 (fputrmtabent): Likewise.
1966 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1967 for position in file.
1968 (fgetrmtabent): Likewise.
1969 (putrmtabent): Likewise.
1970 (fputrmtabent): Likewise.
1972 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1975 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1976 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1977 and fputrmtabent ().
1978 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1979 (mountlist_del): Likewise.
1980 (mountlist_del_all): Likewise.
1981 (mountlist_list): Likewise.
1983 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1984 for the existing entry and initialize "r_count" to 1.
1985 (mountlist_del): Decrement "r_count".
1987 2000-05-18 H.J. Lu <hjl@lucon.org>
1989 * configure.in (VERSION): Set to "0.1.7.4".
1990 * configure: Regenerated.
1991 * nfs-utils.spec: Updated.
1993 2000-05-18 H.J. Lu <hjl@lucon.org>
1995 * etc/redhat/nfs.init (restart): Just do stop and start.
1997 2000-05-09 Jay Weber <jweber@valinux.com>
1999 * utils/rquotad/hasquota.c: added support for ext3 recognition
2001 * utils/rquotad/mntent.h: Likewise.
2003 2000-05-01 H.J. Lu <hjl@lucon.org>
2005 * configure.in (VERSION): Set to "0.1.7.3".
2006 * configure: Regenerated.
2007 * nfs-utils.spec: Updated.
2009 2000-05-01 H.J. Lu <hjl@lucon.org>
2011 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
2012 mounting poins in /etc/fstab.
2014 2000-05-01 H.J. Lu <hjl@lucon.org>
2016 * configure.in (VERSION): Set to "0.1.7.2".
2017 * configure: Regenerated.
2018 * nfs-utils.spec: Updated.
2020 2000-05-01 H.J. Lu <hjl@lucon.org>
2022 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
2023 to check for the mounting point.
2025 2000-04-29 Chip Salzenberg <chip@valinux.com>
2026 Neil Brown <neilb@cse.unsw.edu.au>
2028 * Really re-use RPC ports.
2029 (Fixes earlier patch. Sorry, Neil.)
2031 2000-04-26 H.J. Lu <hjl@lucon.org>
2033 * configure.in (VERSION): Set to "0.1.7.1".
2034 * configure: Regenerated.
2035 * nfs-utils.spec: Updated.
2037 2000-04-26 H.J. Lu <hjl@lucon.org>
2039 * etc/redhat/nfslock.init: Check if lockd exits before killing
2042 2000-04-25 H.J. Lu <hjl@lucon.org>
2044 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
2046 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
2048 * support/nfs/exports.c (parsesquash): Correctly set the
2051 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
2053 * support/include/nfs/nfs.h: Removed knowledge of internals of
2054 kernel filehandles (which can change) and defined nfs_fh_size
2055 which has variable size
2057 * support/nfs/getfh.c: defined getfh_size to use new syscall to
2058 get variable sized file handles, and change getfh{,old} to
2061 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
2064 * tools/Makefile, tools/nlmtest/nlmtest.c
2065 nlmtest.c depended on internel format of file handles, so now
2069 2000-03-12 Chip Salzenberg <chip@valinux.com>
2070 Neil Brown <neilb@cse.unsw.edu.au>
2072 * support/nfs/rpcmisc.c (rpc_init): Share transports.
2074 2000-03-13 H.J. Lu <hjl@lucon.org>
2076 * etc/redhat/nfsd.init: Updated.
2078 * etc/redhat/nfslock.init: Updated.
2080 * nfs-utils.spec.in: Updated.
2082 * configure.in (VERSION): Set to "0.1.7".
2083 * configure: Regenerated.
2084 * nfs-utils.spec: Updated.
2088 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
2090 * utils/exportfs/exportfs.c (dump): Included printing of
2091 nohide, no_subtree_check, and insecure_locks
2093 2000-02-26 Chip Salzenberg <chip@valinux.com>
2095 * config.mk.in (INSTALLSUID): Strip ("-s").
2096 (INSTALLSCRIPT): Define.
2097 * utils/nhfsstone/Makefile: Use it.
2099 2000-02-26 Chip Salzenberg <chip@valinux.com>
2101 * utils/lockd/lockd.man: Create.
2102 * utils/lockd/Makefile: Install it.
2103 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
2104 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
2105 * utils/nhfsstone/Makefile: Install the helper scripts and
2107 * utils/exportfs/exports.man: Fix typo.
2109 2000-02-26 Chip Salzenberg <chip@valinux.com>
2111 * support/nfs/xio.c (xungetc): Decrement line number when
2112 character to unget is newline. Make first parameter int, so
2113 it can distinguish EOF from \377.
2114 * support/include/xio.h (xungetc): Adjust prototype.
2116 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
2118 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
2119 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
2120 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
2122 This is for supporting a new option introduced in 2.3.42
2124 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
2126 * COPYING: Added. GPL.
2128 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
2130 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
2131 to get the block size.
2133 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
2135 * nfs-utils.spec.in: Update ftp site.
2137 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
2139 * README: Update hostnames.
2141 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
2143 * configure.in (VERSION): Set to "0.1.6".
2144 * configure: Regenerated.
2145 * nfs-utils.spec: Updated.
2149 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
2151 * utils/mountd/auth.c (auth_authenticate_internal): Call
2152 xstrdup for hostname before passing it to gethostbyname.
2154 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
2157 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
2159 * README: Update the mailing list address.
2161 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
2163 * configure.in (VERSION): Set to "0.1.5".
2164 * configure: Regenerated.
2165 * nfs-utils.spec: Updated.
2169 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
2171 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
2174 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
2176 * configure.in (VERSION): Set to "0.1.4".
2177 * configure: Regenerated.
2178 * nfs-utils.spec: Updated.
2182 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
2184 * nfs-utils.spec.in: New file.
2186 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
2188 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
2190 1999-12-04 Chip Salzenberg <chip@valinux.com>
2192 * config.mk.in: Use $(CC) as set by configure.
2194 1999-12-04 Chip Salzenberg <chip@valinux.com>
2196 * rules.mk: Call $(MAKE) with $(MFLAGS).
2198 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
2200 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
2201 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
2203 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
2205 * nfs-utils.spec (Version): Set to 0.1.3.
2207 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
2208 * configure: Regenerated.
2212 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
2214 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
2215 (_PATH_DEV_DSK): Likewise.
2216 (getquotainfo): Match the mounting point from /etc/mtab
2217 instead of calling nfsmount_to_devname ().
2219 1999-11-24 Chip Salzenberg <chip@valinux.com>
2221 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
2222 to the new port 24 as well as the historical port 100021.
2224 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
2226 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
2227 stopping nfsd to stop spurious ESTALE on server shutdown.
2229 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
2231 * support/nfs/exports.c (parseopts): make copy of opt string
2232 before 'nul'ing out commas so that
2234 # exportfs -o option1,option2 hosta:/fs hostb:/fs
2236 applies both options to both exports.
2238 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
2240 * README: Fix a few typos.
2242 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
2244 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
2245 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
2246 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
2247 (unsigned_dec): Likewise.
2248 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
2249 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
2251 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
2253 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
2254 (unsigned_dec): Likewise.
2255 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
2256 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
2257 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
2259 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
2261 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
2262 * support/nfs/exports.c: added {no_,}subtree_check and changed
2264 * utils/exportfs/exports.man: added no_subtree_check and nohide
2265 and removed irrelevant stuff from unfsd.
2266 * support/export/rmtab.c: rmtab_read didn't quite do the right
2267 thing if a pathname from rmtab was a subdirectory of an export-point
2269 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
2271 * README: Updated ftp site.
2273 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
2275 * nfs-utils.spec (Version): Set to 0.1.2.
2277 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
2278 * configure: Regenerated.
2282 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
2284 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
2285 (auth_authenticate_internal): Check for NULL return on forward
2287 (auth_authenticate): Handle "no_forward_dns".
2289 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
2291 * Version 0.1.1 released.
2293 * nfs-utils.spec (Version): Set to 0.1.1.
2295 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
2296 * configure: Regenerated.
2300 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
2302 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
2304 (Provides): Likewise.
2306 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
2308 * Initial version 0.1 released.
2310 * configure.in (VERSION): Set to "nfs-utils 0.1".
2311 * configure: Regenerated.
2313 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
2315 * utils/mountd/mountd.c (get_exportlist): Cleanup.
2317 * utils/exportfs/exportfs.c (unexport_all): Unexport from
2318 kernel only if the entry is exported to kernel.
2319 (unexportfs): Likewise.
2321 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
2323 1/ utils/mountd/rmtab.c::mountlist_list
2325 This routine stats the rmtab file to see if it has changed. It
2326 if has, it cleans up it's old copy of the data. But it still
2327 always re-read the file, thus returning multiple copies of the
2328 data on consecutive calls without intervening changes.
2329 "Showmount -a" didn't show this as it appears to sort/unique the
2330 data, but 'strace showmount -a' showed that the size of the
2331 datagram that it received grew.
2333 I moved the getrmtabent loop inside the mtime test.
2335 2/ utils/exportfs/exportfs.c
2337 Many routines used the m_path field of m_export instead of
2339 According to the comment in nfslib.h, m_path should only
2340 be used when processing a mount request (i.e. in mountd)
2341 where the mountpoint may be a subdirectory of the export point.
2343 I changed all occurances of m_path to e_path
2346 3/ utils/exportfs/exportfs.c:main
2348 extra arguments are not meaningful with -a or -r, but
2349 exportfs accepted them and then ignored the -a/-r, expect that
2350 -r would still unexport everything first.
2352 I generate an error if there are extra args and f_all
2354 4/ utils/exportfs/exportfs.c:main
2355 extract dump out as a special case.
2357 5/ utils/exportfs/exportfs.c
2358 made f_reexport a local variable.
2361 6/ utils/exportfs/exportfs.c:main,exportall
2363 support/export/rmtab.c
2364 only mayexport on newly created entries, don't set xtabent at all
2366 7/ support/include/nfslib.h
2368 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
2370 8/ support/export/xtab.c
2372 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
2376 9/ support/export/xtab.c
2378 xtab_mount_read now sets m_exported, and NOT
2379 xtabent and mayexport
2381 removed the append arguement from xtab_write as it was
2384 added is_export flag to xtab_write similar to xtab_read
2385 if is_export, only write entries with m_xtabent or m_addxtab
2386 if !is_export, only write entries with m_exported
2388 10/ support/export/export.c::export_allowed_internal
2390 added test for exp->m_mayexport, as the export tree
2391 may have entries that are no longer allowed to be exported,
2392 and so shouldn't caused deduced exported by rmtab_read
2394 11/ utils/exportfs/exportfs.c::main
2395 error checking of flags.
2397 12/ utils/exportfs/exportfs.c
2399 total rewrite of export and unexport logic.
2401 - build an exportslist of valid exports, based on
2402 current etab file and arguments,
2403 - read rmtab to instantiate relevant wild card entries
2404 - read etab to find out what is currently exported
2405 - synchronise intention with reality
2406 - write out etab and xtab
2409 discard the m_addxtab flag
2410 add m_changed flag so we know what to report in exportfs
2412 14/ utils/mountd/auth.c:auth_authenticate
2414 the value returned by gethostbyaddr was trusted.
2416 It now follows this with a call to gethostbyname
2417 and checks that the address is in the list.
2419 15/ support/export/nfsctl.c::cltsetup,expsetup
2421 force client names to lowercase as kernel is
2424 16/ quietened a few compiler warnings
2426 17/ support/export/client:client_lookup
2428 look for pre-existing client with same name before creating
2431 18/ support/include/exportfs.h
2433 The ordering of the MCL_* enum was:
2434 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
2436 I moved ANONYMOUS to the end.
2438 The ordering is significant when an export entry is being searched for to
2439 match a given address. There are two problems with ANONYMOUS being first.
2441 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
2442 then the ro case will always be found first and the privileged hosts won't get
2444 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
2445 export entry for the specific host, and writes it to xtab.
2446 When another request comes from the same host, the ANONYMOUS entry is found again,
2447 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
2448 again. If causes bloat in xtab.
2450 Putting ANONYMOUS at the end reflects it's nature as a catch-all
2452 19/ utils/exportfs/exportfs.man
2453 many updates to the man page to reflect changes to the code
2455 -----------------------
2461 - allow exportfs to modify rmtab file
2462 - make sure kernel never gets two clients with same IP address
2463 - possible kernel should reject
2464 - needs to be some way to lookup client in kernel by IP address
2465 - maybe get kernel to do case-insensitive comparisons on client names
2466 - remove unused clients from kernel
2468 - change etab to xtab and xtab to xtab.active
2470 - timestamp and/or statd-stamp in rmtab for removing old entries.
2472 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
2474 * linux-nfs: New directory.
2475 * linux-nfs/ChangeLog: Moved from ..
2476 * linux-nfs/INSTALL: Likewise.
2477 * linux-nfs/KNOWNBUGS: Likewise.
2478 * linux-nfs/NEW: Likewise.
2479 * linux-nfs/README: Likewise.
2480 * linux-nfs/THANKS: Likewise.
2481 * linux-nfs/TODO: Likewise.
2483 * Starting from knfsd 1.4.7.