1 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
2 * utils/mountd/cache.c(cache_process_req): clear fd after
3 processing so as not to confused libc/sunrpc into thinking
4 it need to do something with that fd.
6 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
8 * debian/nfs-kernel-server.init(start,stop) mount the nfsd
9 filesystem, if available, before starting nfs services, and
10 unmount it afterwards.
11 * etc/nodist/nfs-server: ditto
12 * etc/redhat/nfs.init: likewise
13 * etc/redhat/nfs: add "MOUNT_NFSD" flag to control above.
15 2004-06-08 NeilBrown <neilb@cse.unsw.edu.au>
17 * utils/exportfs/exportfs.c: Don't rmtab_read if new_cache, it
19 * support/nfs/cacheio.c(cache_flush): Change order in which caches
20 are flushed so that dependancies don't keep things in the cache
23 2004-03-18 Chip Salzenberg <chip@pobox.com>
25 * debian/changelog: Version 1.0.6-2.
27 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
28 from "J. Bruce Fields" <bfields@fieldses.org>
30 * utils/mountd/cache.c: call auth_reload to make sure auth data is
31 current before responding to kernel upcall.
33 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
34 Based on patch from Greg Banks <gnb@melbourne.sgi.com>
36 * utils/exportfs/exports.man: Document fsid= option.
38 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
42 * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
43 support/include, and depend in "predep"
44 * support/export/Makefile, tools/rpcgen/Makefile,
45 utils/statd/Makefile: add "predep" rule so that "make dep" works.
46 * Makefile: allow a simple "make" to run ./configure and "make dep"
48 * configure.in, nfs-utils.spec: Update version to 1.0.6
51 2003-09-12 Chip Salzenberg <chip@pobox.com>
53 * debian/changelog: Version 1.0.6-1.
55 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
57 * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
59 * utils/statd/statd.c(main): Ditto.
61 michael <michael@newdream.net> discovered that svc_setreqsize
62 in glibc can segfault if RLIMIT_NOFILE is bigger than
63 FD_SETSIZE, so a simple solution is to impose a hard limit.
65 2003-09-09 Chip Salzenberg <chip@pobox.com>
67 * debian/changelog: Version 1.0.5-3.
68 * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
69 on invalid reverse DNS.
70 * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
71 * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
72 * tools/rpcgen/rpc_parse.c (def_union): Likewise.
74 2003-08-22 Chip Salzenberg <chip@pobox.com>
76 * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
77 N_*, to avoid conflict with ISO C built-in log() function.
78 * utils/statd/*.c: Use note().
80 2003-08-20 Chip Salzenberg <chip@pobox.com>
82 * debian/changelog: Version 1.0.5-2.
84 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
86 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
89 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
91 * support/include/nfs/export.h, support/nfs/exports.c,
92 utils/exportfs/exports.c, utils/mountd/mountd.c: change
93 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
94 meaning. Also remove meaningless
95 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
97 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
99 * support/export/xtab.c, support/include/nfslib.h,
100 support/nfs/cacheio.c, support/nfs/nfssvc.c,
101 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
102 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
103 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
104 (nfs-utils-1.0.5-post2)
106 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
108 * support/nfs/nfsexport.c: open channel file O_WRONLY when
110 * utils/mountd/cache.c: maintain mountlist when new_cache is
111 active. Also use O_WRONLY for channel files.
112 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
113 rather than an nfs_export.
114 * utils/mountd/rmtab.c: ditto.
115 (nfs-utils-1.5.0-post1)
117 2003-07-24 Chip Salzenberg <chip@pobox.com>
119 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
120 use Debian security team's cleaner approach.
121 * debian/changelog: Version 1.0.5-1.
122 * debian/nfs-kernel-server.init: Cosmetic changes.
124 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
127 1.0.4 was a bit of a brown-paper-bag-release because of the extra
128 'free' in auth.c. So I'm releasing this just a few days later.
130 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
132 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
133 check if new_cache is enabled, error if not, flush and exit if it
135 * utils/exportfs/exportfs.man: Explain -f option and explain the
136 two different modes that exportfs can work in.
137 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
139 * utils/mountd/mountd.man: Record the change if default behaviour
141 * configure.in, nfs-utils.spec: update version to 1.0.5 and
144 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
146 * utils/mountd/mountd.c(main): getopt string fix for 'o'
147 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
148 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
150 * support/include/nfs/export.h: Reserve a bit for possible ACL
153 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
155 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
156 assorted changed to cope with section 7 of the manual.
157 * configure.in, nfs-utils.spec: Update version to 1.0.4
160 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
161 baseline for 2.6 and 2.8. I.e. it should continue to work right
162 through the 2.8 (or 3.0) kernel series. Previous releases wont.
164 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
165 Steve Dickson <SteveD@redhat.com>
168 * utils/statd/statd.c: create a pidfile with pid of statd, and
169 truncate it when statd exists.
170 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
171 and warn if this is root.
172 * utils/statd/statd.c: when statd forks, connect child to parent
173 with a pipe, and send a byte down the pipe once the child is
175 * Makefile: create and chown sm, sm.bak, state when "make install"
176 * configure.in: add --with-statduser= option which defaults to
177 "rpcuser" or "nobody"
178 * config.mk.in: pass "statduser" through to Makefile
180 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
182 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
183 used as the size was changed somewhere in 2.5.60-2.5.70. Without
184 this nfs-utils compiles against 2.6 headers will not work on a
187 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
189 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
190 set number of threads by writing to there. This means it will
191 still work when the syscall interface goes away in 2.7.
193 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
194 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
196 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
197 so as to only export the wildcard exports that were asked for.
198 * support/export/export.c(export_allowed): changed to return the
199 nfs_export rather than a "struct exportent", as m_changed is
201 * support/export/rmtab.c(rmtab_read): modified to deal with
202 interface change for export_allowed(), and enhanced to preserve
203 m_changed flag when a wild-card export causes the creation of
204 a non-wildcard export.
206 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
207 Steve Dickson <SteveD@redhat.com>
209 * utils/mountd/mountd.man: Add valid kinds of debugging.
210 * utils/mountd/mountd.c(main): ignore SIGPIPE
211 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
212 we don't get warnings about unavailable stats that weren't asked
215 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
217 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
218 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
219 'forever', so things disappear out of the cache rather than just
222 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
224 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
227 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
229 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
230 etc/redhat/nfs.init: when checking if V3 is supported, make sure
231 nfs server 'knows' about 127.0.0.1 first.
233 2003-06-10 Chip Salzenberg <chip@pobox.com>
235 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
236 * debian/changelog: Version 1.0.3-2.
238 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
239 NeilBrown <neilb@cse.unsw.edu.au>
241 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
242 long long to avoid overflow when printing stats.
244 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
246 * support/export/export.c, support/include/nfslib.h,
247 support/nfs/export.c, utils/exportfs/exportfs.c,
248 utils/mountd/mountd.c: new export option "mountpoint"
249 If no path is given, then the export point must be a
250 mount point, or it won't be exported. If a path is
251 given (e.g. mountpoint=/path) then that path must be
252 a mountpoint or the exportpoint won't be exported.
253 * utils/exportfs/exportfs.man: document mountpoint option.
254 * support/misc/mountpoint.c: New file with is_mountpoint()
255 to determine if something is a mountpoint.
257 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
259 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
260 argument as we might not be getting the filehandle for the
262 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
263 cache_get_filehandle.
264 * utils/mountd/mountd.c(get_rootfh): check export point and
265 requested directory are on the same filesystem, and complain if
268 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
270 * utils/mountd/auth.c(auth_authenticate_internal): make sure
271 portnumber is still checked when using new cache lookup.
273 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
275 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
276 Don't actually talk to kernel when new cache is in effect, except
278 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
279 * support/export/xtab.c: Only rename new xtab into place if it has
280 changed, thus preserving modify date for exportfs to use when
282 * support/nfs/cacheio.c: Add cache_flush
283 * support/export/xtab.c: Only rename new xtab into place if it has
284 changed, thus preserving modify date for exportfs to use when
287 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
289 * support/export/client.c: Add client_compose, client_member to
290 handle new composite client names
291 * support/include/exportfs.h: Declare above functions.
292 * utils/mountd/auth.c: use client_compose to determine calling
293 client if new cache is being used.
294 * utils/mountd/auth.c: call cache_export to export a filesystem if
295 new_cache, check if new cache is used, and call my_svc_run instead
297 * utils/mountd/svc_run.c: new file defining my_svc_run
298 * utils/mountd/cache.c: new file for handling cache upcalls.
299 * support/nfs/cacheio.c(check_new_cache): new function to check if
300 new cache should be used.
303 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
305 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
306 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
307 * utils/exportfs/exportfs.c(dump): ditto
309 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
311 * support/export/hostname.c(get_reliable_hostbyaddr): new function
312 to get host name from address with full checking of authenticity.
313 * support/include/misc.h: declare above function
314 * utils/mountd/auth.c(auth_authenticate_internal): remove all
315 logic for authenticating address.
316 * utils/mountd/auth.c(auth_authenticate): call new
317 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
320 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
322 * tools/rpcgen/rpc_main.c(find_cpp): removed
323 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
324 then try hard-coded paths.
326 2003-03-26 Chip Salzenberg <chip@pobox.com>
328 * debian/changelog: Version 1.0.3-1.
330 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
332 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
333 "const char*", not "char*".
335 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
337 * configure.in (VERSION): Set to "1.0.3".
338 * nfs-utils.spec: Likewise.
339 * configure: Regenerated.
341 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
343 * support/nfs/cacheio.c: New File - support for read/writing
344 to export cache in /proc/rpc/*/channel
345 * support/nfs/Makefile: compile cacheio.c
346 * support/include/nfslib.h: declare cacheio.c functions
347 * support/nfs/nfsexport.c: export and unexport through
348 /proc/rpc/*/channel if possible, as old syscall interface
349 may not survive into 2.6 on all architectures.
351 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
352 Ben Leslie <benno@sesgroup.net>
354 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
355 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
356 former would incorectly ignore defport if the application
357 explicitly set __rpcfdtype. The later is sufficient to avoid the
358 special handling in the case where stdin is an internet socket.
360 * utils/mountd/mountd.c(main): Add 'n' to option list in
361 getopt_long as this is a short form of --no-tcp which want being
364 2003-02-12 Chip Salzenberg <chip@pobox.com>
366 * debian/changelog: Version 1.0.2-2.
368 2002-11-27 Chip Salzenberg <chip@pobox.com>
370 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
371 overflow bug. Reformat per rest of source file.
373 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
375 * utils/exportfs/exports.man: Correct notes about whether the wild
376 card characters match a period. They do.
378 2002-10-15 Juan Gomez <juang@us.ibm.com>
380 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
382 (mountlist_add): Call slink_safe_rename instead of rename.
384 2002-10-11 H.J. Lu <hjl@lucon.org>
386 * support/include/exportfs.h (export_errno): New.
388 * support/nfs/exports.c: Include <errno.h>.
390 (getexportent): Set export_errno to EINVAL for bad option.
391 (parseopts): Likewise.
392 Report the location of the default sync/async option.
394 * utils/exportfs/exportfs.c (main): Initialize export_errno to
395 0. Return export_errno.
397 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
398 NeilBrown <neilb@cse.unsw.edu.au>
400 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
401 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
403 2002-09-16 Chip Salzenberg <chip@pobox.com>
405 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
407 2002-09-15 Chip Salzenberg <chip@pobox.com>
409 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
410 socket, as occurs when run from sshd.
411 * debian/changelog: Version 1.0.2-1.
413 2002-09-12 H.J. Lu <hjl@lucon.org>
415 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
418 2002-09-12 H.J. Lu <hjl@lucon.org>
420 * configure.in: Remove checking svctcp_socket and svcudp_socket.
421 * configure: Regenerated.
423 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
424 (HAVE_SVCUDP_SOCKET): Removed.
426 * support/include/nfslib.h: Undo the last change.
428 2002-09-12 H.J. Lu <hjl@lucon.org>
430 * support/include/nfslib.h (svctcp_socket): Protect it with
432 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
434 2002-09-12 H.J. Lu <hjl@lucon.org>
436 * configure.in (VERSION): Set to "1.0.2".
437 * configure: Regenerated.
438 * nfs-utils.spec: Likewise.
440 2002-09-12 H.J. Lu <hjl@lucon.org>
442 * configure.in: Check svctcp_socket and svcudp_socket.
443 * configure: Regenerated.
445 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
446 (HAVE_SVCUDP_SOCKET): New.
448 * support/include/nfslib.h (svctcp_socket): New.
449 (svcudp_socket): New.
451 * support/nfs/Makefile (OBJS): Add svc_socket.o.
453 * support/nfs/svc_socket.c: New.
455 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
456 svcudp_socket if port is unspecified.
458 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
460 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
461 (killer): New. Signal handler to unregister.
462 (main): Use killer. Call svcudp_socket to get the default
465 2002-09-02 Juan Gomez <juang@us.ibm.com>
466 NeilBrown <neilb@cse.unsw.edu.au>
468 Add -N option to statd to run in notify-only mode.
470 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
471 * utils/statd/statd.man: document -N
472 * utils/statd/statd.c: enabled -N, largely exists but needed to be
473 uncommented and completed
475 2002-09-02 Juan Gomez <juang@us.ibm.com>
476 NeilBrown <neilb@cse.unsw.edu.au>
478 statd to have " -P directory" arg to use that directory instead
479 of /var/lib/nfs. This is useful for fail-over clusters.
481 * utils/statd/statd.h: define SM_DIR etc as var, not const.
482 * utils/statd/statd.c: define "-P" option to set SM_*
484 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
486 * utils/statd/notify.c: ditto.
487 * utils/statd/statd.man: document -P option.
489 2002-08-26 Chip Salzenberg <chip@pobox.com>
491 * utils/nfsd/nfsd.man: Fix typo.
492 * debian/changelog: Version 1.0.1-1.
494 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
496 * let parseopts know if /etc/exports was being read or not,
497 and have it only print "no sync or async" warning in that case.
499 2002-05-06 Tom McNeal <trmcneal@attbi.com>
500 NeilBrown <neilb@cse.unsw.edu.au>
502 * utils/nfsstat/nfsstat.c: Handle differing format for
503 /proc/net/rpc/nfsd between pre and post 2.4.0
505 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
506 James Pearson <james-p@moving-picture.com>
508 * support/nfs/rmtab.c(fendrmtabent): sync changes to
509 storage before returning, as this is critical state
511 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
512 H.J. Lu <hjl@lucon.org>
514 * etc/redhat/nfs: New.
516 2002-04-08 H.J. Lu <hjl@lucon.org>
518 * etc/redhat/nfs.init: Updated.
520 * nfs-utils.spec.in: Updated.
521 * nfs-utils.spec: Regenerated.
523 * utils/mountd/mountd.c (longopts): Fix a typo.
525 * utils/mountd/mountd.man: Updated.
527 2002-04-07 H.J. Lu <hjl@lucon.org>
529 * etc/redhat/nfslock.init (restart): Just do stop and start.
531 * etc/redhat/nfs.init: Fix a typo.
533 2002-04-07 H.J. Lu <hjl@lucon.org>
535 * configure.in (VERSION): Set to "1.0.1".
536 * configure: Regenerated.
537 * nfs-utils.spec: Likewise.
539 * README: Updated for 1.0.1.
541 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
542 H.J. Lu <hjl@lucon.org>
544 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
546 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
547 NeilBrown <neilb@cse.unsw.edu.au>
549 Add support for fsid=nn export option so that device
550 numbers don't go in filehandles.
551 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
552 is set, pass the fsid in-place of the device number
553 * support/nfs/exports.c: parse and print fsid= option.
554 Also check if efname has been set, and use "command line"
555 instead in error messages.
556 Also, use strtol instead of atoi for anon[ug]id= so that
557 bad numbers cause errors.
559 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
560 NeilBrown <neilb@cse.unsw.edu.au>
562 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
563 flag so that "sync" becomes the default.
564 Check that either "sync" or "async" is given as an option
565 and warn if neither are present
566 * utils/exportfs/exports.man: change documentation for "sync"
567 to be documentation for "async".
568 * utils/exportfs/exportfs.man: note that "sync" is the default
572 2002-01-02 Chip Salzenberg <chip@pobox.com>
574 * support/export/nfsctl.c (expsetup): Don't export entries that
575 specify id mappings not supported by the kernel. No extant kernel
576 supports any significant mapping, only 'identity' (i.e. none).
577 When other mappings are supported, this code will need changing.
578 * debian/changelog: Version 1.0-2.
580 2001-12-26 Chip Salzenberg <chip@pobox.com>
582 * nfs-utils.spec (Version): Set to "1.0".
583 * configure.in (VERSION): Likewise.
584 * configure: Regenerated.
586 * debian/changelog: Version 1.0-1.
588 * utils/exportfs/exports.man: Emphasize the need for options to
589 immediately follow client names. Explain that wildcards don't
590 usually work on addresses, but may work when reverse DNS fails.
591 Comment out a leftover TP that was TPing our indentation.
592 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
593 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
594 * debian/changelog: Version 0.3.3-6.
596 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
598 * support/export/client.c(client_lookup): If a host has multiple
599 IP addresses, then we must always use the result of a
600 gethostbyname, not that of gethostbyaddr for exporting
602 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
604 * support/export/client.c (client_lookup): use strcasecmp when
606 * support/nfs/export.c (getexportent): add fromkernel arg and use
607 different defaults as kernels prior to 2.4.11 assume different
608 defaults in /proc/fs/nfs/exports
609 * support/include/nfslib.h, support/export/export.c,
610 support/export/xtab.c: support extra "fromkernel" arg for
613 2001-12-13 Chip Salzenberg <chip@pobox.com>
615 * debian/changelog: Version 0.3.3-5.
617 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
619 * support/nfs/xio.c (xskip): Call `xungetc' instead of
620 `ungetc' to keep x_line more properly.
622 2001-11-26 Chip Salzenberg <chip@pobox.com>
624 * utils/showmount/showmount.c (main): Don't assume that strings
625 starting with digits are IP addresses.
626 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
627 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
628 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
629 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
630 man pages: We check host names *and* addresses with tcpwrappers.
631 * debian/changelog: Version 0.3.3-4.
633 2001-11-21 Chip Salzenberg <chip@pobox.com>
635 * support/nfs/clients.c (cfname): Added: current clients file name.
636 (setnfsclntent): Set it.
637 ({get,end}nfsclntent, syntaxerr): Use it.
638 * support/nfs/exports.c (efname): Added: current exports file name.
639 (setnfsexportent): Set it.
640 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
641 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
642 * debian/changelog: Version 0.3.3-3.
644 2001-10-11 Chip Salzenberg <chip@pobox.com>
646 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
647 * debian/changelog: Version 0.3.3-2.
649 2001-10-08 Chip Salzenberg <chip@pobox.com>
651 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
652 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
653 * utils/mountd/mountd.man: Update paths to /var/lib.
654 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
656 2001-10-06 Preston Brown <pbrown@redhat.com>
658 * utils/nfsstat/nfsstat.man: Updated.
660 2001-09-24 H.J. Lu <hjl@lucon.org>
662 * configure.in (VERSION): Set to "0.3.3".
663 * configure: Regenerated.
664 * nfs-utils.spec: Likewise.
666 * README: Updated for 0.3.3.
668 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
670 Arrange that "exportfs -au" never does DNS lookup:
672 * support/export/client.c (client_lookup) : add "canonical"
673 flag which says that the hostname is known to be canonical, so
676 * support/export/export.c (export_create) : add "canonical"
677 flag to be passed down to client_lookup
678 * support/export/export.c (export_lookup) : Likewise
680 * support/export/xtab.c (xtab_read) : pass appropriate
681 "canonical" flag to export_lookup and export_create:
682 set if reading list of filesystems currently exports
685 * support/export/export.c (export_read) : pass 0 as
686 "canonical" flag to export_lookup and export_create
687 * support/export/rmtab.s (rmtab_read) : Likewise
689 * support/include/exportfs.h : redeclare various routines
690 to have "canonical" flag
692 * utils/exportfs/exportfs.c (main) : redo logic for
693 "-au" to read in what is currently exported, but never even
694 look at what "should" be exported.
696 * utils/exportfs/exportfs.c (unexportall) : remove this
697 routine. Functionality is completely included in
700 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
701 flag to zero in calls to export_lookup and export_create.
704 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
705 Anne Milicia <milicia@missioncriticallinux.com>
707 * support/export/client.c (client_lookup) call gethostbyadd
708 to make sure that we have a canonical hostname, even for
710 * utils/exportfs/exportfs.c (exportfs) Likewise
712 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
714 * support/nfs/exports.c (putexportent): \octal quote any spaces
716 * support/nfs/xio.c (xgettok): recognise double-quote and
717 \octal quoting in path names
718 * utils/exportfs/exports.man: document quoting conventions
721 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
723 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
724 change from 2000-08-02: It causes problems if someone exports
725 to both a hostname and IP addresses. nfs-utils must be
726 consistant about the canonical name that it chooses.
728 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
729 H.J. Lu <hjl@lucon.org>
731 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
733 * utils/statd/statd.c (longopts): Add "name".
734 (usage): Add "-n/--name".
735 (main): Set MY_NAME with "-n/--name".
737 * utils/statd/state.c (change_state): Set MY_NAME only if it
740 * utils/statd/statd.man: Updated for "-n/--name".
742 2001-07-26 H.J. Lu <hjl@lucon.org>
744 * nfs-utils.spec (Release): Set to 8.
746 2001-07-25 H.J. Lu <hjl@lucon.org>
748 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
751 2001-06-27 H.J. Lu <hjl@lucon.org>
753 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
755 2001-06-27 H.J. Lu <hjl@lucon.org>
757 * utils/rquotad/rquota_server.c: Don't call statfs () for
758 the block size. Use BLOCK_SIZE instead.
760 2001-06-27 H.J. Lu <hjl@lucon.org>
762 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
763 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
765 * configure.in (enable_nfsv3): Set to yes by default.
766 (--enable-rquotad): Added
767 (AC_PROG_CXX): Removed.
768 (AC_OUTPUT): Add utils/Makefile.
769 (CC_FOR_BUILD): Renamed from BUILD_CC.
770 * configure: Regenerated.
772 * utils/Makefile: Removed.
774 * utils/Makefile.in: New.
776 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
778 (CC_FOR_BUILD): Renamed from BUILD_CC.
779 * nfs-utils.spec: Regenerated.
781 2001-06-15 Chip Salzenberg <chip@debian.org>
783 * debian/changelog: Version 0.3.2-2.
784 * debian/*.init: Minor fixes.
786 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
788 * etc/nodist/nfs-server: Fixed a bug where the script would
789 disable mounts from NFSv3 clients if NFSv3 is present.
791 2001-06-05 H.J. Lu <hjl@lucon.org>
793 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
794 (main): Support --descriptors/-o to set the limit of the number
795 of open file descriptors.
798 * utils/mountd/mountd.man: Updated for --descriptors/-o.
800 2001-06-04 H.J. Lu <hjl@lucon.org>
802 * nfs-utils.spec (Release): Set to 6.
804 2001-05-28 H.J. Lu <hjl@lucon.org>
806 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
807 * utils/mountd/mountd.c (main): Likewise.
808 * utils/nfsd/nfsd.c (main): Likewise.
809 * utils/rquotad/rquota_svc.c (main): Likewise.
811 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
813 * support/export/client.c (client_check): Check IP address
816 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
818 * support/export/client.c (client_gettype): Treat `*' as
821 2001-04-22 H.J. Lu <hjl@lucon.org>
823 * nfs-utils.spec.in: Fix a typo.
824 * nfs-utils.spec: Regenerated.
826 2001-04-21 H.J. Lu <hjl@lucon.org>
828 * nfs-utils.spec.in: Fix cross build.
829 * nfs-utils.spec: Regenerated.
832 2001-04-18 H.J. Lu <hjl@lucon.org>
834 * nfs-utils.spec.in: Support cross build.
835 * nfs-utils.spec: Regenerated.
841 * config.mk.in (BUILD_CC): New.
842 (CC): Set to $(BUILD_CC) if BUILD is defined.
845 (RANLIB): Set to @RANLIB@.
847 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
848 * configure: Regenerated.
850 * tools/rpcgen/Makefile (BUILD): Set to true.
852 2001-04-01 Chip Salzenberg <chip@valinux.com>
854 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
855 redundant, and sometimes broken, declaration of svc_fdset;
857 * support/nfs/rpcmisc.c (closedown): Likewise.
859 2001-03-21 H.J. Lu <hjl@lucon.org>
861 * nfs-utils.spec: Regenerated.
864 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
866 * utils/statd/statd.c (main): make sure file descriptors 0-2
867 are open to /dev/null.
869 2001-03-21 H.J. Lu <hjl@lucon.org>
871 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
872 * support/nfs/rpcmisc.c: Likewise.
873 * utils/rquotad/rquota_svc.c: Likewise.
874 * utils/rquotad/rquotad.man: Likewise.
875 * utils/statd/Makefile: Likewise.
876 * utils/statd/rmtcall.c: Likewise.
877 * utils/statd/simulate.c: Likewise.
878 * utils/statd/statd.c: Likewise.
879 * utils/statd/statd.man: Likewise.
881 2001-03-11 H.J. Lu <hjl@lucon.org>
883 * configure.in (RELEASE): New. Default to 1, set by
884 --with-release=XXX. Substitute nfs-utils.spec.
885 * nfs-utils.spec.in (Release): Set to @RELEASE@.
886 * configure: Regenerated.
887 * nfs-utils.spec: Likewise.
889 2001-03-11 H.J. Lu <hjl@lucon.org>
891 * utils/rquotad/rquotad.man: Fix a typo.
893 2001-03-11 H.J. Lu <hjl@lucon.org>
895 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
896 * support/nfs/rpcmisc.c: Likewise.
897 * utils/rquotad/rquota_svc.c: Likewise.
898 * utils/rquotad/rquotad.man: Likewise.
899 * utils/statd/Makefile: Likewise.
900 * utils/statd/rmtcall.c: Likewise.
901 * utils/statd/simulate.c: Likewise.
902 * utils/statd/statd.c: Likewise.
903 * utils/statd/statd.man: Likewise.
905 2001-03-10 H.J. Lu <hjl@lucon.org>
907 * configure.in (VERSION): Set to "0.3.2".
908 * configure: Regenerated.
909 * nfs-utils.spec: Likewise.
911 * README: Updated for 0.3.2.
913 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
915 * utils/rquotad/rquotad.man: Updated for -p.
916 * utils/statd/statd.man: Likewise.
918 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
920 * support/nfs/rpcmisc.c: export makesock()
922 * support/include/rpcmisc.h (makesock): Declared.
924 * utils/rquotad/rquota_svc.c: added longopts, added support for
925 specifying the port to bind to on the command line.
927 * utils/statd/statd.c: ditto, also specify port used for
928 outgoing connections.
929 (do_regist): Removed.
931 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
932 get_socket. Make it extern.
934 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
935 instead of do_regist.
937 * utils/statd/Makefile (LIBS): link with our own libnfs
939 2001-03-09 H.J. Lu <hjl@lucon.org>
941 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
942 * etc/nodist/nfs-client: Likewise.
944 2001-02-26 Chip Salzenberg <chip@valinux.com>
946 * debian/changelog: Version 0.3.1-1.
947 * Mention upstream source and license in copyright file.
948 * Add build-Depends for debhelper and libwrap0-dev.
950 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
952 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
953 * etc/nodist/nfs-client: Likewise.
955 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
957 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
960 2001-02-17 Patrick J. LoPresti <patl@curl.com>
962 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
965 2001-02-14 H.J. Lu <hjl@lucon.org>
967 * utils/statd/rmtcall.c: Include <time.h>.
968 * utils/statd/svc_run.c: Likewise.
970 2001-02-14 H.J. Lu <hjl@lucon.org>
972 * configure.in (VERSION): Set to "0.3.1".
973 * configure: Regenerated.
974 * nfs-utils.spec: Likewise.
976 * README: Updated for 0.3.1.
978 2001-02-14 H.J. Lu <hjl@lucon.org>
980 * support/nfs/rpcmisc.c: Include <time.h>.
982 2001-02-14 Chip Salzenberg <chip@valinux.com>
984 * debian/control: Change priority of nhfsstone package to 'extra'.
986 2001-02-12 Chip Salzenberg <chip@valinux.com>
988 * debian/changelog: Version 0.3-2.
990 2001-02-02 H.J. Lu <hjl@lucon.org>
992 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
994 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
995 out SO_SNDBUF/SO_RCVBUF.
996 (rpc_init): Remove bufsize and remove socksz in calls to
999 * utils/mountd/mountd.c (main): Remove bufsize in calls to
1002 2001-01-28 Chip Salzenberg <chip@valinux.com>
1004 * debian/changelog: Version 0.3-1.
1006 2001-01-25 H.J. Lu <hjl@lucon.org>
1008 * configure.in (VERSION): Set to "0.3".
1009 * configure: Regenerated.
1010 * nfs-utils.spec: Likewise.
1012 * README: Updated for 0.3.
1014 2001-01-25 H.J. Lu <hjl@lucon.org>
1016 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
1018 2001-01-20 Chip Salzenberg <chip@valinux.com>
1020 * support/include/xio.h (xgetc): Declare to return int.
1021 * support/nfs/xio.c (xgetc): Return int.
1022 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
1023 * utils/statd/statd.c (main): Use int for value of getopt.
1024 * debian/changelog: Version 0.2.1-5.
1026 2000-12-10 Chip Salzenberg <chip@valinux.com>
1028 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
1029 program and procedure numbers of kernel lockd's callback. Also,
1030 besides the old (and broken) procedure #24, allow #16 per Trond.
1032 2000-12-03 Chip Salzenberg <chip@valinux.com>
1034 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
1035 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
1036 * debian/changelog: Version 0.2.1-4.
1038 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
1040 * utils/mountd/auth.c (auth_authenticate): Log the bad path
1043 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
1045 * support/nfs/exports.c (getexportent): Check for host name
1046 without option, or options without hostname, and print a warning,
1047 as this is most likely a typo.
1049 2000-11-19 Chip Salzenberg <chip@valinux.com>
1051 * debian/control: Add dependency on portmap.
1052 * debian/changelog: Version 0.2.1-3.
1054 2000-11-10 H.J. Lu <hjl@lucon.org>
1056 * nfs-utils.spec.in: Don't use libtool.
1057 Add ChangeLog and COPYING to doc.
1058 * nfs-utils.spec: Rebuild.
1060 2000-11-09 H.J. Lu <hjl@lucon.org>
1062 * etc/redhat/nfs.init (start): Back out the last change.
1064 2000-11-09 H.J. Lu <hjl@lucon.org>
1066 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
1067 TCP is not supported by kernel.
1069 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
1071 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
1072 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
1074 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
1076 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
1078 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
1079 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
1080 callbacks to local lockd.
1082 2000-10-18 Scott McDermott <mcdermot@questra.com>
1084 * utils/exportfs/exports.man: Updated for CIDR netmask.
1086 2000-10-17 Scott McDermott <mcdermot@questra.com>
1088 * support/export/client.c (client_init): Support CIDR netmask
1091 2000-10-11 H.J. Lu <hjl@lucon.org>
1093 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1094 * configure: Rebuilt.
1096 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
1098 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1099 "/var/lib/nfs/state".
1101 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
1103 * utils/statd/statd.h (run_mode): New global bitmask of runtime
1104 behaviors: fg/bg, logging, etc.
1105 * utils/statd/statd.c: New command line options: -V -h -? -d .
1106 * utils/statd/statd.man: Update for changes to statd.
1108 * utils/statd/log.h (log_init): Remove parameter of function; use
1109 global variable "name_p" instead.
1110 * utils/statd/log.c: Add support for logging to stderr.
1112 * utils/statd/notlist.c: Partially rewrite notify list handling
1113 functions. Eliminate run-off-end-of-list bug when calling
1114 nlist_insert_timer. Add lots of comments.
1116 2000-09-27 H.J. Lu <hjl@lucon.org>
1118 * README: Updated for RedHat 7.0.
1120 2000-09-27 H.J. Lu <hjl@lucon.org>
1122 * nfs-utils.spec: Rebuild.
1124 2000-09-27 H.J. Lu <hjl@lucon.org>
1126 * README: Updated for 0.2.1.
1128 2000-09-27 H.J. Lu <hjl@lucon.org>
1130 * nfs-utils.spec.in: Updated to use rpm macros and support
1133 2000-09-25 H.J. Lu <hjl@lucon.org>
1135 * configure.in (VERSION): Set to "0.2.1".
1136 * configure: Regenerated.
1137 * nfs-utils.spec: Updated.
1139 2000-09-25 H.J. Lu <hjl@lucon.org>
1141 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1142 non-NULL hostent is always returned.
1144 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1146 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1147 have an executable (i.e. kernel threads)
1149 2000-09-01 H.J. Lu <hjl@lucon.org>
1151 * README: Updated for 0.2.
1153 2000-09-01 Jay Weber <jweber@valinux.com>
1155 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1156 supporting version 3 of nfs if available, else it will fall back to
1157 version 2 support only.
1159 2000-08-30 H.J. Lu <hjl@lucon.org>
1161 * configure.in (VERSION): Set to "0.2".
1162 * configure: Regenerated.
1163 * nfs-utils.spec: Updated.
1165 2000-08-25 H.J. Lu <hjl@lucon.org>
1167 * support/misc/tcpwrapper.c (logit): Modify the log output.
1169 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1171 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1172 utils/mountd/mountd.man: updated
1174 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1175 * utils/rquotad/Makefile: fix comment
1177 * support/misc/tcpwrapper.c (logit): added comment about waiting
1178 for the children after fork()
1180 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1181 zombies behind (from logit()'s fork)
1182 * utils/rquotad/rquota_svc.c (main): ditto
1183 * utils/statd/statd.c (main): ditto
1185 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1186 to check_default instead of 0, for prognum
1188 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1189 to check_default instead of 0, for prognum
1191 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1192 HAVE_TCP_WRAPPER is defined.
1193 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1194 defined. Reject an RPC call if check_default () fails.
1196 2000-08-25 H.J. Lu <hjl@lucon.org>
1198 * support/include/tcpwrapper.h: New for the tcp wrapper
1200 * support/misc/Makefile: Likewise.
1201 * support/misc/from_local.c: Likewise.
1202 * support/misc/tcpwrapper.c: Likewise.
1204 * aclocal.m4 (AC_TCP_WRAPPER): New.
1205 * configure.in: Use it. Substitute LIBWRAP.
1206 * configure: Rebuilt.
1208 * config.mk.in (LIBNSL): New.
1209 (LIBWRAP): Likewise.
1211 * support/Makefile (SUBDIRS): Add misc.
1213 * support/lib/Makefile (LIBS): Add libmisc.a.
1215 * utils/rquotad/Makefile (LIBS): Add
1217 -lmisc $(LIBWRAP) $(LIBNSL)
1219 * utils/statd/Makefile (LIBS): Likewise.
1221 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1222 HAVE_TCP_WRAPPER is defined.
1223 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1224 defined. Reject an RPC call if check_default () fails.
1226 * utils/statd/statd.c: Include "tcpwrapper.h" if
1227 HAVE_TCP_WRAPPER is defined.
1228 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1229 check_default () before calling sm_prog_1 (). Define it as
1230 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1232 2000-08-25 Chip Salzenberg <chip@valinux.com>
1234 * debian/*: Complete Debian build support.
1235 * etc/debian/*: Remove.
1237 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1239 * support/export/client.c(client_check): removed the "dot+1" as a
1240 ypdomain argument to innetgr as this is entirely bogus.
1241 It should always be NULL.
1243 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1245 * support/export/xtab.c(xtab_read): introduce new mode for
1246 reading xtab. i.e. a list of exports that might be known to the
1247 kernel, or might not. These are flagged as m_exported == -1
1248 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1249 value "2" for xtab, meaning don't trust this too much.
1250 * support/include/exportfs.h(struct mexport): changed m_exported
1251 from one bit to an int so that it can hold new value
1252 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1253 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1254 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1257 * support/nfs/xio.c(xflock): added O_CREAT when getting
1258 a write lock so that missing files aren't fatal.
1260 * etc/debian/nfs-common: new file from "potato"
1261 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1263 2000-08-09 H.J. Lu <hjl@lucon.org>
1265 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1266 startup to ensure all existing clients work fine.
1268 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1269 to xtab_read () for reading _PATH_XTAB.
1271 2000-08-02 H.J. Lu <hjl@lucon.org>
1273 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1274 avoid the reverse name lookup.
1276 2000-07-04 H.J. Lu <hjl@lucon.org>
1278 * utils/statd/log.c: Include <stdlib.h> for exit ().
1280 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1283 2000-07-04 H.J. Lu <hjl@lucon.org>
1285 * configure.in (VERSION): Set to "0.1.9.1".
1286 * configure: Regenerated.
1287 * nfs-utils.spec: Updated.
1291 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1293 * support/export/hostname.c (hostent_dup): Handle the NULL
1296 2000-07-03 H.J. Lu <hjl@lucon.org>
1298 * README: Update the util-linux requirement.
1300 2000-07-03 H.J. Lu <hjl@lucon.org>
1302 * configure.in (VERSION): Set to "0.1.9".
1303 * configure: Regenerated.
1304 * nfs-utils.spec: Updated.
1308 2000-07-03 H.J. Lu <hjl@lucon.org>
1310 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1311 stop to ensure all clients can still access the server
1312 before it is shutdown.
1314 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1316 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1317 calls with format string.
1319 2000-06-28 Chip Salzenberg <chip@valinux.com>
1321 * utils/statd/log.c (log): Call syslog with format string.
1323 2000-06-27 H.J. Lu <hjl@lucon.org>
1325 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1326 instead of OPEN_MAX.
1328 2000-06-27 H.J. Lu <hjl@lucon.org>
1332 2000-06-27 H.J. Lu <hjl@lucon.org>
1334 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1335 startup to ensure all existing clients are exported.
1337 * configure.in (VERSION): Set to "0.1.8.2".
1338 * configure: Regenerated.
1339 * nfs-utils.spec: Updated.
1341 2000-06-06 H.J. Lu <hjl@lucon.org>
1343 * configure.in (VERSION): Set to "0.1.8.1".
1344 * configure: Regenerated.
1345 * nfs-utils.spec: Updated.
1347 2000-06-06 H.J. Lu <hjl@lucon.org>
1349 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1350 to "struct sockaddr_in *" for glibc 2.2.
1351 (mount_umnt_1_svc): Likewise.
1352 (mount_umntall_1_svc): Likewise.
1353 (mount_export_1_svc): Likewise.
1354 (mount_exportall_1_svc): Likewise.
1355 (mount_pathconf_2_svc): Likewise.
1356 (get_rootfh): Likewise.
1358 2000-06-04 H.J. Lu <hjl@lucon.org>
1360 * etc/redhat/nfs.init: Fix a typo in comment.
1362 2000-05-31 H.J. Lu <hjl@lucon.org>
1364 * configure.in (VERSION): Set to "0.1.8".
1365 * configure: Regenerated.
1366 * nfs-utils.spec: Updated.
1370 2000-05-31 H.J. Lu <hjl@lucon.org>
1372 * configure.in (VERSION): Set to "0.1.7.5".
1373 * configure: Regenerated.
1374 * nfs-utils.spec: Updated.
1376 * support/include/nfslib.h (exportent): Add a new field,
1377 r_count, to count the number of mounts from a client.
1378 (getrmtabent): Take a new argument for position in file.
1379 (putrmtabent): Likewise.
1380 (fgetrmtabent): Likewise.
1381 (fputrmtabent): Likewise.
1382 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1383 for position in file.
1384 (fgetrmtabent): Likewise.
1385 (putrmtabent): Likewise.
1386 (fputrmtabent): Likewise.
1388 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1391 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1392 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1393 and fputrmtabent ().
1394 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1395 (mountlist_del): Likewise.
1396 (mountlist_del_all): Likewise.
1397 (mountlist_list): Likewise.
1399 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1400 for the existing entry and initialize "r_count" to 1.
1401 (mountlist_del): Decrement "r_count".
1403 2000-05-18 H.J. Lu <hjl@lucon.org>
1405 * configure.in (VERSION): Set to "0.1.7.4".
1406 * configure: Regenerated.
1407 * nfs-utils.spec: Updated.
1409 2000-05-18 H.J. Lu <hjl@lucon.org>
1411 * etc/redhat/nfs.init (restart): Just do stop and start.
1413 2000-05-09 Jay Weber <jweber@valinux.com>
1415 * utils/rquotad/hasquota.c: added support for ext3 recognition
1417 * utils/rquotad/mntent.h: Likewise.
1419 2000-05-01 H.J. Lu <hjl@lucon.org>
1421 * configure.in (VERSION): Set to "0.1.7.3".
1422 * configure: Regenerated.
1423 * nfs-utils.spec: Updated.
1425 2000-05-01 H.J. Lu <hjl@lucon.org>
1427 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1428 mounting poins in /etc/fstab.
1430 2000-05-01 H.J. Lu <hjl@lucon.org>
1432 * configure.in (VERSION): Set to "0.1.7.2".
1433 * configure: Regenerated.
1434 * nfs-utils.spec: Updated.
1436 2000-05-01 H.J. Lu <hjl@lucon.org>
1438 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1439 to check for the mounting point.
1441 2000-04-29 Chip Salzenberg <chip@valinux.com>
1442 Neil Brown <neilb@cse.unsw.edu.au>
1444 * Really re-use RPC ports.
1445 (Fixes earlier patch. Sorry, Neil.)
1447 2000-04-26 H.J. Lu <hjl@lucon.org>
1449 * configure.in (VERSION): Set to "0.1.7.1".
1450 * configure: Regenerated.
1451 * nfs-utils.spec: Updated.
1453 2000-04-26 H.J. Lu <hjl@lucon.org>
1455 * etc/redhat/nfslock.init: Check if lockd exits before killing
1458 2000-04-25 H.J. Lu <hjl@lucon.org>
1460 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1462 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1464 * support/nfs/exports.c (parsesquash): Correctly set the
1467 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1469 * support/include/nfs/nfs.h: Removed knowledge of internals of
1470 kernel filehandles (which can change) and defined nfs_fh_size
1471 which has variable size
1473 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1474 get variable sized file handles, and change getfh{,old} to
1477 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1480 * tools/Makefile, tools/nlmtest/nlmtest.c
1481 nlmtest.c depended on internel format of file handles, so now
1485 2000-03-12 Chip Salzenberg <chip@valinux.com>
1486 Neil Brown <neilb@cse.unsw.edu.au>
1488 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1490 2000-03-13 H.J. Lu <hjl@lucon.org>
1492 * etc/redhat/nfsd.init: Updated.
1494 * etc/redhat/nfslock.init: Updated.
1496 * nfs-utils.spec.in: Updated.
1498 * configure.in (VERSION): Set to "0.1.7".
1499 * configure: Regenerated.
1500 * nfs-utils.spec: Updated.
1504 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1506 * utils/exportfs/exportfs.c (dump): Included printing of
1507 nohide, no_subtree_check, and insecure_locks
1509 2000-02-26 Chip Salzenberg <chip@valinux.com>
1511 * config.mk.in (INSTALLSUID): Strip ("-s").
1512 (INSTALLSCRIPT): Define.
1513 * utils/nhfsstone/Makefile: Use it.
1515 2000-02-26 Chip Salzenberg <chip@valinux.com>
1517 * utils/lockd/lockd.man: Create.
1518 * utils/lockd/Makefile: Install it.
1519 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1520 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1521 * utils/nhfsstone/Makefile: Install the helper scripts and
1523 * utils/exportfs/exports.man: Fix typo.
1525 2000-02-26 Chip Salzenberg <chip@valinux.com>
1527 * support/nfs/xio.c (xungetc): Decrement line number when
1528 character to unget is newline. Make first parameter int, so
1529 it can distinguish EOF from \377.
1530 * support/include/xio.h (xungetc): Adjust prototype.
1532 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1534 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1535 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1536 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1538 This is for supporting a new option introduced in 2.3.42
1540 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1542 * COPYING: Added. GPL.
1544 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1546 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1547 to get the block size.
1549 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1551 * nfs-utils.spec.in: Update ftp site.
1553 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1555 * README: Update hostnames.
1557 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1559 * configure.in (VERSION): Set to "0.1.6".
1560 * configure: Regenerated.
1561 * nfs-utils.spec: Updated.
1565 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1567 * utils/mountd/auth.c (auth_authenticate_internal): Call
1568 xstrdup for hostname before passing it to gethostbyname.
1570 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1573 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1575 * README: Update the mailing list address.
1577 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1579 * configure.in (VERSION): Set to "0.1.5".
1580 * configure: Regenerated.
1581 * nfs-utils.spec: Updated.
1585 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1587 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1590 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1592 * configure.in (VERSION): Set to "0.1.4".
1593 * configure: Regenerated.
1594 * nfs-utils.spec: Updated.
1598 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1600 * nfs-utils.spec.in: New file.
1602 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1604 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1606 1999-12-04 Chip Salzenberg <chip@valinux.com>
1608 * config.mk.in: Use $(CC) as set by configure.
1610 1999-12-04 Chip Salzenberg <chip@valinux.com>
1612 * rules.mk: Call $(MAKE) with $(MFLAGS).
1614 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1616 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1617 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1619 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1621 * nfs-utils.spec (Version): Set to 0.1.3.
1623 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1624 * configure: Regenerated.
1628 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1630 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1631 (_PATH_DEV_DSK): Likewise.
1632 (getquotainfo): Match the mounting point from /etc/mtab
1633 instead of calling nfsmount_to_devname ().
1635 1999-11-24 Chip Salzenberg <chip@valinux.com>
1637 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1638 to the new port 24 as well as the historical port 100021.
1640 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1642 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1643 stopping nfsd to stop spurious ESTALE on server shutdown.
1645 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1647 * support/nfs/exports.c (parseopts): make copy of opt string
1648 before 'nul'ing out commas so that
1650 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1652 applies both options to both exports.
1654 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1656 * README: Fix a few typos.
1658 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1660 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1661 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1662 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1663 (unsigned_dec): Likewise.
1664 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1665 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1667 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1669 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1670 (unsigned_dec): Likewise.
1671 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1672 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1673 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1675 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1677 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1678 * support/nfs/exports.c: added {no_,}subtree_check and changed
1680 * utils/exportfs/exports.man: added no_subtree_check and nohide
1681 and removed irrelevant stuff from unfsd.
1682 * support/export/rmtab.c: rmtab_read didn't quite do the right
1683 thing if a pathname from rmtab was a subdirectory of an export-point
1685 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1687 * README: Updated ftp site.
1689 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1691 * nfs-utils.spec (Version): Set to 0.1.2.
1693 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1694 * configure: Regenerated.
1698 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1700 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1701 (auth_authenticate_internal): Check for NULL return on forward
1703 (auth_authenticate): Handle "no_forward_dns".
1705 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1707 * Version 0.1.1 released.
1709 * nfs-utils.spec (Version): Set to 0.1.1.
1711 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1712 * configure: Regenerated.
1716 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1718 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1720 (Provides): Likewise.
1722 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1724 * Initial version 0.1 released.
1726 * configure.in (VERSION): Set to "nfs-utils 0.1".
1727 * configure: Regenerated.
1729 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1731 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1733 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1734 kernel only if the entry is exported to kernel.
1735 (unexportfs): Likewise.
1737 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1739 1/ utils/mountd/rmtab.c::mountlist_list
1741 This routine stats the rmtab file to see if it has changed. It
1742 if has, it cleans up it's old copy of the data. But it still
1743 always re-read the file, thus returning multiple copies of the
1744 data on consecutive calls without intervening changes.
1745 "Showmount -a" didn't show this as it appears to sort/unique the
1746 data, but 'strace showmount -a' showed that the size of the
1747 datagram that it received grew.
1749 I moved the getrmtabent loop inside the mtime test.
1751 2/ utils/exportfs/exportfs.c
1753 Many routines used the m_path field of m_export instead of
1755 According to the comment in nfslib.h, m_path should only
1756 be used when processing a mount request (i.e. in mountd)
1757 where the mountpoint may be a subdirectory of the export point.
1759 I changed all occurances of m_path to e_path
1762 3/ utils/exportfs/exportfs.c:main
1764 extra arguments are not meaningful with -a or -r, but
1765 exportfs accepted them and then ignored the -a/-r, expect that
1766 -r would still unexport everything first.
1768 I generate an error if there are extra args and f_all
1770 4/ utils/exportfs/exportfs.c:main
1771 extract dump out as a special case.
1773 5/ utils/exportfs/exportfs.c
1774 made f_reexport a local variable.
1777 6/ utils/exportfs/exportfs.c:main,exportall
1779 support/export/rmtab.c
1780 only mayexport on newly created entries, don't set xtabent at all
1782 7/ support/include/nfslib.h
1784 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1786 8/ support/export/xtab.c
1788 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1792 9/ support/export/xtab.c
1794 xtab_mount_read now sets m_exported, and NOT
1795 xtabent and mayexport
1797 removed the append arguement from xtab_write as it was
1800 added is_export flag to xtab_write similar to xtab_read
1801 if is_export, only write entries with m_xtabent or m_addxtab
1802 if !is_export, only write entries with m_exported
1804 10/ support/export/export.c::export_allowed_internal
1806 added test for exp->m_mayexport, as the export tree
1807 may have entries that are no longer allowed to be exported,
1808 and so shouldn't caused deduced exported by rmtab_read
1810 11/ utils/exportfs/exportfs.c::main
1811 error checking of flags.
1813 12/ utils/exportfs/exportfs.c
1815 total rewrite of export and unexport logic.
1817 - build an exportslist of valid exports, based on
1818 current etab file and arguments,
1819 - read rmtab to instantiate relevant wild card entries
1820 - read etab to find out what is currently exported
1821 - synchronise intention with reality
1822 - write out etab and xtab
1825 discard the m_addxtab flag
1826 add m_changed flag so we know what to report in exportfs
1828 14/ utils/mountd/auth.c:auth_authenticate
1830 the value returned by gethostbyaddr was trusted.
1832 It now follows this with a call to gethostbyname
1833 and checks that the address is in the list.
1835 15/ support/export/nfsctl.c::cltsetup,expsetup
1837 force client names to lowercase as kernel is
1840 16/ quietened a few compiler warnings
1842 17/ support/export/client:client_lookup
1844 look for pre-existing client with same name before creating
1847 18/ support/include/exportfs.h
1849 The ordering of the MCL_* enum was:
1850 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1852 I moved ANONYMOUS to the end.
1854 The ordering is significant when an export entry is being searched for to
1855 match a given address. There are two problems with ANONYMOUS being first.
1857 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1858 then the ro case will always be found first and the privileged hosts won't get
1860 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1861 export entry for the specific host, and writes it to xtab.
1862 When another request comes from the same host, the ANONYMOUS entry is found again,
1863 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1864 again. If causes bloat in xtab.
1866 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1868 19/ utils/exportfs/exportfs.man
1869 many updates to the man page to reflect changes to the code
1871 -----------------------
1877 - allow exportfs to modify rmtab file
1878 - make sure kernel never gets two clients with same IP address
1879 - possible kernel should reject
1880 - needs to be some way to lookup client in kernel by IP address
1881 - maybe get kernel to do case-insensitive comparisons on client names
1882 - remove unused clients from kernel
1884 - change etab to xtab and xtab to xtab.active
1886 - timestamp and/or statd-stamp in rmtab for removing old entries.
1888 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1890 * linux-nfs: New directory.
1891 * linux-nfs/ChangeLog: Moved from ..
1892 * linux-nfs/INSTALL: Likewise.
1893 * linux-nfs/KNOWNBUGS: Likewise.
1894 * linux-nfs/NEW: Likewise.
1895 * linux-nfs/README: Likewise.
1896 * linux-nfs/THANKS: Likewise.
1897 * linux-nfs/TODO: Likewise.
1899 * Starting from knfsd 1.4.7.