1 2004-09-06 Paul Clements <paul.clements@steeleye.com>
2 Neil Brown <neilb@cse.unsw.edu.au>
4 * utils/mountd/mountd.c(main): support --ha-callout (-H) for
5 specifying a callout program
6 * utils/mountd/rmtab.c: Call ha_callout on mount/unmount
7 * utils/statd/monitor.c: Call ha_callout on add/del client
8 * utils/statd/rmtcall.c: as above
9 * utils/statd/statd.c: handle --ha-callout (-H)
10 * utils/statd/svc_run.c: call notify_hosts is we have received a
12 * support/include/ha-callout.h: define ha_callout function
15 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
16 * utils/mountd/cache.c(cache_process_req): clear fd after
17 processing so as not to confused libc/sunrpc into thinking
18 it need to do something with that fd.
20 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
22 * debian/nfs-kernel-server.init(start,stop) mount the nfsd
23 filesystem, if available, before starting nfs services, and
24 unmount it afterwards.
25 * etc/nodist/nfs-server: ditto
26 * etc/redhat/nfs.init: likewise
27 * etc/redhat/nfs: add "MOUNT_NFSD" flag to control above.
29 2004-06-08 NeilBrown <neilb@cse.unsw.edu.au>
31 * utils/exportfs/exportfs.c: Don't rmtab_read if new_cache, it
33 * support/nfs/cacheio.c(cache_flush): Change order in which caches
34 are flushed so that dependancies don't keep things in the cache
37 2004-03-18 Chip Salzenberg <chip@pobox.com>
39 * debian/changelog: Version 1.0.6-2.
41 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
42 from "J. Bruce Fields" <bfields@fieldses.org>
44 * utils/mountd/cache.c: call auth_reload to make sure auth data is
45 current before responding to kernel upcall.
47 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
48 Based on patch from Greg Banks <gnb@melbourne.sgi.com>
50 * utils/exportfs/exports.man: Document fsid= option.
52 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
56 * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
57 support/include, and depend in "predep"
58 * support/export/Makefile, tools/rpcgen/Makefile,
59 utils/statd/Makefile: add "predep" rule so that "make dep" works.
60 * Makefile: allow a simple "make" to run ./configure and "make dep"
62 * configure.in, nfs-utils.spec: Update version to 1.0.6
65 2003-09-12 Chip Salzenberg <chip@pobox.com>
67 * debian/changelog: Version 1.0.6-1.
69 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
71 * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
73 * utils/statd/statd.c(main): Ditto.
75 michael <michael@newdream.net> discovered that svc_setreqsize
76 in glibc can segfault if RLIMIT_NOFILE is bigger than
77 FD_SETSIZE, so a simple solution is to impose a hard limit.
79 2003-09-09 Chip Salzenberg <chip@pobox.com>
81 * debian/changelog: Version 1.0.5-3.
82 * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
83 on invalid reverse DNS.
84 * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
85 * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
86 * tools/rpcgen/rpc_parse.c (def_union): Likewise.
88 2003-08-22 Chip Salzenberg <chip@pobox.com>
90 * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
91 N_*, to avoid conflict with ISO C built-in log() function.
92 * utils/statd/*.c: Use note().
94 2003-08-20 Chip Salzenberg <chip@pobox.com>
96 * debian/changelog: Version 1.0.5-2.
98 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
100 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
103 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
105 * support/include/nfs/export.h, support/nfs/exports.c,
106 utils/exportfs/exports.c, utils/mountd/mountd.c: change
107 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
108 meaning. Also remove meaningless
109 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
111 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
113 * support/export/xtab.c, support/include/nfslib.h,
114 support/nfs/cacheio.c, support/nfs/nfssvc.c,
115 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
116 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
117 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
118 (nfs-utils-1.0.5-post2)
120 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
122 * support/nfs/nfsexport.c: open channel file O_WRONLY when
124 * utils/mountd/cache.c: maintain mountlist when new_cache is
125 active. Also use O_WRONLY for channel files.
126 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
127 rather than an nfs_export.
128 * utils/mountd/rmtab.c: ditto.
129 (nfs-utils-1.5.0-post1)
131 2003-07-24 Chip Salzenberg <chip@pobox.com>
133 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
134 use Debian security team's cleaner approach.
135 * debian/changelog: Version 1.0.5-1.
136 * debian/nfs-kernel-server.init: Cosmetic changes.
138 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
141 1.0.4 was a bit of a brown-paper-bag-release because of the extra
142 'free' in auth.c. So I'm releasing this just a few days later.
144 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
146 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
147 check if new_cache is enabled, error if not, flush and exit if it
149 * utils/exportfs/exportfs.man: Explain -f option and explain the
150 two different modes that exportfs can work in.
151 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
153 * utils/mountd/mountd.man: Record the change if default behaviour
155 * configure.in, nfs-utils.spec: update version to 1.0.5 and
158 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
160 * utils/mountd/mountd.c(main): getopt string fix for 'o'
161 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
162 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
164 * support/include/nfs/export.h: Reserve a bit for possible ACL
167 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
169 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
170 assorted changed to cope with section 7 of the manual.
171 * configure.in, nfs-utils.spec: Update version to 1.0.4
174 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
175 baseline for 2.6 and 2.8. I.e. it should continue to work right
176 through the 2.8 (or 3.0) kernel series. Previous releases wont.
178 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
179 Steve Dickson <SteveD@redhat.com>
182 * utils/statd/statd.c: create a pidfile with pid of statd, and
183 truncate it when statd exists.
184 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
185 and warn if this is root.
186 * utils/statd/statd.c: when statd forks, connect child to parent
187 with a pipe, and send a byte down the pipe once the child is
189 * Makefile: create and chown sm, sm.bak, state when "make install"
190 * configure.in: add --with-statduser= option which defaults to
191 "rpcuser" or "nobody"
192 * config.mk.in: pass "statduser" through to Makefile
194 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
196 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
197 used as the size was changed somewhere in 2.5.60-2.5.70. Without
198 this nfs-utils compiles against 2.6 headers will not work on a
201 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
203 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
204 set number of threads by writing to there. This means it will
205 still work when the syscall interface goes away in 2.7.
207 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
208 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
210 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
211 so as to only export the wildcard exports that were asked for.
212 * support/export/export.c(export_allowed): changed to return the
213 nfs_export rather than a "struct exportent", as m_changed is
215 * support/export/rmtab.c(rmtab_read): modified to deal with
216 interface change for export_allowed(), and enhanced to preserve
217 m_changed flag when a wild-card export causes the creation of
218 a non-wildcard export.
220 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
221 Steve Dickson <SteveD@redhat.com>
223 * utils/mountd/mountd.man: Add valid kinds of debugging.
224 * utils/mountd/mountd.c(main): ignore SIGPIPE
225 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
226 we don't get warnings about unavailable stats that weren't asked
229 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
231 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
232 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
233 'forever', so things disappear out of the cache rather than just
236 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
238 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
241 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
243 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
244 etc/redhat/nfs.init: when checking if V3 is supported, make sure
245 nfs server 'knows' about 127.0.0.1 first.
247 2003-06-10 Chip Salzenberg <chip@pobox.com>
249 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
250 * debian/changelog: Version 1.0.3-2.
252 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
253 NeilBrown <neilb@cse.unsw.edu.au>
255 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
256 long long to avoid overflow when printing stats.
258 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
260 * support/export/export.c, support/include/nfslib.h,
261 support/nfs/export.c, utils/exportfs/exportfs.c,
262 utils/mountd/mountd.c: new export option "mountpoint"
263 If no path is given, then the export point must be a
264 mount point, or it won't be exported. If a path is
265 given (e.g. mountpoint=/path) then that path must be
266 a mountpoint or the exportpoint won't be exported.
267 * utils/exportfs/exportfs.man: document mountpoint option.
268 * support/misc/mountpoint.c: New file with is_mountpoint()
269 to determine if something is a mountpoint.
271 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
273 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
274 argument as we might not be getting the filehandle for the
276 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
277 cache_get_filehandle.
278 * utils/mountd/mountd.c(get_rootfh): check export point and
279 requested directory are on the same filesystem, and complain if
282 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
284 * utils/mountd/auth.c(auth_authenticate_internal): make sure
285 portnumber is still checked when using new cache lookup.
287 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
289 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
290 Don't actually talk to kernel when new cache is in effect, except
292 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
293 * support/export/xtab.c: Only rename new xtab into place if it has
294 changed, thus preserving modify date for exportfs to use when
296 * support/nfs/cacheio.c: Add cache_flush
297 * support/export/xtab.c: Only rename new xtab into place if it has
298 changed, thus preserving modify date for exportfs to use when
301 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
303 * support/export/client.c: Add client_compose, client_member to
304 handle new composite client names
305 * support/include/exportfs.h: Declare above functions.
306 * utils/mountd/auth.c: use client_compose to determine calling
307 client if new cache is being used.
308 * utils/mountd/auth.c: call cache_export to export a filesystem if
309 new_cache, check if new cache is used, and call my_svc_run instead
311 * utils/mountd/svc_run.c: new file defining my_svc_run
312 * utils/mountd/cache.c: new file for handling cache upcalls.
313 * support/nfs/cacheio.c(check_new_cache): new function to check if
314 new cache should be used.
317 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
319 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
320 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
321 * utils/exportfs/exportfs.c(dump): ditto
323 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
325 * support/export/hostname.c(get_reliable_hostbyaddr): new function
326 to get host name from address with full checking of authenticity.
327 * support/include/misc.h: declare above function
328 * utils/mountd/auth.c(auth_authenticate_internal): remove all
329 logic for authenticating address.
330 * utils/mountd/auth.c(auth_authenticate): call new
331 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
334 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
336 * tools/rpcgen/rpc_main.c(find_cpp): removed
337 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
338 then try hard-coded paths.
340 2003-03-26 Chip Salzenberg <chip@pobox.com>
342 * debian/changelog: Version 1.0.3-1.
344 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
346 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
347 "const char*", not "char*".
349 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
351 * configure.in (VERSION): Set to "1.0.3".
352 * nfs-utils.spec: Likewise.
353 * configure: Regenerated.
355 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
357 * support/nfs/cacheio.c: New File - support for read/writing
358 to export cache in /proc/rpc/*/channel
359 * support/nfs/Makefile: compile cacheio.c
360 * support/include/nfslib.h: declare cacheio.c functions
361 * support/nfs/nfsexport.c: export and unexport through
362 /proc/rpc/*/channel if possible, as old syscall interface
363 may not survive into 2.6 on all architectures.
365 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
366 Ben Leslie <benno@sesgroup.net>
368 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
369 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
370 former would incorectly ignore defport if the application
371 explicitly set __rpcfdtype. The later is sufficient to avoid the
372 special handling in the case where stdin is an internet socket.
374 * utils/mountd/mountd.c(main): Add 'n' to option list in
375 getopt_long as this is a short form of --no-tcp which want being
378 2003-02-12 Chip Salzenberg <chip@pobox.com>
380 * debian/changelog: Version 1.0.2-2.
382 2002-11-27 Chip Salzenberg <chip@pobox.com>
384 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
385 overflow bug. Reformat per rest of source file.
387 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
389 * utils/exportfs/exports.man: Correct notes about whether the wild
390 card characters match a period. They do.
392 2002-10-15 Juan Gomez <juang@us.ibm.com>
394 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
396 (mountlist_add): Call slink_safe_rename instead of rename.
398 2002-10-11 H.J. Lu <hjl@lucon.org>
400 * support/include/exportfs.h (export_errno): New.
402 * support/nfs/exports.c: Include <errno.h>.
404 (getexportent): Set export_errno to EINVAL for bad option.
405 (parseopts): Likewise.
406 Report the location of the default sync/async option.
408 * utils/exportfs/exportfs.c (main): Initialize export_errno to
409 0. Return export_errno.
411 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
412 NeilBrown <neilb@cse.unsw.edu.au>
414 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
415 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
417 2002-09-16 Chip Salzenberg <chip@pobox.com>
419 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
421 2002-09-15 Chip Salzenberg <chip@pobox.com>
423 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
424 socket, as occurs when run from sshd.
425 * debian/changelog: Version 1.0.2-1.
427 2002-09-12 H.J. Lu <hjl@lucon.org>
429 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
432 2002-09-12 H.J. Lu <hjl@lucon.org>
434 * configure.in: Remove checking svctcp_socket and svcudp_socket.
435 * configure: Regenerated.
437 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
438 (HAVE_SVCUDP_SOCKET): Removed.
440 * support/include/nfslib.h: Undo the last change.
442 2002-09-12 H.J. Lu <hjl@lucon.org>
444 * support/include/nfslib.h (svctcp_socket): Protect it with
446 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
448 2002-09-12 H.J. Lu <hjl@lucon.org>
450 * configure.in (VERSION): Set to "1.0.2".
451 * configure: Regenerated.
452 * nfs-utils.spec: Likewise.
454 2002-09-12 H.J. Lu <hjl@lucon.org>
456 * configure.in: Check svctcp_socket and svcudp_socket.
457 * configure: Regenerated.
459 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
460 (HAVE_SVCUDP_SOCKET): New.
462 * support/include/nfslib.h (svctcp_socket): New.
463 (svcudp_socket): New.
465 * support/nfs/Makefile (OBJS): Add svc_socket.o.
467 * support/nfs/svc_socket.c: New.
469 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
470 svcudp_socket if port is unspecified.
472 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
474 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
475 (killer): New. Signal handler to unregister.
476 (main): Use killer. Call svcudp_socket to get the default
479 2002-09-02 Juan Gomez <juang@us.ibm.com>
480 NeilBrown <neilb@cse.unsw.edu.au>
482 Add -N option to statd to run in notify-only mode.
484 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
485 * utils/statd/statd.man: document -N
486 * utils/statd/statd.c: enabled -N, largely exists but needed to be
487 uncommented and completed
489 2002-09-02 Juan Gomez <juang@us.ibm.com>
490 NeilBrown <neilb@cse.unsw.edu.au>
492 statd to have " -P directory" arg to use that directory instead
493 of /var/lib/nfs. This is useful for fail-over clusters.
495 * utils/statd/statd.h: define SM_DIR etc as var, not const.
496 * utils/statd/statd.c: define "-P" option to set SM_*
498 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
500 * utils/statd/notify.c: ditto.
501 * utils/statd/statd.man: document -P option.
503 2002-08-26 Chip Salzenberg <chip@pobox.com>
505 * utils/nfsd/nfsd.man: Fix typo.
506 * debian/changelog: Version 1.0.1-1.
508 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
510 * let parseopts know if /etc/exports was being read or not,
511 and have it only print "no sync or async" warning in that case.
513 2002-05-06 Tom McNeal <trmcneal@attbi.com>
514 NeilBrown <neilb@cse.unsw.edu.au>
516 * utils/nfsstat/nfsstat.c: Handle differing format for
517 /proc/net/rpc/nfsd between pre and post 2.4.0
519 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
520 James Pearson <james-p@moving-picture.com>
522 * support/nfs/rmtab.c(fendrmtabent): sync changes to
523 storage before returning, as this is critical state
525 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
526 H.J. Lu <hjl@lucon.org>
528 * etc/redhat/nfs: New.
530 2002-04-08 H.J. Lu <hjl@lucon.org>
532 * etc/redhat/nfs.init: Updated.
534 * nfs-utils.spec.in: Updated.
535 * nfs-utils.spec: Regenerated.
537 * utils/mountd/mountd.c (longopts): Fix a typo.
539 * utils/mountd/mountd.man: Updated.
541 2002-04-07 H.J. Lu <hjl@lucon.org>
543 * etc/redhat/nfslock.init (restart): Just do stop and start.
545 * etc/redhat/nfs.init: Fix a typo.
547 2002-04-07 H.J. Lu <hjl@lucon.org>
549 * configure.in (VERSION): Set to "1.0.1".
550 * configure: Regenerated.
551 * nfs-utils.spec: Likewise.
553 * README: Updated for 1.0.1.
555 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
556 H.J. Lu <hjl@lucon.org>
558 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
560 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
561 NeilBrown <neilb@cse.unsw.edu.au>
563 Add support for fsid=nn export option so that device
564 numbers don't go in filehandles.
565 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
566 is set, pass the fsid in-place of the device number
567 * support/nfs/exports.c: parse and print fsid= option.
568 Also check if efname has been set, and use "command line"
569 instead in error messages.
570 Also, use strtol instead of atoi for anon[ug]id= so that
571 bad numbers cause errors.
573 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
574 NeilBrown <neilb@cse.unsw.edu.au>
576 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
577 flag so that "sync" becomes the default.
578 Check that either "sync" or "async" is given as an option
579 and warn if neither are present
580 * utils/exportfs/exports.man: change documentation for "sync"
581 to be documentation for "async".
582 * utils/exportfs/exportfs.man: note that "sync" is the default
586 2002-01-02 Chip Salzenberg <chip@pobox.com>
588 * support/export/nfsctl.c (expsetup): Don't export entries that
589 specify id mappings not supported by the kernel. No extant kernel
590 supports any significant mapping, only 'identity' (i.e. none).
591 When other mappings are supported, this code will need changing.
592 * debian/changelog: Version 1.0-2.
594 2001-12-26 Chip Salzenberg <chip@pobox.com>
596 * nfs-utils.spec (Version): Set to "1.0".
597 * configure.in (VERSION): Likewise.
598 * configure: Regenerated.
600 * debian/changelog: Version 1.0-1.
602 * utils/exportfs/exports.man: Emphasize the need for options to
603 immediately follow client names. Explain that wildcards don't
604 usually work on addresses, but may work when reverse DNS fails.
605 Comment out a leftover TP that was TPing our indentation.
606 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
607 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
608 * debian/changelog: Version 0.3.3-6.
610 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
612 * support/export/client.c(client_lookup): If a host has multiple
613 IP addresses, then we must always use the result of a
614 gethostbyname, not that of gethostbyaddr for exporting
616 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
618 * support/export/client.c (client_lookup): use strcasecmp when
620 * support/nfs/export.c (getexportent): add fromkernel arg and use
621 different defaults as kernels prior to 2.4.11 assume different
622 defaults in /proc/fs/nfs/exports
623 * support/include/nfslib.h, support/export/export.c,
624 support/export/xtab.c: support extra "fromkernel" arg for
627 2001-12-13 Chip Salzenberg <chip@pobox.com>
629 * debian/changelog: Version 0.3.3-5.
631 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
633 * support/nfs/xio.c (xskip): Call `xungetc' instead of
634 `ungetc' to keep x_line more properly.
636 2001-11-26 Chip Salzenberg <chip@pobox.com>
638 * utils/showmount/showmount.c (main): Don't assume that strings
639 starting with digits are IP addresses.
640 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
641 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
642 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
643 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
644 man pages: We check host names *and* addresses with tcpwrappers.
645 * debian/changelog: Version 0.3.3-4.
647 2001-11-21 Chip Salzenberg <chip@pobox.com>
649 * support/nfs/clients.c (cfname): Added: current clients file name.
650 (setnfsclntent): Set it.
651 ({get,end}nfsclntent, syntaxerr): Use it.
652 * support/nfs/exports.c (efname): Added: current exports file name.
653 (setnfsexportent): Set it.
654 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
655 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
656 * debian/changelog: Version 0.3.3-3.
658 2001-10-11 Chip Salzenberg <chip@pobox.com>
660 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
661 * debian/changelog: Version 0.3.3-2.
663 2001-10-08 Chip Salzenberg <chip@pobox.com>
665 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
666 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
667 * utils/mountd/mountd.man: Update paths to /var/lib.
668 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
670 2001-10-06 Preston Brown <pbrown@redhat.com>
672 * utils/nfsstat/nfsstat.man: Updated.
674 2001-09-24 H.J. Lu <hjl@lucon.org>
676 * configure.in (VERSION): Set to "0.3.3".
677 * configure: Regenerated.
678 * nfs-utils.spec: Likewise.
680 * README: Updated for 0.3.3.
682 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
684 Arrange that "exportfs -au" never does DNS lookup:
686 * support/export/client.c (client_lookup) : add "canonical"
687 flag which says that the hostname is known to be canonical, so
690 * support/export/export.c (export_create) : add "canonical"
691 flag to be passed down to client_lookup
692 * support/export/export.c (export_lookup) : Likewise
694 * support/export/xtab.c (xtab_read) : pass appropriate
695 "canonical" flag to export_lookup and export_create:
696 set if reading list of filesystems currently exports
699 * support/export/export.c (export_read) : pass 0 as
700 "canonical" flag to export_lookup and export_create
701 * support/export/rmtab.s (rmtab_read) : Likewise
703 * support/include/exportfs.h : redeclare various routines
704 to have "canonical" flag
706 * utils/exportfs/exportfs.c (main) : redo logic for
707 "-au" to read in what is currently exported, but never even
708 look at what "should" be exported.
710 * utils/exportfs/exportfs.c (unexportall) : remove this
711 routine. Functionality is completely included in
714 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
715 flag to zero in calls to export_lookup and export_create.
718 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
719 Anne Milicia <milicia@missioncriticallinux.com>
721 * support/export/client.c (client_lookup) call gethostbyadd
722 to make sure that we have a canonical hostname, even for
724 * utils/exportfs/exportfs.c (exportfs) Likewise
726 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
728 * support/nfs/exports.c (putexportent): \octal quote any spaces
730 * support/nfs/xio.c (xgettok): recognise double-quote and
731 \octal quoting in path names
732 * utils/exportfs/exports.man: document quoting conventions
735 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
737 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
738 change from 2000-08-02: It causes problems if someone exports
739 to both a hostname and IP addresses. nfs-utils must be
740 consistant about the canonical name that it chooses.
742 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
743 H.J. Lu <hjl@lucon.org>
745 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
747 * utils/statd/statd.c (longopts): Add "name".
748 (usage): Add "-n/--name".
749 (main): Set MY_NAME with "-n/--name".
751 * utils/statd/state.c (change_state): Set MY_NAME only if it
754 * utils/statd/statd.man: Updated for "-n/--name".
756 2001-07-26 H.J. Lu <hjl@lucon.org>
758 * nfs-utils.spec (Release): Set to 8.
760 2001-07-25 H.J. Lu <hjl@lucon.org>
762 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
765 2001-06-27 H.J. Lu <hjl@lucon.org>
767 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
769 2001-06-27 H.J. Lu <hjl@lucon.org>
771 * utils/rquotad/rquota_server.c: Don't call statfs () for
772 the block size. Use BLOCK_SIZE instead.
774 2001-06-27 H.J. Lu <hjl@lucon.org>
776 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
777 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
779 * configure.in (enable_nfsv3): Set to yes by default.
780 (--enable-rquotad): Added
781 (AC_PROG_CXX): Removed.
782 (AC_OUTPUT): Add utils/Makefile.
783 (CC_FOR_BUILD): Renamed from BUILD_CC.
784 * configure: Regenerated.
786 * utils/Makefile: Removed.
788 * utils/Makefile.in: New.
790 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
792 (CC_FOR_BUILD): Renamed from BUILD_CC.
793 * nfs-utils.spec: Regenerated.
795 2001-06-15 Chip Salzenberg <chip@debian.org>
797 * debian/changelog: Version 0.3.2-2.
798 * debian/*.init: Minor fixes.
800 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
802 * etc/nodist/nfs-server: Fixed a bug where the script would
803 disable mounts from NFSv3 clients if NFSv3 is present.
805 2001-06-05 H.J. Lu <hjl@lucon.org>
807 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
808 (main): Support --descriptors/-o to set the limit of the number
809 of open file descriptors.
812 * utils/mountd/mountd.man: Updated for --descriptors/-o.
814 2001-06-04 H.J. Lu <hjl@lucon.org>
816 * nfs-utils.spec (Release): Set to 6.
818 2001-05-28 H.J. Lu <hjl@lucon.org>
820 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
821 * utils/mountd/mountd.c (main): Likewise.
822 * utils/nfsd/nfsd.c (main): Likewise.
823 * utils/rquotad/rquota_svc.c (main): Likewise.
825 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
827 * support/export/client.c (client_check): Check IP address
830 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
832 * support/export/client.c (client_gettype): Treat `*' as
835 2001-04-22 H.J. Lu <hjl@lucon.org>
837 * nfs-utils.spec.in: Fix a typo.
838 * nfs-utils.spec: Regenerated.
840 2001-04-21 H.J. Lu <hjl@lucon.org>
842 * nfs-utils.spec.in: Fix cross build.
843 * nfs-utils.spec: Regenerated.
846 2001-04-18 H.J. Lu <hjl@lucon.org>
848 * nfs-utils.spec.in: Support cross build.
849 * nfs-utils.spec: Regenerated.
855 * config.mk.in (BUILD_CC): New.
856 (CC): Set to $(BUILD_CC) if BUILD is defined.
859 (RANLIB): Set to @RANLIB@.
861 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
862 * configure: Regenerated.
864 * tools/rpcgen/Makefile (BUILD): Set to true.
866 2001-04-01 Chip Salzenberg <chip@valinux.com>
868 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
869 redundant, and sometimes broken, declaration of svc_fdset;
871 * support/nfs/rpcmisc.c (closedown): Likewise.
873 2001-03-21 H.J. Lu <hjl@lucon.org>
875 * nfs-utils.spec: Regenerated.
878 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
880 * utils/statd/statd.c (main): make sure file descriptors 0-2
881 are open to /dev/null.
883 2001-03-21 H.J. Lu <hjl@lucon.org>
885 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
886 * support/nfs/rpcmisc.c: Likewise.
887 * utils/rquotad/rquota_svc.c: Likewise.
888 * utils/rquotad/rquotad.man: Likewise.
889 * utils/statd/Makefile: Likewise.
890 * utils/statd/rmtcall.c: Likewise.
891 * utils/statd/simulate.c: Likewise.
892 * utils/statd/statd.c: Likewise.
893 * utils/statd/statd.man: Likewise.
895 2001-03-11 H.J. Lu <hjl@lucon.org>
897 * configure.in (RELEASE): New. Default to 1, set by
898 --with-release=XXX. Substitute nfs-utils.spec.
899 * nfs-utils.spec.in (Release): Set to @RELEASE@.
900 * configure: Regenerated.
901 * nfs-utils.spec: Likewise.
903 2001-03-11 H.J. Lu <hjl@lucon.org>
905 * utils/rquotad/rquotad.man: Fix a typo.
907 2001-03-11 H.J. Lu <hjl@lucon.org>
909 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
910 * support/nfs/rpcmisc.c: Likewise.
911 * utils/rquotad/rquota_svc.c: Likewise.
912 * utils/rquotad/rquotad.man: Likewise.
913 * utils/statd/Makefile: Likewise.
914 * utils/statd/rmtcall.c: Likewise.
915 * utils/statd/simulate.c: Likewise.
916 * utils/statd/statd.c: Likewise.
917 * utils/statd/statd.man: Likewise.
919 2001-03-10 H.J. Lu <hjl@lucon.org>
921 * configure.in (VERSION): Set to "0.3.2".
922 * configure: Regenerated.
923 * nfs-utils.spec: Likewise.
925 * README: Updated for 0.3.2.
927 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
929 * utils/rquotad/rquotad.man: Updated for -p.
930 * utils/statd/statd.man: Likewise.
932 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
934 * support/nfs/rpcmisc.c: export makesock()
936 * support/include/rpcmisc.h (makesock): Declared.
938 * utils/rquotad/rquota_svc.c: added longopts, added support for
939 specifying the port to bind to on the command line.
941 * utils/statd/statd.c: ditto, also specify port used for
942 outgoing connections.
943 (do_regist): Removed.
945 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
946 get_socket. Make it extern.
948 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
949 instead of do_regist.
951 * utils/statd/Makefile (LIBS): link with our own libnfs
953 2001-03-09 H.J. Lu <hjl@lucon.org>
955 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
956 * etc/nodist/nfs-client: Likewise.
958 2001-02-26 Chip Salzenberg <chip@valinux.com>
960 * debian/changelog: Version 0.3.1-1.
961 * Mention upstream source and license in copyright file.
962 * Add build-Depends for debhelper and libwrap0-dev.
964 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
966 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
967 * etc/nodist/nfs-client: Likewise.
969 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
971 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
974 2001-02-17 Patrick J. LoPresti <patl@curl.com>
976 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
979 2001-02-14 H.J. Lu <hjl@lucon.org>
981 * utils/statd/rmtcall.c: Include <time.h>.
982 * utils/statd/svc_run.c: Likewise.
984 2001-02-14 H.J. Lu <hjl@lucon.org>
986 * configure.in (VERSION): Set to "0.3.1".
987 * configure: Regenerated.
988 * nfs-utils.spec: Likewise.
990 * README: Updated for 0.3.1.
992 2001-02-14 H.J. Lu <hjl@lucon.org>
994 * support/nfs/rpcmisc.c: Include <time.h>.
996 2001-02-14 Chip Salzenberg <chip@valinux.com>
998 * debian/control: Change priority of nhfsstone package to 'extra'.
1000 2001-02-12 Chip Salzenberg <chip@valinux.com>
1002 * debian/changelog: Version 0.3-2.
1004 2001-02-02 H.J. Lu <hjl@lucon.org>
1006 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
1008 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
1009 out SO_SNDBUF/SO_RCVBUF.
1010 (rpc_init): Remove bufsize and remove socksz in calls to
1013 * utils/mountd/mountd.c (main): Remove bufsize in calls to
1016 2001-01-28 Chip Salzenberg <chip@valinux.com>
1018 * debian/changelog: Version 0.3-1.
1020 2001-01-25 H.J. Lu <hjl@lucon.org>
1022 * configure.in (VERSION): Set to "0.3".
1023 * configure: Regenerated.
1024 * nfs-utils.spec: Likewise.
1026 * README: Updated for 0.3.
1028 2001-01-25 H.J. Lu <hjl@lucon.org>
1030 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
1032 2001-01-20 Chip Salzenberg <chip@valinux.com>
1034 * support/include/xio.h (xgetc): Declare to return int.
1035 * support/nfs/xio.c (xgetc): Return int.
1036 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
1037 * utils/statd/statd.c (main): Use int for value of getopt.
1038 * debian/changelog: Version 0.2.1-5.
1040 2000-12-10 Chip Salzenberg <chip@valinux.com>
1042 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
1043 program and procedure numbers of kernel lockd's callback. Also,
1044 besides the old (and broken) procedure #24, allow #16 per Trond.
1046 2000-12-03 Chip Salzenberg <chip@valinux.com>
1048 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
1049 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
1050 * debian/changelog: Version 0.2.1-4.
1052 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
1054 * utils/mountd/auth.c (auth_authenticate): Log the bad path
1057 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
1059 * support/nfs/exports.c (getexportent): Check for host name
1060 without option, or options without hostname, and print a warning,
1061 as this is most likely a typo.
1063 2000-11-19 Chip Salzenberg <chip@valinux.com>
1065 * debian/control: Add dependency on portmap.
1066 * debian/changelog: Version 0.2.1-3.
1068 2000-11-10 H.J. Lu <hjl@lucon.org>
1070 * nfs-utils.spec.in: Don't use libtool.
1071 Add ChangeLog and COPYING to doc.
1072 * nfs-utils.spec: Rebuild.
1074 2000-11-09 H.J. Lu <hjl@lucon.org>
1076 * etc/redhat/nfs.init (start): Back out the last change.
1078 2000-11-09 H.J. Lu <hjl@lucon.org>
1080 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
1081 TCP is not supported by kernel.
1083 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
1085 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
1086 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
1088 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
1090 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
1092 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
1093 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
1094 callbacks to local lockd.
1096 2000-10-18 Scott McDermott <mcdermot@questra.com>
1098 * utils/exportfs/exports.man: Updated for CIDR netmask.
1100 2000-10-17 Scott McDermott <mcdermot@questra.com>
1102 * support/export/client.c (client_init): Support CIDR netmask
1105 2000-10-11 H.J. Lu <hjl@lucon.org>
1107 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
1108 * configure: Rebuilt.
1110 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
1112 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
1113 "/var/lib/nfs/state".
1115 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
1117 * utils/statd/statd.h (run_mode): New global bitmask of runtime
1118 behaviors: fg/bg, logging, etc.
1119 * utils/statd/statd.c: New command line options: -V -h -? -d .
1120 * utils/statd/statd.man: Update for changes to statd.
1122 * utils/statd/log.h (log_init): Remove parameter of function; use
1123 global variable "name_p" instead.
1124 * utils/statd/log.c: Add support for logging to stderr.
1126 * utils/statd/notlist.c: Partially rewrite notify list handling
1127 functions. Eliminate run-off-end-of-list bug when calling
1128 nlist_insert_timer. Add lots of comments.
1130 2000-09-27 H.J. Lu <hjl@lucon.org>
1132 * README: Updated for RedHat 7.0.
1134 2000-09-27 H.J. Lu <hjl@lucon.org>
1136 * nfs-utils.spec: Rebuild.
1138 2000-09-27 H.J. Lu <hjl@lucon.org>
1140 * README: Updated for 0.2.1.
1142 2000-09-27 H.J. Lu <hjl@lucon.org>
1144 * nfs-utils.spec.in: Updated to use rpm macros and support
1147 2000-09-25 H.J. Lu <hjl@lucon.org>
1149 * configure.in (VERSION): Set to "0.2.1".
1150 * configure: Regenerated.
1151 * nfs-utils.spec: Updated.
1153 2000-09-25 H.J. Lu <hjl@lucon.org>
1155 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
1156 non-NULL hostent is always returned.
1158 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
1160 * etc/redhat/nfslock.init: don't kill lockd processes that do not
1161 have an executable (i.e. kernel threads)
1163 2000-09-01 H.J. Lu <hjl@lucon.org>
1165 * README: Updated for 0.2.
1167 2000-09-01 Jay Weber <jweber@valinux.com>
1169 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
1170 supporting version 3 of nfs if available, else it will fall back to
1171 version 2 support only.
1173 2000-08-30 H.J. Lu <hjl@lucon.org>
1175 * configure.in (VERSION): Set to "0.2".
1176 * configure: Regenerated.
1177 * nfs-utils.spec: Updated.
1179 2000-08-25 H.J. Lu <hjl@lucon.org>
1181 * support/misc/tcpwrapper.c (logit): Modify the log output.
1183 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
1185 * utils/rquotad/rquotad.man, utils/statd/statd.man,
1186 utils/mountd/mountd.man: updated
1188 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
1189 * utils/rquotad/Makefile: fix comment
1191 * support/misc/tcpwrapper.c (logit): added comment about waiting
1192 for the children after fork()
1194 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
1195 zombies behind (from logit()'s fork)
1196 * utils/rquotad/rquota_svc.c (main): ditto
1197 * utils/statd/statd.c (main): ditto
1199 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
1200 to check_default instead of 0, for prognum
1202 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
1203 to check_default instead of 0, for prognum
1205 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
1206 HAVE_TCP_WRAPPER is defined.
1207 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
1208 defined. Reject an RPC call if check_default () fails.
1210 2000-08-25 H.J. Lu <hjl@lucon.org>
1212 * support/include/tcpwrapper.h: New for the tcp wrapper
1214 * support/misc/Makefile: Likewise.
1215 * support/misc/from_local.c: Likewise.
1216 * support/misc/tcpwrapper.c: Likewise.
1218 * aclocal.m4 (AC_TCP_WRAPPER): New.
1219 * configure.in: Use it. Substitute LIBWRAP.
1220 * configure: Rebuilt.
1222 * config.mk.in (LIBNSL): New.
1223 (LIBWRAP): Likewise.
1225 * support/Makefile (SUBDIRS): Add misc.
1227 * support/lib/Makefile (LIBS): Add libmisc.a.
1229 * utils/rquotad/Makefile (LIBS): Add
1231 -lmisc $(LIBWRAP) $(LIBNSL)
1233 * utils/statd/Makefile (LIBS): Likewise.
1235 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
1236 HAVE_TCP_WRAPPER is defined.
1237 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
1238 defined. Reject an RPC call if check_default () fails.
1240 * utils/statd/statd.c: Include "tcpwrapper.h" if
1241 HAVE_TCP_WRAPPER is defined.
1242 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
1243 check_default () before calling sm_prog_1 (). Define it as
1244 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
1246 2000-08-25 Chip Salzenberg <chip@valinux.com>
1248 * debian/*: Complete Debian build support.
1249 * etc/debian/*: Remove.
1251 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
1253 * support/export/client.c(client_check): removed the "dot+1" as a
1254 ypdomain argument to innetgr as this is entirely bogus.
1255 It should always be NULL.
1257 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
1259 * support/export/xtab.c(xtab_read): introduce new mode for
1260 reading xtab. i.e. a list of exports that might be known to the
1261 kernel, or might not. These are flagged as m_exported == -1
1262 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
1263 value "2" for xtab, meaning don't trust this too much.
1264 * support/include/exportfs.h(struct mexport): changed m_exported
1265 from one bit to an int so that it can hold new value
1266 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1267 kernel if it is uncertain whether the kernel knows (m_exported == -1)
1268 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1271 * support/nfs/xio.c(xflock): added O_CREAT when getting
1272 a write lock so that missing files aren't fatal.
1274 * etc/debian/nfs-common: new file from "potato"
1275 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1277 2000-08-09 H.J. Lu <hjl@lucon.org>
1279 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1280 startup to ensure all existing clients work fine.
1282 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1283 to xtab_read () for reading _PATH_XTAB.
1285 2000-08-02 H.J. Lu <hjl@lucon.org>
1287 * utils/mountd/auth.c (auth_authenticate_internal): Try to
1288 avoid the reverse name lookup.
1290 2000-07-04 H.J. Lu <hjl@lucon.org>
1292 * utils/statd/log.c: Include <stdlib.h> for exit ().
1294 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1297 2000-07-04 H.J. Lu <hjl@lucon.org>
1299 * configure.in (VERSION): Set to "0.1.9.1".
1300 * configure: Regenerated.
1301 * nfs-utils.spec: Updated.
1305 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
1307 * support/export/hostname.c (hostent_dup): Handle the NULL
1310 2000-07-03 H.J. Lu <hjl@lucon.org>
1312 * README: Update the util-linux requirement.
1314 2000-07-03 H.J. Lu <hjl@lucon.org>
1316 * configure.in (VERSION): Set to "0.1.9".
1317 * configure: Regenerated.
1318 * nfs-utils.spec: Updated.
1322 2000-07-03 H.J. Lu <hjl@lucon.org>
1324 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1325 stop to ensure all clients can still access the server
1326 before it is shutdown.
1328 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
1330 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1331 calls with format string.
1333 2000-06-28 Chip Salzenberg <chip@valinux.com>
1335 * utils/statd/log.c (log): Call syslog with format string.
1337 2000-06-27 H.J. Lu <hjl@lucon.org>
1339 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1340 instead of OPEN_MAX.
1342 2000-06-27 H.J. Lu <hjl@lucon.org>
1346 2000-06-27 H.J. Lu <hjl@lucon.org>
1348 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1349 startup to ensure all existing clients are exported.
1351 * configure.in (VERSION): Set to "0.1.8.2".
1352 * configure: Regenerated.
1353 * nfs-utils.spec: Updated.
1355 2000-06-06 H.J. Lu <hjl@lucon.org>
1357 * configure.in (VERSION): Set to "0.1.8.1".
1358 * configure: Regenerated.
1359 * nfs-utils.spec: Updated.
1361 2000-06-06 H.J. Lu <hjl@lucon.org>
1363 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1364 to "struct sockaddr_in *" for glibc 2.2.
1365 (mount_umnt_1_svc): Likewise.
1366 (mount_umntall_1_svc): Likewise.
1367 (mount_export_1_svc): Likewise.
1368 (mount_exportall_1_svc): Likewise.
1369 (mount_pathconf_2_svc): Likewise.
1370 (get_rootfh): Likewise.
1372 2000-06-04 H.J. Lu <hjl@lucon.org>
1374 * etc/redhat/nfs.init: Fix a typo in comment.
1376 2000-05-31 H.J. Lu <hjl@lucon.org>
1378 * configure.in (VERSION): Set to "0.1.8".
1379 * configure: Regenerated.
1380 * nfs-utils.spec: Updated.
1384 2000-05-31 H.J. Lu <hjl@lucon.org>
1386 * configure.in (VERSION): Set to "0.1.7.5".
1387 * configure: Regenerated.
1388 * nfs-utils.spec: Updated.
1390 * support/include/nfslib.h (exportent): Add a new field,
1391 r_count, to count the number of mounts from a client.
1392 (getrmtabent): Take a new argument for position in file.
1393 (putrmtabent): Likewise.
1394 (fgetrmtabent): Likewise.
1395 (fputrmtabent): Likewise.
1396 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1397 for position in file.
1398 (fgetrmtabent): Likewise.
1399 (putrmtabent): Likewise.
1400 (fputrmtabent): Likewise.
1402 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1405 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1406 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1407 and fputrmtabent ().
1408 * utils/mountd/rmtab.c (mountlist_add): Likewise.
1409 (mountlist_del): Likewise.
1410 (mountlist_del_all): Likewise.
1411 (mountlist_list): Likewise.
1413 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1414 for the existing entry and initialize "r_count" to 1.
1415 (mountlist_del): Decrement "r_count".
1417 2000-05-18 H.J. Lu <hjl@lucon.org>
1419 * configure.in (VERSION): Set to "0.1.7.4".
1420 * configure: Regenerated.
1421 * nfs-utils.spec: Updated.
1423 2000-05-18 H.J. Lu <hjl@lucon.org>
1425 * etc/redhat/nfs.init (restart): Just do stop and start.
1427 2000-05-09 Jay Weber <jweber@valinux.com>
1429 * utils/rquotad/hasquota.c: added support for ext3 recognition
1431 * utils/rquotad/mntent.h: Likewise.
1433 2000-05-01 H.J. Lu <hjl@lucon.org>
1435 * configure.in (VERSION): Set to "0.1.7.3".
1436 * configure: Regenerated.
1437 * nfs-utils.spec: Updated.
1439 2000-05-01 H.J. Lu <hjl@lucon.org>
1441 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1442 mounting poins in /etc/fstab.
1444 2000-05-01 H.J. Lu <hjl@lucon.org>
1446 * configure.in (VERSION): Set to "0.1.7.2".
1447 * configure: Regenerated.
1448 * nfs-utils.spec: Updated.
1450 2000-05-01 H.J. Lu <hjl@lucon.org>
1452 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1453 to check for the mounting point.
1455 2000-04-29 Chip Salzenberg <chip@valinux.com>
1456 Neil Brown <neilb@cse.unsw.edu.au>
1458 * Really re-use RPC ports.
1459 (Fixes earlier patch. Sorry, Neil.)
1461 2000-04-26 H.J. Lu <hjl@lucon.org>
1463 * configure.in (VERSION): Set to "0.1.7.1".
1464 * configure: Regenerated.
1465 * nfs-utils.spec: Updated.
1467 2000-04-26 H.J. Lu <hjl@lucon.org>
1469 * etc/redhat/nfslock.init: Check if lockd exits before killing
1472 2000-04-25 H.J. Lu <hjl@lucon.org>
1474 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1476 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1478 * support/nfs/exports.c (parsesquash): Correctly set the
1481 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1483 * support/include/nfs/nfs.h: Removed knowledge of internals of
1484 kernel filehandles (which can change) and defined nfs_fh_size
1485 which has variable size
1487 * support/nfs/getfh.c: defined getfh_size to use new syscall to
1488 get variable sized file handles, and change getfh{,old} to
1491 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1494 * tools/Makefile, tools/nlmtest/nlmtest.c
1495 nlmtest.c depended on internel format of file handles, so now
1499 2000-03-12 Chip Salzenberg <chip@valinux.com>
1500 Neil Brown <neilb@cse.unsw.edu.au>
1502 * support/nfs/rpcmisc.c (rpc_init): Share transports.
1504 2000-03-13 H.J. Lu <hjl@lucon.org>
1506 * etc/redhat/nfsd.init: Updated.
1508 * etc/redhat/nfslock.init: Updated.
1510 * nfs-utils.spec.in: Updated.
1512 * configure.in (VERSION): Set to "0.1.7".
1513 * configure: Regenerated.
1514 * nfs-utils.spec: Updated.
1518 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1520 * utils/exportfs/exportfs.c (dump): Included printing of
1521 nohide, no_subtree_check, and insecure_locks
1523 2000-02-26 Chip Salzenberg <chip@valinux.com>
1525 * config.mk.in (INSTALLSUID): Strip ("-s").
1526 (INSTALLSCRIPT): Define.
1527 * utils/nhfsstone/Makefile: Use it.
1529 2000-02-26 Chip Salzenberg <chip@valinux.com>
1531 * utils/lockd/lockd.man: Create.
1532 * utils/lockd/Makefile: Install it.
1533 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1534 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1535 * utils/nhfsstone/Makefile: Install the helper scripts and
1537 * utils/exportfs/exports.man: Fix typo.
1539 2000-02-26 Chip Salzenberg <chip@valinux.com>
1541 * support/nfs/xio.c (xungetc): Decrement line number when
1542 character to unget is newline. Make first parameter int, so
1543 it can distinguish EOF from \377.
1544 * support/include/xio.h (xungetc): Adjust prototype.
1546 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1548 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1549 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1550 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1552 This is for supporting a new option introduced in 2.3.42
1554 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1556 * COPYING: Added. GPL.
1558 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1560 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1561 to get the block size.
1563 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1565 * nfs-utils.spec.in: Update ftp site.
1567 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1569 * README: Update hostnames.
1571 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1573 * configure.in (VERSION): Set to "0.1.6".
1574 * configure: Regenerated.
1575 * nfs-utils.spec: Updated.
1579 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1581 * utils/mountd/auth.c (auth_authenticate_internal): Call
1582 xstrdup for hostname before passing it to gethostbyname.
1584 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1587 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
1589 * README: Update the mailing list address.
1591 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
1593 * configure.in (VERSION): Set to "0.1.5".
1594 * configure: Regenerated.
1595 * nfs-utils.spec: Updated.
1599 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
1601 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1604 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
1606 * configure.in (VERSION): Set to "0.1.4".
1607 * configure: Regenerated.
1608 * nfs-utils.spec: Updated.
1612 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
1614 * nfs-utils.spec.in: New file.
1616 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1618 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1620 1999-12-04 Chip Salzenberg <chip@valinux.com>
1622 * config.mk.in: Use $(CC) as set by configure.
1624 1999-12-04 Chip Salzenberg <chip@valinux.com>
1626 * rules.mk: Call $(MAKE) with $(MFLAGS).
1628 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1630 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1631 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1633 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
1635 * nfs-utils.spec (Version): Set to 0.1.3.
1637 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1638 * configure: Regenerated.
1642 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
1644 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1645 (_PATH_DEV_DSK): Likewise.
1646 (getquotainfo): Match the mounting point from /etc/mtab
1647 instead of calling nfsmount_to_devname ().
1649 1999-11-24 Chip Salzenberg <chip@valinux.com>
1651 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1652 to the new port 24 as well as the historical port 100021.
1654 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1656 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1657 stopping nfsd to stop spurious ESTALE on server shutdown.
1659 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
1661 * support/nfs/exports.c (parseopts): make copy of opt string
1662 before 'nul'ing out commas so that
1664 # exportfs -o option1,option2 hosta:/fs hostb:/fs
1666 applies both options to both exports.
1668 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
1670 * README: Fix a few typos.
1672 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1674 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1675 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1676 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1677 (unsigned_dec): Likewise.
1678 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1679 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1681 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1683 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1684 (unsigned_dec): Likewise.
1685 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1686 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1687 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1689 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1691 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1692 * support/nfs/exports.c: added {no_,}subtree_check and changed
1694 * utils/exportfs/exports.man: added no_subtree_check and nohide
1695 and removed irrelevant stuff from unfsd.
1696 * support/export/rmtab.c: rmtab_read didn't quite do the right
1697 thing if a pathname from rmtab was a subdirectory of an export-point
1699 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
1701 * README: Updated ftp site.
1703 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
1705 * nfs-utils.spec (Version): Set to 0.1.2.
1707 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1708 * configure: Regenerated.
1712 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
1714 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1715 (auth_authenticate_internal): Check for NULL return on forward
1717 (auth_authenticate): Handle "no_forward_dns".
1719 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
1721 * Version 0.1.1 released.
1723 * nfs-utils.spec (Version): Set to 0.1.1.
1725 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1726 * configure: Regenerated.
1730 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
1732 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1734 (Provides): Likewise.
1736 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
1738 * Initial version 0.1 released.
1740 * configure.in (VERSION): Set to "nfs-utils 0.1".
1741 * configure: Regenerated.
1743 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
1745 * utils/mountd/mountd.c (get_exportlist): Cleanup.
1747 * utils/exportfs/exportfs.c (unexport_all): Unexport from
1748 kernel only if the entry is exported to kernel.
1749 (unexportfs): Likewise.
1751 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
1753 1/ utils/mountd/rmtab.c::mountlist_list
1755 This routine stats the rmtab file to see if it has changed. It
1756 if has, it cleans up it's old copy of the data. But it still
1757 always re-read the file, thus returning multiple copies of the
1758 data on consecutive calls without intervening changes.
1759 "Showmount -a" didn't show this as it appears to sort/unique the
1760 data, but 'strace showmount -a' showed that the size of the
1761 datagram that it received grew.
1763 I moved the getrmtabent loop inside the mtime test.
1765 2/ utils/exportfs/exportfs.c
1767 Many routines used the m_path field of m_export instead of
1769 According to the comment in nfslib.h, m_path should only
1770 be used when processing a mount request (i.e. in mountd)
1771 where the mountpoint may be a subdirectory of the export point.
1773 I changed all occurances of m_path to e_path
1776 3/ utils/exportfs/exportfs.c:main
1778 extra arguments are not meaningful with -a or -r, but
1779 exportfs accepted them and then ignored the -a/-r, expect that
1780 -r would still unexport everything first.
1782 I generate an error if there are extra args and f_all
1784 4/ utils/exportfs/exportfs.c:main
1785 extract dump out as a special case.
1787 5/ utils/exportfs/exportfs.c
1788 made f_reexport a local variable.
1791 6/ utils/exportfs/exportfs.c:main,exportall
1793 support/export/rmtab.c
1794 only mayexport on newly created entries, don't set xtabent at all
1796 7/ support/include/nfslib.h
1798 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1800 8/ support/export/xtab.c
1802 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1806 9/ support/export/xtab.c
1808 xtab_mount_read now sets m_exported, and NOT
1809 xtabent and mayexport
1811 removed the append arguement from xtab_write as it was
1814 added is_export flag to xtab_write similar to xtab_read
1815 if is_export, only write entries with m_xtabent or m_addxtab
1816 if !is_export, only write entries with m_exported
1818 10/ support/export/export.c::export_allowed_internal
1820 added test for exp->m_mayexport, as the export tree
1821 may have entries that are no longer allowed to be exported,
1822 and so shouldn't caused deduced exported by rmtab_read
1824 11/ utils/exportfs/exportfs.c::main
1825 error checking of flags.
1827 12/ utils/exportfs/exportfs.c
1829 total rewrite of export and unexport logic.
1831 - build an exportslist of valid exports, based on
1832 current etab file and arguments,
1833 - read rmtab to instantiate relevant wild card entries
1834 - read etab to find out what is currently exported
1835 - synchronise intention with reality
1836 - write out etab and xtab
1839 discard the m_addxtab flag
1840 add m_changed flag so we know what to report in exportfs
1842 14/ utils/mountd/auth.c:auth_authenticate
1844 the value returned by gethostbyaddr was trusted.
1846 It now follows this with a call to gethostbyname
1847 and checks that the address is in the list.
1849 15/ support/export/nfsctl.c::cltsetup,expsetup
1851 force client names to lowercase as kernel is
1854 16/ quietened a few compiler warnings
1856 17/ support/export/client:client_lookup
1858 look for pre-existing client with same name before creating
1861 18/ support/include/exportfs.h
1863 The ordering of the MCL_* enum was:
1864 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1866 I moved ANONYMOUS to the end.
1868 The ordering is significant when an export entry is being searched for to
1869 match a given address. There are two problems with ANONYMOUS being first.
1871 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1872 then the ro case will always be found first and the privileged hosts won't get
1874 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1875 export entry for the specific host, and writes it to xtab.
1876 When another request comes from the same host, the ANONYMOUS entry is found again,
1877 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1878 again. If causes bloat in xtab.
1880 Putting ANONYMOUS at the end reflects it's nature as a catch-all
1882 19/ utils/exportfs/exportfs.man
1883 many updates to the man page to reflect changes to the code
1885 -----------------------
1891 - allow exportfs to modify rmtab file
1892 - make sure kernel never gets two clients with same IP address
1893 - possible kernel should reject
1894 - needs to be some way to lookup client in kernel by IP address
1895 - maybe get kernel to do case-insensitive comparisons on client names
1896 - remove unused clients from kernel
1898 - change etab to xtab and xtab to xtab.active
1900 - timestamp and/or statd-stamp in rmtab for removing old entries.
1902 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
1904 * linux-nfs: New directory.
1905 * linux-nfs/ChangeLog: Moved from ..
1906 * linux-nfs/INSTALL: Likewise.
1907 * linux-nfs/KNOWNBUGS: Likewise.
1908 * linux-nfs/NEW: Likewise.
1909 * linux-nfs/README: Likewise.
1910 * linux-nfs/THANKS: Likewise.
1911 * linux-nfs/TODO: Likewise.
1913 * Starting from knfsd 1.4.7.