1 2003-08-22 Chip Salzenberg <chip@pobox.com>
3 * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
4 N_*, to avoid conflict with ISO C built-in log() function.
5 * utils/statd/*.c: Use note().
7 2003-08-20 Chip Salzenberg <chip@pobox.com>
9 * debian/changelog: Version 1.0.5-2.
11 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
13 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
16 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
18 * support/include/nfs/export.h, support/nfs/exports.c,
19 utils/exportfs/exports.c, utils/mountd/mountd.c: change
20 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
21 meaning. Also remove meaningless
22 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
24 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
26 * support/export/xtab.c, support/include/nfslib.h,
27 support/nfs/cacheio.c, support/nfs/nfssvc.c,
28 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
29 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
30 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
31 (nfs-utils-1.0.5-post2)
33 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
35 * support/nfs/nfsexport.c: open channel file O_WRONLY when
37 * utils/mountd/cache.c: maintain mountlist when new_cache is
38 active. Also use O_WRONLY for channel files.
39 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
40 rather than an nfs_export.
41 * utils/mountd/rmtab.c: ditto.
42 (nfs-utils-1.5.0-post1)
44 2003-07-24 Chip Salzenberg <chip@pobox.com>
46 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
47 use Debian security team's cleaner approach.
48 * debian/changelog: Version 1.0.5-1.
49 * debian/nfs-kernel-server.init: Cosmetic changes.
51 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
54 1.0.4 was a bit of a brown-paper-bag-release because of the extra
55 'free' in auth.c. So I'm releasing this just a few days later.
57 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
59 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
60 check if new_cache is enabled, error if not, flush and exit if it
62 * utils/exportfs/exportfs.man: Explain -f option and explain the
63 two different modes that exportfs can work in.
64 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
66 * utils/mountd/mountd.man: Record the change if default behaviour
68 * configure.in, nfs-utils.spec: update version to 1.0.5 and
71 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
73 * utils/mountd/mountd.c(main): getopt string fix for 'o'
74 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
75 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
77 * support/include/nfs/export.h: Reserve a bit for possible ACL
80 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
82 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
83 assorted changed to cope with section 7 of the manual.
84 * configure.in, nfs-utils.spec: Update version to 1.0.4
87 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
88 baseline for 2.6 and 2.8. I.e. it should continue to work right
89 through the 2.8 (or 3.0) kernel series. Previous releases wont.
91 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
92 Steve Dickson <SteveD@redhat.com>
95 * utils/statd/statd.c: create a pidfile with pid of statd, and
96 truncate it when statd exists.
97 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
98 and warn if this is root.
99 * utils/statd/statd.c: when statd forks, connect child to parent
100 with a pipe, and send a byte down the pipe once the child is
102 * Makefile: create and chown sm, sm.bak, state when "make install"
103 * configure.in: add --with-statduser= option which defaults to
104 "rpcuser" or "nobody"
105 * config.mk.in: pass "statduser" through to Makefile
107 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
109 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
110 used as the size was changed somewhere in 2.5.60-2.5.70. Without
111 this nfs-utils compiles against 2.6 headers will not work on a
114 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
116 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
117 set number of threads by writing to there. This means it will
118 still work when the syscall interface goes away in 2.7.
120 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
121 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
123 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
124 so as to only export the wildcard exports that were asked for.
125 * support/export/export.c(export_allowed): changed to return the
126 nfs_export rather than a "struct exportent", as m_changed is
128 * support/export/rmtab.c(rmtab_read): modified to deal with
129 interface change for export_allowed(), and enhanced to preserve
130 m_changed flag when a wild-card export causes the creation of
131 a non-wildcard export.
133 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
134 Steve Dickson <SteveD@redhat.com>
136 * utils/mountd/mountd.man: Add valid kinds of debugging.
137 * utils/mountd/mountd.c(main): ignore SIGPIPE
138 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
139 we don't get warnings about unavailable stats that weren't asked
142 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
144 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
145 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
146 'forever', so things disappear out of the cache rather than just
149 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
151 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
154 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
156 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
157 etc/redhat/nfs.init: when checking if V3 is supported, make sure
158 nfs server 'knows' about 127.0.0.1 first.
160 2003-06-10 Chip Salzenberg <chip@pobox.com>
162 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
163 * debian/changelog: Version 1.0.3-2.
165 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
166 NeilBrown <neilb@cse.unsw.edu.au>
168 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
169 long long to avoid overflow when printing stats.
171 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
173 * support/export/export.c, support/include/nfslib.h,
174 support/nfs/export.c, utils/exportfs/exportfs.c,
175 utils/mountd/mountd.c: new export option "mountpoint"
176 If no path is given, then the export point must be a
177 mount point, or it won't be exported. If a path is
178 given (e.g. mountpoint=/path) then that path must be
179 a mountpoint or the exportpoint won't be exported.
180 * utils/exportfs/exportfs.man: document mountpoint option.
181 * support/misc/mountpoint.c: New file with is_mountpoint()
182 to determine if something is a mountpoint.
184 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
186 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
187 argument as we might not be getting the filehandle for the
189 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
190 cache_get_filehandle.
191 * utils/mountd/mountd.c(get_rootfh): check export point and
192 requested directory are on the same filesystem, and complain if
195 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
197 * utils/mountd/auth.c(auth_authenticate_internal): make sure
198 portnumber is still checked when using new cache lookup.
200 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
202 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
203 Don't actually talk to kernel when new cache is in effect, except
205 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
206 * support/export/xtab.c: Only rename new xtab into place if it has
207 changed, thus preserving modify date for exportfs to use when
209 * support/nfs/cacheio.c: Add cache_flush
210 * support/export/xtab.c: Only rename new xtab into place if it has
211 changed, thus preserving modify date for exportfs to use when
214 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
216 * support/export/client.c: Add client_compose, client_member to
217 handle new composite client names
218 * support/include/exportfs.h: Declare above functions.
219 * utils/mountd/auth.c: use client_compose to determine calling
220 client if new cache is being used.
221 * utils/mountd/auth.c: call cache_export to export a filesystem if
222 new_cache, check if new cache is used, and call my_svc_run instead
224 * utils/mountd/svc_run.c: new file defining my_svc_run
225 * utils/mountd/cache.c: new file for handling cache upcalls.
226 * support/nfs/cacheio.c(check_new_cache): new function to check if
227 new cache should be used.
230 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
232 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
233 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
234 * utils/exportfs/exportfs.c(dump): ditto
236 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
238 * support/export/hostname.c(get_reliable_hostbyaddr): new function
239 to get host name from address with full checking of authenticity.
240 * support/include/misc.h: declare above function
241 * utils/mountd/auth.c(auth_authenticate_internal): remove all
242 logic for authenticating address.
243 * utils/mountd/auth.c(auth_authenticate): call new
244 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
247 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
249 * tools/rpcgen/rpc_main.c(find_cpp): removed
250 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
251 then try hard-coded paths.
253 2003-03-26 Chip Salzenberg <chip@pobox.com>
255 * debian/changelog: Version 1.0.3-1.
257 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
259 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
260 "const char*", not "char*".
262 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
264 * configure.in (VERSION): Set to "1.0.3".
265 * nfs-utils.spec: Likewise.
266 * configure: Regenerated.
268 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
270 * support/nfs/cacheio.c: New File - support for read/writing
271 to export cache in /proc/rpc/*/channel
272 * support/nfs/Makefile: compile cacheio.c
273 * support/include/nfslib.h: declare cacheio.c functions
274 * support/nfs/nfsexport.c: export and unexport through
275 /proc/rpc/*/channel if possible, as old syscall interface
276 may not survive into 2.6 on all architectures.
278 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
279 Ben Leslie <benno@sesgroup.net>
281 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
282 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
283 former would incorectly ignore defport if the application
284 explicitly set __rpcfdtype. The later is sufficient to avoid the
285 special handling in the case where stdin is an internet socket.
287 * utils/mountd/mountd.c(main): Add 'n' to option list in
288 getopt_long as this is a short form of --no-tcp which want being
291 2003-02-12 Chip Salzenberg <chip@pobox.com>
293 * debian/changelog: Version 1.0.2-2.
295 2002-11-27 Chip Salzenberg <chip@pobox.com>
297 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
298 overflow bug. Reformat per rest of source file.
300 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
302 * utils/exportfs/exports.man: Correct notes about whether the wild
303 card characters match a period. They do.
305 2002-10-15 Juan Gomez <juang@us.ibm.com>
307 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
309 (mountlist_add): Call slink_safe_rename instead of rename.
311 2002-10-11 H.J. Lu <hjl@lucon.org>
313 * support/include/exportfs.h (export_errno): New.
315 * support/nfs/exports.c: Include <errno.h>.
317 (getexportent): Set export_errno to EINVAL for bad option.
318 (parseopts): Likewise.
319 Report the location of the default sync/async option.
321 * utils/exportfs/exportfs.c (main): Initialize export_errno to
322 0. Return export_errno.
324 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
325 NeilBrown <neilb@cse.unsw.edu.au>
327 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
328 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
330 2002-09-16 Chip Salzenberg <chip@pobox.com>
332 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
334 2002-09-15 Chip Salzenberg <chip@pobox.com>
336 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
337 socket, as occurs when run from sshd.
338 * debian/changelog: Version 1.0.2-1.
340 2002-09-12 H.J. Lu <hjl@lucon.org>
342 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
345 2002-09-12 H.J. Lu <hjl@lucon.org>
347 * configure.in: Remove checking svctcp_socket and svcudp_socket.
348 * configure: Regenerated.
350 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
351 (HAVE_SVCUDP_SOCKET): Removed.
353 * support/include/nfslib.h: Undo the last change.
355 2002-09-12 H.J. Lu <hjl@lucon.org>
357 * support/include/nfslib.h (svctcp_socket): Protect it with
359 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
361 2002-09-12 H.J. Lu <hjl@lucon.org>
363 * configure.in (VERSION): Set to "1.0.2".
364 * configure: Regenerated.
365 * nfs-utils.spec: Likewise.
367 2002-09-12 H.J. Lu <hjl@lucon.org>
369 * configure.in: Check svctcp_socket and svcudp_socket.
370 * configure: Regenerated.
372 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
373 (HAVE_SVCUDP_SOCKET): New.
375 * support/include/nfslib.h (svctcp_socket): New.
376 (svcudp_socket): New.
378 * support/nfs/Makefile (OBJS): Add svc_socket.o.
380 * support/nfs/svc_socket.c: New.
382 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
383 svcudp_socket if port is unspecified.
385 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
387 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
388 (killer): New. Signal handler to unregister.
389 (main): Use killer. Call svcudp_socket to get the default
392 2002-09-02 Juan Gomez <juang@us.ibm.com>
393 NeilBrown <neilb@cse.unsw.edu.au>
395 Add -N option to statd to run in notify-only mode.
397 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
398 * utils/statd/statd.man: document -N
399 * utils/statd/statd.c: enabled -N, largely exists but needed to be
400 uncommented and completed
402 2002-09-02 Juan Gomez <juang@us.ibm.com>
403 NeilBrown <neilb@cse.unsw.edu.au>
405 statd to have " -P directory" arg to use that directory instead
406 of /var/lib/nfs. This is useful for fail-over clusters.
408 * utils/statd/statd.h: define SM_DIR etc as var, not const.
409 * utils/statd/statd.c: define "-P" option to set SM_*
411 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
413 * utils/statd/notify.c: ditto.
414 * utils/statd/statd.man: document -P option.
416 2002-08-26 Chip Salzenberg <chip@pobox.com>
418 * utils/nfsd/nfsd.man: Fix typo.
419 * debian/changelog: Version 1.0.1-1.
421 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
423 * let parseopts know if /etc/exports was being read or not,
424 and have it only print "no sync or async" warning in that case.
426 2002-05-06 Tom McNeal <trmcneal@attbi.com>
427 NeilBrown <neilb@cse.unsw.edu.au>
429 * utils/nfsstat/nfsstat.c: Handle differing format for
430 /proc/net/rpc/nfsd between pre and post 2.4.0
432 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
433 James Pearson <james-p@moving-picture.com>
435 * support/nfs/rmtab.c(fendrmtabent): sync changes to
436 storage before returning, as this is critical state
438 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
439 H.J. Lu <hjl@lucon.org>
441 * etc/redhat/nfs: New.
443 2002-04-08 H.J. Lu <hjl@lucon.org>
445 * etc/redhat/nfs.init: Updated.
447 * nfs-utils.spec.in: Updated.
448 * nfs-utils.spec: Regenerated.
450 * utils/mountd/mountd.c (longopts): Fix a typo.
452 * utils/mountd/mountd.man: Updated.
454 2002-04-07 H.J. Lu <hjl@lucon.org>
456 * etc/redhat/nfslock.init (restart): Just do stop and start.
458 * etc/redhat/nfs.init: Fix a typo.
460 2002-04-07 H.J. Lu <hjl@lucon.org>
462 * configure.in (VERSION): Set to "1.0.1".
463 * configure: Regenerated.
464 * nfs-utils.spec: Likewise.
466 * README: Updated for 1.0.1.
468 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
469 H.J. Lu <hjl@lucon.org>
471 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
473 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
474 NeilBrown <neilb@cse.unsw.edu.au>
476 Add support for fsid=nn export option so that device
477 numbers don't go in filehandles.
478 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
479 is set, pass the fsid in-place of the device number
480 * support/nfs/exports.c: parse and print fsid= option.
481 Also check if efname has been set, and use "command line"
482 instead in error messages.
483 Also, use strtol instead of atoi for anon[ug]id= so that
484 bad numbers cause errors.
486 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
487 NeilBrown <neilb@cse.unsw.edu.au>
489 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
490 flag so that "sync" becomes the default.
491 Check that either "sync" or "async" is given as an option
492 and warn if neither are present
493 * utils/exportfs/exports.man: change documentation for "sync"
494 to be documentation for "async".
495 * utils/exportfs/exportfs.man: note that "sync" is the default
499 2002-01-02 Chip Salzenberg <chip@pobox.com>
501 * support/export/nfsctl.c (expsetup): Don't export entries that
502 specify id mappings not supported by the kernel. No extant kernel
503 supports any significant mapping, only 'identity' (i.e. none).
504 When other mappings are supported, this code will need changing.
505 * debian/changelog: Version 1.0-2.
507 2001-12-26 Chip Salzenberg <chip@pobox.com>
509 * nfs-utils.spec (Version): Set to "1.0".
510 * configure.in (VERSION): Likewise.
511 * configure: Regenerated.
513 * debian/changelog: Version 1.0-1.
515 * utils/exportfs/exports.man: Emphasize the need for options to
516 immediately follow client names. Explain that wildcards don't
517 usually work on addresses, but may work when reverse DNS fails.
518 Comment out a leftover TP that was TPing our indentation.
519 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
520 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
521 * debian/changelog: Version 0.3.3-6.
523 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
525 * support/export/client.c(client_lookup): If a host has multiple
526 IP addresses, then we must always use the result of a
527 gethostbyname, not that of gethostbyaddr for exporting
529 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
531 * support/export/client.c (client_lookup): use strcasecmp when
533 * support/nfs/export.c (getexportent): add fromkernel arg and use
534 different defaults as kernels prior to 2.4.11 assume different
535 defaults in /proc/fs/nfs/exports
536 * support/include/nfslib.h, support/export/export.c,
537 support/export/xtab.c: support extra "fromkernel" arg for
540 2001-12-13 Chip Salzenberg <chip@pobox.com>
542 * debian/changelog: Version 0.3.3-5.
544 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
546 * support/nfs/xio.c (xskip): Call `xungetc' instead of
547 `ungetc' to keep x_line more properly.
549 2001-11-26 Chip Salzenberg <chip@pobox.com>
551 * utils/showmount/showmount.c (main): Don't assume that strings
552 starting with digits are IP addresses.
553 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
554 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
555 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
556 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
557 man pages: We check host names *and* addresses with tcpwrappers.
558 * debian/changelog: Version 0.3.3-4.
560 2001-11-21 Chip Salzenberg <chip@pobox.com>
562 * support/nfs/clients.c (cfname): Added: current clients file name.
563 (setnfsclntent): Set it.
564 ({get,end}nfsclntent, syntaxerr): Use it.
565 * support/nfs/exports.c (efname): Added: current exports file name.
566 (setnfsexportent): Set it.
567 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
568 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
569 * debian/changelog: Version 0.3.3-3.
571 2001-10-11 Chip Salzenberg <chip@pobox.com>
573 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
574 * debian/changelog: Version 0.3.3-2.
576 2001-10-08 Chip Salzenberg <chip@pobox.com>
578 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
579 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
580 * utils/mountd/mountd.man: Update paths to /var/lib.
581 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
583 2001-10-06 Preston Brown <pbrown@redhat.com>
585 * utils/nfsstat/nfsstat.man: Updated.
587 2001-09-24 H.J. Lu <hjl@lucon.org>
589 * configure.in (VERSION): Set to "0.3.3".
590 * configure: Regenerated.
591 * nfs-utils.spec: Likewise.
593 * README: Updated for 0.3.3.
595 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
597 Arrange that "exportfs -au" never does DNS lookup:
599 * support/export/client.c (client_lookup) : add "canonical"
600 flag which says that the hostname is known to be canonical, so
603 * support/export/export.c (export_create) : add "canonical"
604 flag to be passed down to client_lookup
605 * support/export/export.c (export_lookup) : Likewise
607 * support/export/xtab.c (xtab_read) : pass appropriate
608 "canonical" flag to export_lookup and export_create:
609 set if reading list of filesystems currently exports
612 * support/export/export.c (export_read) : pass 0 as
613 "canonical" flag to export_lookup and export_create
614 * support/export/rmtab.s (rmtab_read) : Likewise
616 * support/include/exportfs.h : redeclare various routines
617 to have "canonical" flag
619 * utils/exportfs/exportfs.c (main) : redo logic for
620 "-au" to read in what is currently exported, but never even
621 look at what "should" be exported.
623 * utils/exportfs/exportfs.c (unexportall) : remove this
624 routine. Functionality is completely included in
627 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
628 flag to zero in calls to export_lookup and export_create.
631 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
632 Anne Milicia <milicia@missioncriticallinux.com>
634 * support/export/client.c (client_lookup) call gethostbyadd
635 to make sure that we have a canonical hostname, even for
637 * utils/exportfs/exportfs.c (exportfs) Likewise
639 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
641 * support/nfs/exports.c (putexportent): \octal quote any spaces
643 * support/nfs/xio.c (xgettok): recognise double-quote and
644 \octal quoting in path names
645 * utils/exportfs/exports.man: document quoting conventions
648 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
650 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
651 change from 2000-08-02: It causes problems if someone exports
652 to both a hostname and IP addresses. nfs-utils must be
653 consistant about the canonical name that it chooses.
655 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
656 H.J. Lu <hjl@lucon.org>
658 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
660 * utils/statd/statd.c (longopts): Add "name".
661 (usage): Add "-n/--name".
662 (main): Set MY_NAME with "-n/--name".
664 * utils/statd/state.c (change_state): Set MY_NAME only if it
667 * utils/statd/statd.man: Updated for "-n/--name".
669 2001-07-26 H.J. Lu <hjl@lucon.org>
671 * nfs-utils.spec (Release): Set to 8.
673 2001-07-25 H.J. Lu <hjl@lucon.org>
675 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
678 2001-06-27 H.J. Lu <hjl@lucon.org>
680 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
682 2001-06-27 H.J. Lu <hjl@lucon.org>
684 * utils/rquotad/rquota_server.c: Don't call statfs () for
685 the block size. Use BLOCK_SIZE instead.
687 2001-06-27 H.J. Lu <hjl@lucon.org>
689 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
690 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
692 * configure.in (enable_nfsv3): Set to yes by default.
693 (--enable-rquotad): Added
694 (AC_PROG_CXX): Removed.
695 (AC_OUTPUT): Add utils/Makefile.
696 (CC_FOR_BUILD): Renamed from BUILD_CC.
697 * configure: Regenerated.
699 * utils/Makefile: Removed.
701 * utils/Makefile.in: New.
703 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
705 (CC_FOR_BUILD): Renamed from BUILD_CC.
706 * nfs-utils.spec: Regenerated.
708 2001-06-15 Chip Salzenberg <chip@debian.org>
710 * debian/changelog: Version 0.3.2-2.
711 * debian/*.init: Minor fixes.
713 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
715 * etc/nodist/nfs-server: Fixed a bug where the script would
716 disable mounts from NFSv3 clients if NFSv3 is present.
718 2001-06-05 H.J. Lu <hjl@lucon.org>
720 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
721 (main): Support --descriptors/-o to set the limit of the number
722 of open file descriptors.
725 * utils/mountd/mountd.man: Updated for --descriptors/-o.
727 2001-06-04 H.J. Lu <hjl@lucon.org>
729 * nfs-utils.spec (Release): Set to 6.
731 2001-05-28 H.J. Lu <hjl@lucon.org>
733 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
734 * utils/mountd/mountd.c (main): Likewise.
735 * utils/nfsd/nfsd.c (main): Likewise.
736 * utils/rquotad/rquota_svc.c (main): Likewise.
738 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
740 * support/export/client.c (client_check): Check IP address
743 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
745 * support/export/client.c (client_gettype): Treat `*' as
748 2001-04-22 H.J. Lu <hjl@lucon.org>
750 * nfs-utils.spec.in: Fix a typo.
751 * nfs-utils.spec: Regenerated.
753 2001-04-21 H.J. Lu <hjl@lucon.org>
755 * nfs-utils.spec.in: Fix cross build.
756 * nfs-utils.spec: Regenerated.
759 2001-04-18 H.J. Lu <hjl@lucon.org>
761 * nfs-utils.spec.in: Support cross build.
762 * nfs-utils.spec: Regenerated.
768 * config.mk.in (BUILD_CC): New.
769 (CC): Set to $(BUILD_CC) if BUILD is defined.
772 (RANLIB): Set to @RANLIB@.
774 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
775 * configure: Regenerated.
777 * tools/rpcgen/Makefile (BUILD): Set to true.
779 2001-04-01 Chip Salzenberg <chip@valinux.com>
781 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
782 redundant, and sometimes broken, declaration of svc_fdset;
784 * support/nfs/rpcmisc.c (closedown): Likewise.
786 2001-03-21 H.J. Lu <hjl@lucon.org>
788 * nfs-utils.spec: Regenerated.
791 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
793 * utils/statd/statd.c (main): make sure file descriptors 0-2
794 are open to /dev/null.
796 2001-03-21 H.J. Lu <hjl@lucon.org>
798 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
799 * support/nfs/rpcmisc.c: Likewise.
800 * utils/rquotad/rquota_svc.c: Likewise.
801 * utils/rquotad/rquotad.man: Likewise.
802 * utils/statd/Makefile: Likewise.
803 * utils/statd/rmtcall.c: Likewise.
804 * utils/statd/simulate.c: Likewise.
805 * utils/statd/statd.c: Likewise.
806 * utils/statd/statd.man: Likewise.
808 2001-03-11 H.J. Lu <hjl@lucon.org>
810 * configure.in (RELEASE): New. Default to 1, set by
811 --with-release=XXX. Substitute nfs-utils.spec.
812 * nfs-utils.spec.in (Release): Set to @RELEASE@.
813 * configure: Regenerated.
814 * nfs-utils.spec: Likewise.
816 2001-03-11 H.J. Lu <hjl@lucon.org>
818 * utils/rquotad/rquotad.man: Fix a typo.
820 2001-03-11 H.J. Lu <hjl@lucon.org>
822 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
823 * support/nfs/rpcmisc.c: Likewise.
824 * utils/rquotad/rquota_svc.c: Likewise.
825 * utils/rquotad/rquotad.man: Likewise.
826 * utils/statd/Makefile: Likewise.
827 * utils/statd/rmtcall.c: Likewise.
828 * utils/statd/simulate.c: Likewise.
829 * utils/statd/statd.c: Likewise.
830 * utils/statd/statd.man: Likewise.
832 2001-03-10 H.J. Lu <hjl@lucon.org>
834 * configure.in (VERSION): Set to "0.3.2".
835 * configure: Regenerated.
836 * nfs-utils.spec: Likewise.
838 * README: Updated for 0.3.2.
840 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
842 * utils/rquotad/rquotad.man: Updated for -p.
843 * utils/statd/statd.man: Likewise.
845 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
847 * support/nfs/rpcmisc.c: export makesock()
849 * support/include/rpcmisc.h (makesock): Declared.
851 * utils/rquotad/rquota_svc.c: added longopts, added support for
852 specifying the port to bind to on the command line.
854 * utils/statd/statd.c: ditto, also specify port used for
855 outgoing connections.
856 (do_regist): Removed.
858 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
859 get_socket. Make it extern.
861 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
862 instead of do_regist.
864 * utils/statd/Makefile (LIBS): link with our own libnfs
866 2001-03-09 H.J. Lu <hjl@lucon.org>
868 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
869 * etc/nodist/nfs-client: Likewise.
871 2001-02-26 Chip Salzenberg <chip@valinux.com>
873 * debian/changelog: Version 0.3.1-1.
874 * Mention upstream source and license in copyright file.
875 * Add build-Depends for debhelper and libwrap0-dev.
877 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
879 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
880 * etc/nodist/nfs-client: Likewise.
882 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
884 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
887 2001-02-17 Patrick J. LoPresti <patl@curl.com>
889 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
892 2001-02-14 H.J. Lu <hjl@lucon.org>
894 * utils/statd/rmtcall.c: Include <time.h>.
895 * utils/statd/svc_run.c: Likewise.
897 2001-02-14 H.J. Lu <hjl@lucon.org>
899 * configure.in (VERSION): Set to "0.3.1".
900 * configure: Regenerated.
901 * nfs-utils.spec: Likewise.
903 * README: Updated for 0.3.1.
905 2001-02-14 H.J. Lu <hjl@lucon.org>
907 * support/nfs/rpcmisc.c: Include <time.h>.
909 2001-02-14 Chip Salzenberg <chip@valinux.com>
911 * debian/control: Change priority of nhfsstone package to 'extra'.
913 2001-02-12 Chip Salzenberg <chip@valinux.com>
915 * debian/changelog: Version 0.3-2.
917 2001-02-02 H.J. Lu <hjl@lucon.org>
919 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
921 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
922 out SO_SNDBUF/SO_RCVBUF.
923 (rpc_init): Remove bufsize and remove socksz in calls to
926 * utils/mountd/mountd.c (main): Remove bufsize in calls to
929 2001-01-28 Chip Salzenberg <chip@valinux.com>
931 * debian/changelog: Version 0.3-1.
933 2001-01-25 H.J. Lu <hjl@lucon.org>
935 * configure.in (VERSION): Set to "0.3".
936 * configure: Regenerated.
937 * nfs-utils.spec: Likewise.
939 * README: Updated for 0.3.
941 2001-01-25 H.J. Lu <hjl@lucon.org>
943 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
945 2001-01-20 Chip Salzenberg <chip@valinux.com>
947 * support/include/xio.h (xgetc): Declare to return int.
948 * support/nfs/xio.c (xgetc): Return int.
949 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
950 * utils/statd/statd.c (main): Use int for value of getopt.
951 * debian/changelog: Version 0.2.1-5.
953 2000-12-10 Chip Salzenberg <chip@valinux.com>
955 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
956 program and procedure numbers of kernel lockd's callback. Also,
957 besides the old (and broken) procedure #24, allow #16 per Trond.
959 2000-12-03 Chip Salzenberg <chip@valinux.com>
961 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
962 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
963 * debian/changelog: Version 0.2.1-4.
965 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
967 * utils/mountd/auth.c (auth_authenticate): Log the bad path
970 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
972 * support/nfs/exports.c (getexportent): Check for host name
973 without option, or options without hostname, and print a warning,
974 as this is most likely a typo.
976 2000-11-19 Chip Salzenberg <chip@valinux.com>
978 * debian/control: Add dependency on portmap.
979 * debian/changelog: Version 0.2.1-3.
981 2000-11-10 H.J. Lu <hjl@lucon.org>
983 * nfs-utils.spec.in: Don't use libtool.
984 Add ChangeLog and COPYING to doc.
985 * nfs-utils.spec: Rebuild.
987 2000-11-09 H.J. Lu <hjl@lucon.org>
989 * etc/redhat/nfs.init (start): Back out the last change.
991 2000-11-09 H.J. Lu <hjl@lucon.org>
993 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
994 TCP is not supported by kernel.
996 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
998 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
999 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
1001 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
1003 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
1005 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
1006 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
1007 callbacks to local lockd.
1009 2000-10-18 Scott McDermott <mcdermot@questra.com>
1011 * utils/exportfs/exports.man: Updated for CIDR netmask.
1013 2000-10-17 Scott McDermott <mcdermot@questra.com>
1015 * support/export/client.c (client_init): Support CIDR netmask
1018 2000-10-11 H.J. Lu <hjl@lucon.org>
1020 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1021 * configure: Rebuilt.
1023 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
1025 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1026 "/var/lib/nfs/state".
1028 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
1030 * utils/statd/statd.h (run_mode): New global bitmask of runtime
1031 behaviors: fg/bg, logging, etc.
1032 * utils/statd/statd.c: New command line options: -V -h -? -d .
1033 * utils/statd/statd.man: Update for changes to statd.
1035 * utils/statd/log.h (log_init): Remove parameter of function; use
1036 global variable "name_p" instead.
1037 * utils/statd/log.c: Add support for logging to stderr.
1039 * utils/statd/notlist.c: Partially rewrite notify list handling
1040 functions. Eliminate run-off-end-of-list bug when calling
1041 nlist_insert_timer. Add lots of comments.
1043 2000-09-27 H.J. Lu <hjl@lucon.org>
1045 * README: Updated for RedHat 7.0.
1047 2000-09-27 H.J. Lu <hjl@lucon.org>
1049 * nfs-utils.spec: Rebuild.
1051 2000-09-27 H.J. Lu <hjl@lucon.org>
1053 * README: Updated for 0.2.1.
1055 2000-09-27 H.J. Lu <hjl@lucon.org>
1057 * nfs-utils.spec.in: Updated to use rpm macros and support
1060 2000-09-25 H.J. Lu <hjl@lucon.org>
1062 * configure.in (VERSION): Set to "0.2.1".
1063 * configure: Regenerated.
1064 * nfs-utils.spec: Updated.
1066 2000-09-25 H.J. Lu <hjl@lucon.org>
1068 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1069 non-NULL hostent is always returned.
1071 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1073 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1074 have an executable (i.e. kernel threads)
1076 2000-09-01 H.J. Lu <hjl@lucon.org>
1078 * README: Updated for 0.2.
1080 2000-09-01 Jay Weber <jweber@valinux.com>
1082 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1083 supporting version 3 of nfs if available, else it will fall back to
1084 version 2 support only.
1086 2000-08-30 H.J. Lu <hjl@lucon.org>
1088 * configure.in (VERSION): Set to "0.2".
1089 * configure: Regenerated.
1090 * nfs-utils.spec: Updated.
1092 2000-08-25 H.J. Lu <hjl@lucon.org>
1094 * support/misc/tcpwrapper.c (logit): Modify the log output.
1096 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1098 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1099 utils/mountd/mountd.man: updated
1101 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1102 * utils/rquotad/Makefile: fix comment
1104 * support/misc/tcpwrapper.c (logit): added comment about waiting
1105 for the children after fork()
1107 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1108 zombies behind (from logit()'s fork)
1109 * utils/rquotad/rquota_svc.c (main): ditto
1110 * utils/statd/statd.c (main): ditto
1112 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1113 to check_default instead of 0, for prognum
1115 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1116 to check_default instead of 0, for prognum
1118 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1119 HAVE_TCP_WRAPPER is defined.
1120 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1121 defined. Reject an RPC call if check_default () fails.
1123 2000-08-25 H.J. Lu <hjl@lucon.org>
1125 * support/include/tcpwrapper.h: New for the tcp wrapper
1127 * support/misc/Makefile: Likewise.
1128 * support/misc/from_local.c: Likewise.
1129 * support/misc/tcpwrapper.c: Likewise.
1131 * aclocal.m4 (AC_TCP_WRAPPER): New.
1132 * configure.in: Use it. Substitute LIBWRAP.
1133 * configure: Rebuilt.
1135 * config.mk.in (LIBNSL): New.
1136 (LIBWRAP): Likewise.
1138 * support/Makefile (SUBDIRS): Add misc.
1140 * support/lib/Makefile (LIBS): Add libmisc.a.
1142 * utils/rquotad/Makefile (LIBS): Add
1144 -lmisc $(LIBWRAP) $(LIBNSL)
1146 * utils/statd/Makefile (LIBS): Likewise.
1148 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1149 HAVE_TCP_WRAPPER is defined.
1150 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1151 defined. Reject an RPC call if check_default () fails.
1153 * utils/statd/statd.c: Include "tcpwrapper.h" if
1154 HAVE_TCP_WRAPPER is defined.
1155 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1156 check_default () before calling sm_prog_1 (). Define it as
1157 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1159 2000-08-25 Chip Salzenberg <chip@valinux.com>
1161 * debian/*: Complete Debian build support.
1162 * etc/debian/*: Remove.
1164 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1166 * support/export/client.c(client_check): removed the "dot+1" as a
1167 ypdomain argument to innetgr as this is entirely bogus.
1168 It should always be NULL.
1170 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1172 * support/export/xtab.c(xtab_read): introduce new mode for
1173 reading xtab. i.e. a list of exports that might be known to the
1174 kernel, or might not. These are flagged as m_exported == -1
1175 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1176 value "2" for xtab, meaning don't trust this too much.
1177 * support/include/exportfs.h(struct mexport): changed m_exported
1178 from one bit to an int so that it can hold new value
1179 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1180 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1181 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1184 * support/nfs/xio.c(xflock): added O_CREAT when getting
1185 a write lock so that missing files aren't fatal.
1187 * etc/debian/nfs-common: new file from "potato"
1188 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1190 2000-08-09 H.J. Lu <hjl@lucon.org>
1192 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1193 startup to ensure all existing clients work fine.
1195 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1196 to xtab_read () for reading _PATH_XTAB.
1198 2000-08-02 H.J. Lu <hjl@lucon.org>
1200 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1201 avoid the reverse name lookup.
1203 2000-07-04 H.J. Lu <hjl@lucon.org>
1205 * utils/statd/log.c: Include <stdlib.h> for exit ().
1207 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1210 2000-07-04 H.J. Lu <hjl@lucon.org>
1212 * configure.in (VERSION): Set to "0.1.9.1".
1213 * configure: Regenerated.
1214 * nfs-utils.spec: Updated.
1218 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1220 * support/export/hostname.c (hostent_dup): Handle the NULL
1223 2000-07-03 H.J. Lu <hjl@lucon.org>
1225 * README: Update the util-linux requirement.
1227 2000-07-03 H.J. Lu <hjl@lucon.org>
1229 * configure.in (VERSION): Set to "0.1.9".
1230 * configure: Regenerated.
1231 * nfs-utils.spec: Updated.
1235 2000-07-03 H.J. Lu <hjl@lucon.org>
1237 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1238 stop to ensure all clients can still access the server
1239 before it is shutdown.
1241 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1243 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1244 calls with format string.
1246 2000-06-28 Chip Salzenberg <chip@valinux.com>
1248 * utils/statd/log.c (log): Call syslog with format string.
1250 2000-06-27 H.J. Lu <hjl@lucon.org>
1252 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1253 instead of OPEN_MAX.
1255 2000-06-27 H.J. Lu <hjl@lucon.org>
1259 2000-06-27 H.J. Lu <hjl@lucon.org>
1261 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1262 startup to ensure all existing clients are exported.
1264 * configure.in (VERSION): Set to "0.1.8.2".
1265 * configure: Regenerated.
1266 * nfs-utils.spec: Updated.
1268 2000-06-06 H.J. Lu <hjl@lucon.org>
1270 * configure.in (VERSION): Set to "0.1.8.1".
1271 * configure: Regenerated.
1272 * nfs-utils.spec: Updated.
1274 2000-06-06 H.J. Lu <hjl@lucon.org>
1276 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1277 to "struct sockaddr_in *" for glibc 2.2.
1278 (mount_umnt_1_svc): Likewise.
1279 (mount_umntall_1_svc): Likewise.
1280 (mount_export_1_svc): Likewise.
1281 (mount_exportall_1_svc): Likewise.
1282 (mount_pathconf_2_svc): Likewise.
1283 (get_rootfh): Likewise.
1285 2000-06-04 H.J. Lu <hjl@lucon.org>
1287 * etc/redhat/nfs.init: Fix a typo in comment.
1289 2000-05-31 H.J. Lu <hjl@lucon.org>
1291 * configure.in (VERSION): Set to "0.1.8".
1292 * configure: Regenerated.
1293 * nfs-utils.spec: Updated.
1297 2000-05-31 H.J. Lu <hjl@lucon.org>
1299 * configure.in (VERSION): Set to "0.1.7.5".
1300 * configure: Regenerated.
1301 * nfs-utils.spec: Updated.
1303 * support/include/nfslib.h (exportent): Add a new field,
1304 r_count, to count the number of mounts from a client.
1305 (getrmtabent): Take a new argument for position in file.
1306 (putrmtabent): Likewise.
1307 (fgetrmtabent): Likewise.
1308 (fputrmtabent): Likewise.
1309 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1310 for position in file.
1311 (fgetrmtabent): Likewise.
1312 (putrmtabent): Likewise.
1313 (fputrmtabent): Likewise.
1315 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1318 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1319 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1320 and fputrmtabent ().
1321 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1322 (mountlist_del): Likewise.
1323 (mountlist_del_all): Likewise.
1324 (mountlist_list): Likewise.
1326 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1327 for the existing entry and initialize "r_count" to 1.
1328 (mountlist_del): Decrement "r_count".
1330 2000-05-18 H.J. Lu <hjl@lucon.org>
1332 * configure.in (VERSION): Set to "0.1.7.4".
1333 * configure: Regenerated.
1334 * nfs-utils.spec: Updated.
1336 2000-05-18 H.J. Lu <hjl@lucon.org>
1338 * etc/redhat/nfs.init (restart): Just do stop and start.
1340 2000-05-09 Jay Weber <jweber@valinux.com>
1342 * utils/rquotad/hasquota.c: added support for ext3 recognition
1344 * utils/rquotad/mntent.h: Likewise.
1346 2000-05-01 H.J. Lu <hjl@lucon.org>
1348 * configure.in (VERSION): Set to "0.1.7.3".
1349 * configure: Regenerated.
1350 * nfs-utils.spec: Updated.
1352 2000-05-01 H.J. Lu <hjl@lucon.org>
1354 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1355 mounting poins in /etc/fstab.
1357 2000-05-01 H.J. Lu <hjl@lucon.org>
1359 * configure.in (VERSION): Set to "0.1.7.2".
1360 * configure: Regenerated.
1361 * nfs-utils.spec: Updated.
1363 2000-05-01 H.J. Lu <hjl@lucon.org>
1365 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1366 to check for the mounting point.
1368 2000-04-29 Chip Salzenberg <chip@valinux.com>
1369 Neil Brown <neilb@cse.unsw.edu.au>
1371 * Really re-use RPC ports.
1372 (Fixes earlier patch. Sorry, Neil.)
1374 2000-04-26 H.J. Lu <hjl@lucon.org>
1376 * configure.in (VERSION): Set to "0.1.7.1".
1377 * configure: Regenerated.
1378 * nfs-utils.spec: Updated.
1380 2000-04-26 H.J. Lu <hjl@lucon.org>
1382 * etc/redhat/nfslock.init: Check if lockd exits before killing
1385 2000-04-25 H.J. Lu <hjl@lucon.org>
1387 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1389 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1391 * support/nfs/exports.c (parsesquash): Correctly set the
1394 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1396 * support/include/nfs/nfs.h: Removed knowledge of internals of
1397 kernel filehandles (which can change) and defined nfs_fh_size
1398 which has variable size
1400 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1401 get variable sized file handles, and change getfh{,old} to
1404 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1407 * tools/Makefile, tools/nlmtest/nlmtest.c
1408 nlmtest.c depended on internel format of file handles, so now
1412 2000-03-12 Chip Salzenberg <chip@valinux.com>
1413 Neil Brown <neilb@cse.unsw.edu.au>
1415 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1417 2000-03-13 H.J. Lu <hjl@lucon.org>
1419 * etc/redhat/nfsd.init: Updated.
1421 * etc/redhat/nfslock.init: Updated.
1423 * nfs-utils.spec.in: Updated.
1425 * configure.in (VERSION): Set to "0.1.7".
1426 * configure: Regenerated.
1427 * nfs-utils.spec: Updated.
1431 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1433 * utils/exportfs/exportfs.c (dump): Included printing of
1434 nohide, no_subtree_check, and insecure_locks
1436 2000-02-26 Chip Salzenberg <chip@valinux.com>
1438 * config.mk.in (INSTALLSUID): Strip ("-s").
1439 (INSTALLSCRIPT): Define.
1440 * utils/nhfsstone/Makefile: Use it.
1442 2000-02-26 Chip Salzenberg <chip@valinux.com>
1444 * utils/lockd/lockd.man: Create.
1445 * utils/lockd/Makefile: Install it.
1446 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1447 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1448 * utils/nhfsstone/Makefile: Install the helper scripts and
1450 * utils/exportfs/exports.man: Fix typo.
1452 2000-02-26 Chip Salzenberg <chip@valinux.com>
1454 * support/nfs/xio.c (xungetc): Decrement line number when
1455 character to unget is newline. Make first parameter int, so
1456 it can distinguish EOF from \377.
1457 * support/include/xio.h (xungetc): Adjust prototype.
1459 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1461 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1462 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1463 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1465 This is for supporting a new option introduced in 2.3.42
1467 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1469 * COPYING: Added. GPL.
1471 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1473 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1474 to get the block size.
1476 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1478 * nfs-utils.spec.in: Update ftp site.
1480 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1482 * README: Update hostnames.
1484 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1486 * configure.in (VERSION): Set to "0.1.6".
1487 * configure: Regenerated.
1488 * nfs-utils.spec: Updated.
1492 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1494 * utils/mountd/auth.c (auth_authenticate_internal): Call
1495 xstrdup for hostname before passing it to gethostbyname.
1497 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1500 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1502 * README: Update the mailing list address.
1504 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1506 * configure.in (VERSION): Set to "0.1.5".
1507 * configure: Regenerated.
1508 * nfs-utils.spec: Updated.
1512 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1514 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1517 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1519 * configure.in (VERSION): Set to "0.1.4".
1520 * configure: Regenerated.
1521 * nfs-utils.spec: Updated.
1525 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1527 * nfs-utils.spec.in: New file.
1529 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1531 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1533 1999-12-04 Chip Salzenberg <chip@valinux.com>
1535 * config.mk.in: Use $(CC) as set by configure.
1537 1999-12-04 Chip Salzenberg <chip@valinux.com>
1539 * rules.mk: Call $(MAKE) with $(MFLAGS).
1541 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1543 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1544 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1546 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1548 * nfs-utils.spec (Version): Set to 0.1.3.
1550 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1551 * configure: Regenerated.
1555 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1557 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1558 (_PATH_DEV_DSK): Likewise.
1559 (getquotainfo): Match the mounting point from /etc/mtab
1560 instead of calling nfsmount_to_devname ().
1562 1999-11-24 Chip Salzenberg <chip@valinux.com>
1564 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1565 to the new port 24 as well as the historical port 100021.
1567 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1569 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1570 stopping nfsd to stop spurious ESTALE on server shutdown.
1572 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1574 * support/nfs/exports.c (parseopts): make copy of opt string
1575 before 'nul'ing out commas so that
1577 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1579 applies both options to both exports.
1581 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1583 * README: Fix a few typos.
1585 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1587 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1588 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1589 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1590 (unsigned_dec): Likewise.
1591 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1592 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1594 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1596 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1597 (unsigned_dec): Likewise.
1598 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1599 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1600 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1602 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1604 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1605 * support/nfs/exports.c: added {no_,}subtree_check and changed
1607 * utils/exportfs/exports.man: added no_subtree_check and nohide
1608 and removed irrelevant stuff from unfsd.
1609 * support/export/rmtab.c: rmtab_read didn't quite do the right
1610 thing if a pathname from rmtab was a subdirectory of an export-point
1612 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1614 * README: Updated ftp site.
1616 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1618 * nfs-utils.spec (Version): Set to 0.1.2.
1620 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1621 * configure: Regenerated.
1625 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1627 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1628 (auth_authenticate_internal): Check for NULL return on forward
1630 (auth_authenticate): Handle "no_forward_dns".
1632 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1634 * Version 0.1.1 released.
1636 * nfs-utils.spec (Version): Set to 0.1.1.
1638 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1639 * configure: Regenerated.
1643 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1645 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1647 (Provides): Likewise.
1649 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1651 * Initial version 0.1 released.
1653 * configure.in (VERSION): Set to "nfs-utils 0.1".
1654 * configure: Regenerated.
1656 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1658 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1660 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1661 kernel only if the entry is exported to kernel.
1662 (unexportfs): Likewise.
1664 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1666 1/ utils/mountd/rmtab.c::mountlist_list
1668 This routine stats the rmtab file to see if it has changed. It
1669 if has, it cleans up it's old copy of the data. But it still
1670 always re-read the file, thus returning multiple copies of the
1671 data on consecutive calls without intervening changes.
1672 "Showmount -a" didn't show this as it appears to sort/unique the
1673 data, but 'strace showmount -a' showed that the size of the
1674 datagram that it received grew.
1676 I moved the getrmtabent loop inside the mtime test.
1678 2/ utils/exportfs/exportfs.c
1680 Many routines used the m_path field of m_export instead of
1682 According to the comment in nfslib.h, m_path should only
1683 be used when processing a mount request (i.e. in mountd)
1684 where the mountpoint may be a subdirectory of the export point.
1686 I changed all occurances of m_path to e_path
1689 3/ utils/exportfs/exportfs.c:main
1691 extra arguments are not meaningful with -a or -r, but
1692 exportfs accepted them and then ignored the -a/-r, expect that
1693 -r would still unexport everything first.
1695 I generate an error if there are extra args and f_all
1697 4/ utils/exportfs/exportfs.c:main
1698 extract dump out as a special case.
1700 5/ utils/exportfs/exportfs.c
1701 made f_reexport a local variable.
1704 6/ utils/exportfs/exportfs.c:main,exportall
1706 support/export/rmtab.c
1707 only mayexport on newly created entries, don't set xtabent at all
1709 7/ support/include/nfslib.h
1711 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1713 8/ support/export/xtab.c
1715 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1719 9/ support/export/xtab.c
1721 xtab_mount_read now sets m_exported, and NOT
1722 xtabent and mayexport
1724 removed the append arguement from xtab_write as it was
1727 added is_export flag to xtab_write similar to xtab_read
1728 if is_export, only write entries with m_xtabent or m_addxtab
1729 if !is_export, only write entries with m_exported
1731 10/ support/export/export.c::export_allowed_internal
1733 added test for exp->m_mayexport, as the export tree
1734 may have entries that are no longer allowed to be exported,
1735 and so shouldn't caused deduced exported by rmtab_read
1737 11/ utils/exportfs/exportfs.c::main
1738 error checking of flags.
1740 12/ utils/exportfs/exportfs.c
1742 total rewrite of export and unexport logic.
1744 - build an exportslist of valid exports, based on
1745 current etab file and arguments,
1746 - read rmtab to instantiate relevant wild card entries
1747 - read etab to find out what is currently exported
1748 - synchronise intention with reality
1749 - write out etab and xtab
1752 discard the m_addxtab flag
1753 add m_changed flag so we know what to report in exportfs
1755 14/ utils/mountd/auth.c:auth_authenticate
1757 the value returned by gethostbyaddr was trusted.
1759 It now follows this with a call to gethostbyname
1760 and checks that the address is in the list.
1762 15/ support/export/nfsctl.c::cltsetup,expsetup
1764 force client names to lowercase as kernel is
1767 16/ quietened a few compiler warnings
1769 17/ support/export/client:client_lookup
1771 look for pre-existing client with same name before creating
1774 18/ support/include/exportfs.h
1776 The ordering of the MCL_* enum was:
1777 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1779 I moved ANONYMOUS to the end.
1781 The ordering is significant when an export entry is being searched for to
1782 match a given address. There are two problems with ANONYMOUS being first.
1784 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1785 then the ro case will always be found first and the privileged hosts won't get
1787 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1788 export entry for the specific host, and writes it to xtab.
1789 When another request comes from the same host, the ANONYMOUS entry is found again,
1790 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1791 again. If causes bloat in xtab.
1793 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1795 19/ utils/exportfs/exportfs.man
1796 many updates to the man page to reflect changes to the code
1798 -----------------------
1804 - allow exportfs to modify rmtab file
1805 - make sure kernel never gets two clients with same IP address
1806 - possible kernel should reject
1807 - needs to be some way to lookup client in kernel by IP address
1808 - maybe get kernel to do case-insensitive comparisons on client names
1809 - remove unused clients from kernel
1811 - change etab to xtab and xtab to xtab.active
1813 - timestamp and/or statd-stamp in rmtab for removing old entries.
1815 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1817 * linux-nfs: New directory.
1818 * linux-nfs/ChangeLog: Moved from ..
1819 * linux-nfs/INSTALL: Likewise.
1820 * linux-nfs/KNOWNBUGS: Likewise.
1821 * linux-nfs/NEW: Likewise.
1822 * linux-nfs/README: Likewise.
1823 * linux-nfs/THANKS: Likewise.
1824 * linux-nfs/TODO: Likewise.
1826 * Starting from knfsd 1.4.7.