1 2005-09-02 Mike Frysinger <vapier@gentoo.org>
2 * utils/rquotad/rquota_server.c(getquotainfo): use explicit
3 struture-member copying rather than memcpy, as the element
4 sizes are the same on all architectures.
6 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
7 Add option to set rpcsec_gss debugging level (if available)
9 Changes to allow gssd/svcgssd to build when using Hiemdal Kerberos
10 libraries. Note that there are still run-time issues preventing
11 this from working when shared libraries for libgssapi and librpcsecgss
14 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
15 Remove the rpcsec_gss code and rely on an external library instead.
17 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
18 *utils/mountd/mountd.c:
19 mountd currently always returns AUTH_NULL and AUTH_SYS as the
20 allowable flavors in mount replies. We want it to also return gss
21 flavors when appropriate. For now as a hack we just have it always
22 return the KRB5 flavors as well.
24 *utils/mountd/cache.c:
26 When attempting to mount an NFSv4 pseudofilesystem (fsid=0) and the
27 actual exported directory does not exist on the server, rpc.mountd
28 doesn't check the directory exists (when fsidtype=1, i.e. using fsid,
29 but does check for fsidtype=0, i.e. using dev/ino). The non-existent
30 exported directory path with fsid=0 is written to the kernel via
31 /proc/net/rpc/nfsd.export/channel, which leads to path_lookup() to
32 return ENOENT (seems appropriate). Unfortunately, the new_cache
33 approach ignores errors returned when writing via the channel file so
34 that particular error is lost and the mount request is silently ignored.
36 Assuming it doesn't make sense to revamp the new_cache/up-call method to
37 not ignore returned errors, it seems appropriate to fix the case where
38 rpc.mountd doesn't check for the existence of an exported directory with
39 fsid= semantics. The following patch does this by moving the stat() up
40 so it is done for both fsidtype's. I'm not certain whether the other
41 tests need to be executed for fsidtype=1, but it doesn't appear to hurt
42 [Not exactly true: the comparison of inode numbers caused problems so
43 now it's kept for fsidtype=0 only].
45 Would it be also desirable to log a warning for every error, if any,
46 returned by a write to any of the /proc/net/rpc/*/channel files which
47 would otherwise be ignored (maybe under a debug flag)?
49 * gssd/mountd/svcgssd: Changes gssd, svcgssd, and mountd to ignore a
50 SIGHUP rather than dying.
52 * many: Remove the gssapi code and rely on an external library instead.
54 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
55 * utils/exportfs/exports.man: Document the "crossmnt" export export option
56 * utils/gssd/krb5_util.c:
57 Add better debugging and partially revert the function
58 check for gss_krb5_ccache_name.
60 For MIT Kerberos releases up to and including 1.3.1, we *must*
61 use the routine gss_krb5_ccache_name to get the K5 gssapi code
62 to use a different credentials cache.
64 For releases 1.3.2 and on, we want to use the KRB5CCNAME
65 environment variable to tell it what to use.
66 (A problem was reported where 1.3.5 was being used, our
67 code was using gss_krb5_ccache_name, but the underlying
68 code continued to use the first (or default?) credentials
69 cache. Switching to using the env variable fixed the problem.
70 I cannot recreate this problem.
72 *utils/gssd/krb5_util.c:
73 Andrew Mahone <andrew.mahone@gmail.com> reported that reiser4
74 always has DT_UNKNOWN. He supplied patch to move the check
75 for regular files after the stat() call to correctly find
76 ccache files in reiser4 filesystem.
78 Also change the name comparison so that the wrong file is
79 not selected when the substring comparison is done.
81 *utils/gssd/krb5_util.c:
82 Limit the set of encryption types that can be negotiated by
83 the Kerberos library to those that the kernel code currently
86 This should eventually query the kernel for the list of
89 *utils/gssd/gss_util.c, utils/svcgssd/svcgssd_main_loop.c:
90 Print more information in error messages to help debugging failures.
92 *utils/svcgssd/svcgssd_proc.c: Increase token buffer size and
93 update error handling so that a response is always sent.
95 *utils/svcgssd/svcgssd_proc.c: Add support to retrieve
99 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
101 Consolidate some of the Kerberos checking instead of repeating
102 the same things for MIT and Heimdal.
103 Also adds more checks to distinguish 32-bit from 64-bit
104 (mainly for gssapi.h)
105 Fix svcgssd Makefile so make TOP=../../ works correctly there.
106 Enable running a modern autoheader.
107 * utils/gssd/gss_oids.c: Use correct OID value for SPKM-3
108 * utils/gssd/gss_util.c: Fix build with older MIT releases that do not define GSS_C_NT_HOSTBASED_SERVICE
109 * utils/gssd/write_bytes.h, support/include/gssapi/gssapi.h:
110 Length of gss_buffer_desc is a size_t which is 64-bits on a
111 64-bit machine. Kernel code expects 32-bit integer for length.
112 Coerce length value into a 32-bit value when reading from or
113 writing to the kernel.
114 Change gssapi.h to use datatype size values obtained from
115 configure rather than hard-coded values.
116 * utils/idmapd/idmapd.c: The EV_INIT check here was wrong, and was
117 causing idmapd to become unresponsive to server requests after
119 * utils/idmapd/idmapd.c: Idmapd should flush the server id<->name
120 caches when its started.
122 2005-04-12 G. Allen Morris III <gam3@gam3.net>
124 * All Makefile: added TOP as needed for easier compile.
126 * utils/nfsstat/nfsstat.c: added NFS V4 support; added the -m
127 option; Added -2, -3, and -4 options; changed -a option to -v
128 option; added long options; changed default output to not
129 show V2 NFS statistics unless used.
131 * utils/nfsstat/nfsstat.man: Documented above changes; changed
132 authors email address; added BUGS section.
134 2005-04-07 Chip Salzenberg <chip@pobox.com>
136 * debian/changelog: Version 1.0.7-2.
138 2005-04-06 Chip Salzenberg <chip@pobox.com>
140 * config.guess, config.sub: Update.
142 * support/rpc/svc_auth_gss.c (_svcauth_gss): Avoid using a cast as
143 an lvalue, as it is non-portable.
145 * support/nfs/exports.c (parseopts): Accept "acl" option to mean
146 ~NFSEXP_NOACL, and "no_acl" to mean NFSEXP_NOACL.
147 (putexportent): Report NFSEXP_NOACL as "no_acl", and ~NFSEXP_NOACL
149 * utils/exportfs/exportfs.c (dump): Report NFSEXP_NOACL as
151 * utils/exportfs/exports.man: Document "no_acl".
153 2005-03-14 NeilBrown <neilb@cse.unsw.edu.au>
154 Denis Vlasenko <vda@ilport.com.ua>
155 * support/export/client.c(client_init and client_gettype):
156 treat N.N.N.N as a special case of MCL_SUBNETWORK instead of
159 2005-03-06 G. Allen Morris III <gam3@gam3.net>
160 * support/nfs/cacheio.c(readline): Could not read lines greater
161 than 128 bytes. [1157791]
162 * utils/exportfs/exports.man: Added a SEE ALSO section and
163 fixed 2 typos. [1018450]
165 2005-02-28 Trond Myklebust <trond.myklebust@fys.uio.no>
166 * utils/statd/rmtcall.c(statd_get_socket): If a port number is
167 explicitly given, make sure to try to bind to that.
169 2005-01-11 Chip Salzenberg <chip@pobox.com>
171 * debian/changelog: Version 1.0.7-1.
172 * debian/nfs-common.default (NEED_IDMAPD, NEED_GSSD):
173 Disable by default, on advice of upstream.
174 * debian/nfs-kernel-server.default (NEED_SVCGSSD):
177 * utils/svcgssd/Makefile (predep): Symbolically link duplicated
179 (distclean): Remove symlinks to duplicated files.
181 2004-12-17 NeilBrown <neilb@cse.unsw.edu.au>
184 * config.mk, configure.in: update version number, run autoconf
185 * configure.in: require nfsidmap.h if gss is enabled.
187 2004-12-10 NeilBrown <neilb@cse.unsw.edu.au>
190 * config.mk, configure.in: update version number, run autoconf
192 2004-12-10 Neil Brown <neilb@cse.unsw.edu.au>
193 * README : note dependancy on kerberos, libevent, and nfsidmap
194 * configure.in : fail if --enable-nfsv4 and libevent or
195 libnfsidmap are missing.
196 * configuyre.in: improve message if krb5 support is missing
198 2004-12-06 Paul Clements <paul.clements@steeleye.com>
199 * support/include/ha-callout.h: get return status from waitpid
201 * support/include/ha-callout.h: don't ignore SIGCHLD while waiting
202 for a callout to complete.
203 * utils/statd/statd.c(sigusr): print current start when re-reading
204 notify list due to SIGUSR1
205 * utils/statd/svc_run.c(my_svc_run): call change_state when
206 re-notifying clients.
208 2004-12-06 Marc Eshel <eshel@almaden.ibm.com>
209 * utils/statd/svc_run.c(my_svc_run): allow loop to exit when in
211 *utils/statd/rmtcall.c(statd_get_socket): if a hostname is given
212 to statd with -n, prefer it's IP address to the default for
215 2004-12-06 Bruce Allan <bwa@us.ibm.com>
216 * utils/mountd/auth.c(auth_reload) Clear the "my_client" cache on
217 an auth_reload to avoid old data getting used.
219 2004-12-03 NeilBrown <neilb@cse.unsw.edu.au>
220 Release 1.0.7-pre1 for testing
222 * config.mk, configure.in: update version number, run autoconf
224 2004-12-03 Trond Myklebust <trond.myklebust@fys.uio.no>
226 * utils/statd/statd.c(main): ignore SIGPIPE
228 2004-11-22 "J. Bruce Fields" <bfields@fieldses.org>
230 * tools/rpcdebug/rpcdebug.c: support aliases "nfsdebug" and
231 "nfsddebug" and update flag names.
232 * configure.in, nodist/* redhat/* nfs-utils.spec*: remove redhat
233 specific files (as no-one actually uses them, especially not
234 redhat), and the nodist /etc files (as they drift out-of-date, and
235 the debian directory provides a suitable example.
236 * utils/svcgssd_proc.c(get_ids): fix memory leak
237 * utils/svcgssd/svcgssd_proc.c: Rely on count of the number of
238 groups instead of using a special guard value to identify the end
240 * utils/idmapd/idmapd.c: don't allow Default domain and anon-uid
241 or -gid to be specified on command line.
242 * utils/idmapd/idmapd.c: improve error messages
243 * utils/idmapd/idmapd.c: Reopen nfsd files on sighup. Allows us
244 to start up client side only (even when nfsd module not loaded),
245 and then sighup later after insmodding nfsd module.
246 * utils/idmapd/idmapd.c: Make sure we catch all errors on
247 daemonizing by waiting for child to report succesfull startup
249 * utils/idmapd/idmapd.c: Let libnfsidmapd parse the idmapd.conf
250 file for the default domain, instead of doing that ourselves.
251 * utils/gssd/gssd_proc.c: Make sure we get an error when a gssd
253 * utils/gssd/gssd_proc.c: We were forgetting to restore the euid
254 on certain failures, which meant gssd could get stuck in a state
255 where it didn't have permissions to read the files in rpc_pipefs
257 * utils/gssd/gssd_proc.c: Use libnfsidmapd to map gss principals
259 * debian/nfs-kernel-server.default: Document the NEED_SVCGSSD
260 variable in /etc/default/nfs-kernel-server.
263 2004-11-22 NeilBrown <neilb@cse.unsw.edu.au>
265 * utils/exportfs/nfsd.man: corrected typo in .BR macro usage -
266 reported by Eric Raymond
268 2004-10-19 "J. Bruce Fields" <bfields@fieldses.org>
270 * support/gssapi/* support/rpc/* utils/gssd/* utils/svcgssd/* etc
271 initial support for GSSAPI authentication
273 2004-09-15 Neil Brown <neilb@cse.unsw.edu.au>
275 * utils/statd/monitor.c(sm_unmon_1_svc): is RESTRICTED_STATD, then
276 check IP address and force my_name to 127.0.0.1 to match
277 what happens in sm_mon_1_svc. This avoid spurious "erroneous
279 * utils/statd.monitor.c(sm_unmon_all_1_svc): likewise
281 2004-09-15 "J. Bruce Fields" <bfields@fieldses.org>
283 * Assorted changes to support "gss/*" style authentication
284 * utils/idmapd: new idmapd daemon for nfsv4 username lookup
286 2004-09-06 Trond Myklebust <trond.myklebust@fys.uio.no>
287 Neil Brown <neilb@cse.unsw.edu.au>
289 * utils/mountd/auth.c(auth_authenticate_internal): fix
290 uninitialsed variable problem (causes bad error messages).
292 2004-09-06 Paul Clements <paul.clements@steeleye.com>
293 Neil Brown <neilb@cse.unsw.edu.au>
295 * utils/mountd/mountd.c(main): support --ha-callout (-H) for
296 specifying a callout program
297 * utils/mountd/rmtab.c: Call ha_callout on mount/unmount
298 * utils/statd/monitor.c: Call ha_callout on add/del client
299 * utils/statd/rmtcall.c: as above
300 * utils/statd/statd.c: handle --ha-callout (-H)
301 * utils/statd/svc_run.c: call notify_hosts is we have received a
303 * support/include/ha-callout.h: define ha_callout function
306 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
307 * utils/mountd/cache.c(cache_process_req): clear fd after
308 processing so as not to confused libc/sunrpc into thinking
309 it need to do something with that fd.
311 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
313 * debian/nfs-kernel-server.init(start,stop) mount the nfsd
314 filesystem, if available, before starting nfs services, and
315 unmount it afterwards.
316 * etc/nodist/nfs-server: ditto
317 * etc/redhat/nfs.init: likewise
318 * etc/redhat/nfs: add "MOUNT_NFSD" flag to control above.
320 2004-06-08 NeilBrown <neilb@cse.unsw.edu.au>
322 * utils/exportfs/exportfs.c: Don't rmtab_read if new_cache, it
324 * support/nfs/cacheio.c(cache_flush): Change order in which caches
325 are flushed so that dependancies don't keep things in the cache
328 2004-03-18 Chip Salzenberg <chip@pobox.com>
330 * debian/changelog: Version 1.0.6-2.
332 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
333 from "J. Bruce Fields" <bfields@fieldses.org>
335 * utils/mountd/cache.c: call auth_reload to make sure auth data is
336 current before responding to kernel upcall.
338 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
339 Based on patch from Greg Banks <gnb@melbourne.sgi.com>
341 * utils/exportfs/exports.man: Document fsid= option.
343 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
347 * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
348 support/include, and depend in "predep"
349 * support/export/Makefile, tools/rpcgen/Makefile,
350 utils/statd/Makefile: add "predep" rule so that "make dep" works.
351 * Makefile: allow a simple "make" to run ./configure and "make dep"
353 * configure.in, nfs-utils.spec: Update version to 1.0.6
356 2003-09-12 Chip Salzenberg <chip@pobox.com>
358 * debian/changelog: Version 1.0.6-1.
360 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
362 * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
364 * utils/statd/statd.c(main): Ditto.
366 michael <michael@newdream.net> discovered that svc_setreqsize
367 in glibc can segfault if RLIMIT_NOFILE is bigger than
368 FD_SETSIZE, so a simple solution is to impose a hard limit.
370 2003-09-09 Chip Salzenberg <chip@pobox.com>
372 * debian/changelog: Version 1.0.5-3.
373 * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
374 on invalid reverse DNS.
375 * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
376 * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
377 * tools/rpcgen/rpc_parse.c (def_union): Likewise.
379 2003-08-22 Chip Salzenberg <chip@pobox.com>
381 * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
382 N_*, to avoid conflict with ISO C built-in log() function.
383 * utils/statd/*.c: Use note().
385 2003-08-20 Chip Salzenberg <chip@pobox.com>
387 * debian/changelog: Version 1.0.5-2.
389 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
391 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
394 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
396 * support/include/nfs/export.h, support/nfs/exports.c,
397 utils/exportfs/exports.c, utils/mountd/mountd.c: change
398 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
399 meaning. Also remove meaningless
400 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
402 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
404 * support/export/xtab.c, support/include/nfslib.h,
405 support/nfs/cacheio.c, support/nfs/nfssvc.c,
406 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
407 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
408 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
409 (nfs-utils-1.0.5-post2)
411 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
413 * support/nfs/nfsexport.c: open channel file O_WRONLY when
415 * utils/mountd/cache.c: maintain mountlist when new_cache is
416 active. Also use O_WRONLY for channel files.
417 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
418 rather than an nfs_export.
419 * utils/mountd/rmtab.c: ditto.
420 (nfs-utils-1.5.0-post1)
422 2003-07-24 Chip Salzenberg <chip@pobox.com>
424 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
425 use Debian security team's cleaner approach.
426 * debian/changelog: Version 1.0.5-1.
427 * debian/nfs-kernel-server.init: Cosmetic changes.
429 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
432 1.0.4 was a bit of a brown-paper-bag-release because of the extra
433 'free' in auth.c. So I'm releasing this just a few days later.
435 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
437 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
438 check if new_cache is enabled, error if not, flush and exit if it
440 * utils/exportfs/exportfs.man: Explain -f option and explain the
441 two different modes that exportfs can work in.
442 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
444 * utils/mountd/mountd.man: Record the change if default behaviour
446 * configure.in, nfs-utils.spec: update version to 1.0.5 and
449 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
451 * utils/mountd/mountd.c(main): getopt string fix for 'o'
452 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
453 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
455 * support/include/nfs/export.h: Reserve a bit for possible ACL
458 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
460 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
461 assorted changed to cope with section 7 of the manual.
462 * configure.in, nfs-utils.spec: Update version to 1.0.4
465 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
466 baseline for 2.6 and 2.8. I.e. it should continue to work right
467 through the 2.8 (or 3.0) kernel series. Previous releases wont.
469 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
470 Steve Dickson <SteveD@redhat.com>
473 * utils/statd/statd.c: create a pidfile with pid of statd, and
474 truncate it when statd exists.
475 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
476 and warn if this is root.
477 * utils/statd/statd.c: when statd forks, connect child to parent
478 with a pipe, and send a byte down the pipe once the child is
480 * Makefile: create and chown sm, sm.bak, state when "make install"
481 * configure.in: add --with-statduser= option which defaults to
482 "rpcuser" or "nobody"
483 * config.mk.in: pass "statduser" through to Makefile
485 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
487 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
488 used as the size was changed somewhere in 2.5.60-2.5.70. Without
489 this nfs-utils compiles against 2.6 headers will not work on a
492 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
494 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
495 set number of threads by writing to there. This means it will
496 still work when the syscall interface goes away in 2.7.
498 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
499 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
501 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
502 so as to only export the wildcard exports that were asked for.
503 * support/export/export.c(export_allowed): changed to return the
504 nfs_export rather than a "struct exportent", as m_changed is
506 * support/export/rmtab.c(rmtab_read): modified to deal with
507 interface change for export_allowed(), and enhanced to preserve
508 m_changed flag when a wild-card export causes the creation of
509 a non-wildcard export.
511 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
512 Steve Dickson <SteveD@redhat.com>
514 * utils/mountd/mountd.man: Add valid kinds of debugging.
515 * utils/mountd/mountd.c(main): ignore SIGPIPE
516 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
517 we don't get warnings about unavailable stats that weren't asked
520 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
522 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
523 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
524 'forever', so things disappear out of the cache rather than just
527 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
529 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
532 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
534 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
535 etc/redhat/nfs.init: when checking if V3 is supported, make sure
536 nfs server 'knows' about 127.0.0.1 first.
538 2003-06-10 Chip Salzenberg <chip@pobox.com>
540 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
541 * debian/changelog: Version 1.0.3-2.
543 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
544 NeilBrown <neilb@cse.unsw.edu.au>
546 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
547 long long to avoid overflow when printing stats.
549 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
551 * support/export/export.c, support/include/nfslib.h,
552 support/nfs/export.c, utils/exportfs/exportfs.c,
553 utils/mountd/mountd.c: new export option "mountpoint"
554 If no path is given, then the export point must be a
555 mount point, or it won't be exported. If a path is
556 given (e.g. mountpoint=/path) then that path must be
557 a mountpoint or the exportpoint won't be exported.
558 * utils/exportfs/exportfs.man: document mountpoint option.
559 * support/misc/mountpoint.c: New file with is_mountpoint()
560 to determine if something is a mountpoint.
562 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
564 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
565 argument as we might not be getting the filehandle for the
567 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
568 cache_get_filehandle.
569 * utils/mountd/mountd.c(get_rootfh): check export point and
570 requested directory are on the same filesystem, and complain if
573 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
575 * utils/mountd/auth.c(auth_authenticate_internal): make sure
576 portnumber is still checked when using new cache lookup.
578 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
580 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
581 Don't actually talk to kernel when new cache is in effect, except
583 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
584 * support/export/xtab.c: Only rename new xtab into place if it has
585 changed, thus preserving modify date for exportfs to use when
587 * support/nfs/cacheio.c: Add cache_flush
588 * support/export/xtab.c: Only rename new xtab into place if it has
589 changed, thus preserving modify date for exportfs to use when
592 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
594 * support/export/client.c: Add client_compose, client_member to
595 handle new composite client names
596 * support/include/exportfs.h: Declare above functions.
597 * utils/mountd/auth.c: use client_compose to determine calling
598 client if new cache is being used.
599 * utils/mountd/auth.c: call cache_export to export a filesystem if
600 new_cache, check if new cache is used, and call my_svc_run instead
602 * utils/mountd/svc_run.c: new file defining my_svc_run
603 * utils/mountd/cache.c: new file for handling cache upcalls.
604 * support/nfs/cacheio.c(check_new_cache): new function to check if
605 new cache should be used.
608 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
610 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
611 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
612 * utils/exportfs/exportfs.c(dump): ditto
614 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
616 * support/export/hostname.c(get_reliable_hostbyaddr): new function
617 to get host name from address with full checking of authenticity.
618 * support/include/misc.h: declare above function
619 * utils/mountd/auth.c(auth_authenticate_internal): remove all
620 logic for authenticating address.
621 * utils/mountd/auth.c(auth_authenticate): call new
622 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
625 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
627 * tools/rpcgen/rpc_main.c(find_cpp): removed
628 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
629 then try hard-coded paths.
631 2003-03-26 Chip Salzenberg <chip@pobox.com>
633 * debian/changelog: Version 1.0.3-1.
635 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
637 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
638 "const char*", not "char*".
640 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
642 * configure.in (VERSION): Set to "1.0.3".
643 * nfs-utils.spec: Likewise.
644 * configure: Regenerated.
646 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
648 * support/nfs/cacheio.c: New File - support for read/writing
649 to export cache in /proc/rpc/*/channel
650 * support/nfs/Makefile: compile cacheio.c
651 * support/include/nfslib.h: declare cacheio.c functions
652 * support/nfs/nfsexport.c: export and unexport through
653 /proc/rpc/*/channel if possible, as old syscall interface
654 may not survive into 2.6 on all architectures.
656 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
657 Ben Leslie <benno@sesgroup.net>
659 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
660 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
661 former would incorectly ignore defport if the application
662 explicitly set __rpcfdtype. The later is sufficient to avoid the
663 special handling in the case where stdin is an internet socket.
665 * utils/mountd/mountd.c(main): Add 'n' to option list in
666 getopt_long as this is a short form of --no-tcp which want being
669 2003-02-12 Chip Salzenberg <chip@pobox.com>
671 * debian/changelog: Version 1.0.2-2.
673 2002-11-27 Chip Salzenberg <chip@pobox.com>
675 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
676 overflow bug. Reformat per rest of source file.
678 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
680 * utils/exportfs/exports.man: Correct notes about whether the wild
681 card characters match a period. They do.
683 2002-10-15 Juan Gomez <juang@us.ibm.com>
685 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
687 (mountlist_add): Call slink_safe_rename instead of rename.
689 2002-10-11 H.J. Lu <hjl@lucon.org>
691 * support/include/exportfs.h (export_errno): New.
693 * support/nfs/exports.c: Include <errno.h>.
695 (getexportent): Set export_errno to EINVAL for bad option.
696 (parseopts): Likewise.
697 Report the location of the default sync/async option.
699 * utils/exportfs/exportfs.c (main): Initialize export_errno to
700 0. Return export_errno.
702 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
703 NeilBrown <neilb@cse.unsw.edu.au>
705 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
706 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
708 2002-09-16 Chip Salzenberg <chip@pobox.com>
710 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
712 2002-09-15 Chip Salzenberg <chip@pobox.com>
714 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
715 socket, as occurs when run from sshd.
716 * debian/changelog: Version 1.0.2-1.
718 2002-09-12 H.J. Lu <hjl@lucon.org>
720 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
723 2002-09-12 H.J. Lu <hjl@lucon.org>
725 * configure.in: Remove checking svctcp_socket and svcudp_socket.
726 * configure: Regenerated.
728 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
729 (HAVE_SVCUDP_SOCKET): Removed.
731 * support/include/nfslib.h: Undo the last change.
733 2002-09-12 H.J. Lu <hjl@lucon.org>
735 * support/include/nfslib.h (svctcp_socket): Protect it with
737 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
739 2002-09-12 H.J. Lu <hjl@lucon.org>
741 * configure.in (VERSION): Set to "1.0.2".
742 * configure: Regenerated.
743 * nfs-utils.spec: Likewise.
745 2002-09-12 H.J. Lu <hjl@lucon.org>
747 * configure.in: Check svctcp_socket and svcudp_socket.
748 * configure: Regenerated.
750 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
751 (HAVE_SVCUDP_SOCKET): New.
753 * support/include/nfslib.h (svctcp_socket): New.
754 (svcudp_socket): New.
756 * support/nfs/Makefile (OBJS): Add svc_socket.o.
758 * support/nfs/svc_socket.c: New.
760 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
761 svcudp_socket if port is unspecified.
763 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
765 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
766 (killer): New. Signal handler to unregister.
767 (main): Use killer. Call svcudp_socket to get the default
770 2002-09-02 Juan Gomez <juang@us.ibm.com>
771 NeilBrown <neilb@cse.unsw.edu.au>
773 Add -N option to statd to run in notify-only mode.
775 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
776 * utils/statd/statd.man: document -N
777 * utils/statd/statd.c: enabled -N, largely exists but needed to be
778 uncommented and completed
780 2002-09-02 Juan Gomez <juang@us.ibm.com>
781 NeilBrown <neilb@cse.unsw.edu.au>
783 statd to have " -P directory" arg to use that directory instead
784 of /var/lib/nfs. This is useful for fail-over clusters.
786 * utils/statd/statd.h: define SM_DIR etc as var, not const.
787 * utils/statd/statd.c: define "-P" option to set SM_*
789 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
791 * utils/statd/notify.c: ditto.
792 * utils/statd/statd.man: document -P option.
794 2002-08-26 Chip Salzenberg <chip@pobox.com>
796 * utils/nfsd/nfsd.man: Fix typo.
797 * debian/changelog: Version 1.0.1-1.
799 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
801 * let parseopts know if /etc/exports was being read or not,
802 and have it only print "no sync or async" warning in that case.
804 2002-05-06 Tom McNeal <trmcneal@attbi.com>
805 NeilBrown <neilb@cse.unsw.edu.au>
807 * utils/nfsstat/nfsstat.c: Handle differing format for
808 /proc/net/rpc/nfsd between pre and post 2.4.0
810 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
811 James Pearson <james-p@moving-picture.com>
813 * support/nfs/rmtab.c(fendrmtabent): sync changes to
814 storage before returning, as this is critical state
816 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
817 H.J. Lu <hjl@lucon.org>
819 * etc/redhat/nfs: New.
821 2002-04-08 H.J. Lu <hjl@lucon.org>
823 * etc/redhat/nfs.init: Updated.
825 * nfs-utils.spec.in: Updated.
826 * nfs-utils.spec: Regenerated.
828 * utils/mountd/mountd.c (longopts): Fix a typo.
830 * utils/mountd/mountd.man: Updated.
832 2002-04-07 H.J. Lu <hjl@lucon.org>
834 * etc/redhat/nfslock.init (restart): Just do stop and start.
836 * etc/redhat/nfs.init: Fix a typo.
838 2002-04-07 H.J. Lu <hjl@lucon.org>
840 * configure.in (VERSION): Set to "1.0.1".
841 * configure: Regenerated.
842 * nfs-utils.spec: Likewise.
844 * README: Updated for 1.0.1.
846 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
847 H.J. Lu <hjl@lucon.org>
849 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
851 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
852 NeilBrown <neilb@cse.unsw.edu.au>
854 Add support for fsid=nn export option so that device
855 numbers don't go in filehandles.
856 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
857 is set, pass the fsid in-place of the device number
858 * support/nfs/exports.c: parse and print fsid= option.
859 Also check if efname has been set, and use "command line"
860 instead in error messages.
861 Also, use strtol instead of atoi for anon[ug]id= so that
862 bad numbers cause errors.
864 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
865 NeilBrown <neilb@cse.unsw.edu.au>
867 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
868 flag so that "sync" becomes the default.
869 Check that either "sync" or "async" is given as an option
870 and warn if neither are present
871 * utils/exportfs/exports.man: change documentation for "sync"
872 to be documentation for "async".
873 * utils/exportfs/exportfs.man: note that "sync" is the default
877 2002-01-02 Chip Salzenberg <chip@pobox.com>
879 * support/export/nfsctl.c (expsetup): Don't export entries that
880 specify id mappings not supported by the kernel. No extant kernel
881 supports any significant mapping, only 'identity' (i.e. none).
882 When other mappings are supported, this code will need changing.
883 * debian/changelog: Version 1.0-2.
885 2001-12-26 Chip Salzenberg <chip@pobox.com>
887 * nfs-utils.spec (Version): Set to "1.0".
888 * configure.in (VERSION): Likewise.
889 * configure: Regenerated.
891 * debian/changelog: Version 1.0-1.
893 * utils/exportfs/exports.man: Emphasize the need for options to
894 immediately follow client names. Explain that wildcards don't
895 usually work on addresses, but may work when reverse DNS fails.
896 Comment out a leftover TP that was TPing our indentation.
897 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
898 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
899 * debian/changelog: Version 0.3.3-6.
901 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
903 * support/export/client.c(client_lookup): If a host has multiple
904 IP addresses, then we must always use the result of a
905 gethostbyname, not that of gethostbyaddr for exporting
907 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
909 * support/export/client.c (client_lookup): use strcasecmp when
911 * support/nfs/export.c (getexportent): add fromkernel arg and use
912 different defaults as kernels prior to 2.4.11 assume different
913 defaults in /proc/fs/nfs/exports
914 * support/include/nfslib.h, support/export/export.c,
915 support/export/xtab.c: support extra "fromkernel" arg for
918 2001-12-13 Chip Salzenberg <chip@pobox.com>
920 * debian/changelog: Version 0.3.3-5.
922 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
924 * support/nfs/xio.c (xskip): Call `xungetc' instead of
925 `ungetc' to keep x_line more properly.
927 2001-11-26 Chip Salzenberg <chip@pobox.com>
929 * utils/showmount/showmount.c (main): Don't assume that strings
930 starting with digits are IP addresses.
931 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
932 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
933 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
934 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
935 man pages: We check host names *and* addresses with tcpwrappers.
936 * debian/changelog: Version 0.3.3-4.
938 2001-11-21 Chip Salzenberg <chip@pobox.com>
940 * support/nfs/clients.c (cfname): Added: current clients file name.
941 (setnfsclntent): Set it.
942 ({get,end}nfsclntent, syntaxerr): Use it.
943 * support/nfs/exports.c (efname): Added: current exports file name.
944 (setnfsexportent): Set it.
945 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
946 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
947 * debian/changelog: Version 0.3.3-3.
949 2001-10-11 Chip Salzenberg <chip@pobox.com>
951 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
952 * debian/changelog: Version 0.3.3-2.
954 2001-10-08 Chip Salzenberg <chip@pobox.com>
956 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
957 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
958 * utils/mountd/mountd.man: Update paths to /var/lib.
959 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
961 2001-10-06 Preston Brown <pbrown@redhat.com>
963 * utils/nfsstat/nfsstat.man: Updated.
965 2001-09-24 H.J. Lu <hjl@lucon.org>
967 * configure.in (VERSION): Set to "0.3.3".
968 * configure: Regenerated.
969 * nfs-utils.spec: Likewise.
971 * README: Updated for 0.3.3.
973 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
975 Arrange that "exportfs -au" never does DNS lookup:
977 * support/export/client.c (client_lookup) : add "canonical"
978 flag which says that the hostname is known to be canonical, so
981 * support/export/export.c (export_create) : add "canonical"
982 flag to be passed down to client_lookup
983 * support/export/export.c (export_lookup) : Likewise
985 * support/export/xtab.c (xtab_read) : pass appropriate
986 "canonical" flag to export_lookup and export_create:
987 set if reading list of filesystems currently exports
990 * support/export/export.c (export_read) : pass 0 as
991 "canonical" flag to export_lookup and export_create
992 * support/export/rmtab.s (rmtab_read) : Likewise
994 * support/include/exportfs.h : redeclare various routines
995 to have "canonical" flag
997 * utils/exportfs/exportfs.c (main) : redo logic for
998 "-au" to read in what is currently exported, but never even
999 look at what "should" be exported.
1001 * utils/exportfs/exportfs.c (unexportall) : remove this
1002 routine. Functionality is completely included in
1005 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
1006 flag to zero in calls to export_lookup and export_create.
1009 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
1010 Anne Milicia <milicia@missioncriticallinux.com>
1012 * support/export/client.c (client_lookup) call gethostbyadd
1013 to make sure that we have a canonical hostname, even for
1015 * utils/exportfs/exportfs.c (exportfs) Likewise
1017 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1019 * support/nfs/exports.c (putexportent): \octal quote any spaces
1021 * support/nfs/xio.c (xgettok): recognise double-quote and
1022 \octal quoting in path names
1023 * utils/exportfs/exports.man: document quoting conventions
1026 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1028 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
1029 change from 2000-08-02: It causes problems if someone exports
1030 to both a hostname and IP addresses. nfs-utils must be
1031 consistant about the canonical name that it chooses.
1033 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
1034 H.J. Lu <hjl@lucon.org>
1036 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
1038 * utils/statd/statd.c (longopts): Add "name".
1039 (usage): Add "-n/--name".
1040 (main): Set MY_NAME with "-n/--name".
1042 * utils/statd/state.c (change_state): Set MY_NAME only if it
1045 * utils/statd/statd.man: Updated for "-n/--name".
1047 2001-07-26 H.J. Lu <hjl@lucon.org>
1049 * nfs-utils.spec (Release): Set to 8.
1051 2001-07-25 H.J. Lu <hjl@lucon.org>
1053 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
1056 2001-06-27 H.J. Lu <hjl@lucon.org>
1058 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
1060 2001-06-27 H.J. Lu <hjl@lucon.org>
1062 * utils/rquotad/rquota_server.c: Don't call statfs () for
1063 the block size. Use BLOCK_SIZE instead.
1065 2001-06-27 H.J. Lu <hjl@lucon.org>
1067 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
1068 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
1070 * configure.in (enable_nfsv3): Set to yes by default.
1071 (--enable-rquotad): Added
1072 (AC_PROG_CXX): Removed.
1073 (AC_OUTPUT): Add utils/Makefile.
1074 (CC_FOR_BUILD): Renamed from BUILD_CC.
1075 * configure: Regenerated.
1077 * utils/Makefile: Removed.
1079 * utils/Makefile.in: New.
1081 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
1083 (CC_FOR_BUILD): Renamed from BUILD_CC.
1084 * nfs-utils.spec: Regenerated.
1086 2001-06-15 Chip Salzenberg <chip@debian.org>
1088 * debian/changelog: Version 0.3.2-2.
1089 * debian/*.init: Minor fixes.
1091 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
1093 * etc/nodist/nfs-server: Fixed a bug where the script would
1094 disable mounts from NFSv3 clients if NFSv3 is present.
1096 2001-06-05 H.J. Lu <hjl@lucon.org>
1098 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
1099 (main): Support --descriptors/-o to set the limit of the number
1100 of open file descriptors.
1103 * utils/mountd/mountd.man: Updated for --descriptors/-o.
1105 2001-06-04 H.J. Lu <hjl@lucon.org>
1107 * nfs-utils.spec (Release): Set to 6.
1109 2001-05-28 H.J. Lu <hjl@lucon.org>
1111 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
1112 * utils/mountd/mountd.c (main): Likewise.
1113 * utils/nfsd/nfsd.c (main): Likewise.
1114 * utils/rquotad/rquota_svc.c (main): Likewise.
1116 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
1118 * support/export/client.c (client_check): Check IP address
1121 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
1123 * support/export/client.c (client_gettype): Treat `*' as
1126 2001-04-22 H.J. Lu <hjl@lucon.org>
1128 * nfs-utils.spec.in: Fix a typo.
1129 * nfs-utils.spec: Regenerated.
1131 2001-04-21 H.J. Lu <hjl@lucon.org>
1133 * nfs-utils.spec.in: Fix cross build.
1134 * nfs-utils.spec: Regenerated.
1135 (Release): Set to 5.
1137 2001-04-18 H.J. Lu <hjl@lucon.org>
1139 * nfs-utils.spec.in: Support cross build.
1140 * nfs-utils.spec: Regenerated.
1141 (Release): Set to 4.
1144 * config.guess: New.
1146 * config.mk.in (BUILD_CC): New.
1147 (CC): Set to $(BUILD_CC) if BUILD is defined.
1150 (RANLIB): Set to @RANLIB@.
1152 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
1153 * configure: Regenerated.
1155 * tools/rpcgen/Makefile (BUILD): Set to true.
1157 2001-04-01 Chip Salzenberg <chip@valinux.com>
1159 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
1160 redundant, and sometimes broken, declaration of svc_fdset;
1162 * support/nfs/rpcmisc.c (closedown): Likewise.
1164 2001-03-21 H.J. Lu <hjl@lucon.org>
1166 * nfs-utils.spec: Regenerated.
1167 (Release): Set to 3.
1169 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
1171 * utils/statd/statd.c (main): make sure file descriptors 0-2
1172 are open to /dev/null.
1174 2001-03-21 H.J. Lu <hjl@lucon.org>
1176 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
1177 * support/nfs/rpcmisc.c: Likewise.
1178 * utils/rquotad/rquota_svc.c: Likewise.
1179 * utils/rquotad/rquotad.man: Likewise.
1180 * utils/statd/Makefile: Likewise.
1181 * utils/statd/rmtcall.c: Likewise.
1182 * utils/statd/simulate.c: Likewise.
1183 * utils/statd/statd.c: Likewise.
1184 * utils/statd/statd.man: Likewise.
1186 2001-03-11 H.J. Lu <hjl@lucon.org>
1188 * configure.in (RELEASE): New. Default to 1, set by
1189 --with-release=XXX. Substitute nfs-utils.spec.
1190 * nfs-utils.spec.in (Release): Set to @RELEASE@.
1191 * configure: Regenerated.
1192 * nfs-utils.spec: Likewise.
1194 2001-03-11 H.J. Lu <hjl@lucon.org>
1196 * utils/rquotad/rquotad.man: Fix a typo.
1198 2001-03-11 H.J. Lu <hjl@lucon.org>
1200 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
1201 * support/nfs/rpcmisc.c: Likewise.
1202 * utils/rquotad/rquota_svc.c: Likewise.
1203 * utils/rquotad/rquotad.man: Likewise.
1204 * utils/statd/Makefile: Likewise.
1205 * utils/statd/rmtcall.c: Likewise.
1206 * utils/statd/simulate.c: Likewise.
1207 * utils/statd/statd.c: Likewise.
1208 * utils/statd/statd.man: Likewise.
1210 2001-03-10 H.J. Lu <hjl@lucon.org>
1212 * configure.in (VERSION): Set to "0.3.2".
1213 * configure: Regenerated.
1214 * nfs-utils.spec: Likewise.
1216 * README: Updated for 0.3.2.
1218 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
1220 * utils/rquotad/rquotad.man: Updated for -p.
1221 * utils/statd/statd.man: Likewise.
1223 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
1225 * support/nfs/rpcmisc.c: export makesock()
1227 * support/include/rpcmisc.h (makesock): Declared.
1229 * utils/rquotad/rquota_svc.c: added longopts, added support for
1230 specifying the port to bind to on the command line.
1232 * utils/statd/statd.c: ditto, also specify port used for
1233 outgoing connections.
1234 (do_regist): Removed.
1236 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
1237 get_socket. Make it extern.
1239 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
1240 instead of do_regist.
1242 * utils/statd/Makefile (LIBS): link with our own libnfs
1244 2001-03-09 H.J. Lu <hjl@lucon.org>
1246 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
1247 * etc/nodist/nfs-client: Likewise.
1249 2001-02-26 Chip Salzenberg <chip@valinux.com>
1251 * debian/changelog: Version 0.3.1-1.
1252 * Mention upstream source and license in copyright file.
1253 * Add build-Depends for debhelper and libwrap0-dev.
1255 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
1257 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
1258 * etc/nodist/nfs-client: Likewise.
1260 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
1262 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
1265 2001-02-17 Patrick J. LoPresti <patl@curl.com>
1267 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
1270 2001-02-14 H.J. Lu <hjl@lucon.org>
1272 * utils/statd/rmtcall.c: Include <time.h>.
1273 * utils/statd/svc_run.c: Likewise.
1275 2001-02-14 H.J. Lu <hjl@lucon.org>
1277 * configure.in (VERSION): Set to "0.3.1".
1278 * configure: Regenerated.
1279 * nfs-utils.spec: Likewise.
1281 * README: Updated for 0.3.1.
1283 2001-02-14 H.J. Lu <hjl@lucon.org>
1285 * support/nfs/rpcmisc.c: Include <time.h>.
1287 2001-02-14 Chip Salzenberg <chip@valinux.com>
1289 * debian/control: Change priority of nhfsstone package to 'extra'.
1291 2001-02-12 Chip Salzenberg <chip@valinux.com>
1293 * debian/changelog: Version 0.3-2.
1295 2001-02-02 H.J. Lu <hjl@lucon.org>
1297 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
1299 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
1300 out SO_SNDBUF/SO_RCVBUF.
1301 (rpc_init): Remove bufsize and remove socksz in calls to
1304 * utils/mountd/mountd.c (main): Remove bufsize in calls to
1307 2001-01-28 Chip Salzenberg <chip@valinux.com>
1309 * debian/changelog: Version 0.3-1.
1311 2001-01-25 H.J. Lu <hjl@lucon.org>
1313 * configure.in (VERSION): Set to "0.3".
1314 * configure: Regenerated.
1315 * nfs-utils.spec: Likewise.
1317 * README: Updated for 0.3.
1319 2001-01-25 H.J. Lu <hjl@lucon.org>
1321 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
1323 2001-01-20 Chip Salzenberg <chip@valinux.com>
1325 * support/include/xio.h (xgetc): Declare to return int.
1326 * support/nfs/xio.c (xgetc): Return int.
1327 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
1328 * utils/statd/statd.c (main): Use int for value of getopt.
1329 * debian/changelog: Version 0.2.1-5.
1331 2000-12-10 Chip Salzenberg <chip@valinux.com>
1333 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
1334 program and procedure numbers of kernel lockd's callback. Also,
1335 besides the old (and broken) procedure #24, allow #16 per Trond.
1337 2000-12-03 Chip Salzenberg <chip@valinux.com>
1339 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
1340 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
1341 * debian/changelog: Version 0.2.1-4.
1343 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
1345 * utils/mountd/auth.c (auth_authenticate): Log the bad path
1348 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
1350 * support/nfs/exports.c (getexportent): Check for host name
1351 without option, or options without hostname, and print a warning,
1352 as this is most likely a typo.
1354 2000-11-19 Chip Salzenberg <chip@valinux.com>
1356 * debian/control: Add dependency on portmap.
1357 * debian/changelog: Version 0.2.1-3.
1359 2000-11-10 H.J. Lu <hjl@lucon.org>
1361 * nfs-utils.spec.in: Don't use libtool.
1362 Add ChangeLog and COPYING to doc.
1363 * nfs-utils.spec: Rebuild.
1365 2000-11-09 H.J. Lu <hjl@lucon.org>
1367 * etc/redhat/nfs.init (start): Back out the last change.
1369 2000-11-09 H.J. Lu <hjl@lucon.org>
1371 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
1372 TCP is not supported by kernel.
1374 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
1376 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
1377 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
1379 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
1381 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
1383 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
1384 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
1385 callbacks to local lockd.
1387 2000-10-18 Scott McDermott <mcdermot@questra.com>
1389 * utils/exportfs/exports.man: Updated for CIDR netmask.
1391 2000-10-17 Scott McDermott <mcdermot@questra.com>
1393 * support/export/client.c (client_init): Support CIDR netmask
1396 2000-10-11 H.J. Lu <hjl@lucon.org>
1398 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1399 * configure: Rebuilt.
1401 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
1403 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1404 "/var/lib/nfs/state".
1406 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
1408 * utils/statd/statd.h (run_mode): New global bitmask of runtime
1409 behaviors: fg/bg, logging, etc.
1410 * utils/statd/statd.c: New command line options: -V -h -? -d .
1411 * utils/statd/statd.man: Update for changes to statd.
1413 * utils/statd/log.h (log_init): Remove parameter of function; use
1414 global variable "name_p" instead.
1415 * utils/statd/log.c: Add support for logging to stderr.
1417 * utils/statd/notlist.c: Partially rewrite notify list handling
1418 functions. Eliminate run-off-end-of-list bug when calling
1419 nlist_insert_timer. Add lots of comments.
1421 2000-09-27 H.J. Lu <hjl@lucon.org>
1423 * README: Updated for RedHat 7.0.
1425 2000-09-27 H.J. Lu <hjl@lucon.org>
1427 * nfs-utils.spec: Rebuild.
1429 2000-09-27 H.J. Lu <hjl@lucon.org>
1431 * README: Updated for 0.2.1.
1433 2000-09-27 H.J. Lu <hjl@lucon.org>
1435 * nfs-utils.spec.in: Updated to use rpm macros and support
1438 2000-09-25 H.J. Lu <hjl@lucon.org>
1440 * configure.in (VERSION): Set to "0.2.1".
1441 * configure: Regenerated.
1442 * nfs-utils.spec: Updated.
1444 2000-09-25 H.J. Lu <hjl@lucon.org>
1446 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1447 non-NULL hostent is always returned.
1449 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1451 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1452 have an executable (i.e. kernel threads)
1454 2000-09-01 H.J. Lu <hjl@lucon.org>
1456 * README: Updated for 0.2.
1458 2000-09-01 Jay Weber <jweber@valinux.com>
1460 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1461 supporting version 3 of nfs if available, else it will fall back to
1462 version 2 support only.
1464 2000-08-30 H.J. Lu <hjl@lucon.org>
1466 * configure.in (VERSION): Set to "0.2".
1467 * configure: Regenerated.
1468 * nfs-utils.spec: Updated.
1470 2000-08-25 H.J. Lu <hjl@lucon.org>
1472 * support/misc/tcpwrapper.c (logit): Modify the log output.
1474 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1476 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1477 utils/mountd/mountd.man: updated
1479 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1480 * utils/rquotad/Makefile: fix comment
1482 * support/misc/tcpwrapper.c (logit): added comment about waiting
1483 for the children after fork()
1485 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1486 zombies behind (from logit()'s fork)
1487 * utils/rquotad/rquota_svc.c (main): ditto
1488 * utils/statd/statd.c (main): ditto
1490 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1491 to check_default instead of 0, for prognum
1493 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1494 to check_default instead of 0, for prognum
1496 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1497 HAVE_TCP_WRAPPER is defined.
1498 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1499 defined. Reject an RPC call if check_default () fails.
1501 2000-08-25 H.J. Lu <hjl@lucon.org>
1503 * support/include/tcpwrapper.h: New for the tcp wrapper
1505 * support/misc/Makefile: Likewise.
1506 * support/misc/from_local.c: Likewise.
1507 * support/misc/tcpwrapper.c: Likewise.
1509 * aclocal.m4 (AC_TCP_WRAPPER): New.
1510 * configure.in: Use it. Substitute LIBWRAP.
1511 * configure: Rebuilt.
1513 * config.mk.in (LIBNSL): New.
1514 (LIBWRAP): Likewise.
1516 * support/Makefile (SUBDIRS): Add misc.
1518 * support/lib/Makefile (LIBS): Add libmisc.a.
1520 * utils/rquotad/Makefile (LIBS): Add
1522 -lmisc $(LIBWRAP) $(LIBNSL)
1524 * utils/statd/Makefile (LIBS): Likewise.
1526 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1527 HAVE_TCP_WRAPPER is defined.
1528 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1529 defined. Reject an RPC call if check_default () fails.
1531 * utils/statd/statd.c: Include "tcpwrapper.h" if
1532 HAVE_TCP_WRAPPER is defined.
1533 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1534 check_default () before calling sm_prog_1 (). Define it as
1535 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1537 2000-08-25 Chip Salzenberg <chip@valinux.com>
1539 * debian/*: Complete Debian build support.
1540 * etc/debian/*: Remove.
1542 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1544 * support/export/client.c(client_check): removed the "dot+1" as a
1545 ypdomain argument to innetgr as this is entirely bogus.
1546 It should always be NULL.
1548 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1550 * support/export/xtab.c(xtab_read): introduce new mode for
1551 reading xtab. i.e. a list of exports that might be known to the
1552 kernel, or might not. These are flagged as m_exported == -1
1553 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1554 value "2" for xtab, meaning don't trust this too much.
1555 * support/include/exportfs.h(struct mexport): changed m_exported
1556 from one bit to an int so that it can hold new value
1557 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1558 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1559 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1562 * support/nfs/xio.c(xflock): added O_CREAT when getting
1563 a write lock so that missing files aren't fatal.
1565 * etc/debian/nfs-common: new file from "potato"
1566 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1568 2000-08-09 H.J. Lu <hjl@lucon.org>
1570 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1571 startup to ensure all existing clients work fine.
1573 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1574 to xtab_read () for reading _PATH_XTAB.
1576 2000-08-02 H.J. Lu <hjl@lucon.org>
1578 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1579 avoid the reverse name lookup.
1581 2000-07-04 H.J. Lu <hjl@lucon.org>
1583 * utils/statd/log.c: Include <stdlib.h> for exit ().
1585 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1588 2000-07-04 H.J. Lu <hjl@lucon.org>
1590 * configure.in (VERSION): Set to "0.1.9.1".
1591 * configure: Regenerated.
1592 * nfs-utils.spec: Updated.
1596 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1598 * support/export/hostname.c (hostent_dup): Handle the NULL
1601 2000-07-03 H.J. Lu <hjl@lucon.org>
1603 * README: Update the util-linux requirement.
1605 2000-07-03 H.J. Lu <hjl@lucon.org>
1607 * configure.in (VERSION): Set to "0.1.9".
1608 * configure: Regenerated.
1609 * nfs-utils.spec: Updated.
1613 2000-07-03 H.J. Lu <hjl@lucon.org>
1615 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1616 stop to ensure all clients can still access the server
1617 before it is shutdown.
1619 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1621 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1622 calls with format string.
1624 2000-06-28 Chip Salzenberg <chip@valinux.com>
1626 * utils/statd/log.c (log): Call syslog with format string.
1628 2000-06-27 H.J. Lu <hjl@lucon.org>
1630 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1631 instead of OPEN_MAX.
1633 2000-06-27 H.J. Lu <hjl@lucon.org>
1637 2000-06-27 H.J. Lu <hjl@lucon.org>
1639 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1640 startup to ensure all existing clients are exported.
1642 * configure.in (VERSION): Set to "0.1.8.2".
1643 * configure: Regenerated.
1644 * nfs-utils.spec: Updated.
1646 2000-06-06 H.J. Lu <hjl@lucon.org>
1648 * configure.in (VERSION): Set to "0.1.8.1".
1649 * configure: Regenerated.
1650 * nfs-utils.spec: Updated.
1652 2000-06-06 H.J. Lu <hjl@lucon.org>
1654 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1655 to "struct sockaddr_in *" for glibc 2.2.
1656 (mount_umnt_1_svc): Likewise.
1657 (mount_umntall_1_svc): Likewise.
1658 (mount_export_1_svc): Likewise.
1659 (mount_exportall_1_svc): Likewise.
1660 (mount_pathconf_2_svc): Likewise.
1661 (get_rootfh): Likewise.
1663 2000-06-04 H.J. Lu <hjl@lucon.org>
1665 * etc/redhat/nfs.init: Fix a typo in comment.
1667 2000-05-31 H.J. Lu <hjl@lucon.org>
1669 * configure.in (VERSION): Set to "0.1.8".
1670 * configure: Regenerated.
1671 * nfs-utils.spec: Updated.
1675 2000-05-31 H.J. Lu <hjl@lucon.org>
1677 * configure.in (VERSION): Set to "0.1.7.5".
1678 * configure: Regenerated.
1679 * nfs-utils.spec: Updated.
1681 * support/include/nfslib.h (exportent): Add a new field,
1682 r_count, to count the number of mounts from a client.
1683 (getrmtabent): Take a new argument for position in file.
1684 (putrmtabent): Likewise.
1685 (fgetrmtabent): Likewise.
1686 (fputrmtabent): Likewise.
1687 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1688 for position in file.
1689 (fgetrmtabent): Likewise.
1690 (putrmtabent): Likewise.
1691 (fputrmtabent): Likewise.
1693 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1696 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1697 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1698 and fputrmtabent ().
1699 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1700 (mountlist_del): Likewise.
1701 (mountlist_del_all): Likewise.
1702 (mountlist_list): Likewise.
1704 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1705 for the existing entry and initialize "r_count" to 1.
1706 (mountlist_del): Decrement "r_count".
1708 2000-05-18 H.J. Lu <hjl@lucon.org>
1710 * configure.in (VERSION): Set to "0.1.7.4".
1711 * configure: Regenerated.
1712 * nfs-utils.spec: Updated.
1714 2000-05-18 H.J. Lu <hjl@lucon.org>
1716 * etc/redhat/nfs.init (restart): Just do stop and start.
1718 2000-05-09 Jay Weber <jweber@valinux.com>
1720 * utils/rquotad/hasquota.c: added support for ext3 recognition
1722 * utils/rquotad/mntent.h: Likewise.
1724 2000-05-01 H.J. Lu <hjl@lucon.org>
1726 * configure.in (VERSION): Set to "0.1.7.3".
1727 * configure: Regenerated.
1728 * nfs-utils.spec: Updated.
1730 2000-05-01 H.J. Lu <hjl@lucon.org>
1732 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1733 mounting poins in /etc/fstab.
1735 2000-05-01 H.J. Lu <hjl@lucon.org>
1737 * configure.in (VERSION): Set to "0.1.7.2".
1738 * configure: Regenerated.
1739 * nfs-utils.spec: Updated.
1741 2000-05-01 H.J. Lu <hjl@lucon.org>
1743 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1744 to check for the mounting point.
1746 2000-04-29 Chip Salzenberg <chip@valinux.com>
1747 Neil Brown <neilb@cse.unsw.edu.au>
1749 * Really re-use RPC ports.
1750 (Fixes earlier patch. Sorry, Neil.)
1752 2000-04-26 H.J. Lu <hjl@lucon.org>
1754 * configure.in (VERSION): Set to "0.1.7.1".
1755 * configure: Regenerated.
1756 * nfs-utils.spec: Updated.
1758 2000-04-26 H.J. Lu <hjl@lucon.org>
1760 * etc/redhat/nfslock.init: Check if lockd exits before killing
1763 2000-04-25 H.J. Lu <hjl@lucon.org>
1765 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1767 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1769 * support/nfs/exports.c (parsesquash): Correctly set the
1772 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1774 * support/include/nfs/nfs.h: Removed knowledge of internals of
1775 kernel filehandles (which can change) and defined nfs_fh_size
1776 which has variable size
1778 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1779 get variable sized file handles, and change getfh{,old} to
1782 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1785 * tools/Makefile, tools/nlmtest/nlmtest.c
1786 nlmtest.c depended on internel format of file handles, so now
1790 2000-03-12 Chip Salzenberg <chip@valinux.com>
1791 Neil Brown <neilb@cse.unsw.edu.au>
1793 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1795 2000-03-13 H.J. Lu <hjl@lucon.org>
1797 * etc/redhat/nfsd.init: Updated.
1799 * etc/redhat/nfslock.init: Updated.
1801 * nfs-utils.spec.in: Updated.
1803 * configure.in (VERSION): Set to "0.1.7".
1804 * configure: Regenerated.
1805 * nfs-utils.spec: Updated.
1809 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1811 * utils/exportfs/exportfs.c (dump): Included printing of
1812 nohide, no_subtree_check, and insecure_locks
1814 2000-02-26 Chip Salzenberg <chip@valinux.com>
1816 * config.mk.in (INSTALLSUID): Strip ("-s").
1817 (INSTALLSCRIPT): Define.
1818 * utils/nhfsstone/Makefile: Use it.
1820 2000-02-26 Chip Salzenberg <chip@valinux.com>
1822 * utils/lockd/lockd.man: Create.
1823 * utils/lockd/Makefile: Install it.
1824 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1825 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1826 * utils/nhfsstone/Makefile: Install the helper scripts and
1828 * utils/exportfs/exports.man: Fix typo.
1830 2000-02-26 Chip Salzenberg <chip@valinux.com>
1832 * support/nfs/xio.c (xungetc): Decrement line number when
1833 character to unget is newline. Make first parameter int, so
1834 it can distinguish EOF from \377.
1835 * support/include/xio.h (xungetc): Adjust prototype.
1837 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1839 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1840 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1841 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1843 This is for supporting a new option introduced in 2.3.42
1845 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1847 * COPYING: Added. GPL.
1849 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1851 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1852 to get the block size.
1854 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1856 * nfs-utils.spec.in: Update ftp site.
1858 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1860 * README: Update hostnames.
1862 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1864 * configure.in (VERSION): Set to "0.1.6".
1865 * configure: Regenerated.
1866 * nfs-utils.spec: Updated.
1870 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1872 * utils/mountd/auth.c (auth_authenticate_internal): Call
1873 xstrdup for hostname before passing it to gethostbyname.
1875 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1878 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1880 * README: Update the mailing list address.
1882 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1884 * configure.in (VERSION): Set to "0.1.5".
1885 * configure: Regenerated.
1886 * nfs-utils.spec: Updated.
1890 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1892 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1895 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1897 * configure.in (VERSION): Set to "0.1.4".
1898 * configure: Regenerated.
1899 * nfs-utils.spec: Updated.
1903 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1905 * nfs-utils.spec.in: New file.
1907 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1909 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1911 1999-12-04 Chip Salzenberg <chip@valinux.com>
1913 * config.mk.in: Use $(CC) as set by configure.
1915 1999-12-04 Chip Salzenberg <chip@valinux.com>
1917 * rules.mk: Call $(MAKE) with $(MFLAGS).
1919 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1921 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1922 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1924 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1926 * nfs-utils.spec (Version): Set to 0.1.3.
1928 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1929 * configure: Regenerated.
1933 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1935 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1936 (_PATH_DEV_DSK): Likewise.
1937 (getquotainfo): Match the mounting point from /etc/mtab
1938 instead of calling nfsmount_to_devname ().
1940 1999-11-24 Chip Salzenberg <chip@valinux.com>
1942 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1943 to the new port 24 as well as the historical port 100021.
1945 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1947 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1948 stopping nfsd to stop spurious ESTALE on server shutdown.
1950 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1952 * support/nfs/exports.c (parseopts): make copy of opt string
1953 before 'nul'ing out commas so that
1955 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1957 applies both options to both exports.
1959 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1961 * README: Fix a few typos.
1963 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1965 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1966 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1967 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1968 (unsigned_dec): Likewise.
1969 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1970 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1972 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1974 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1975 (unsigned_dec): Likewise.
1976 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1977 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1978 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1980 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1982 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1983 * support/nfs/exports.c: added {no_,}subtree_check and changed
1985 * utils/exportfs/exports.man: added no_subtree_check and nohide
1986 and removed irrelevant stuff from unfsd.
1987 * support/export/rmtab.c: rmtab_read didn't quite do the right
1988 thing if a pathname from rmtab was a subdirectory of an export-point
1990 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1992 * README: Updated ftp site.
1994 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1996 * nfs-utils.spec (Version): Set to 0.1.2.
1998 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1999 * configure: Regenerated.
2003 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
2005 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
2006 (auth_authenticate_internal): Check for NULL return on forward
2008 (auth_authenticate): Handle "no_forward_dns".
2010 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
2012 * Version 0.1.1 released.
2014 * nfs-utils.spec (Version): Set to 0.1.1.
2016 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
2017 * configure: Regenerated.
2021 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
2023 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
2025 (Provides): Likewise.
2027 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
2029 * Initial version 0.1 released.
2031 * configure.in (VERSION): Set to "nfs-utils 0.1".
2032 * configure: Regenerated.
2034 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
2036 * utils/mountd/mountd.c (get_exportlist): Cleanup.
2038 * utils/exportfs/exportfs.c (unexport_all): Unexport from
2039 kernel only if the entry is exported to kernel.
2040 (unexportfs): Likewise.
2042 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
2044 1/ utils/mountd/rmtab.c::mountlist_list
2046 This routine stats the rmtab file to see if it has changed. It
2047 if has, it cleans up it's old copy of the data. But it still
2048 always re-read the file, thus returning multiple copies of the
2049 data on consecutive calls without intervening changes.
2050 "Showmount -a" didn't show this as it appears to sort/unique the
2051 data, but 'strace showmount -a' showed that the size of the
2052 datagram that it received grew.
2054 I moved the getrmtabent loop inside the mtime test.
2056 2/ utils/exportfs/exportfs.c
2058 Many routines used the m_path field of m_export instead of
2060 According to the comment in nfslib.h, m_path should only
2061 be used when processing a mount request (i.e. in mountd)
2062 where the mountpoint may be a subdirectory of the export point.
2064 I changed all occurances of m_path to e_path
2067 3/ utils/exportfs/exportfs.c:main
2069 extra arguments are not meaningful with -a or -r, but
2070 exportfs accepted them and then ignored the -a/-r, expect that
2071 -r would still unexport everything first.
2073 I generate an error if there are extra args and f_all
2075 4/ utils/exportfs/exportfs.c:main
2076 extract dump out as a special case.
2078 5/ utils/exportfs/exportfs.c
2079 made f_reexport a local variable.
2082 6/ utils/exportfs/exportfs.c:main,exportall
2084 support/export/rmtab.c
2085 only mayexport on newly created entries, don't set xtabent at all
2087 7/ support/include/nfslib.h
2089 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
2091 8/ support/export/xtab.c
2093 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
2097 9/ support/export/xtab.c
2099 xtab_mount_read now sets m_exported, and NOT
2100 xtabent and mayexport
2102 removed the append arguement from xtab_write as it was
2105 added is_export flag to xtab_write similar to xtab_read
2106 if is_export, only write entries with m_xtabent or m_addxtab
2107 if !is_export, only write entries with m_exported
2109 10/ support/export/export.c::export_allowed_internal
2111 added test for exp->m_mayexport, as the export tree
2112 may have entries that are no longer allowed to be exported,
2113 and so shouldn't caused deduced exported by rmtab_read
2115 11/ utils/exportfs/exportfs.c::main
2116 error checking of flags.
2118 12/ utils/exportfs/exportfs.c
2120 total rewrite of export and unexport logic.
2122 - build an exportslist of valid exports, based on
2123 current etab file and arguments,
2124 - read rmtab to instantiate relevant wild card entries
2125 - read etab to find out what is currently exported
2126 - synchronise intention with reality
2127 - write out etab and xtab
2130 discard the m_addxtab flag
2131 add m_changed flag so we know what to report in exportfs
2133 14/ utils/mountd/auth.c:auth_authenticate
2135 the value returned by gethostbyaddr was trusted.
2137 It now follows this with a call to gethostbyname
2138 and checks that the address is in the list.
2140 15/ support/export/nfsctl.c::cltsetup,expsetup
2142 force client names to lowercase as kernel is
2145 16/ quietened a few compiler warnings
2147 17/ support/export/client:client_lookup
2149 look for pre-existing client with same name before creating
2152 18/ support/include/exportfs.h
2154 The ordering of the MCL_* enum was:
2155 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
2157 I moved ANONYMOUS to the end.
2159 The ordering is significant when an export entry is being searched for to
2160 match a given address. There are two problems with ANONYMOUS being first.
2162 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
2163 then the ro case will always be found first and the privileged hosts won't get
2165 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
2166 export entry for the specific host, and writes it to xtab.
2167 When another request comes from the same host, the ANONYMOUS entry is found again,
2168 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
2169 again. If causes bloat in xtab.
2171 Putting ANONYMOUS at the end reflects it's nature as a catch-all
2173 19/ utils/exportfs/exportfs.man
2174 many updates to the man page to reflect changes to the code
2176 -----------------------
2182 - allow exportfs to modify rmtab file
2183 - make sure kernel never gets two clients with same IP address
2184 - possible kernel should reject
2185 - needs to be some way to lookup client in kernel by IP address
2186 - maybe get kernel to do case-insensitive comparisons on client names
2187 - remove unused clients from kernel
2189 - change etab to xtab and xtab to xtab.active
2191 - timestamp and/or statd-stamp in rmtab for removing old entries.
2193 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
2195 * linux-nfs: New directory.
2196 * linux-nfs/ChangeLog: Moved from ..
2197 * linux-nfs/INSTALL: Likewise.
2198 * linux-nfs/KNOWNBUGS: Likewise.
2199 * linux-nfs/NEW: Likewise.
2200 * linux-nfs/README: Likewise.
2201 * linux-nfs/THANKS: Likewise.
2202 * linux-nfs/TODO: Likewise.
2204 * Starting from knfsd 1.4.7.