1 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
2 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
4 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
5 so as to only export the wildcard exports that were asked for.
6 * support/export/export.c(export_allowed): changed to return the
7 nfs_export rather than a "struct exportent", as m_changed is
9 * support/export/rmtab.c(rmtab_read): modified to deal with
10 interface change for export_allowed(), and enhanced to preserve
11 m_changed flag when a wild-card export causes the creation of
12 a non-wildcard export.
14 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
15 Steve Dickson <SteveD@redhat.com>
17 * utils/mountd/mountd.man: Add valid kinds of debugging.
18 * utils/mountd/mountd.c(main): ignore SIGPIPE
19 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
20 we don't get warnings about unavailable stats that weren't asked
23 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
25 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
26 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
27 'forever', so things disappear out of the cache rather than just
30 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
32 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
35 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
37 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
38 etc/redhat/nfs.init: when checking if V3 is supported, make sure
39 nfs server 'knows' about 127.0.0.1 first.
41 2003-06-10 Chip Salzenberg <chip@pobox.com>
43 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
44 * debian/changelog: Version 1.0.3-2.
46 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
47 NeilBrown <neilb@cse.unsw.edu.au>
49 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
50 long long to avoid overflow when printing stats.
52 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
54 * support/export/export.c, support/include/nfslib.h,
55 support/nfs/export.c, utils/exportfs/exportfs.c,
56 utils/mountd/mountd.c: new export option "mountpoint"
57 If no path is given, then the export point must be a
58 mount point, or it won't be exported. If a path is
59 given (e.g. mountpoint=/path) then that path must be
60 a mountpoint or the exportpoint won't be exported.
61 * utils/exportfs/exportfs.man: document mountpoint option.
62 * support/misc/mountpoint.c: New file with is_mountpoint()
63 to determine if something is a mountpoint.
65 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
67 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
68 argument as we might not be getting the filehandle for the
70 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
72 * utils/mountd/mountd.c(get_rootfh): check export point and
73 requested directory are on the same filesystem, and complain if
76 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
78 * utils/mountd/auth.c(auth_authenticate_internal): make sure
79 portnumber is still checked when using new cache lookup.
81 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
83 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
84 Don't actually talk to kernel when new cache is in effect, except
86 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
87 * support/export/xtab.c: Only rename new xtab into place if it has
88 changed, thus preserving modify date for exportfs to use when
90 * support/nfs/cacheio.c: Add cache_flush
91 * support/export/xtab.c: Only rename new xtab into place if it has
92 changed, thus preserving modify date for exportfs to use when
95 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
97 * support/export/client.c: Add client_compose, client_member to
98 handle new composite client names
99 * support/include/exportfs.h: Declare above functions.
100 * utils/mountd/auth.c: use client_compose to determine calling
101 client if new cache is being used.
102 * utils/mountd/auth.c: call cache_export to export a filesystem if
103 new_cache, check if new cache is used, and call my_svc_run instead
105 * utils/mountd/svc_run.c: new file defining my_svc_run
106 * utils/mountd/cache.c: new file for handling cache upcalls.
107 * support/nfs/cacheio.c(check_new_cache): new function to check if
108 new cache should be used.
111 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
113 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
114 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
115 * utils/exportfs/exportfs.c(dump): ditto
117 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
119 * support/export/hostname.c(get_reliable_hostbyaddr): new function
120 to get host name from address with full checking of authenticity.
121 * support/include/misc.h: declare above function
122 * utils/mountd/auth.c(auth_authenticate_internal): remove all
123 logic for authenticating address.
124 * utils/mountd/auth.c(auth_authenticate): call new
125 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
128 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
130 * tools/rpcgen/rpc_main.c(find_cpp): removed
131 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
132 then try hard-coded paths.
134 2003-03-26 Chip Salzenberg <chip@pobox.com>
136 * debian/changelog: Version 1.0.3-1.
138 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
140 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
141 "const char*", not "char*".
143 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
145 * configure.in (VERSION): Set to "1.0.3".
146 * nfs-utils.spec: Likewise.
147 * configure: Regenerated.
149 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
151 * support/nfs/cacheio.c: New File - support for read/writing
152 to export cache in /proc/rpc/*/channel
153 * support/nfs/Makefile: compile cacheio.c
154 * support/include/nfslib.h: declare cacheio.c functions
155 * support/nfs/nfsexport.c: export and unexport through
156 /proc/rpc/*/channel if possible, as old syscall interface
157 may not survive into 2.6 on all architectures.
159 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
160 Ben Leslie <benno@sesgroup.net>
162 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
163 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
164 former would incorectly ignore defport if the application
165 explicitly set __rpcfdtype. The later is sufficient to avoid the
166 special handling in the case where stdin is an internet socket.
168 * utils/mountd/mountd.c(main): Add 'n' to option list in
169 getopt_long as this is a short form of --no-tcp which want being
172 2003-02-12 Chip Salzenberg <chip@pobox.com>
174 * debian/changelog: Version 1.0.2-2.
176 2002-11-27 Chip Salzenberg <chip@pobox.com>
178 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
179 overflow bug. Reformat per rest of source file.
181 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
183 * utils/exportfs/exports.man: Correct notes about whether the wild
184 card characters match a period. They do.
186 2002-10-15 Juan Gomez <juang@us.ibm.com>
188 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
190 (mountlist_add): Call slink_safe_rename instead of rename.
192 2002-10-11 H.J. Lu <hjl@lucon.org>
194 * support/include/exportfs.h (export_errno): New.
196 * support/nfs/exports.c: Include <errno.h>.
198 (getexportent): Set export_errno to EINVAL for bad option.
199 (parseopts): Likewise.
200 Report the location of the default sync/async option.
202 * utils/exportfs/exportfs.c (main): Initialize export_errno to
203 0. Return export_errno.
205 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
206 NeilBrown <neilb@cse.unsw.edu.au>
208 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
209 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
211 2002-09-16 Chip Salzenberg <chip@pobox.com>
213 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
215 2002-09-15 Chip Salzenberg <chip@pobox.com>
217 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
218 socket, as occurs when run from sshd.
219 * debian/changelog: Version 1.0.2-1.
221 2002-09-12 H.J. Lu <hjl@lucon.org>
223 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
226 2002-09-12 H.J. Lu <hjl@lucon.org>
228 * configure.in: Remove checking svctcp_socket and svcudp_socket.
229 * configure: Regenerated.
231 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
232 (HAVE_SVCUDP_SOCKET): Removed.
234 * support/include/nfslib.h: Undo the last change.
236 2002-09-12 H.J. Lu <hjl@lucon.org>
238 * support/include/nfslib.h (svctcp_socket): Protect it with
240 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
242 2002-09-12 H.J. Lu <hjl@lucon.org>
244 * configure.in (VERSION): Set to "1.0.2".
245 * configure: Regenerated.
246 * nfs-utils.spec: Likewise.
248 2002-09-12 H.J. Lu <hjl@lucon.org>
250 * configure.in: Check svctcp_socket and svcudp_socket.
251 * configure: Regenerated.
253 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
254 (HAVE_SVCUDP_SOCKET): New.
256 * support/include/nfslib.h (svctcp_socket): New.
257 (svcudp_socket): New.
259 * support/nfs/Makefile (OBJS): Add svc_socket.o.
261 * support/nfs/svc_socket.c: New.
263 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
264 svcudp_socket if port is unspecified.
266 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
268 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
269 (killer): New. Signal handler to unregister.
270 (main): Use killer. Call svcudp_socket to get the default
273 2002-09-02 Juan Gomez <juang@us.ibm.com>
274 NeilBrown <neilb@cse.unsw.edu.au>
276 Add -N option to statd to run in notify-only mode.
278 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
279 * utils/statd/statd.man: document -N
280 * utils/statd/statd.c: enabled -N, largely exists but needed to be
281 uncommented and completed
283 2002-09-02 Juan Gomez <juang@us.ibm.com>
284 NeilBrown <neilb@cse.unsw.edu.au>
286 statd to have " -P directory" arg to use that directory instead
287 of /var/lib/nfs. This is useful for fail-over clusters.
289 * utils/statd/statd.h: define SM_DIR etc as var, not const.
290 * utils/statd/statd.c: define "-P" option to set SM_*
292 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
294 * utils/statd/notify.c: ditto.
295 * utils/statd/statd.man: document -P option.
297 2002-08-26 Chip Salzenberg <chip@pobox.com>
299 * utils/nfsd/nfsd.man: Fix typo.
300 * debian/changelog: Version 1.0.1-1.
302 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
304 * let parseopts know if /etc/exports was being read or not,
305 and have it only print "no sync or async" warning in that case.
307 2002-05-06 Tom McNeal <trmcneal@attbi.com>
308 NeilBrown <neilb@cse.unsw.edu.au>
310 * utils/nfsstat/nfsstat.c: Handle differing format for
311 /proc/net/rpc/nfsd between pre and post 2.4.0
313 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
314 James Pearson <james-p@moving-picture.com>
316 * support/nfs/rmtab.c(fendrmtabent): sync changes to
317 storage before returning, as this is critical state
319 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
320 H.J. Lu <hjl@lucon.org>
322 * etc/redhat/nfs: New.
324 2002-04-08 H.J. Lu <hjl@lucon.org>
326 * etc/redhat/nfs.init: Updated.
328 * nfs-utils.spec.in: Updated.
329 * nfs-utils.spec: Regenerated.
331 * utils/mountd/mountd.c (longopts): Fix a typo.
333 * utils/mountd/mountd.man: Updated.
335 2002-04-07 H.J. Lu <hjl@lucon.org>
337 * etc/redhat/nfslock.init (restart): Just do stop and start.
339 * etc/redhat/nfs.init: Fix a typo.
341 2002-04-07 H.J. Lu <hjl@lucon.org>
343 * configure.in (VERSION): Set to "1.0.1".
344 * configure: Regenerated.
345 * nfs-utils.spec: Likewise.
347 * README: Updated for 1.0.1.
349 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
350 H.J. Lu <hjl@lucon.org>
352 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
354 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
355 NeilBrown <neilb@cse.unsw.edu.au>
357 Add support for fsid=nn export option so that device
358 numbers don't go in filehandles.
359 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
360 is set, pass the fsid in-place of the device number
361 * support/nfs/exports.c: parse and print fsid= option.
362 Also check if efname has been set, and use "command line"
363 instead in error messages.
364 Also, use strtol instead of atoi for anon[ug]id= so that
365 bad numbers cause errors.
367 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
368 NeilBrown <neilb@cse.unsw.edu.au>
370 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
371 flag so that "sync" becomes the default.
372 Check that either "sync" or "async" is given as an option
373 and warn if neither are present
374 * utils/exportfs/exports.man: change documentation for "sync"
375 to be documentation for "async".
376 * utils/exportfs/exportfs.man: note that "sync" is the default
380 2002-01-02 Chip Salzenberg <chip@pobox.com>
382 * support/export/nfsctl.c (expsetup): Don't export entries that
383 specify id mappings not supported by the kernel. No extant kernel
384 supports any significant mapping, only 'identity' (i.e. none).
385 When other mappings are supported, this code will need changing.
386 * debian/changelog: Version 1.0-2.
388 2001-12-26 Chip Salzenberg <chip@pobox.com>
390 * nfs-utils.spec (Version): Set to "1.0".
391 * configure.in (VERSION): Likewise.
392 * configure: Regenerated.
394 * debian/changelog: Version 1.0-1.
396 * utils/exportfs/exports.man: Emphasize the need for options to
397 immediately follow client names. Explain that wildcards don't
398 usually work on addresses, but may work when reverse DNS fails.
399 Comment out a leftover TP that was TPing our indentation.
400 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
401 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
402 * debian/changelog: Version 0.3.3-6.
404 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
406 * support/export/client.c(client_lookup): If a host has multiple
407 IP addresses, then we must always use the result of a
408 gethostbyname, not that of gethostbyaddr for exporting
410 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
412 * support/export/client.c (client_lookup): use strcasecmp when
414 * support/nfs/export.c (getexportent): add fromkernel arg and use
415 different defaults as kernels prior to 2.4.11 assume different
416 defaults in /proc/fs/nfs/exports
417 * support/include/nfslib.h, support/export/export.c,
418 support/export/xtab.c: support extra "fromkernel" arg for
421 2001-12-13 Chip Salzenberg <chip@pobox.com>
423 * debian/changelog: Version 0.3.3-5.
425 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
427 * support/nfs/xio.c (xskip): Call `xungetc' instead of
428 `ungetc' to keep x_line more properly.
430 2001-11-26 Chip Salzenberg <chip@pobox.com>
432 * utils/showmount/showmount.c (main): Don't assume that strings
433 starting with digits are IP addresses.
434 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
435 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
436 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
437 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
438 man pages: We check host names *and* addresses with tcpwrappers.
439 * debian/changelog: Version 0.3.3-4.
441 2001-11-21 Chip Salzenberg <chip@pobox.com>
443 * support/nfs/clients.c (cfname): Added: current clients file name.
444 (setnfsclntent): Set it.
445 ({get,end}nfsclntent, syntaxerr): Use it.
446 * support/nfs/exports.c (efname): Added: current exports file name.
447 (setnfsexportent): Set it.
448 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
449 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
450 * debian/changelog: Version 0.3.3-3.
452 2001-10-11 Chip Salzenberg <chip@pobox.com>
454 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
455 * debian/changelog: Version 0.3.3-2.
457 2001-10-08 Chip Salzenberg <chip@pobox.com>
459 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
460 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
461 * utils/mountd/mountd.man: Update paths to /var/lib.
462 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
464 2001-10-06 Preston Brown <pbrown@redhat.com>
466 * utils/nfsstat/nfsstat.man: Updated.
468 2001-09-24 H.J. Lu <hjl@lucon.org>
470 * configure.in (VERSION): Set to "0.3.3".
471 * configure: Regenerated.
472 * nfs-utils.spec: Likewise.
474 * README: Updated for 0.3.3.
476 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
478 Arrange that "exportfs -au" never does DNS lookup:
480 * support/export/client.c (client_lookup) : add "canonical"
481 flag which says that the hostname is known to be canonical, so
484 * support/export/export.c (export_create) : add "canonical"
485 flag to be passed down to client_lookup
486 * support/export/export.c (export_lookup) : Likewise
488 * support/export/xtab.c (xtab_read) : pass appropriate
489 "canonical" flag to export_lookup and export_create:
490 set if reading list of filesystems currently exports
493 * support/export/export.c (export_read) : pass 0 as
494 "canonical" flag to export_lookup and export_create
495 * support/export/rmtab.s (rmtab_read) : Likewise
497 * support/include/exportfs.h : redeclare various routines
498 to have "canonical" flag
500 * utils/exportfs/exportfs.c (main) : redo logic for
501 "-au" to read in what is currently exported, but never even
502 look at what "should" be exported.
504 * utils/exportfs/exportfs.c (unexportall) : remove this
505 routine. Functionality is completely included in
508 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
509 flag to zero in calls to export_lookup and export_create.
512 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
513 Anne Milicia <milicia@missioncriticallinux.com>
515 * support/export/client.c (client_lookup) call gethostbyadd
516 to make sure that we have a canonical hostname, even for
518 * utils/exportfs/exportfs.c (exportfs) Likewise
520 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
522 * support/nfs/exports.c (putexportent): \octal quote any spaces
524 * support/nfs/xio.c (xgettok): recognise double-quote and
525 \octal quoting in path names
526 * utils/exportfs/exports.man: document quoting conventions
529 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
531 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
532 change from 2000-08-02: It causes problems if someone exports
533 to both a hostname and IP addresses. nfs-utils must be
534 consistant about the canonical name that it chooses.
536 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
537 H.J. Lu <hjl@lucon.org>
539 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
541 * utils/statd/statd.c (longopts): Add "name".
542 (usage): Add "-n/--name".
543 (main): Set MY_NAME with "-n/--name".
545 * utils/statd/state.c (change_state): Set MY_NAME only if it
548 * utils/statd/statd.man: Updated for "-n/--name".
550 2001-07-26 H.J. Lu <hjl@lucon.org>
552 * nfs-utils.spec (Release): Set to 8.
554 2001-07-25 H.J. Lu <hjl@lucon.org>
556 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
559 2001-06-27 H.J. Lu <hjl@lucon.org>
561 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
563 2001-06-27 H.J. Lu <hjl@lucon.org>
565 * utils/rquotad/rquota_server.c: Don't call statfs () for
566 the block size. Use BLOCK_SIZE instead.
568 2001-06-27 H.J. Lu <hjl@lucon.org>
570 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
571 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
573 * configure.in (enable_nfsv3): Set to yes by default.
574 (--enable-rquotad): Added
575 (AC_PROG_CXX): Removed.
576 (AC_OUTPUT): Add utils/Makefile.
577 (CC_FOR_BUILD): Renamed from BUILD_CC.
578 * configure: Regenerated.
580 * utils/Makefile: Removed.
582 * utils/Makefile.in: New.
584 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
586 (CC_FOR_BUILD): Renamed from BUILD_CC.
587 * nfs-utils.spec: Regenerated.
589 2001-06-15 Chip Salzenberg <chip@debian.org>
591 * debian/changelog: Version 0.3.2-2.
592 * debian/*.init: Minor fixes.
594 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
596 * etc/nodist/nfs-server: Fixed a bug where the script would
597 disable mounts from NFSv3 clients if NFSv3 is present.
599 2001-06-05 H.J. Lu <hjl@lucon.org>
601 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
602 (main): Support --descriptors/-o to set the limit of the number
603 of open file descriptors.
606 * utils/mountd/mountd.man: Updated for --descriptors/-o.
608 2001-06-04 H.J. Lu <hjl@lucon.org>
610 * nfs-utils.spec (Release): Set to 6.
612 2001-05-28 H.J. Lu <hjl@lucon.org>
614 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
615 * utils/mountd/mountd.c (main): Likewise.
616 * utils/nfsd/nfsd.c (main): Likewise.
617 * utils/rquotad/rquota_svc.c (main): Likewise.
619 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
621 * support/export/client.c (client_check): Check IP address
624 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
626 * support/export/client.c (client_gettype): Treat `*' as
629 2001-04-22 H.J. Lu <hjl@lucon.org>
631 * nfs-utils.spec.in: Fix a typo.
632 * nfs-utils.spec: Regenerated.
634 2001-04-21 H.J. Lu <hjl@lucon.org>
636 * nfs-utils.spec.in: Fix cross build.
637 * nfs-utils.spec: Regenerated.
640 2001-04-18 H.J. Lu <hjl@lucon.org>
642 * nfs-utils.spec.in: Support cross build.
643 * nfs-utils.spec: Regenerated.
649 * config.mk.in (BUILD_CC): New.
650 (CC): Set to $(BUILD_CC) if BUILD is defined.
653 (RANLIB): Set to @RANLIB@.
655 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
656 * configure: Regenerated.
658 * tools/rpcgen/Makefile (BUILD): Set to true.
660 2001-04-01 Chip Salzenberg <chip@valinux.com>
662 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
663 redundant, and sometimes broken, declaration of svc_fdset;
665 * support/nfs/rpcmisc.c (closedown): Likewise.
667 2001-03-21 H.J. Lu <hjl@lucon.org>
669 * nfs-utils.spec: Regenerated.
672 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
674 * utils/statd/statd.c (main): make sure file descriptors 0-2
675 are open to /dev/null.
677 2001-03-21 H.J. Lu <hjl@lucon.org>
679 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
680 * support/nfs/rpcmisc.c: Likewise.
681 * utils/rquotad/rquota_svc.c: Likewise.
682 * utils/rquotad/rquotad.man: Likewise.
683 * utils/statd/Makefile: Likewise.
684 * utils/statd/rmtcall.c: Likewise.
685 * utils/statd/simulate.c: Likewise.
686 * utils/statd/statd.c: Likewise.
687 * utils/statd/statd.man: Likewise.
689 2001-03-11 H.J. Lu <hjl@lucon.org>
691 * configure.in (RELEASE): New. Default to 1, set by
692 --with-release=XXX. Substitute nfs-utils.spec.
693 * nfs-utils.spec.in (Release): Set to @RELEASE@.
694 * configure: Regenerated.
695 * nfs-utils.spec: Likewise.
697 2001-03-11 H.J. Lu <hjl@lucon.org>
699 * utils/rquotad/rquotad.man: Fix a typo.
701 2001-03-11 H.J. Lu <hjl@lucon.org>
703 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
704 * support/nfs/rpcmisc.c: Likewise.
705 * utils/rquotad/rquota_svc.c: Likewise.
706 * utils/rquotad/rquotad.man: Likewise.
707 * utils/statd/Makefile: Likewise.
708 * utils/statd/rmtcall.c: Likewise.
709 * utils/statd/simulate.c: Likewise.
710 * utils/statd/statd.c: Likewise.
711 * utils/statd/statd.man: Likewise.
713 2001-03-10 H.J. Lu <hjl@lucon.org>
715 * configure.in (VERSION): Set to "0.3.2".
716 * configure: Regenerated.
717 * nfs-utils.spec: Likewise.
719 * README: Updated for 0.3.2.
721 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
723 * utils/rquotad/rquotad.man: Updated for -p.
724 * utils/statd/statd.man: Likewise.
726 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
728 * support/nfs/rpcmisc.c: export makesock()
730 * support/include/rpcmisc.h (makesock): Declared.
732 * utils/rquotad/rquota_svc.c: added longopts, added support for
733 specifying the port to bind to on the command line.
735 * utils/statd/statd.c: ditto, also specify port used for
736 outgoing connections.
737 (do_regist): Removed.
739 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
740 get_socket. Make it extern.
742 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
743 instead of do_regist.
745 * utils/statd/Makefile (LIBS): link with our own libnfs
747 2001-03-09 H.J. Lu <hjl@lucon.org>
749 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
750 * etc/nodist/nfs-client: Likewise.
752 2001-02-26 Chip Salzenberg <chip@valinux.com>
754 * debian/changelog: Version 0.3.1-1.
755 * Mention upstream source and license in copyright file.
756 * Add build-Depends for debhelper and libwrap0-dev.
758 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
760 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
761 * etc/nodist/nfs-client: Likewise.
763 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
765 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
768 2001-02-17 Patrick J. LoPresti <patl@curl.com>
770 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
773 2001-02-14 H.J. Lu <hjl@lucon.org>
775 * utils/statd/rmtcall.c: Include <time.h>.
776 * utils/statd/svc_run.c: Likewise.
778 2001-02-14 H.J. Lu <hjl@lucon.org>
780 * configure.in (VERSION): Set to "0.3.1".
781 * configure: Regenerated.
782 * nfs-utils.spec: Likewise.
784 * README: Updated for 0.3.1.
786 2001-02-14 H.J. Lu <hjl@lucon.org>
788 * support/nfs/rpcmisc.c: Include <time.h>.
790 2001-02-14 Chip Salzenberg <chip@valinux.com>
792 * debian/control: Change priority of nhfsstone package to 'extra'.
794 2001-02-12 Chip Salzenberg <chip@valinux.com>
796 * debian/changelog: Version 0.3-2.
798 2001-02-02 H.J. Lu <hjl@lucon.org>
800 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
802 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
803 out SO_SNDBUF/SO_RCVBUF.
804 (rpc_init): Remove bufsize and remove socksz in calls to
807 * utils/mountd/mountd.c (main): Remove bufsize in calls to
810 2001-01-28 Chip Salzenberg <chip@valinux.com>
812 * debian/changelog: Version 0.3-1.
814 2001-01-25 H.J. Lu <hjl@lucon.org>
816 * configure.in (VERSION): Set to "0.3".
817 * configure: Regenerated.
818 * nfs-utils.spec: Likewise.
820 * README: Updated for 0.3.
822 2001-01-25 H.J. Lu <hjl@lucon.org>
824 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
826 2001-01-20 Chip Salzenberg <chip@valinux.com>
828 * support/include/xio.h (xgetc): Declare to return int.
829 * support/nfs/xio.c (xgetc): Return int.
830 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
831 * utils/statd/statd.c (main): Use int for value of getopt.
832 * debian/changelog: Version 0.2.1-5.
834 2000-12-10 Chip Salzenberg <chip@valinux.com>
836 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
837 program and procedure numbers of kernel lockd's callback. Also,
838 besides the old (and broken) procedure #24, allow #16 per Trond.
840 2000-12-03 Chip Salzenberg <chip@valinux.com>
842 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
843 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
844 * debian/changelog: Version 0.2.1-4.
846 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
848 * utils/mountd/auth.c (auth_authenticate): Log the bad path
851 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
853 * support/nfs/exports.c (getexportent): Check for host name
854 without option, or options without hostname, and print a warning,
855 as this is most likely a typo.
857 2000-11-19 Chip Salzenberg <chip@valinux.com>
859 * debian/control: Add dependency on portmap.
860 * debian/changelog: Version 0.2.1-3.
862 2000-11-10 H.J. Lu <hjl@lucon.org>
864 * nfs-utils.spec.in: Don't use libtool.
865 Add ChangeLog and COPYING to doc.
866 * nfs-utils.spec: Rebuild.
868 2000-11-09 H.J. Lu <hjl@lucon.org>
870 * etc/redhat/nfs.init (start): Back out the last change.
872 2000-11-09 H.J. Lu <hjl@lucon.org>
874 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
875 TCP is not supported by kernel.
877 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
879 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
880 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
882 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
884 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
886 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
887 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
888 callbacks to local lockd.
890 2000-10-18 Scott McDermott <mcdermot@questra.com>
892 * utils/exportfs/exports.man: Updated for CIDR netmask.
894 2000-10-17 Scott McDermott <mcdermot@questra.com>
896 * support/export/client.c (client_init): Support CIDR netmask
899 2000-10-11 H.J. Lu <hjl@lucon.org>
901 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
902 * configure: Rebuilt.
904 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
906 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
907 "/var/lib/nfs/state".
909 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
911 * utils/statd/statd.h (run_mode): New global bitmask of runtime
912 behaviors: fg/bg, logging, etc.
913 * utils/statd/statd.c: New command line options: -V -h -? -d .
914 * utils/statd/statd.man: Update for changes to statd.
916 * utils/statd/log.h (log_init): Remove parameter of function; use
917 global variable "name_p" instead.
918 * utils/statd/log.c: Add support for logging to stderr.
920 * utils/statd/notlist.c: Partially rewrite notify list handling
921 functions. Eliminate run-off-end-of-list bug when calling
922 nlist_insert_timer. Add lots of comments.
924 2000-09-27 H.J. Lu <hjl@lucon.org>
926 * README: Updated for RedHat 7.0.
928 2000-09-27 H.J. Lu <hjl@lucon.org>
930 * nfs-utils.spec: Rebuild.
932 2000-09-27 H.J. Lu <hjl@lucon.org>
934 * README: Updated for 0.2.1.
936 2000-09-27 H.J. Lu <hjl@lucon.org>
938 * nfs-utils.spec.in: Updated to use rpm macros and support
941 2000-09-25 H.J. Lu <hjl@lucon.org>
943 * configure.in (VERSION): Set to "0.2.1".
944 * configure: Regenerated.
945 * nfs-utils.spec: Updated.
947 2000-09-25 H.J. Lu <hjl@lucon.org>
949 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
950 non-NULL hostent is always returned.
952 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
954 * etc/redhat/nfslock.init: don't kill lockd processes that do not
955 have an executable (i.e. kernel threads)
957 2000-09-01 H.J. Lu <hjl@lucon.org>
959 * README: Updated for 0.2.
961 2000-09-01 Jay Weber <jweber@valinux.com>
963 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
964 supporting version 3 of nfs if available, else it will fall back to
965 version 2 support only.
967 2000-08-30 H.J. Lu <hjl@lucon.org>
969 * configure.in (VERSION): Set to "0.2".
970 * configure: Regenerated.
971 * nfs-utils.spec: Updated.
973 2000-08-25 H.J. Lu <hjl@lucon.org>
975 * support/misc/tcpwrapper.c (logit): Modify the log output.
977 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
979 * utils/rquotad/rquotad.man, utils/statd/statd.man,
980 utils/mountd/mountd.man: updated
982 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
983 * utils/rquotad/Makefile: fix comment
985 * support/misc/tcpwrapper.c (logit): added comment about waiting
986 for the children after fork()
988 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
989 zombies behind (from logit()'s fork)
990 * utils/rquotad/rquota_svc.c (main): ditto
991 * utils/statd/statd.c (main): ditto
993 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
994 to check_default instead of 0, for prognum
996 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
997 to check_default instead of 0, for prognum
999 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1000 HAVE_TCP_WRAPPER is defined.
1001 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1002 defined. Reject an RPC call if check_default () fails.
1004 2000-08-25 H.J. Lu <hjl@lucon.org>
1006 * support/include/tcpwrapper.h: New for the tcp wrapper
1008 * support/misc/Makefile: Likewise.
1009 * support/misc/from_local.c: Likewise.
1010 * support/misc/tcpwrapper.c: Likewise.
1012 * aclocal.m4 (AC_TCP_WRAPPER): New.
1013 * configure.in: Use it. Substitute LIBWRAP.
1014 * configure: Rebuilt.
1016 * config.mk.in (LIBNSL): New.
1017 (LIBWRAP): Likewise.
1019 * support/Makefile (SUBDIRS): Add misc.
1021 * support/lib/Makefile (LIBS): Add libmisc.a.
1023 * utils/rquotad/Makefile (LIBS): Add
1025 -lmisc $(LIBWRAP) $(LIBNSL)
1027 * utils/statd/Makefile (LIBS): Likewise.
1029 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1030 HAVE_TCP_WRAPPER is defined.
1031 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1032 defined. Reject an RPC call if check_default () fails.
1034 * utils/statd/statd.c: Include "tcpwrapper.h" if
1035 HAVE_TCP_WRAPPER is defined.
1036 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1037 check_default () before calling sm_prog_1 (). Define it as
1038 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1040 2000-08-25 Chip Salzenberg <chip@valinux.com>
1042 * debian/*: Complete Debian build support.
1043 * etc/debian/*: Remove.
1045 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1047 * support/export/client.c(client_check): removed the "dot+1" as a
1048 ypdomain argument to innetgr as this is entirely bogus.
1049 It should always be NULL.
1051 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1053 * support/export/xtab.c(xtab_read): introduce new mode for
1054 reading xtab. i.e. a list of exports that might be known to the
1055 kernel, or might not. These are flagged as m_exported == -1
1056 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1057 value "2" for xtab, meaning don't trust this too much.
1058 * support/include/exportfs.h(struct mexport): changed m_exported
1059 from one bit to an int so that it can hold new value
1060 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1061 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1062 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1065 * support/nfs/xio.c(xflock): added O_CREAT when getting
1066 a write lock so that missing files aren't fatal.
1068 * etc/debian/nfs-common: new file from "potato"
1069 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1071 2000-08-09 H.J. Lu <hjl@lucon.org>
1073 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1074 startup to ensure all existing clients work fine.
1076 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1077 to xtab_read () for reading _PATH_XTAB.
1079 2000-08-02 H.J. Lu <hjl@lucon.org>
1081 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1082 avoid the reverse name lookup.
1084 2000-07-04 H.J. Lu <hjl@lucon.org>
1086 * utils/statd/log.c: Include <stdlib.h> for exit ().
1088 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1091 2000-07-04 H.J. Lu <hjl@lucon.org>
1093 * configure.in (VERSION): Set to "0.1.9.1".
1094 * configure: Regenerated.
1095 * nfs-utils.spec: Updated.
1099 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1101 * support/export/hostname.c (hostent_dup): Handle the NULL
1104 2000-07-03 H.J. Lu <hjl@lucon.org>
1106 * README: Update the util-linux requirement.
1108 2000-07-03 H.J. Lu <hjl@lucon.org>
1110 * configure.in (VERSION): Set to "0.1.9".
1111 * configure: Regenerated.
1112 * nfs-utils.spec: Updated.
1116 2000-07-03 H.J. Lu <hjl@lucon.org>
1118 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1119 stop to ensure all clients can still access the server
1120 before it is shutdown.
1122 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1124 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1125 calls with format string.
1127 2000-06-28 Chip Salzenberg <chip@valinux.com>
1129 * utils/statd/log.c (log): Call syslog with format string.
1131 2000-06-27 H.J. Lu <hjl@lucon.org>
1133 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1134 instead of OPEN_MAX.
1136 2000-06-27 H.J. Lu <hjl@lucon.org>
1140 2000-06-27 H.J. Lu <hjl@lucon.org>
1142 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1143 startup to ensure all existing clients are exported.
1145 * configure.in (VERSION): Set to "0.1.8.2".
1146 * configure: Regenerated.
1147 * nfs-utils.spec: Updated.
1149 2000-06-06 H.J. Lu <hjl@lucon.org>
1151 * configure.in (VERSION): Set to "0.1.8.1".
1152 * configure: Regenerated.
1153 * nfs-utils.spec: Updated.
1155 2000-06-06 H.J. Lu <hjl@lucon.org>
1157 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1158 to "struct sockaddr_in *" for glibc 2.2.
1159 (mount_umnt_1_svc): Likewise.
1160 (mount_umntall_1_svc): Likewise.
1161 (mount_export_1_svc): Likewise.
1162 (mount_exportall_1_svc): Likewise.
1163 (mount_pathconf_2_svc): Likewise.
1164 (get_rootfh): Likewise.
1166 2000-06-04 H.J. Lu <hjl@lucon.org>
1168 * etc/redhat/nfs.init: Fix a typo in comment.
1170 2000-05-31 H.J. Lu <hjl@lucon.org>
1172 * configure.in (VERSION): Set to "0.1.8".
1173 * configure: Regenerated.
1174 * nfs-utils.spec: Updated.
1178 2000-05-31 H.J. Lu <hjl@lucon.org>
1180 * configure.in (VERSION): Set to "0.1.7.5".
1181 * configure: Regenerated.
1182 * nfs-utils.spec: Updated.
1184 * support/include/nfslib.h (exportent): Add a new field,
1185 r_count, to count the number of mounts from a client.
1186 (getrmtabent): Take a new argument for position in file.
1187 (putrmtabent): Likewise.
1188 (fgetrmtabent): Likewise.
1189 (fputrmtabent): Likewise.
1190 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1191 for position in file.
1192 (fgetrmtabent): Likewise.
1193 (putrmtabent): Likewise.
1194 (fputrmtabent): Likewise.
1196 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1199 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1200 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1201 and fputrmtabent ().
1202 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1203 (mountlist_del): Likewise.
1204 (mountlist_del_all): Likewise.
1205 (mountlist_list): Likewise.
1207 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1208 for the existing entry and initialize "r_count" to 1.
1209 (mountlist_del): Decrement "r_count".
1211 2000-05-18 H.J. Lu <hjl@lucon.org>
1213 * configure.in (VERSION): Set to "0.1.7.4".
1214 * configure: Regenerated.
1215 * nfs-utils.spec: Updated.
1217 2000-05-18 H.J. Lu <hjl@lucon.org>
1219 * etc/redhat/nfs.init (restart): Just do stop and start.
1221 2000-05-09 Jay Weber <jweber@valinux.com>
1223 * utils/rquotad/hasquota.c: added support for ext3 recognition
1225 * utils/rquotad/mntent.h: Likewise.
1227 2000-05-01 H.J. Lu <hjl@lucon.org>
1229 * configure.in (VERSION): Set to "0.1.7.3".
1230 * configure: Regenerated.
1231 * nfs-utils.spec: Updated.
1233 2000-05-01 H.J. Lu <hjl@lucon.org>
1235 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1236 mounting poins in /etc/fstab.
1238 2000-05-01 H.J. Lu <hjl@lucon.org>
1240 * configure.in (VERSION): Set to "0.1.7.2".
1241 * configure: Regenerated.
1242 * nfs-utils.spec: Updated.
1244 2000-05-01 H.J. Lu <hjl@lucon.org>
1246 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1247 to check for the mounting point.
1249 2000-04-29 Chip Salzenberg <chip@valinux.com>
1250 Neil Brown <neilb@cse.unsw.edu.au>
1252 * Really re-use RPC ports.
1253 (Fixes earlier patch. Sorry, Neil.)
1255 2000-04-26 H.J. Lu <hjl@lucon.org>
1257 * configure.in (VERSION): Set to "0.1.7.1".
1258 * configure: Regenerated.
1259 * nfs-utils.spec: Updated.
1261 2000-04-26 H.J. Lu <hjl@lucon.org>
1263 * etc/redhat/nfslock.init: Check if lockd exits before killing
1266 2000-04-25 H.J. Lu <hjl@lucon.org>
1268 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1270 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1272 * support/nfs/exports.c (parsesquash): Correctly set the
1275 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1277 * support/include/nfs/nfs.h: Removed knowledge of internals of
1278 kernel filehandles (which can change) and defined nfs_fh_size
1279 which has variable size
1281 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1282 get variable sized file handles, and change getfh{,old} to
1285 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1288 * tools/Makefile, tools/nlmtest/nlmtest.c
1289 nlmtest.c depended on internel format of file handles, so now
1293 2000-03-12 Chip Salzenberg <chip@valinux.com>
1294 Neil Brown <neilb@cse.unsw.edu.au>
1296 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1298 2000-03-13 H.J. Lu <hjl@lucon.org>
1300 * etc/redhat/nfsd.init: Updated.
1302 * etc/redhat/nfslock.init: Updated.
1304 * nfs-utils.spec.in: Updated.
1306 * configure.in (VERSION): Set to "0.1.7".
1307 * configure: Regenerated.
1308 * nfs-utils.spec: Updated.
1312 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1314 * utils/exportfs/exportfs.c (dump): Included printing of
1315 nohide, no_subtree_check, and insecure_locks
1317 2000-02-26 Chip Salzenberg <chip@valinux.com>
1319 * config.mk.in (INSTALLSUID): Strip ("-s").
1320 (INSTALLSCRIPT): Define.
1321 * utils/nhfsstone/Makefile: Use it.
1323 2000-02-26 Chip Salzenberg <chip@valinux.com>
1325 * utils/lockd/lockd.man: Create.
1326 * utils/lockd/Makefile: Install it.
1327 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1328 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1329 * utils/nhfsstone/Makefile: Install the helper scripts and
1331 * utils/exportfs/exports.man: Fix typo.
1333 2000-02-26 Chip Salzenberg <chip@valinux.com>
1335 * support/nfs/xio.c (xungetc): Decrement line number when
1336 character to unget is newline. Make first parameter int, so
1337 it can distinguish EOF from \377.
1338 * support/include/xio.h (xungetc): Adjust prototype.
1340 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1342 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1343 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1344 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1346 This is for supporting a new option introduced in 2.3.42
1348 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1350 * COPYING: Added. GPL.
1352 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1354 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1355 to get the block size.
1357 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1359 * nfs-utils.spec.in: Update ftp site.
1361 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1363 * README: Update hostnames.
1365 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1367 * configure.in (VERSION): Set to "0.1.6".
1368 * configure: Regenerated.
1369 * nfs-utils.spec: Updated.
1373 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1375 * utils/mountd/auth.c (auth_authenticate_internal): Call
1376 xstrdup for hostname before passing it to gethostbyname.
1378 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1381 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1383 * README: Update the mailing list address.
1385 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1387 * configure.in (VERSION): Set to "0.1.5".
1388 * configure: Regenerated.
1389 * nfs-utils.spec: Updated.
1393 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1395 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1398 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1400 * configure.in (VERSION): Set to "0.1.4".
1401 * configure: Regenerated.
1402 * nfs-utils.spec: Updated.
1406 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1408 * nfs-utils.spec.in: New file.
1410 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1412 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1414 1999-12-04 Chip Salzenberg <chip@valinux.com>
1416 * config.mk.in: Use $(CC) as set by configure.
1418 1999-12-04 Chip Salzenberg <chip@valinux.com>
1420 * rules.mk: Call $(MAKE) with $(MFLAGS).
1422 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1424 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1425 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1427 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1429 * nfs-utils.spec (Version): Set to 0.1.3.
1431 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1432 * configure: Regenerated.
1436 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1438 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1439 (_PATH_DEV_DSK): Likewise.
1440 (getquotainfo): Match the mounting point from /etc/mtab
1441 instead of calling nfsmount_to_devname ().
1443 1999-11-24 Chip Salzenberg <chip@valinux.com>
1445 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1446 to the new port 24 as well as the historical port 100021.
1448 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1450 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1451 stopping nfsd to stop spurious ESTALE on server shutdown.
1453 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1455 * support/nfs/exports.c (parseopts): make copy of opt string
1456 before 'nul'ing out commas so that
1458 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1460 applies both options to both exports.
1462 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1464 * README: Fix a few typos.
1466 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1468 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1469 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1470 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1471 (unsigned_dec): Likewise.
1472 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1473 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1475 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1477 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1478 (unsigned_dec): Likewise.
1479 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1480 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1481 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1483 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1485 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1486 * support/nfs/exports.c: added {no_,}subtree_check and changed
1488 * utils/exportfs/exports.man: added no_subtree_check and nohide
1489 and removed irrelevant stuff from unfsd.
1490 * support/export/rmtab.c: rmtab_read didn't quite do the right
1491 thing if a pathname from rmtab was a subdirectory of an export-point
1493 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1495 * README: Updated ftp site.
1497 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1499 * nfs-utils.spec (Version): Set to 0.1.2.
1501 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1502 * configure: Regenerated.
1506 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1508 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1509 (auth_authenticate_internal): Check for NULL return on forward
1511 (auth_authenticate): Handle "no_forward_dns".
1513 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1515 * Version 0.1.1 released.
1517 * nfs-utils.spec (Version): Set to 0.1.1.
1519 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1520 * configure: Regenerated.
1524 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1526 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1528 (Provides): Likewise.
1530 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1532 * Initial version 0.1 released.
1534 * configure.in (VERSION): Set to "nfs-utils 0.1".
1535 * configure: Regenerated.
1537 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1539 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1541 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1542 kernel only if the entry is exported to kernel.
1543 (unexportfs): Likewise.
1545 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1547 1/ utils/mountd/rmtab.c::mountlist_list
1549 This routine stats the rmtab file to see if it has changed. It
1550 if has, it cleans up it's old copy of the data. But it still
1551 always re-read the file, thus returning multiple copies of the
1552 data on consecutive calls without intervening changes.
1553 "Showmount -a" didn't show this as it appears to sort/unique the
1554 data, but 'strace showmount -a' showed that the size of the
1555 datagram that it received grew.
1557 I moved the getrmtabent loop inside the mtime test.
1559 2/ utils/exportfs/exportfs.c
1561 Many routines used the m_path field of m_export instead of
1563 According to the comment in nfslib.h, m_path should only
1564 be used when processing a mount request (i.e. in mountd)
1565 where the mountpoint may be a subdirectory of the export point.
1567 I changed all occurances of m_path to e_path
1570 3/ utils/exportfs/exportfs.c:main
1572 extra arguments are not meaningful with -a or -r, but
1573 exportfs accepted them and then ignored the -a/-r, expect that
1574 -r would still unexport everything first.
1576 I generate an error if there are extra args and f_all
1578 4/ utils/exportfs/exportfs.c:main
1579 extract dump out as a special case.
1581 5/ utils/exportfs/exportfs.c
1582 made f_reexport a local variable.
1585 6/ utils/exportfs/exportfs.c:main,exportall
1587 support/export/rmtab.c
1588 only mayexport on newly created entries, don't set xtabent at all
1590 7/ support/include/nfslib.h
1592 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1594 8/ support/export/xtab.c
1596 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1600 9/ support/export/xtab.c
1602 xtab_mount_read now sets m_exported, and NOT
1603 xtabent and mayexport
1605 removed the append arguement from xtab_write as it was
1608 added is_export flag to xtab_write similar to xtab_read
1609 if is_export, only write entries with m_xtabent or m_addxtab
1610 if !is_export, only write entries with m_exported
1612 10/ support/export/export.c::export_allowed_internal
1614 added test for exp->m_mayexport, as the export tree
1615 may have entries that are no longer allowed to be exported,
1616 and so shouldn't caused deduced exported by rmtab_read
1618 11/ utils/exportfs/exportfs.c::main
1619 error checking of flags.
1621 12/ utils/exportfs/exportfs.c
1623 total rewrite of export and unexport logic.
1625 - build an exportslist of valid exports, based on
1626 current etab file and arguments,
1627 - read rmtab to instantiate relevant wild card entries
1628 - read etab to find out what is currently exported
1629 - synchronise intention with reality
1630 - write out etab and xtab
1633 discard the m_addxtab flag
1634 add m_changed flag so we know what to report in exportfs
1636 14/ utils/mountd/auth.c:auth_authenticate
1638 the value returned by gethostbyaddr was trusted.
1640 It now follows this with a call to gethostbyname
1641 and checks that the address is in the list.
1643 15/ support/export/nfsctl.c::cltsetup,expsetup
1645 force client names to lowercase as kernel is
1648 16/ quietened a few compiler warnings
1650 17/ support/export/client:client_lookup
1652 look for pre-existing client with same name before creating
1655 18/ support/include/exportfs.h
1657 The ordering of the MCL_* enum was:
1658 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1660 I moved ANONYMOUS to the end.
1662 The ordering is significant when an export entry is being searched for to
1663 match a given address. There are two problems with ANONYMOUS being first.
1665 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1666 then the ro case will always be found first and the privileged hosts won't get
1668 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1669 export entry for the specific host, and writes it to xtab.
1670 When another request comes from the same host, the ANONYMOUS entry is found again,
1671 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1672 again. If causes bloat in xtab.
1674 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1676 19/ utils/exportfs/exportfs.man
1677 many updates to the man page to reflect changes to the code
1679 -----------------------
1685 - allow exportfs to modify rmtab file
1686 - make sure kernel never gets two clients with same IP address
1687 - possible kernel should reject
1688 - needs to be some way to lookup client in kernel by IP address
1689 - maybe get kernel to do case-insensitive comparisons on client names
1690 - remove unused clients from kernel
1692 - change etab to xtab and xtab to xtab.active
1694 - timestamp and/or statd-stamp in rmtab for removing old entries.
1696 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1698 * linux-nfs: New directory.
1699 * linux-nfs/ChangeLog: Moved from ..
1700 * linux-nfs/INSTALL: Likewise.
1701 * linux-nfs/KNOWNBUGS: Likewise.
1702 * linux-nfs/NEW: Likewise.
1703 * linux-nfs/README: Likewise.
1704 * linux-nfs/THANKS: Likewise.
1705 * linux-nfs/TODO: Likewise.
1707 * Starting from knfsd 1.4.7.