1 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
3 * configure.in, nfs-utils.spec: Update version to 1.0.4
6 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
7 baseline for 2.6 and 2.8. I.e. it should continue to work right
8 through the 2.8 (or 3.0) kernel series. Previous releases wont.
10 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
12 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
13 used as the size was changed somewhere in 2.5.60-2.5.70. Without
14 this nfs-utils compiles against 2.6 headers will not work on a
17 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
19 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
20 set number of threads by writing to there. This means it will
21 still work when the syscall interface goes away in 2.7.
23 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
24 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
26 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
27 so as to only export the wildcard exports that were asked for.
28 * support/export/export.c(export_allowed): changed to return the
29 nfs_export rather than a "struct exportent", as m_changed is
31 * support/export/rmtab.c(rmtab_read): modified to deal with
32 interface change for export_allowed(), and enhanced to preserve
33 m_changed flag when a wild-card export causes the creation of
34 a non-wildcard export.
36 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
37 Steve Dickson <SteveD@redhat.com>
39 * utils/mountd/mountd.man: Add valid kinds of debugging.
40 * utils/mountd/mountd.c(main): ignore SIGPIPE
41 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
42 we don't get warnings about unavailable stats that weren't asked
45 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
47 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
48 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
49 'forever', so things disappear out of the cache rather than just
52 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
54 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
57 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
59 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
60 etc/redhat/nfs.init: when checking if V3 is supported, make sure
61 nfs server 'knows' about 127.0.0.1 first.
63 2003-06-10 Chip Salzenberg <chip@pobox.com>
65 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
66 * debian/changelog: Version 1.0.3-2.
68 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
69 NeilBrown <neilb@cse.unsw.edu.au>
71 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
72 long long to avoid overflow when printing stats.
74 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
76 * support/export/export.c, support/include/nfslib.h,
77 support/nfs/export.c, utils/exportfs/exportfs.c,
78 utils/mountd/mountd.c: new export option "mountpoint"
79 If no path is given, then the export point must be a
80 mount point, or it won't be exported. If a path is
81 given (e.g. mountpoint=/path) then that path must be
82 a mountpoint or the exportpoint won't be exported.
83 * utils/exportfs/exportfs.man: document mountpoint option.
84 * support/misc/mountpoint.c: New file with is_mountpoint()
85 to determine if something is a mountpoint.
87 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
89 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
90 argument as we might not be getting the filehandle for the
92 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
94 * utils/mountd/mountd.c(get_rootfh): check export point and
95 requested directory are on the same filesystem, and complain if
98 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
100 * utils/mountd/auth.c(auth_authenticate_internal): make sure
101 portnumber is still checked when using new cache lookup.
103 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
105 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
106 Don't actually talk to kernel when new cache is in effect, except
108 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
109 * support/export/xtab.c: Only rename new xtab into place if it has
110 changed, thus preserving modify date for exportfs to use when
112 * support/nfs/cacheio.c: Add cache_flush
113 * support/export/xtab.c: Only rename new xtab into place if it has
114 changed, thus preserving modify date for exportfs to use when
117 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
119 * support/export/client.c: Add client_compose, client_member to
120 handle new composite client names
121 * support/include/exportfs.h: Declare above functions.
122 * utils/mountd/auth.c: use client_compose to determine calling
123 client if new cache is being used.
124 * utils/mountd/auth.c: call cache_export to export a filesystem if
125 new_cache, check if new cache is used, and call my_svc_run instead
127 * utils/mountd/svc_run.c: new file defining my_svc_run
128 * utils/mountd/cache.c: new file for handling cache upcalls.
129 * support/nfs/cacheio.c(check_new_cache): new function to check if
130 new cache should be used.
133 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
135 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
136 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
137 * utils/exportfs/exportfs.c(dump): ditto
139 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
141 * support/export/hostname.c(get_reliable_hostbyaddr): new function
142 to get host name from address with full checking of authenticity.
143 * support/include/misc.h: declare above function
144 * utils/mountd/auth.c(auth_authenticate_internal): remove all
145 logic for authenticating address.
146 * utils/mountd/auth.c(auth_authenticate): call new
147 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
150 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
152 * tools/rpcgen/rpc_main.c(find_cpp): removed
153 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
154 then try hard-coded paths.
156 2003-03-26 Chip Salzenberg <chip@pobox.com>
158 * debian/changelog: Version 1.0.3-1.
160 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
162 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
163 "const char*", not "char*".
165 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
167 * configure.in (VERSION): Set to "1.0.3".
168 * nfs-utils.spec: Likewise.
169 * configure: Regenerated.
171 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
173 * support/nfs/cacheio.c: New File - support for read/writing
174 to export cache in /proc/rpc/*/channel
175 * support/nfs/Makefile: compile cacheio.c
176 * support/include/nfslib.h: declare cacheio.c functions
177 * support/nfs/nfsexport.c: export and unexport through
178 /proc/rpc/*/channel if possible, as old syscall interface
179 may not survive into 2.6 on all architectures.
181 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
182 Ben Leslie <benno@sesgroup.net>
184 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
185 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
186 former would incorectly ignore defport if the application
187 explicitly set __rpcfdtype. The later is sufficient to avoid the
188 special handling in the case where stdin is an internet socket.
190 * utils/mountd/mountd.c(main): Add 'n' to option list in
191 getopt_long as this is a short form of --no-tcp which want being
194 2003-02-12 Chip Salzenberg <chip@pobox.com>
196 * debian/changelog: Version 1.0.2-2.
198 2002-11-27 Chip Salzenberg <chip@pobox.com>
200 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
201 overflow bug. Reformat per rest of source file.
203 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
205 * utils/exportfs/exports.man: Correct notes about whether the wild
206 card characters match a period. They do.
208 2002-10-15 Juan Gomez <juang@us.ibm.com>
210 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
212 (mountlist_add): Call slink_safe_rename instead of rename.
214 2002-10-11 H.J. Lu <hjl@lucon.org>
216 * support/include/exportfs.h (export_errno): New.
218 * support/nfs/exports.c: Include <errno.h>.
220 (getexportent): Set export_errno to EINVAL for bad option.
221 (parseopts): Likewise.
222 Report the location of the default sync/async option.
224 * utils/exportfs/exportfs.c (main): Initialize export_errno to
225 0. Return export_errno.
227 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
228 NeilBrown <neilb@cse.unsw.edu.au>
230 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
231 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
233 2002-09-16 Chip Salzenberg <chip@pobox.com>
235 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
237 2002-09-15 Chip Salzenberg <chip@pobox.com>
239 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
240 socket, as occurs when run from sshd.
241 * debian/changelog: Version 1.0.2-1.
243 2002-09-12 H.J. Lu <hjl@lucon.org>
245 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
248 2002-09-12 H.J. Lu <hjl@lucon.org>
250 * configure.in: Remove checking svctcp_socket and svcudp_socket.
251 * configure: Regenerated.
253 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
254 (HAVE_SVCUDP_SOCKET): Removed.
256 * support/include/nfslib.h: Undo the last change.
258 2002-09-12 H.J. Lu <hjl@lucon.org>
260 * support/include/nfslib.h (svctcp_socket): Protect it with
262 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
264 2002-09-12 H.J. Lu <hjl@lucon.org>
266 * configure.in (VERSION): Set to "1.0.2".
267 * configure: Regenerated.
268 * nfs-utils.spec: Likewise.
270 2002-09-12 H.J. Lu <hjl@lucon.org>
272 * configure.in: Check svctcp_socket and svcudp_socket.
273 * configure: Regenerated.
275 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
276 (HAVE_SVCUDP_SOCKET): New.
278 * support/include/nfslib.h (svctcp_socket): New.
279 (svcudp_socket): New.
281 * support/nfs/Makefile (OBJS): Add svc_socket.o.
283 * support/nfs/svc_socket.c: New.
285 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
286 svcudp_socket if port is unspecified.
288 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
290 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
291 (killer): New. Signal handler to unregister.
292 (main): Use killer. Call svcudp_socket to get the default
295 2002-09-02 Juan Gomez <juang@us.ibm.com>
296 NeilBrown <neilb@cse.unsw.edu.au>
298 Add -N option to statd to run in notify-only mode.
300 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
301 * utils/statd/statd.man: document -N
302 * utils/statd/statd.c: enabled -N, largely exists but needed to be
303 uncommented and completed
305 2002-09-02 Juan Gomez <juang@us.ibm.com>
306 NeilBrown <neilb@cse.unsw.edu.au>
308 statd to have " -P directory" arg to use that directory instead
309 of /var/lib/nfs. This is useful for fail-over clusters.
311 * utils/statd/statd.h: define SM_DIR etc as var, not const.
312 * utils/statd/statd.c: define "-P" option to set SM_*
314 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
316 * utils/statd/notify.c: ditto.
317 * utils/statd/statd.man: document -P option.
319 2002-08-26 Chip Salzenberg <chip@pobox.com>
321 * utils/nfsd/nfsd.man: Fix typo.
322 * debian/changelog: Version 1.0.1-1.
324 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
326 * let parseopts know if /etc/exports was being read or not,
327 and have it only print "no sync or async" warning in that case.
329 2002-05-06 Tom McNeal <trmcneal@attbi.com>
330 NeilBrown <neilb@cse.unsw.edu.au>
332 * utils/nfsstat/nfsstat.c: Handle differing format for
333 /proc/net/rpc/nfsd between pre and post 2.4.0
335 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
336 James Pearson <james-p@moving-picture.com>
338 * support/nfs/rmtab.c(fendrmtabent): sync changes to
339 storage before returning, as this is critical state
341 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
342 H.J. Lu <hjl@lucon.org>
344 * etc/redhat/nfs: New.
346 2002-04-08 H.J. Lu <hjl@lucon.org>
348 * etc/redhat/nfs.init: Updated.
350 * nfs-utils.spec.in: Updated.
351 * nfs-utils.spec: Regenerated.
353 * utils/mountd/mountd.c (longopts): Fix a typo.
355 * utils/mountd/mountd.man: Updated.
357 2002-04-07 H.J. Lu <hjl@lucon.org>
359 * etc/redhat/nfslock.init (restart): Just do stop and start.
361 * etc/redhat/nfs.init: Fix a typo.
363 2002-04-07 H.J. Lu <hjl@lucon.org>
365 * configure.in (VERSION): Set to "1.0.1".
366 * configure: Regenerated.
367 * nfs-utils.spec: Likewise.
369 * README: Updated for 1.0.1.
371 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
372 H.J. Lu <hjl@lucon.org>
374 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
376 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
377 NeilBrown <neilb@cse.unsw.edu.au>
379 Add support for fsid=nn export option so that device
380 numbers don't go in filehandles.
381 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
382 is set, pass the fsid in-place of the device number
383 * support/nfs/exports.c: parse and print fsid= option.
384 Also check if efname has been set, and use "command line"
385 instead in error messages.
386 Also, use strtol instead of atoi for anon[ug]id= so that
387 bad numbers cause errors.
389 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
390 NeilBrown <neilb@cse.unsw.edu.au>
392 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
393 flag so that "sync" becomes the default.
394 Check that either "sync" or "async" is given as an option
395 and warn if neither are present
396 * utils/exportfs/exports.man: change documentation for "sync"
397 to be documentation for "async".
398 * utils/exportfs/exportfs.man: note that "sync" is the default
402 2002-01-02 Chip Salzenberg <chip@pobox.com>
404 * support/export/nfsctl.c (expsetup): Don't export entries that
405 specify id mappings not supported by the kernel. No extant kernel
406 supports any significant mapping, only 'identity' (i.e. none).
407 When other mappings are supported, this code will need changing.
408 * debian/changelog: Version 1.0-2.
410 2001-12-26 Chip Salzenberg <chip@pobox.com>
412 * nfs-utils.spec (Version): Set to "1.0".
413 * configure.in (VERSION): Likewise.
414 * configure: Regenerated.
416 * debian/changelog: Version 1.0-1.
418 * utils/exportfs/exports.man: Emphasize the need for options to
419 immediately follow client names. Explain that wildcards don't
420 usually work on addresses, but may work when reverse DNS fails.
421 Comment out a leftover TP that was TPing our indentation.
422 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
423 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
424 * debian/changelog: Version 0.3.3-6.
426 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
428 * support/export/client.c(client_lookup): If a host has multiple
429 IP addresses, then we must always use the result of a
430 gethostbyname, not that of gethostbyaddr for exporting
432 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
434 * support/export/client.c (client_lookup): use strcasecmp when
436 * support/nfs/export.c (getexportent): add fromkernel arg and use
437 different defaults as kernels prior to 2.4.11 assume different
438 defaults in /proc/fs/nfs/exports
439 * support/include/nfslib.h, support/export/export.c,
440 support/export/xtab.c: support extra "fromkernel" arg for
443 2001-12-13 Chip Salzenberg <chip@pobox.com>
445 * debian/changelog: Version 0.3.3-5.
447 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
449 * support/nfs/xio.c (xskip): Call `xungetc' instead of
450 `ungetc' to keep x_line more properly.
452 2001-11-26 Chip Salzenberg <chip@pobox.com>
454 * utils/showmount/showmount.c (main): Don't assume that strings
455 starting with digits are IP addresses.
456 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
457 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
458 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
459 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
460 man pages: We check host names *and* addresses with tcpwrappers.
461 * debian/changelog: Version 0.3.3-4.
463 2001-11-21 Chip Salzenberg <chip@pobox.com>
465 * support/nfs/clients.c (cfname): Added: current clients file name.
466 (setnfsclntent): Set it.
467 ({get,end}nfsclntent, syntaxerr): Use it.
468 * support/nfs/exports.c (efname): Added: current exports file name.
469 (setnfsexportent): Set it.
470 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
471 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
472 * debian/changelog: Version 0.3.3-3.
474 2001-10-11 Chip Salzenberg <chip@pobox.com>
476 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
477 * debian/changelog: Version 0.3.3-2.
479 2001-10-08 Chip Salzenberg <chip@pobox.com>
481 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
482 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
483 * utils/mountd/mountd.man: Update paths to /var/lib.
484 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
486 2001-10-06 Preston Brown <pbrown@redhat.com>
488 * utils/nfsstat/nfsstat.man: Updated.
490 2001-09-24 H.J. Lu <hjl@lucon.org>
492 * configure.in (VERSION): Set to "0.3.3".
493 * configure: Regenerated.
494 * nfs-utils.spec: Likewise.
496 * README: Updated for 0.3.3.
498 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
500 Arrange that "exportfs -au" never does DNS lookup:
502 * support/export/client.c (client_lookup) : add "canonical"
503 flag which says that the hostname is known to be canonical, so
506 * support/export/export.c (export_create) : add "canonical"
507 flag to be passed down to client_lookup
508 * support/export/export.c (export_lookup) : Likewise
510 * support/export/xtab.c (xtab_read) : pass appropriate
511 "canonical" flag to export_lookup and export_create:
512 set if reading list of filesystems currently exports
515 * support/export/export.c (export_read) : pass 0 as
516 "canonical" flag to export_lookup and export_create
517 * support/export/rmtab.s (rmtab_read) : Likewise
519 * support/include/exportfs.h : redeclare various routines
520 to have "canonical" flag
522 * utils/exportfs/exportfs.c (main) : redo logic for
523 "-au" to read in what is currently exported, but never even
524 look at what "should" be exported.
526 * utils/exportfs/exportfs.c (unexportall) : remove this
527 routine. Functionality is completely included in
530 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
531 flag to zero in calls to export_lookup and export_create.
534 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
535 Anne Milicia <milicia@missioncriticallinux.com>
537 * support/export/client.c (client_lookup) call gethostbyadd
538 to make sure that we have a canonical hostname, even for
540 * utils/exportfs/exportfs.c (exportfs) Likewise
542 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
544 * support/nfs/exports.c (putexportent): \octal quote any spaces
546 * support/nfs/xio.c (xgettok): recognise double-quote and
547 \octal quoting in path names
548 * utils/exportfs/exports.man: document quoting conventions
551 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
553 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
554 change from 2000-08-02: It causes problems if someone exports
555 to both a hostname and IP addresses. nfs-utils must be
556 consistant about the canonical name that it chooses.
558 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
559 H.J. Lu <hjl@lucon.org>
561 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
563 * utils/statd/statd.c (longopts): Add "name".
564 (usage): Add "-n/--name".
565 (main): Set MY_NAME with "-n/--name".
567 * utils/statd/state.c (change_state): Set MY_NAME only if it
570 * utils/statd/statd.man: Updated for "-n/--name".
572 2001-07-26 H.J. Lu <hjl@lucon.org>
574 * nfs-utils.spec (Release): Set to 8.
576 2001-07-25 H.J. Lu <hjl@lucon.org>
578 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
581 2001-06-27 H.J. Lu <hjl@lucon.org>
583 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
585 2001-06-27 H.J. Lu <hjl@lucon.org>
587 * utils/rquotad/rquota_server.c: Don't call statfs () for
588 the block size. Use BLOCK_SIZE instead.
590 2001-06-27 H.J. Lu <hjl@lucon.org>
592 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
593 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
595 * configure.in (enable_nfsv3): Set to yes by default.
596 (--enable-rquotad): Added
597 (AC_PROG_CXX): Removed.
598 (AC_OUTPUT): Add utils/Makefile.
599 (CC_FOR_BUILD): Renamed from BUILD_CC.
600 * configure: Regenerated.
602 * utils/Makefile: Removed.
604 * utils/Makefile.in: New.
606 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
608 (CC_FOR_BUILD): Renamed from BUILD_CC.
609 * nfs-utils.spec: Regenerated.
611 2001-06-15 Chip Salzenberg <chip@debian.org>
613 * debian/changelog: Version 0.3.2-2.
614 * debian/*.init: Minor fixes.
616 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
618 * etc/nodist/nfs-server: Fixed a bug where the script would
619 disable mounts from NFSv3 clients if NFSv3 is present.
621 2001-06-05 H.J. Lu <hjl@lucon.org>
623 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
624 (main): Support --descriptors/-o to set the limit of the number
625 of open file descriptors.
628 * utils/mountd/mountd.man: Updated for --descriptors/-o.
630 2001-06-04 H.J. Lu <hjl@lucon.org>
632 * nfs-utils.spec (Release): Set to 6.
634 2001-05-28 H.J. Lu <hjl@lucon.org>
636 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
637 * utils/mountd/mountd.c (main): Likewise.
638 * utils/nfsd/nfsd.c (main): Likewise.
639 * utils/rquotad/rquota_svc.c (main): Likewise.
641 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
643 * support/export/client.c (client_check): Check IP address
646 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
648 * support/export/client.c (client_gettype): Treat `*' as
651 2001-04-22 H.J. Lu <hjl@lucon.org>
653 * nfs-utils.spec.in: Fix a typo.
654 * nfs-utils.spec: Regenerated.
656 2001-04-21 H.J. Lu <hjl@lucon.org>
658 * nfs-utils.spec.in: Fix cross build.
659 * nfs-utils.spec: Regenerated.
662 2001-04-18 H.J. Lu <hjl@lucon.org>
664 * nfs-utils.spec.in: Support cross build.
665 * nfs-utils.spec: Regenerated.
671 * config.mk.in (BUILD_CC): New.
672 (CC): Set to $(BUILD_CC) if BUILD is defined.
675 (RANLIB): Set to @RANLIB@.
677 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
678 * configure: Regenerated.
680 * tools/rpcgen/Makefile (BUILD): Set to true.
682 2001-04-01 Chip Salzenberg <chip@valinux.com>
684 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
685 redundant, and sometimes broken, declaration of svc_fdset;
687 * support/nfs/rpcmisc.c (closedown): Likewise.
689 2001-03-21 H.J. Lu <hjl@lucon.org>
691 * nfs-utils.spec: Regenerated.
694 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
696 * utils/statd/statd.c (main): make sure file descriptors 0-2
697 are open to /dev/null.
699 2001-03-21 H.J. Lu <hjl@lucon.org>
701 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
702 * support/nfs/rpcmisc.c: Likewise.
703 * utils/rquotad/rquota_svc.c: Likewise.
704 * utils/rquotad/rquotad.man: Likewise.
705 * utils/statd/Makefile: Likewise.
706 * utils/statd/rmtcall.c: Likewise.
707 * utils/statd/simulate.c: Likewise.
708 * utils/statd/statd.c: Likewise.
709 * utils/statd/statd.man: Likewise.
711 2001-03-11 H.J. Lu <hjl@lucon.org>
713 * configure.in (RELEASE): New. Default to 1, set by
714 --with-release=XXX. Substitute nfs-utils.spec.
715 * nfs-utils.spec.in (Release): Set to @RELEASE@.
716 * configure: Regenerated.
717 * nfs-utils.spec: Likewise.
719 2001-03-11 H.J. Lu <hjl@lucon.org>
721 * utils/rquotad/rquotad.man: Fix a typo.
723 2001-03-11 H.J. Lu <hjl@lucon.org>
725 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
726 * support/nfs/rpcmisc.c: Likewise.
727 * utils/rquotad/rquota_svc.c: Likewise.
728 * utils/rquotad/rquotad.man: Likewise.
729 * utils/statd/Makefile: Likewise.
730 * utils/statd/rmtcall.c: Likewise.
731 * utils/statd/simulate.c: Likewise.
732 * utils/statd/statd.c: Likewise.
733 * utils/statd/statd.man: Likewise.
735 2001-03-10 H.J. Lu <hjl@lucon.org>
737 * configure.in (VERSION): Set to "0.3.2".
738 * configure: Regenerated.
739 * nfs-utils.spec: Likewise.
741 * README: Updated for 0.3.2.
743 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
745 * utils/rquotad/rquotad.man: Updated for -p.
746 * utils/statd/statd.man: Likewise.
748 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
750 * support/nfs/rpcmisc.c: export makesock()
752 * support/include/rpcmisc.h (makesock): Declared.
754 * utils/rquotad/rquota_svc.c: added longopts, added support for
755 specifying the port to bind to on the command line.
757 * utils/statd/statd.c: ditto, also specify port used for
758 outgoing connections.
759 (do_regist): Removed.
761 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
762 get_socket. Make it extern.
764 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
765 instead of do_regist.
767 * utils/statd/Makefile (LIBS): link with our own libnfs
769 2001-03-09 H.J. Lu <hjl@lucon.org>
771 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
772 * etc/nodist/nfs-client: Likewise.
774 2001-02-26 Chip Salzenberg <chip@valinux.com>
776 * debian/changelog: Version 0.3.1-1.
777 * Mention upstream source and license in copyright file.
778 * Add build-Depends for debhelper and libwrap0-dev.
780 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
782 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
783 * etc/nodist/nfs-client: Likewise.
785 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
787 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
790 2001-02-17 Patrick J. LoPresti <patl@curl.com>
792 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
795 2001-02-14 H.J. Lu <hjl@lucon.org>
797 * utils/statd/rmtcall.c: Include <time.h>.
798 * utils/statd/svc_run.c: Likewise.
800 2001-02-14 H.J. Lu <hjl@lucon.org>
802 * configure.in (VERSION): Set to "0.3.1".
803 * configure: Regenerated.
804 * nfs-utils.spec: Likewise.
806 * README: Updated for 0.3.1.
808 2001-02-14 H.J. Lu <hjl@lucon.org>
810 * support/nfs/rpcmisc.c: Include <time.h>.
812 2001-02-14 Chip Salzenberg <chip@valinux.com>
814 * debian/control: Change priority of nhfsstone package to 'extra'.
816 2001-02-12 Chip Salzenberg <chip@valinux.com>
818 * debian/changelog: Version 0.3-2.
820 2001-02-02 H.J. Lu <hjl@lucon.org>
822 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
824 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
825 out SO_SNDBUF/SO_RCVBUF.
826 (rpc_init): Remove bufsize and remove socksz in calls to
829 * utils/mountd/mountd.c (main): Remove bufsize in calls to
832 2001-01-28 Chip Salzenberg <chip@valinux.com>
834 * debian/changelog: Version 0.3-1.
836 2001-01-25 H.J. Lu <hjl@lucon.org>
838 * configure.in (VERSION): Set to "0.3".
839 * configure: Regenerated.
840 * nfs-utils.spec: Likewise.
842 * README: Updated for 0.3.
844 2001-01-25 H.J. Lu <hjl@lucon.org>
846 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
848 2001-01-20 Chip Salzenberg <chip@valinux.com>
850 * support/include/xio.h (xgetc): Declare to return int.
851 * support/nfs/xio.c (xgetc): Return int.
852 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
853 * utils/statd/statd.c (main): Use int for value of getopt.
854 * debian/changelog: Version 0.2.1-5.
856 2000-12-10 Chip Salzenberg <chip@valinux.com>
858 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
859 program and procedure numbers of kernel lockd's callback. Also,
860 besides the old (and broken) procedure #24, allow #16 per Trond.
862 2000-12-03 Chip Salzenberg <chip@valinux.com>
864 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
865 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
866 * debian/changelog: Version 0.2.1-4.
868 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
870 * utils/mountd/auth.c (auth_authenticate): Log the bad path
873 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
875 * support/nfs/exports.c (getexportent): Check for host name
876 without option, or options without hostname, and print a warning,
877 as this is most likely a typo.
879 2000-11-19 Chip Salzenberg <chip@valinux.com>
881 * debian/control: Add dependency on portmap.
882 * debian/changelog: Version 0.2.1-3.
884 2000-11-10 H.J. Lu <hjl@lucon.org>
886 * nfs-utils.spec.in: Don't use libtool.
887 Add ChangeLog and COPYING to doc.
888 * nfs-utils.spec: Rebuild.
890 2000-11-09 H.J. Lu <hjl@lucon.org>
892 * etc/redhat/nfs.init (start): Back out the last change.
894 2000-11-09 H.J. Lu <hjl@lucon.org>
896 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
897 TCP is not supported by kernel.
899 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
901 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
902 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
904 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
906 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
908 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
909 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
910 callbacks to local lockd.
912 2000-10-18 Scott McDermott <mcdermot@questra.com>
914 * utils/exportfs/exports.man: Updated for CIDR netmask.
916 2000-10-17 Scott McDermott <mcdermot@questra.com>
918 * support/export/client.c (client_init): Support CIDR netmask
921 2000-10-11 H.J. Lu <hjl@lucon.org>
923 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
924 * configure: Rebuilt.
926 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
928 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
929 "/var/lib/nfs/state".
931 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
933 * utils/statd/statd.h (run_mode): New global bitmask of runtime
934 behaviors: fg/bg, logging, etc.
935 * utils/statd/statd.c: New command line options: -V -h -? -d .
936 * utils/statd/statd.man: Update for changes to statd.
938 * utils/statd/log.h (log_init): Remove parameter of function; use
939 global variable "name_p" instead.
940 * utils/statd/log.c: Add support for logging to stderr.
942 * utils/statd/notlist.c: Partially rewrite notify list handling
943 functions. Eliminate run-off-end-of-list bug when calling
944 nlist_insert_timer. Add lots of comments.
946 2000-09-27 H.J. Lu <hjl@lucon.org>
948 * README: Updated for RedHat 7.0.
950 2000-09-27 H.J. Lu <hjl@lucon.org>
952 * nfs-utils.spec: Rebuild.
954 2000-09-27 H.J. Lu <hjl@lucon.org>
956 * README: Updated for 0.2.1.
958 2000-09-27 H.J. Lu <hjl@lucon.org>
960 * nfs-utils.spec.in: Updated to use rpm macros and support
963 2000-09-25 H.J. Lu <hjl@lucon.org>
965 * configure.in (VERSION): Set to "0.2.1".
966 * configure: Regenerated.
967 * nfs-utils.spec: Updated.
969 2000-09-25 H.J. Lu <hjl@lucon.org>
971 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
972 non-NULL hostent is always returned.
974 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
976 * etc/redhat/nfslock.init: don't kill lockd processes that do not
977 have an executable (i.e. kernel threads)
979 2000-09-01 H.J. Lu <hjl@lucon.org>
981 * README: Updated for 0.2.
983 2000-09-01 Jay Weber <jweber@valinux.com>
985 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
986 supporting version 3 of nfs if available, else it will fall back to
987 version 2 support only.
989 2000-08-30 H.J. Lu <hjl@lucon.org>
991 * configure.in (VERSION): Set to "0.2".
992 * configure: Regenerated.
993 * nfs-utils.spec: Updated.
995 2000-08-25 H.J. Lu <hjl@lucon.org>
997 * support/misc/tcpwrapper.c (logit): Modify the log output.
999 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1001 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1002 utils/mountd/mountd.man: updated
1004 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1005 * utils/rquotad/Makefile: fix comment
1007 * support/misc/tcpwrapper.c (logit): added comment about waiting
1008 for the children after fork()
1010 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1011 zombies behind (from logit()'s fork)
1012 * utils/rquotad/rquota_svc.c (main): ditto
1013 * utils/statd/statd.c (main): ditto
1015 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1016 to check_default instead of 0, for prognum
1018 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1019 to check_default instead of 0, for prognum
1021 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1022 HAVE_TCP_WRAPPER is defined.
1023 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1024 defined. Reject an RPC call if check_default () fails.
1026 2000-08-25 H.J. Lu <hjl@lucon.org>
1028 * support/include/tcpwrapper.h: New for the tcp wrapper
1030 * support/misc/Makefile: Likewise.
1031 * support/misc/from_local.c: Likewise.
1032 * support/misc/tcpwrapper.c: Likewise.
1034 * aclocal.m4 (AC_TCP_WRAPPER): New.
1035 * configure.in: Use it. Substitute LIBWRAP.
1036 * configure: Rebuilt.
1038 * config.mk.in (LIBNSL): New.
1039 (LIBWRAP): Likewise.
1041 * support/Makefile (SUBDIRS): Add misc.
1043 * support/lib/Makefile (LIBS): Add libmisc.a.
1045 * utils/rquotad/Makefile (LIBS): Add
1047 -lmisc $(LIBWRAP) $(LIBNSL)
1049 * utils/statd/Makefile (LIBS): Likewise.
1051 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1052 HAVE_TCP_WRAPPER is defined.
1053 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1054 defined. Reject an RPC call if check_default () fails.
1056 * utils/statd/statd.c: Include "tcpwrapper.h" if
1057 HAVE_TCP_WRAPPER is defined.
1058 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1059 check_default () before calling sm_prog_1 (). Define it as
1060 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1062 2000-08-25 Chip Salzenberg <chip@valinux.com>
1064 * debian/*: Complete Debian build support.
1065 * etc/debian/*: Remove.
1067 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1069 * support/export/client.c(client_check): removed the "dot+1" as a
1070 ypdomain argument to innetgr as this is entirely bogus.
1071 It should always be NULL.
1073 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1075 * support/export/xtab.c(xtab_read): introduce new mode for
1076 reading xtab. i.e. a list of exports that might be known to the
1077 kernel, or might not. These are flagged as m_exported == -1
1078 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1079 value "2" for xtab, meaning don't trust this too much.
1080 * support/include/exportfs.h(struct mexport): changed m_exported
1081 from one bit to an int so that it can hold new value
1082 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1083 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1084 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1087 * support/nfs/xio.c(xflock): added O_CREAT when getting
1088 a write lock so that missing files aren't fatal.
1090 * etc/debian/nfs-common: new file from "potato"
1091 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1093 2000-08-09 H.J. Lu <hjl@lucon.org>
1095 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1096 startup to ensure all existing clients work fine.
1098 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1099 to xtab_read () for reading _PATH_XTAB.
1101 2000-08-02 H.J. Lu <hjl@lucon.org>
1103 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1104 avoid the reverse name lookup.
1106 2000-07-04 H.J. Lu <hjl@lucon.org>
1108 * utils/statd/log.c: Include <stdlib.h> for exit ().
1110 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1113 2000-07-04 H.J. Lu <hjl@lucon.org>
1115 * configure.in (VERSION): Set to "0.1.9.1".
1116 * configure: Regenerated.
1117 * nfs-utils.spec: Updated.
1121 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1123 * support/export/hostname.c (hostent_dup): Handle the NULL
1126 2000-07-03 H.J. Lu <hjl@lucon.org>
1128 * README: Update the util-linux requirement.
1130 2000-07-03 H.J. Lu <hjl@lucon.org>
1132 * configure.in (VERSION): Set to "0.1.9".
1133 * configure: Regenerated.
1134 * nfs-utils.spec: Updated.
1138 2000-07-03 H.J. Lu <hjl@lucon.org>
1140 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1141 stop to ensure all clients can still access the server
1142 before it is shutdown.
1144 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1146 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1147 calls with format string.
1149 2000-06-28 Chip Salzenberg <chip@valinux.com>
1151 * utils/statd/log.c (log): Call syslog with format string.
1153 2000-06-27 H.J. Lu <hjl@lucon.org>
1155 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1156 instead of OPEN_MAX.
1158 2000-06-27 H.J. Lu <hjl@lucon.org>
1162 2000-06-27 H.J. Lu <hjl@lucon.org>
1164 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1165 startup to ensure all existing clients are exported.
1167 * configure.in (VERSION): Set to "0.1.8.2".
1168 * configure: Regenerated.
1169 * nfs-utils.spec: Updated.
1171 2000-06-06 H.J. Lu <hjl@lucon.org>
1173 * configure.in (VERSION): Set to "0.1.8.1".
1174 * configure: Regenerated.
1175 * nfs-utils.spec: Updated.
1177 2000-06-06 H.J. Lu <hjl@lucon.org>
1179 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1180 to "struct sockaddr_in *" for glibc 2.2.
1181 (mount_umnt_1_svc): Likewise.
1182 (mount_umntall_1_svc): Likewise.
1183 (mount_export_1_svc): Likewise.
1184 (mount_exportall_1_svc): Likewise.
1185 (mount_pathconf_2_svc): Likewise.
1186 (get_rootfh): Likewise.
1188 2000-06-04 H.J. Lu <hjl@lucon.org>
1190 * etc/redhat/nfs.init: Fix a typo in comment.
1192 2000-05-31 H.J. Lu <hjl@lucon.org>
1194 * configure.in (VERSION): Set to "0.1.8".
1195 * configure: Regenerated.
1196 * nfs-utils.spec: Updated.
1200 2000-05-31 H.J. Lu <hjl@lucon.org>
1202 * configure.in (VERSION): Set to "0.1.7.5".
1203 * configure: Regenerated.
1204 * nfs-utils.spec: Updated.
1206 * support/include/nfslib.h (exportent): Add a new field,
1207 r_count, to count the number of mounts from a client.
1208 (getrmtabent): Take a new argument for position in file.
1209 (putrmtabent): Likewise.
1210 (fgetrmtabent): Likewise.
1211 (fputrmtabent): Likewise.
1212 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1213 for position in file.
1214 (fgetrmtabent): Likewise.
1215 (putrmtabent): Likewise.
1216 (fputrmtabent): Likewise.
1218 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1221 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1222 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1223 and fputrmtabent ().
1224 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1225 (mountlist_del): Likewise.
1226 (mountlist_del_all): Likewise.
1227 (mountlist_list): Likewise.
1229 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1230 for the existing entry and initialize "r_count" to 1.
1231 (mountlist_del): Decrement "r_count".
1233 2000-05-18 H.J. Lu <hjl@lucon.org>
1235 * configure.in (VERSION): Set to "0.1.7.4".
1236 * configure: Regenerated.
1237 * nfs-utils.spec: Updated.
1239 2000-05-18 H.J. Lu <hjl@lucon.org>
1241 * etc/redhat/nfs.init (restart): Just do stop and start.
1243 2000-05-09 Jay Weber <jweber@valinux.com>
1245 * utils/rquotad/hasquota.c: added support for ext3 recognition
1247 * utils/rquotad/mntent.h: Likewise.
1249 2000-05-01 H.J. Lu <hjl@lucon.org>
1251 * configure.in (VERSION): Set to "0.1.7.3".
1252 * configure: Regenerated.
1253 * nfs-utils.spec: Updated.
1255 2000-05-01 H.J. Lu <hjl@lucon.org>
1257 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1258 mounting poins in /etc/fstab.
1260 2000-05-01 H.J. Lu <hjl@lucon.org>
1262 * configure.in (VERSION): Set to "0.1.7.2".
1263 * configure: Regenerated.
1264 * nfs-utils.spec: Updated.
1266 2000-05-01 H.J. Lu <hjl@lucon.org>
1268 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1269 to check for the mounting point.
1271 2000-04-29 Chip Salzenberg <chip@valinux.com>
1272 Neil Brown <neilb@cse.unsw.edu.au>
1274 * Really re-use RPC ports.
1275 (Fixes earlier patch. Sorry, Neil.)
1277 2000-04-26 H.J. Lu <hjl@lucon.org>
1279 * configure.in (VERSION): Set to "0.1.7.1".
1280 * configure: Regenerated.
1281 * nfs-utils.spec: Updated.
1283 2000-04-26 H.J. Lu <hjl@lucon.org>
1285 * etc/redhat/nfslock.init: Check if lockd exits before killing
1288 2000-04-25 H.J. Lu <hjl@lucon.org>
1290 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1292 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1294 * support/nfs/exports.c (parsesquash): Correctly set the
1297 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1299 * support/include/nfs/nfs.h: Removed knowledge of internals of
1300 kernel filehandles (which can change) and defined nfs_fh_size
1301 which has variable size
1303 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1304 get variable sized file handles, and change getfh{,old} to
1307 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1310 * tools/Makefile, tools/nlmtest/nlmtest.c
1311 nlmtest.c depended on internel format of file handles, so now
1315 2000-03-12 Chip Salzenberg <chip@valinux.com>
1316 Neil Brown <neilb@cse.unsw.edu.au>
1318 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1320 2000-03-13 H.J. Lu <hjl@lucon.org>
1322 * etc/redhat/nfsd.init: Updated.
1324 * etc/redhat/nfslock.init: Updated.
1326 * nfs-utils.spec.in: Updated.
1328 * configure.in (VERSION): Set to "0.1.7".
1329 * configure: Regenerated.
1330 * nfs-utils.spec: Updated.
1334 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1336 * utils/exportfs/exportfs.c (dump): Included printing of
1337 nohide, no_subtree_check, and insecure_locks
1339 2000-02-26 Chip Salzenberg <chip@valinux.com>
1341 * config.mk.in (INSTALLSUID): Strip ("-s").
1342 (INSTALLSCRIPT): Define.
1343 * utils/nhfsstone/Makefile: Use it.
1345 2000-02-26 Chip Salzenberg <chip@valinux.com>
1347 * utils/lockd/lockd.man: Create.
1348 * utils/lockd/Makefile: Install it.
1349 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1350 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1351 * utils/nhfsstone/Makefile: Install the helper scripts and
1353 * utils/exportfs/exports.man: Fix typo.
1355 2000-02-26 Chip Salzenberg <chip@valinux.com>
1357 * support/nfs/xio.c (xungetc): Decrement line number when
1358 character to unget is newline. Make first parameter int, so
1359 it can distinguish EOF from \377.
1360 * support/include/xio.h (xungetc): Adjust prototype.
1362 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1364 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1365 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1366 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1368 This is for supporting a new option introduced in 2.3.42
1370 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1372 * COPYING: Added. GPL.
1374 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1376 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1377 to get the block size.
1379 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1381 * nfs-utils.spec.in: Update ftp site.
1383 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1385 * README: Update hostnames.
1387 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1389 * configure.in (VERSION): Set to "0.1.6".
1390 * configure: Regenerated.
1391 * nfs-utils.spec: Updated.
1395 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1397 * utils/mountd/auth.c (auth_authenticate_internal): Call
1398 xstrdup for hostname before passing it to gethostbyname.
1400 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1403 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1405 * README: Update the mailing list address.
1407 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1409 * configure.in (VERSION): Set to "0.1.5".
1410 * configure: Regenerated.
1411 * nfs-utils.spec: Updated.
1415 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1417 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1420 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1422 * configure.in (VERSION): Set to "0.1.4".
1423 * configure: Regenerated.
1424 * nfs-utils.spec: Updated.
1428 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1430 * nfs-utils.spec.in: New file.
1432 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1434 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1436 1999-12-04 Chip Salzenberg <chip@valinux.com>
1438 * config.mk.in: Use $(CC) as set by configure.
1440 1999-12-04 Chip Salzenberg <chip@valinux.com>
1442 * rules.mk: Call $(MAKE) with $(MFLAGS).
1444 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1446 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1447 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1449 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1451 * nfs-utils.spec (Version): Set to 0.1.3.
1453 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1454 * configure: Regenerated.
1458 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1460 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1461 (_PATH_DEV_DSK): Likewise.
1462 (getquotainfo): Match the mounting point from /etc/mtab
1463 instead of calling nfsmount_to_devname ().
1465 1999-11-24 Chip Salzenberg <chip@valinux.com>
1467 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1468 to the new port 24 as well as the historical port 100021.
1470 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1472 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1473 stopping nfsd to stop spurious ESTALE on server shutdown.
1475 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1477 * support/nfs/exports.c (parseopts): make copy of opt string
1478 before 'nul'ing out commas so that
1480 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1482 applies both options to both exports.
1484 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1486 * README: Fix a few typos.
1488 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1490 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1491 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1492 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1493 (unsigned_dec): Likewise.
1494 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1495 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1497 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1499 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1500 (unsigned_dec): Likewise.
1501 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1502 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1503 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1505 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1507 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1508 * support/nfs/exports.c: added {no_,}subtree_check and changed
1510 * utils/exportfs/exports.man: added no_subtree_check and nohide
1511 and removed irrelevant stuff from unfsd.
1512 * support/export/rmtab.c: rmtab_read didn't quite do the right
1513 thing if a pathname from rmtab was a subdirectory of an export-point
1515 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1517 * README: Updated ftp site.
1519 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1521 * nfs-utils.spec (Version): Set to 0.1.2.
1523 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1524 * configure: Regenerated.
1528 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1530 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1531 (auth_authenticate_internal): Check for NULL return on forward
1533 (auth_authenticate): Handle "no_forward_dns".
1535 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1537 * Version 0.1.1 released.
1539 * nfs-utils.spec (Version): Set to 0.1.1.
1541 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1542 * configure: Regenerated.
1546 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1548 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1550 (Provides): Likewise.
1552 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1554 * Initial version 0.1 released.
1556 * configure.in (VERSION): Set to "nfs-utils 0.1".
1557 * configure: Regenerated.
1559 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1561 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1563 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1564 kernel only if the entry is exported to kernel.
1565 (unexportfs): Likewise.
1567 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1569 1/ utils/mountd/rmtab.c::mountlist_list
1571 This routine stats the rmtab file to see if it has changed. It
1572 if has, it cleans up it's old copy of the data. But it still
1573 always re-read the file, thus returning multiple copies of the
1574 data on consecutive calls without intervening changes.
1575 "Showmount -a" didn't show this as it appears to sort/unique the
1576 data, but 'strace showmount -a' showed that the size of the
1577 datagram that it received grew.
1579 I moved the getrmtabent loop inside the mtime test.
1581 2/ utils/exportfs/exportfs.c
1583 Many routines used the m_path field of m_export instead of
1585 According to the comment in nfslib.h, m_path should only
1586 be used when processing a mount request (i.e. in mountd)
1587 where the mountpoint may be a subdirectory of the export point.
1589 I changed all occurances of m_path to e_path
1592 3/ utils/exportfs/exportfs.c:main
1594 extra arguments are not meaningful with -a or -r, but
1595 exportfs accepted them and then ignored the -a/-r, expect that
1596 -r would still unexport everything first.
1598 I generate an error if there are extra args and f_all
1600 4/ utils/exportfs/exportfs.c:main
1601 extract dump out as a special case.
1603 5/ utils/exportfs/exportfs.c
1604 made f_reexport a local variable.
1607 6/ utils/exportfs/exportfs.c:main,exportall
1609 support/export/rmtab.c
1610 only mayexport on newly created entries, don't set xtabent at all
1612 7/ support/include/nfslib.h
1614 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1616 8/ support/export/xtab.c
1618 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1622 9/ support/export/xtab.c
1624 xtab_mount_read now sets m_exported, and NOT
1625 xtabent and mayexport
1627 removed the append arguement from xtab_write as it was
1630 added is_export flag to xtab_write similar to xtab_read
1631 if is_export, only write entries with m_xtabent or m_addxtab
1632 if !is_export, only write entries with m_exported
1634 10/ support/export/export.c::export_allowed_internal
1636 added test for exp->m_mayexport, as the export tree
1637 may have entries that are no longer allowed to be exported,
1638 and so shouldn't caused deduced exported by rmtab_read
1640 11/ utils/exportfs/exportfs.c::main
1641 error checking of flags.
1643 12/ utils/exportfs/exportfs.c
1645 total rewrite of export and unexport logic.
1647 - build an exportslist of valid exports, based on
1648 current etab file and arguments,
1649 - read rmtab to instantiate relevant wild card entries
1650 - read etab to find out what is currently exported
1651 - synchronise intention with reality
1652 - write out etab and xtab
1655 discard the m_addxtab flag
1656 add m_changed flag so we know what to report in exportfs
1658 14/ utils/mountd/auth.c:auth_authenticate
1660 the value returned by gethostbyaddr was trusted.
1662 It now follows this with a call to gethostbyname
1663 and checks that the address is in the list.
1665 15/ support/export/nfsctl.c::cltsetup,expsetup
1667 force client names to lowercase as kernel is
1670 16/ quietened a few compiler warnings
1672 17/ support/export/client:client_lookup
1674 look for pre-existing client with same name before creating
1677 18/ support/include/exportfs.h
1679 The ordering of the MCL_* enum was:
1680 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1682 I moved ANONYMOUS to the end.
1684 The ordering is significant when an export entry is being searched for to
1685 match a given address. There are two problems with ANONYMOUS being first.
1687 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1688 then the ro case will always be found first and the privileged hosts won't get
1690 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1691 export entry for the specific host, and writes it to xtab.
1692 When another request comes from the same host, the ANONYMOUS entry is found again,
1693 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1694 again. If causes bloat in xtab.
1696 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1698 19/ utils/exportfs/exportfs.man
1699 many updates to the man page to reflect changes to the code
1701 -----------------------
1707 - allow exportfs to modify rmtab file
1708 - make sure kernel never gets two clients with same IP address
1709 - possible kernel should reject
1710 - needs to be some way to lookup client in kernel by IP address
1711 - maybe get kernel to do case-insensitive comparisons on client names
1712 - remove unused clients from kernel
1714 - change etab to xtab and xtab to xtab.active
1716 - timestamp and/or statd-stamp in rmtab for removing old entries.
1718 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1720 * linux-nfs: New directory.
1721 * linux-nfs/ChangeLog: Moved from ..
1722 * linux-nfs/INSTALL: Likewise.
1723 * linux-nfs/KNOWNBUGS: Likewise.
1724 * linux-nfs/NEW: Likewise.
1725 * linux-nfs/README: Likewise.
1726 * linux-nfs/THANKS: Likewise.
1727 * linux-nfs/TODO: Likewise.
1729 * Starting from knfsd 1.4.7.