1 2003-09-09 Chip Salzenberg <chip@pobox.com>
3 * debian/changelog: Version 1.0.5-3.
4 * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
5 on invalid reverse DNS.
7 2003-08-22 Chip Salzenberg <chip@pobox.com>
9 * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
10 N_*, to avoid conflict with ISO C built-in log() function.
11 * utils/statd/*.c: Use note().
13 2003-08-20 Chip Salzenberg <chip@pobox.com>
15 * debian/changelog: Version 1.0.5-2.
17 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
19 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
22 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
24 * support/include/nfs/export.h, support/nfs/exports.c,
25 utils/exportfs/exports.c, utils/mountd/mountd.c: change
26 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
27 meaning. Also remove meaningless
28 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
30 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
32 * support/export/xtab.c, support/include/nfslib.h,
33 support/nfs/cacheio.c, support/nfs/nfssvc.c,
34 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
35 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
36 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
37 (nfs-utils-1.0.5-post2)
39 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
41 * support/nfs/nfsexport.c: open channel file O_WRONLY when
43 * utils/mountd/cache.c: maintain mountlist when new_cache is
44 active. Also use O_WRONLY for channel files.
45 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
46 rather than an nfs_export.
47 * utils/mountd/rmtab.c: ditto.
48 (nfs-utils-1.5.0-post1)
50 2003-07-24 Chip Salzenberg <chip@pobox.com>
52 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
53 use Debian security team's cleaner approach.
54 * debian/changelog: Version 1.0.5-1.
55 * debian/nfs-kernel-server.init: Cosmetic changes.
57 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
60 1.0.4 was a bit of a brown-paper-bag-release because of the extra
61 'free' in auth.c. So I'm releasing this just a few days later.
63 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
65 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
66 check if new_cache is enabled, error if not, flush and exit if it
68 * utils/exportfs/exportfs.man: Explain -f option and explain the
69 two different modes that exportfs can work in.
70 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
72 * utils/mountd/mountd.man: Record the change if default behaviour
74 * configure.in, nfs-utils.spec: update version to 1.0.5 and
77 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
79 * utils/mountd/mountd.c(main): getopt string fix for 'o'
80 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
81 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
83 * support/include/nfs/export.h: Reserve a bit for possible ACL
86 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
88 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
89 assorted changed to cope with section 7 of the manual.
90 * configure.in, nfs-utils.spec: Update version to 1.0.4
93 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
94 baseline for 2.6 and 2.8. I.e. it should continue to work right
95 through the 2.8 (or 3.0) kernel series. Previous releases wont.
97 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
98 Steve Dickson <SteveD@redhat.com>
101 * utils/statd/statd.c: create a pidfile with pid of statd, and
102 truncate it when statd exists.
103 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
104 and warn if this is root.
105 * utils/statd/statd.c: when statd forks, connect child to parent
106 with a pipe, and send a byte down the pipe once the child is
108 * Makefile: create and chown sm, sm.bak, state when "make install"
109 * configure.in: add --with-statduser= option which defaults to
110 "rpcuser" or "nobody"
111 * config.mk.in: pass "statduser" through to Makefile
113 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
115 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
116 used as the size was changed somewhere in 2.5.60-2.5.70. Without
117 this nfs-utils compiles against 2.6 headers will not work on a
120 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
122 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
123 set number of threads by writing to there. This means it will
124 still work when the syscall interface goes away in 2.7.
126 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
127 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
129 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
130 so as to only export the wildcard exports that were asked for.
131 * support/export/export.c(export_allowed): changed to return the
132 nfs_export rather than a "struct exportent", as m_changed is
134 * support/export/rmtab.c(rmtab_read): modified to deal with
135 interface change for export_allowed(), and enhanced to preserve
136 m_changed flag when a wild-card export causes the creation of
137 a non-wildcard export.
139 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
140 Steve Dickson <SteveD@redhat.com>
142 * utils/mountd/mountd.man: Add valid kinds of debugging.
143 * utils/mountd/mountd.c(main): ignore SIGPIPE
144 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
145 we don't get warnings about unavailable stats that weren't asked
148 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
150 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
151 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
152 'forever', so things disappear out of the cache rather than just
155 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
157 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
160 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
162 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
163 etc/redhat/nfs.init: when checking if V3 is supported, make sure
164 nfs server 'knows' about 127.0.0.1 first.
166 2003-06-10 Chip Salzenberg <chip@pobox.com>
168 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
169 * debian/changelog: Version 1.0.3-2.
171 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
172 NeilBrown <neilb@cse.unsw.edu.au>
174 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
175 long long to avoid overflow when printing stats.
177 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
179 * support/export/export.c, support/include/nfslib.h,
180 support/nfs/export.c, utils/exportfs/exportfs.c,
181 utils/mountd/mountd.c: new export option "mountpoint"
182 If no path is given, then the export point must be a
183 mount point, or it won't be exported. If a path is
184 given (e.g. mountpoint=/path) then that path must be
185 a mountpoint or the exportpoint won't be exported.
186 * utils/exportfs/exportfs.man: document mountpoint option.
187 * support/misc/mountpoint.c: New file with is_mountpoint()
188 to determine if something is a mountpoint.
190 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
192 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
193 argument as we might not be getting the filehandle for the
195 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
196 cache_get_filehandle.
197 * utils/mountd/mountd.c(get_rootfh): check export point and
198 requested directory are on the same filesystem, and complain if
201 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
203 * utils/mountd/auth.c(auth_authenticate_internal): make sure
204 portnumber is still checked when using new cache lookup.
206 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
208 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
209 Don't actually talk to kernel when new cache is in effect, except
211 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
212 * support/export/xtab.c: Only rename new xtab into place if it has
213 changed, thus preserving modify date for exportfs to use when
215 * support/nfs/cacheio.c: Add cache_flush
216 * support/export/xtab.c: Only rename new xtab into place if it has
217 changed, thus preserving modify date for exportfs to use when
220 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
222 * support/export/client.c: Add client_compose, client_member to
223 handle new composite client names
224 * support/include/exportfs.h: Declare above functions.
225 * utils/mountd/auth.c: use client_compose to determine calling
226 client if new cache is being used.
227 * utils/mountd/auth.c: call cache_export to export a filesystem if
228 new_cache, check if new cache is used, and call my_svc_run instead
230 * utils/mountd/svc_run.c: new file defining my_svc_run
231 * utils/mountd/cache.c: new file for handling cache upcalls.
232 * support/nfs/cacheio.c(check_new_cache): new function to check if
233 new cache should be used.
236 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
238 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
239 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
240 * utils/exportfs/exportfs.c(dump): ditto
242 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
244 * support/export/hostname.c(get_reliable_hostbyaddr): new function
245 to get host name from address with full checking of authenticity.
246 * support/include/misc.h: declare above function
247 * utils/mountd/auth.c(auth_authenticate_internal): remove all
248 logic for authenticating address.
249 * utils/mountd/auth.c(auth_authenticate): call new
250 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
253 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
255 * tools/rpcgen/rpc_main.c(find_cpp): removed
256 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
257 then try hard-coded paths.
259 2003-03-26 Chip Salzenberg <chip@pobox.com>
261 * debian/changelog: Version 1.0.3-1.
263 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
265 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
266 "const char*", not "char*".
268 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
270 * configure.in (VERSION): Set to "1.0.3".
271 * nfs-utils.spec: Likewise.
272 * configure: Regenerated.
274 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
276 * support/nfs/cacheio.c: New File - support for read/writing
277 to export cache in /proc/rpc/*/channel
278 * support/nfs/Makefile: compile cacheio.c
279 * support/include/nfslib.h: declare cacheio.c functions
280 * support/nfs/nfsexport.c: export and unexport through
281 /proc/rpc/*/channel if possible, as old syscall interface
282 may not survive into 2.6 on all architectures.
284 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
285 Ben Leslie <benno@sesgroup.net>
287 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
288 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
289 former would incorectly ignore defport if the application
290 explicitly set __rpcfdtype. The later is sufficient to avoid the
291 special handling in the case where stdin is an internet socket.
293 * utils/mountd/mountd.c(main): Add 'n' to option list in
294 getopt_long as this is a short form of --no-tcp which want being
297 2003-02-12 Chip Salzenberg <chip@pobox.com>
299 * debian/changelog: Version 1.0.2-2.
301 2002-11-27 Chip Salzenberg <chip@pobox.com>
303 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
304 overflow bug. Reformat per rest of source file.
306 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
308 * utils/exportfs/exports.man: Correct notes about whether the wild
309 card characters match a period. They do.
311 2002-10-15 Juan Gomez <juang@us.ibm.com>
313 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
315 (mountlist_add): Call slink_safe_rename instead of rename.
317 2002-10-11 H.J. Lu <hjl@lucon.org>
319 * support/include/exportfs.h (export_errno): New.
321 * support/nfs/exports.c: Include <errno.h>.
323 (getexportent): Set export_errno to EINVAL for bad option.
324 (parseopts): Likewise.
325 Report the location of the default sync/async option.
327 * utils/exportfs/exportfs.c (main): Initialize export_errno to
328 0. Return export_errno.
330 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
331 NeilBrown <neilb@cse.unsw.edu.au>
333 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
334 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
336 2002-09-16 Chip Salzenberg <chip@pobox.com>
338 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
340 2002-09-15 Chip Salzenberg <chip@pobox.com>
342 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
343 socket, as occurs when run from sshd.
344 * debian/changelog: Version 1.0.2-1.
346 2002-09-12 H.J. Lu <hjl@lucon.org>
348 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
351 2002-09-12 H.J. Lu <hjl@lucon.org>
353 * configure.in: Remove checking svctcp_socket and svcudp_socket.
354 * configure: Regenerated.
356 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
357 (HAVE_SVCUDP_SOCKET): Removed.
359 * support/include/nfslib.h: Undo the last change.
361 2002-09-12 H.J. Lu <hjl@lucon.org>
363 * support/include/nfslib.h (svctcp_socket): Protect it with
365 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
367 2002-09-12 H.J. Lu <hjl@lucon.org>
369 * configure.in (VERSION): Set to "1.0.2".
370 * configure: Regenerated.
371 * nfs-utils.spec: Likewise.
373 2002-09-12 H.J. Lu <hjl@lucon.org>
375 * configure.in: Check svctcp_socket and svcudp_socket.
376 * configure: Regenerated.
378 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
379 (HAVE_SVCUDP_SOCKET): New.
381 * support/include/nfslib.h (svctcp_socket): New.
382 (svcudp_socket): New.
384 * support/nfs/Makefile (OBJS): Add svc_socket.o.
386 * support/nfs/svc_socket.c: New.
388 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
389 svcudp_socket if port is unspecified.
391 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
393 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
394 (killer): New. Signal handler to unregister.
395 (main): Use killer. Call svcudp_socket to get the default
398 2002-09-02 Juan Gomez <juang@us.ibm.com>
399 NeilBrown <neilb@cse.unsw.edu.au>
401 Add -N option to statd to run in notify-only mode.
403 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
404 * utils/statd/statd.man: document -N
405 * utils/statd/statd.c: enabled -N, largely exists but needed to be
406 uncommented and completed
408 2002-09-02 Juan Gomez <juang@us.ibm.com>
409 NeilBrown <neilb@cse.unsw.edu.au>
411 statd to have " -P directory" arg to use that directory instead
412 of /var/lib/nfs. This is useful for fail-over clusters.
414 * utils/statd/statd.h: define SM_DIR etc as var, not const.
415 * utils/statd/statd.c: define "-P" option to set SM_*
417 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
419 * utils/statd/notify.c: ditto.
420 * utils/statd/statd.man: document -P option.
422 2002-08-26 Chip Salzenberg <chip@pobox.com>
424 * utils/nfsd/nfsd.man: Fix typo.
425 * debian/changelog: Version 1.0.1-1.
427 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
429 * let parseopts know if /etc/exports was being read or not,
430 and have it only print "no sync or async" warning in that case.
432 2002-05-06 Tom McNeal <trmcneal@attbi.com>
433 NeilBrown <neilb@cse.unsw.edu.au>
435 * utils/nfsstat/nfsstat.c: Handle differing format for
436 /proc/net/rpc/nfsd between pre and post 2.4.0
438 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
439 James Pearson <james-p@moving-picture.com>
441 * support/nfs/rmtab.c(fendrmtabent): sync changes to
442 storage before returning, as this is critical state
444 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
445 H.J. Lu <hjl@lucon.org>
447 * etc/redhat/nfs: New.
449 2002-04-08 H.J. Lu <hjl@lucon.org>
451 * etc/redhat/nfs.init: Updated.
453 * nfs-utils.spec.in: Updated.
454 * nfs-utils.spec: Regenerated.
456 * utils/mountd/mountd.c (longopts): Fix a typo.
458 * utils/mountd/mountd.man: Updated.
460 2002-04-07 H.J. Lu <hjl@lucon.org>
462 * etc/redhat/nfslock.init (restart): Just do stop and start.
464 * etc/redhat/nfs.init: Fix a typo.
466 2002-04-07 H.J. Lu <hjl@lucon.org>
468 * configure.in (VERSION): Set to "1.0.1".
469 * configure: Regenerated.
470 * nfs-utils.spec: Likewise.
472 * README: Updated for 1.0.1.
474 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
475 H.J. Lu <hjl@lucon.org>
477 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
479 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
480 NeilBrown <neilb@cse.unsw.edu.au>
482 Add support for fsid=nn export option so that device
483 numbers don't go in filehandles.
484 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
485 is set, pass the fsid in-place of the device number
486 * support/nfs/exports.c: parse and print fsid= option.
487 Also check if efname has been set, and use "command line"
488 instead in error messages.
489 Also, use strtol instead of atoi for anon[ug]id= so that
490 bad numbers cause errors.
492 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
493 NeilBrown <neilb@cse.unsw.edu.au>
495 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
496 flag so that "sync" becomes the default.
497 Check that either "sync" or "async" is given as an option
498 and warn if neither are present
499 * utils/exportfs/exports.man: change documentation for "sync"
500 to be documentation for "async".
501 * utils/exportfs/exportfs.man: note that "sync" is the default
505 2002-01-02 Chip Salzenberg <chip@pobox.com>
507 * support/export/nfsctl.c (expsetup): Don't export entries that
508 specify id mappings not supported by the kernel. No extant kernel
509 supports any significant mapping, only 'identity' (i.e. none).
510 When other mappings are supported, this code will need changing.
511 * debian/changelog: Version 1.0-2.
513 2001-12-26 Chip Salzenberg <chip@pobox.com>
515 * nfs-utils.spec (Version): Set to "1.0".
516 * configure.in (VERSION): Likewise.
517 * configure: Regenerated.
519 * debian/changelog: Version 1.0-1.
521 * utils/exportfs/exports.man: Emphasize the need for options to
522 immediately follow client names. Explain that wildcards don't
523 usually work on addresses, but may work when reverse DNS fails.
524 Comment out a leftover TP that was TPing our indentation.
525 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
526 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
527 * debian/changelog: Version 0.3.3-6.
529 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
531 * support/export/client.c(client_lookup): If a host has multiple
532 IP addresses, then we must always use the result of a
533 gethostbyname, not that of gethostbyaddr for exporting
535 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
537 * support/export/client.c (client_lookup): use strcasecmp when
539 * support/nfs/export.c (getexportent): add fromkernel arg and use
540 different defaults as kernels prior to 2.4.11 assume different
541 defaults in /proc/fs/nfs/exports
542 * support/include/nfslib.h, support/export/export.c,
543 support/export/xtab.c: support extra "fromkernel" arg for
546 2001-12-13 Chip Salzenberg <chip@pobox.com>
548 * debian/changelog: Version 0.3.3-5.
550 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
552 * support/nfs/xio.c (xskip): Call `xungetc' instead of
553 `ungetc' to keep x_line more properly.
555 2001-11-26 Chip Salzenberg <chip@pobox.com>
557 * utils/showmount/showmount.c (main): Don't assume that strings
558 starting with digits are IP addresses.
559 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
560 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
561 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
562 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
563 man pages: We check host names *and* addresses with tcpwrappers.
564 * debian/changelog: Version 0.3.3-4.
566 2001-11-21 Chip Salzenberg <chip@pobox.com>
568 * support/nfs/clients.c (cfname): Added: current clients file name.
569 (setnfsclntent): Set it.
570 ({get,end}nfsclntent, syntaxerr): Use it.
571 * support/nfs/exports.c (efname): Added: current exports file name.
572 (setnfsexportent): Set it.
573 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
574 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
575 * debian/changelog: Version 0.3.3-3.
577 2001-10-11 Chip Salzenberg <chip@pobox.com>
579 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
580 * debian/changelog: Version 0.3.3-2.
582 2001-10-08 Chip Salzenberg <chip@pobox.com>
584 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
585 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
586 * utils/mountd/mountd.man: Update paths to /var/lib.
587 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
589 2001-10-06 Preston Brown <pbrown@redhat.com>
591 * utils/nfsstat/nfsstat.man: Updated.
593 2001-09-24 H.J. Lu <hjl@lucon.org>
595 * configure.in (VERSION): Set to "0.3.3".
596 * configure: Regenerated.
597 * nfs-utils.spec: Likewise.
599 * README: Updated for 0.3.3.
601 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
603 Arrange that "exportfs -au" never does DNS lookup:
605 * support/export/client.c (client_lookup) : add "canonical"
606 flag which says that the hostname is known to be canonical, so
609 * support/export/export.c (export_create) : add "canonical"
610 flag to be passed down to client_lookup
611 * support/export/export.c (export_lookup) : Likewise
613 * support/export/xtab.c (xtab_read) : pass appropriate
614 "canonical" flag to export_lookup and export_create:
615 set if reading list of filesystems currently exports
618 * support/export/export.c (export_read) : pass 0 as
619 "canonical" flag to export_lookup and export_create
620 * support/export/rmtab.s (rmtab_read) : Likewise
622 * support/include/exportfs.h : redeclare various routines
623 to have "canonical" flag
625 * utils/exportfs/exportfs.c (main) : redo logic for
626 "-au" to read in what is currently exported, but never even
627 look at what "should" be exported.
629 * utils/exportfs/exportfs.c (unexportall) : remove this
630 routine. Functionality is completely included in
633 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
634 flag to zero in calls to export_lookup and export_create.
637 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
638 Anne Milicia <milicia@missioncriticallinux.com>
640 * support/export/client.c (client_lookup) call gethostbyadd
641 to make sure that we have a canonical hostname, even for
643 * utils/exportfs/exportfs.c (exportfs) Likewise
645 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
647 * support/nfs/exports.c (putexportent): \octal quote any spaces
649 * support/nfs/xio.c (xgettok): recognise double-quote and
650 \octal quoting in path names
651 * utils/exportfs/exports.man: document quoting conventions
654 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
656 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
657 change from 2000-08-02: It causes problems if someone exports
658 to both a hostname and IP addresses. nfs-utils must be
659 consistant about the canonical name that it chooses.
661 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
662 H.J. Lu <hjl@lucon.org>
664 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
666 * utils/statd/statd.c (longopts): Add "name".
667 (usage): Add "-n/--name".
668 (main): Set MY_NAME with "-n/--name".
670 * utils/statd/state.c (change_state): Set MY_NAME only if it
673 * utils/statd/statd.man: Updated for "-n/--name".
675 2001-07-26 H.J. Lu <hjl@lucon.org>
677 * nfs-utils.spec (Release): Set to 8.
679 2001-07-25 H.J. Lu <hjl@lucon.org>
681 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
684 2001-06-27 H.J. Lu <hjl@lucon.org>
686 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
688 2001-06-27 H.J. Lu <hjl@lucon.org>
690 * utils/rquotad/rquota_server.c: Don't call statfs () for
691 the block size. Use BLOCK_SIZE instead.
693 2001-06-27 H.J. Lu <hjl@lucon.org>
695 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
696 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
698 * configure.in (enable_nfsv3): Set to yes by default.
699 (--enable-rquotad): Added
700 (AC_PROG_CXX): Removed.
701 (AC_OUTPUT): Add utils/Makefile.
702 (CC_FOR_BUILD): Renamed from BUILD_CC.
703 * configure: Regenerated.
705 * utils/Makefile: Removed.
707 * utils/Makefile.in: New.
709 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
711 (CC_FOR_BUILD): Renamed from BUILD_CC.
712 * nfs-utils.spec: Regenerated.
714 2001-06-15 Chip Salzenberg <chip@debian.org>
716 * debian/changelog: Version 0.3.2-2.
717 * debian/*.init: Minor fixes.
719 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
721 * etc/nodist/nfs-server: Fixed a bug where the script would
722 disable mounts from NFSv3 clients if NFSv3 is present.
724 2001-06-05 H.J. Lu <hjl@lucon.org>
726 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
727 (main): Support --descriptors/-o to set the limit of the number
728 of open file descriptors.
731 * utils/mountd/mountd.man: Updated for --descriptors/-o.
733 2001-06-04 H.J. Lu <hjl@lucon.org>
735 * nfs-utils.spec (Release): Set to 6.
737 2001-05-28 H.J. Lu <hjl@lucon.org>
739 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
740 * utils/mountd/mountd.c (main): Likewise.
741 * utils/nfsd/nfsd.c (main): Likewise.
742 * utils/rquotad/rquota_svc.c (main): Likewise.
744 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
746 * support/export/client.c (client_check): Check IP address
749 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
751 * support/export/client.c (client_gettype): Treat `*' as
754 2001-04-22 H.J. Lu <hjl@lucon.org>
756 * nfs-utils.spec.in: Fix a typo.
757 * nfs-utils.spec: Regenerated.
759 2001-04-21 H.J. Lu <hjl@lucon.org>
761 * nfs-utils.spec.in: Fix cross build.
762 * nfs-utils.spec: Regenerated.
765 2001-04-18 H.J. Lu <hjl@lucon.org>
767 * nfs-utils.spec.in: Support cross build.
768 * nfs-utils.spec: Regenerated.
774 * config.mk.in (BUILD_CC): New.
775 (CC): Set to $(BUILD_CC) if BUILD is defined.
778 (RANLIB): Set to @RANLIB@.
780 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
781 * configure: Regenerated.
783 * tools/rpcgen/Makefile (BUILD): Set to true.
785 2001-04-01 Chip Salzenberg <chip@valinux.com>
787 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
788 redundant, and sometimes broken, declaration of svc_fdset;
790 * support/nfs/rpcmisc.c (closedown): Likewise.
792 2001-03-21 H.J. Lu <hjl@lucon.org>
794 * nfs-utils.spec: Regenerated.
797 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
799 * utils/statd/statd.c (main): make sure file descriptors 0-2
800 are open to /dev/null.
802 2001-03-21 H.J. Lu <hjl@lucon.org>
804 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
805 * support/nfs/rpcmisc.c: Likewise.
806 * utils/rquotad/rquota_svc.c: Likewise.
807 * utils/rquotad/rquotad.man: Likewise.
808 * utils/statd/Makefile: Likewise.
809 * utils/statd/rmtcall.c: Likewise.
810 * utils/statd/simulate.c: Likewise.
811 * utils/statd/statd.c: Likewise.
812 * utils/statd/statd.man: Likewise.
814 2001-03-11 H.J. Lu <hjl@lucon.org>
816 * configure.in (RELEASE): New. Default to 1, set by
817 --with-release=XXX. Substitute nfs-utils.spec.
818 * nfs-utils.spec.in (Release): Set to @RELEASE@.
819 * configure: Regenerated.
820 * nfs-utils.spec: Likewise.
822 2001-03-11 H.J. Lu <hjl@lucon.org>
824 * utils/rquotad/rquotad.man: Fix a typo.
826 2001-03-11 H.J. Lu <hjl@lucon.org>
828 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
829 * support/nfs/rpcmisc.c: Likewise.
830 * utils/rquotad/rquota_svc.c: Likewise.
831 * utils/rquotad/rquotad.man: Likewise.
832 * utils/statd/Makefile: Likewise.
833 * utils/statd/rmtcall.c: Likewise.
834 * utils/statd/simulate.c: Likewise.
835 * utils/statd/statd.c: Likewise.
836 * utils/statd/statd.man: Likewise.
838 2001-03-10 H.J. Lu <hjl@lucon.org>
840 * configure.in (VERSION): Set to "0.3.2".
841 * configure: Regenerated.
842 * nfs-utils.spec: Likewise.
844 * README: Updated for 0.3.2.
846 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
848 * utils/rquotad/rquotad.man: Updated for -p.
849 * utils/statd/statd.man: Likewise.
851 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
853 * support/nfs/rpcmisc.c: export makesock()
855 * support/include/rpcmisc.h (makesock): Declared.
857 * utils/rquotad/rquota_svc.c: added longopts, added support for
858 specifying the port to bind to on the command line.
860 * utils/statd/statd.c: ditto, also specify port used for
861 outgoing connections.
862 (do_regist): Removed.
864 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
865 get_socket. Make it extern.
867 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
868 instead of do_regist.
870 * utils/statd/Makefile (LIBS): link with our own libnfs
872 2001-03-09 H.J. Lu <hjl@lucon.org>
874 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
875 * etc/nodist/nfs-client: Likewise.
877 2001-02-26 Chip Salzenberg <chip@valinux.com>
879 * debian/changelog: Version 0.3.1-1.
880 * Mention upstream source and license in copyright file.
881 * Add build-Depends for debhelper and libwrap0-dev.
883 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
885 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
886 * etc/nodist/nfs-client: Likewise.
888 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
890 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
893 2001-02-17 Patrick J. LoPresti <patl@curl.com>
895 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
898 2001-02-14 H.J. Lu <hjl@lucon.org>
900 * utils/statd/rmtcall.c: Include <time.h>.
901 * utils/statd/svc_run.c: Likewise.
903 2001-02-14 H.J. Lu <hjl@lucon.org>
905 * configure.in (VERSION): Set to "0.3.1".
906 * configure: Regenerated.
907 * nfs-utils.spec: Likewise.
909 * README: Updated for 0.3.1.
911 2001-02-14 H.J. Lu <hjl@lucon.org>
913 * support/nfs/rpcmisc.c: Include <time.h>.
915 2001-02-14 Chip Salzenberg <chip@valinux.com>
917 * debian/control: Change priority of nhfsstone package to 'extra'.
919 2001-02-12 Chip Salzenberg <chip@valinux.com>
921 * debian/changelog: Version 0.3-2.
923 2001-02-02 H.J. Lu <hjl@lucon.org>
925 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
927 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
928 out SO_SNDBUF/SO_RCVBUF.
929 (rpc_init): Remove bufsize and remove socksz in calls to
932 * utils/mountd/mountd.c (main): Remove bufsize in calls to
935 2001-01-28 Chip Salzenberg <chip@valinux.com>
937 * debian/changelog: Version 0.3-1.
939 2001-01-25 H.J. Lu <hjl@lucon.org>
941 * configure.in (VERSION): Set to "0.3".
942 * configure: Regenerated.
943 * nfs-utils.spec: Likewise.
945 * README: Updated for 0.3.
947 2001-01-25 H.J. Lu <hjl@lucon.org>
949 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
951 2001-01-20 Chip Salzenberg <chip@valinux.com>
953 * support/include/xio.h (xgetc): Declare to return int.
954 * support/nfs/xio.c (xgetc): Return int.
955 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
956 * utils/statd/statd.c (main): Use int for value of getopt.
957 * debian/changelog: Version 0.2.1-5.
959 2000-12-10 Chip Salzenberg <chip@valinux.com>
961 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
962 program and procedure numbers of kernel lockd's callback. Also,
963 besides the old (and broken) procedure #24, allow #16 per Trond.
965 2000-12-03 Chip Salzenberg <chip@valinux.com>
967 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
968 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
969 * debian/changelog: Version 0.2.1-4.
971 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
973 * utils/mountd/auth.c (auth_authenticate): Log the bad path
976 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
978 * support/nfs/exports.c (getexportent): Check for host name
979 without option, or options without hostname, and print a warning,
980 as this is most likely a typo.
982 2000-11-19 Chip Salzenberg <chip@valinux.com>
984 * debian/control: Add dependency on portmap.
985 * debian/changelog: Version 0.2.1-3.
987 2000-11-10 H.J. Lu <hjl@lucon.org>
989 * nfs-utils.spec.in: Don't use libtool.
990 Add ChangeLog and COPYING to doc.
991 * nfs-utils.spec: Rebuild.
993 2000-11-09 H.J. Lu <hjl@lucon.org>
995 * etc/redhat/nfs.init (start): Back out the last change.
997 2000-11-09 H.J. Lu <hjl@lucon.org>
999 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
1000 TCP is not supported by kernel.
1002 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
1004 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
1005 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
1007 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
1009 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
1011 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
1012 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
1013 callbacks to local lockd.
1015 2000-10-18 Scott McDermott <mcdermot@questra.com>
1017 * utils/exportfs/exports.man: Updated for CIDR netmask.
1019 2000-10-17 Scott McDermott <mcdermot@questra.com>
1021 * support/export/client.c (client_init): Support CIDR netmask
1024 2000-10-11 H.J. Lu <hjl@lucon.org>
1026 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1027 * configure: Rebuilt.
1029 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
1031 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1032 "/var/lib/nfs/state".
1034 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
1036 * utils/statd/statd.h (run_mode): New global bitmask of runtime
1037 behaviors: fg/bg, logging, etc.
1038 * utils/statd/statd.c: New command line options: -V -h -? -d .
1039 * utils/statd/statd.man: Update for changes to statd.
1041 * utils/statd/log.h (log_init): Remove parameter of function; use
1042 global variable "name_p" instead.
1043 * utils/statd/log.c: Add support for logging to stderr.
1045 * utils/statd/notlist.c: Partially rewrite notify list handling
1046 functions. Eliminate run-off-end-of-list bug when calling
1047 nlist_insert_timer. Add lots of comments.
1049 2000-09-27 H.J. Lu <hjl@lucon.org>
1051 * README: Updated for RedHat 7.0.
1053 2000-09-27 H.J. Lu <hjl@lucon.org>
1055 * nfs-utils.spec: Rebuild.
1057 2000-09-27 H.J. Lu <hjl@lucon.org>
1059 * README: Updated for 0.2.1.
1061 2000-09-27 H.J. Lu <hjl@lucon.org>
1063 * nfs-utils.spec.in: Updated to use rpm macros and support
1066 2000-09-25 H.J. Lu <hjl@lucon.org>
1068 * configure.in (VERSION): Set to "0.2.1".
1069 * configure: Regenerated.
1070 * nfs-utils.spec: Updated.
1072 2000-09-25 H.J. Lu <hjl@lucon.org>
1074 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1075 non-NULL hostent is always returned.
1077 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1079 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1080 have an executable (i.e. kernel threads)
1082 2000-09-01 H.J. Lu <hjl@lucon.org>
1084 * README: Updated for 0.2.
1086 2000-09-01 Jay Weber <jweber@valinux.com>
1088 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1089 supporting version 3 of nfs if available, else it will fall back to
1090 version 2 support only.
1092 2000-08-30 H.J. Lu <hjl@lucon.org>
1094 * configure.in (VERSION): Set to "0.2".
1095 * configure: Regenerated.
1096 * nfs-utils.spec: Updated.
1098 2000-08-25 H.J. Lu <hjl@lucon.org>
1100 * support/misc/tcpwrapper.c (logit): Modify the log output.
1102 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1104 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1105 utils/mountd/mountd.man: updated
1107 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1108 * utils/rquotad/Makefile: fix comment
1110 * support/misc/tcpwrapper.c (logit): added comment about waiting
1111 for the children after fork()
1113 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1114 zombies behind (from logit()'s fork)
1115 * utils/rquotad/rquota_svc.c (main): ditto
1116 * utils/statd/statd.c (main): ditto
1118 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1119 to check_default instead of 0, for prognum
1121 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1122 to check_default instead of 0, for prognum
1124 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1125 HAVE_TCP_WRAPPER is defined.
1126 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1127 defined. Reject an RPC call if check_default () fails.
1129 2000-08-25 H.J. Lu <hjl@lucon.org>
1131 * support/include/tcpwrapper.h: New for the tcp wrapper
1133 * support/misc/Makefile: Likewise.
1134 * support/misc/from_local.c: Likewise.
1135 * support/misc/tcpwrapper.c: Likewise.
1137 * aclocal.m4 (AC_TCP_WRAPPER): New.
1138 * configure.in: Use it. Substitute LIBWRAP.
1139 * configure: Rebuilt.
1141 * config.mk.in (LIBNSL): New.
1142 (LIBWRAP): Likewise.
1144 * support/Makefile (SUBDIRS): Add misc.
1146 * support/lib/Makefile (LIBS): Add libmisc.a.
1148 * utils/rquotad/Makefile (LIBS): Add
1150 -lmisc $(LIBWRAP) $(LIBNSL)
1152 * utils/statd/Makefile (LIBS): Likewise.
1154 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1155 HAVE_TCP_WRAPPER is defined.
1156 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1157 defined. Reject an RPC call if check_default () fails.
1159 * utils/statd/statd.c: Include "tcpwrapper.h" if
1160 HAVE_TCP_WRAPPER is defined.
1161 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1162 check_default () before calling sm_prog_1 (). Define it as
1163 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1165 2000-08-25 Chip Salzenberg <chip@valinux.com>
1167 * debian/*: Complete Debian build support.
1168 * etc/debian/*: Remove.
1170 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1172 * support/export/client.c(client_check): removed the "dot+1" as a
1173 ypdomain argument to innetgr as this is entirely bogus.
1174 It should always be NULL.
1176 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1178 * support/export/xtab.c(xtab_read): introduce new mode for
1179 reading xtab. i.e. a list of exports that might be known to the
1180 kernel, or might not. These are flagged as m_exported == -1
1181 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1182 value "2" for xtab, meaning don't trust this too much.
1183 * support/include/exportfs.h(struct mexport): changed m_exported
1184 from one bit to an int so that it can hold new value
1185 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1186 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1187 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1190 * support/nfs/xio.c(xflock): added O_CREAT when getting
1191 a write lock so that missing files aren't fatal.
1193 * etc/debian/nfs-common: new file from "potato"
1194 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1196 2000-08-09 H.J. Lu <hjl@lucon.org>
1198 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1199 startup to ensure all existing clients work fine.
1201 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1202 to xtab_read () for reading _PATH_XTAB.
1204 2000-08-02 H.J. Lu <hjl@lucon.org>
1206 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1207 avoid the reverse name lookup.
1209 2000-07-04 H.J. Lu <hjl@lucon.org>
1211 * utils/statd/log.c: Include <stdlib.h> for exit ().
1213 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1216 2000-07-04 H.J. Lu <hjl@lucon.org>
1218 * configure.in (VERSION): Set to "0.1.9.1".
1219 * configure: Regenerated.
1220 * nfs-utils.spec: Updated.
1224 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1226 * support/export/hostname.c (hostent_dup): Handle the NULL
1229 2000-07-03 H.J. Lu <hjl@lucon.org>
1231 * README: Update the util-linux requirement.
1233 2000-07-03 H.J. Lu <hjl@lucon.org>
1235 * configure.in (VERSION): Set to "0.1.9".
1236 * configure: Regenerated.
1237 * nfs-utils.spec: Updated.
1241 2000-07-03 H.J. Lu <hjl@lucon.org>
1243 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1244 stop to ensure all clients can still access the server
1245 before it is shutdown.
1247 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1249 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1250 calls with format string.
1252 2000-06-28 Chip Salzenberg <chip@valinux.com>
1254 * utils/statd/log.c (log): Call syslog with format string.
1256 2000-06-27 H.J. Lu <hjl@lucon.org>
1258 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1259 instead of OPEN_MAX.
1261 2000-06-27 H.J. Lu <hjl@lucon.org>
1265 2000-06-27 H.J. Lu <hjl@lucon.org>
1267 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1268 startup to ensure all existing clients are exported.
1270 * configure.in (VERSION): Set to "0.1.8.2".
1271 * configure: Regenerated.
1272 * nfs-utils.spec: Updated.
1274 2000-06-06 H.J. Lu <hjl@lucon.org>
1276 * configure.in (VERSION): Set to "0.1.8.1".
1277 * configure: Regenerated.
1278 * nfs-utils.spec: Updated.
1280 2000-06-06 H.J. Lu <hjl@lucon.org>
1282 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1283 to "struct sockaddr_in *" for glibc 2.2.
1284 (mount_umnt_1_svc): Likewise.
1285 (mount_umntall_1_svc): Likewise.
1286 (mount_export_1_svc): Likewise.
1287 (mount_exportall_1_svc): Likewise.
1288 (mount_pathconf_2_svc): Likewise.
1289 (get_rootfh): Likewise.
1291 2000-06-04 H.J. Lu <hjl@lucon.org>
1293 * etc/redhat/nfs.init: Fix a typo in comment.
1295 2000-05-31 H.J. Lu <hjl@lucon.org>
1297 * configure.in (VERSION): Set to "0.1.8".
1298 * configure: Regenerated.
1299 * nfs-utils.spec: Updated.
1303 2000-05-31 H.J. Lu <hjl@lucon.org>
1305 * configure.in (VERSION): Set to "0.1.7.5".
1306 * configure: Regenerated.
1307 * nfs-utils.spec: Updated.
1309 * support/include/nfslib.h (exportent): Add a new field,
1310 r_count, to count the number of mounts from a client.
1311 (getrmtabent): Take a new argument for position in file.
1312 (putrmtabent): Likewise.
1313 (fgetrmtabent): Likewise.
1314 (fputrmtabent): Likewise.
1315 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1316 for position in file.
1317 (fgetrmtabent): Likewise.
1318 (putrmtabent): Likewise.
1319 (fputrmtabent): Likewise.
1321 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1324 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1325 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1326 and fputrmtabent ().
1327 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1328 (mountlist_del): Likewise.
1329 (mountlist_del_all): Likewise.
1330 (mountlist_list): Likewise.
1332 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1333 for the existing entry and initialize "r_count" to 1.
1334 (mountlist_del): Decrement "r_count".
1336 2000-05-18 H.J. Lu <hjl@lucon.org>
1338 * configure.in (VERSION): Set to "0.1.7.4".
1339 * configure: Regenerated.
1340 * nfs-utils.spec: Updated.
1342 2000-05-18 H.J. Lu <hjl@lucon.org>
1344 * etc/redhat/nfs.init (restart): Just do stop and start.
1346 2000-05-09 Jay Weber <jweber@valinux.com>
1348 * utils/rquotad/hasquota.c: added support for ext3 recognition
1350 * utils/rquotad/mntent.h: Likewise.
1352 2000-05-01 H.J. Lu <hjl@lucon.org>
1354 * configure.in (VERSION): Set to "0.1.7.3".
1355 * configure: Regenerated.
1356 * nfs-utils.spec: Updated.
1358 2000-05-01 H.J. Lu <hjl@lucon.org>
1360 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1361 mounting poins in /etc/fstab.
1363 2000-05-01 H.J. Lu <hjl@lucon.org>
1365 * configure.in (VERSION): Set to "0.1.7.2".
1366 * configure: Regenerated.
1367 * nfs-utils.spec: Updated.
1369 2000-05-01 H.J. Lu <hjl@lucon.org>
1371 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1372 to check for the mounting point.
1374 2000-04-29 Chip Salzenberg <chip@valinux.com>
1375 Neil Brown <neilb@cse.unsw.edu.au>
1377 * Really re-use RPC ports.
1378 (Fixes earlier patch. Sorry, Neil.)
1380 2000-04-26 H.J. Lu <hjl@lucon.org>
1382 * configure.in (VERSION): Set to "0.1.7.1".
1383 * configure: Regenerated.
1384 * nfs-utils.spec: Updated.
1386 2000-04-26 H.J. Lu <hjl@lucon.org>
1388 * etc/redhat/nfslock.init: Check if lockd exits before killing
1391 2000-04-25 H.J. Lu <hjl@lucon.org>
1393 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1395 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1397 * support/nfs/exports.c (parsesquash): Correctly set the
1400 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1402 * support/include/nfs/nfs.h: Removed knowledge of internals of
1403 kernel filehandles (which can change) and defined nfs_fh_size
1404 which has variable size
1406 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1407 get variable sized file handles, and change getfh{,old} to
1410 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1413 * tools/Makefile, tools/nlmtest/nlmtest.c
1414 nlmtest.c depended on internel format of file handles, so now
1418 2000-03-12 Chip Salzenberg <chip@valinux.com>
1419 Neil Brown <neilb@cse.unsw.edu.au>
1421 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1423 2000-03-13 H.J. Lu <hjl@lucon.org>
1425 * etc/redhat/nfsd.init: Updated.
1427 * etc/redhat/nfslock.init: Updated.
1429 * nfs-utils.spec.in: Updated.
1431 * configure.in (VERSION): Set to "0.1.7".
1432 * configure: Regenerated.
1433 * nfs-utils.spec: Updated.
1437 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1439 * utils/exportfs/exportfs.c (dump): Included printing of
1440 nohide, no_subtree_check, and insecure_locks
1442 2000-02-26 Chip Salzenberg <chip@valinux.com>
1444 * config.mk.in (INSTALLSUID): Strip ("-s").
1445 (INSTALLSCRIPT): Define.
1446 * utils/nhfsstone/Makefile: Use it.
1448 2000-02-26 Chip Salzenberg <chip@valinux.com>
1450 * utils/lockd/lockd.man: Create.
1451 * utils/lockd/Makefile: Install it.
1452 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1453 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1454 * utils/nhfsstone/Makefile: Install the helper scripts and
1456 * utils/exportfs/exports.man: Fix typo.
1458 2000-02-26 Chip Salzenberg <chip@valinux.com>
1460 * support/nfs/xio.c (xungetc): Decrement line number when
1461 character to unget is newline. Make first parameter int, so
1462 it can distinguish EOF from \377.
1463 * support/include/xio.h (xungetc): Adjust prototype.
1465 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1467 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1468 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1469 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1471 This is for supporting a new option introduced in 2.3.42
1473 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1475 * COPYING: Added. GPL.
1477 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1479 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1480 to get the block size.
1482 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1484 * nfs-utils.spec.in: Update ftp site.
1486 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1488 * README: Update hostnames.
1490 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1492 * configure.in (VERSION): Set to "0.1.6".
1493 * configure: Regenerated.
1494 * nfs-utils.spec: Updated.
1498 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1500 * utils/mountd/auth.c (auth_authenticate_internal): Call
1501 xstrdup for hostname before passing it to gethostbyname.
1503 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1506 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1508 * README: Update the mailing list address.
1510 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1512 * configure.in (VERSION): Set to "0.1.5".
1513 * configure: Regenerated.
1514 * nfs-utils.spec: Updated.
1518 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1520 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1523 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1525 * configure.in (VERSION): Set to "0.1.4".
1526 * configure: Regenerated.
1527 * nfs-utils.spec: Updated.
1531 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1533 * nfs-utils.spec.in: New file.
1535 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1537 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1539 1999-12-04 Chip Salzenberg <chip@valinux.com>
1541 * config.mk.in: Use $(CC) as set by configure.
1543 1999-12-04 Chip Salzenberg <chip@valinux.com>
1545 * rules.mk: Call $(MAKE) with $(MFLAGS).
1547 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1549 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1550 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1552 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1554 * nfs-utils.spec (Version): Set to 0.1.3.
1556 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1557 * configure: Regenerated.
1561 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1563 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1564 (_PATH_DEV_DSK): Likewise.
1565 (getquotainfo): Match the mounting point from /etc/mtab
1566 instead of calling nfsmount_to_devname ().
1568 1999-11-24 Chip Salzenberg <chip@valinux.com>
1570 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1571 to the new port 24 as well as the historical port 100021.
1573 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1575 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1576 stopping nfsd to stop spurious ESTALE on server shutdown.
1578 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1580 * support/nfs/exports.c (parseopts): make copy of opt string
1581 before 'nul'ing out commas so that
1583 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1585 applies both options to both exports.
1587 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1589 * README: Fix a few typos.
1591 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1593 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1594 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1595 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1596 (unsigned_dec): Likewise.
1597 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1598 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1600 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1602 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1603 (unsigned_dec): Likewise.
1604 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1605 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1606 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1608 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1610 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1611 * support/nfs/exports.c: added {no_,}subtree_check and changed
1613 * utils/exportfs/exports.man: added no_subtree_check and nohide
1614 and removed irrelevant stuff from unfsd.
1615 * support/export/rmtab.c: rmtab_read didn't quite do the right
1616 thing if a pathname from rmtab was a subdirectory of an export-point
1618 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1620 * README: Updated ftp site.
1622 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1624 * nfs-utils.spec (Version): Set to 0.1.2.
1626 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1627 * configure: Regenerated.
1631 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1633 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1634 (auth_authenticate_internal): Check for NULL return on forward
1636 (auth_authenticate): Handle "no_forward_dns".
1638 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1640 * Version 0.1.1 released.
1642 * nfs-utils.spec (Version): Set to 0.1.1.
1644 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1645 * configure: Regenerated.
1649 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1651 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1653 (Provides): Likewise.
1655 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1657 * Initial version 0.1 released.
1659 * configure.in (VERSION): Set to "nfs-utils 0.1".
1660 * configure: Regenerated.
1662 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1664 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1666 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1667 kernel only if the entry is exported to kernel.
1668 (unexportfs): Likewise.
1670 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1672 1/ utils/mountd/rmtab.c::mountlist_list
1674 This routine stats the rmtab file to see if it has changed. It
1675 if has, it cleans up it's old copy of the data. But it still
1676 always re-read the file, thus returning multiple copies of the
1677 data on consecutive calls without intervening changes.
1678 "Showmount -a" didn't show this as it appears to sort/unique the
1679 data, but 'strace showmount -a' showed that the size of the
1680 datagram that it received grew.
1682 I moved the getrmtabent loop inside the mtime test.
1684 2/ utils/exportfs/exportfs.c
1686 Many routines used the m_path field of m_export instead of
1688 According to the comment in nfslib.h, m_path should only
1689 be used when processing a mount request (i.e. in mountd)
1690 where the mountpoint may be a subdirectory of the export point.
1692 I changed all occurances of m_path to e_path
1695 3/ utils/exportfs/exportfs.c:main
1697 extra arguments are not meaningful with -a or -r, but
1698 exportfs accepted them and then ignored the -a/-r, expect that
1699 -r would still unexport everything first.
1701 I generate an error if there are extra args and f_all
1703 4/ utils/exportfs/exportfs.c:main
1704 extract dump out as a special case.
1706 5/ utils/exportfs/exportfs.c
1707 made f_reexport a local variable.
1710 6/ utils/exportfs/exportfs.c:main,exportall
1712 support/export/rmtab.c
1713 only mayexport on newly created entries, don't set xtabent at all
1715 7/ support/include/nfslib.h
1717 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1719 8/ support/export/xtab.c
1721 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1725 9/ support/export/xtab.c
1727 xtab_mount_read now sets m_exported, and NOT
1728 xtabent and mayexport
1730 removed the append arguement from xtab_write as it was
1733 added is_export flag to xtab_write similar to xtab_read
1734 if is_export, only write entries with m_xtabent or m_addxtab
1735 if !is_export, only write entries with m_exported
1737 10/ support/export/export.c::export_allowed_internal
1739 added test for exp->m_mayexport, as the export tree
1740 may have entries that are no longer allowed to be exported,
1741 and so shouldn't caused deduced exported by rmtab_read
1743 11/ utils/exportfs/exportfs.c::main
1744 error checking of flags.
1746 12/ utils/exportfs/exportfs.c
1748 total rewrite of export and unexport logic.
1750 - build an exportslist of valid exports, based on
1751 current etab file and arguments,
1752 - read rmtab to instantiate relevant wild card entries
1753 - read etab to find out what is currently exported
1754 - synchronise intention with reality
1755 - write out etab and xtab
1758 discard the m_addxtab flag
1759 add m_changed flag so we know what to report in exportfs
1761 14/ utils/mountd/auth.c:auth_authenticate
1763 the value returned by gethostbyaddr was trusted.
1765 It now follows this with a call to gethostbyname
1766 and checks that the address is in the list.
1768 15/ support/export/nfsctl.c::cltsetup,expsetup
1770 force client names to lowercase as kernel is
1773 16/ quietened a few compiler warnings
1775 17/ support/export/client:client_lookup
1777 look for pre-existing client with same name before creating
1780 18/ support/include/exportfs.h
1782 The ordering of the MCL_* enum was:
1783 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1785 I moved ANONYMOUS to the end.
1787 The ordering is significant when an export entry is being searched for to
1788 match a given address. There are two problems with ANONYMOUS being first.
1790 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1791 then the ro case will always be found first and the privileged hosts won't get
1793 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1794 export entry for the specific host, and writes it to xtab.
1795 When another request comes from the same host, the ANONYMOUS entry is found again,
1796 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1797 again. If causes bloat in xtab.
1799 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1801 19/ utils/exportfs/exportfs.man
1802 many updates to the man page to reflect changes to the code
1804 -----------------------
1810 - allow exportfs to modify rmtab file
1811 - make sure kernel never gets two clients with same IP address
1812 - possible kernel should reject
1813 - needs to be some way to lookup client in kernel by IP address
1814 - maybe get kernel to do case-insensitive comparisons on client names
1815 - remove unused clients from kernel
1817 - change etab to xtab and xtab to xtab.active
1819 - timestamp and/or statd-stamp in rmtab for removing old entries.
1821 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1823 * linux-nfs: New directory.
1824 * linux-nfs/ChangeLog: Moved from ..
1825 * linux-nfs/INSTALL: Likewise.
1826 * linux-nfs/KNOWNBUGS: Likewise.
1827 * linux-nfs/NEW: Likewise.
1828 * linux-nfs/README: Likewise.
1829 * linux-nfs/THANKS: Likewise.
1830 * linux-nfs/TODO: Likewise.
1832 * Starting from knfsd 1.4.7.