1 2000-07-03 H.J. Lu <hjl@lucon.org>
3 * README: Update the util-linux requirement.
5 2000-07-03 H.J. Lu <hjl@lucon.org>
7 * configure.in (VERSION): Set to "0.1.9".
8 * configure: Regenerated.
9 * nfs-utils.spec: Updated.
13 2000-07-03 H.J. Lu <hjl@lucon.org>
15 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
16 stop to ensure all clients can still access the server
17 before it is shutdown.
19 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
21 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
22 calls with format string.
24 2000-06-28 Chip Salzenberg <chip@valinux.com>
26 * utils/statd/log.c (log): Call syslog with format string.
28 2000-06-27 H.J. Lu <hjl@lucon.org>
30 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
33 2000-06-27 H.J. Lu <hjl@lucon.org>
37 2000-06-27 H.J. Lu <hjl@lucon.org>
39 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
40 startup to ensure all existing clients are exported.
42 * configure.in (VERSION): Set to "0.1.8.2".
43 * configure: Regenerated.
44 * nfs-utils.spec: Updated.
46 2000-06-06 H.J. Lu <hjl@lucon.org>
48 * configure.in (VERSION): Set to "0.1.8.1".
49 * configure: Regenerated.
50 * nfs-utils.spec: Updated.
52 2000-06-06 H.J. Lu <hjl@lucon.org>
54 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
55 to "struct sockaddr_in *" for glibc 2.2.
56 (mount_umnt_1_svc): Likewise.
57 (mount_umntall_1_svc): Likewise.
58 (mount_export_1_svc): Likewise.
59 (mount_exportall_1_svc): Likewise.
60 (mount_pathconf_2_svc): Likewise.
61 (get_rootfh): Likewise.
63 2000-06-04 H.J. Lu <hjl@lucon.org>
65 * etc/redhat/nfs.init: Fix a typo in comment.
67 2000-05-31 H.J. Lu <hjl@lucon.org>
69 * configure.in (VERSION): Set to "0.1.8".
70 * configure: Regenerated.
71 * nfs-utils.spec: Updated.
75 2000-05-31 H.J. Lu <hjl@lucon.org>
77 * configure.in (VERSION): Set to "0.1.7.5".
78 * configure: Regenerated.
79 * nfs-utils.spec: Updated.
81 * support/include/nfslib.h (exportent): Add a new field,
82 r_count, to count the number of mounts from a client.
83 (getrmtabent): Take a new argument for position in file.
84 (putrmtabent): Likewise.
85 (fgetrmtabent): Likewise.
86 (fputrmtabent): Likewise.
87 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
89 (fgetrmtabent): Likewise.
90 (putrmtabent): Likewise.
91 (fputrmtabent): Likewise.
93 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
96 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
97 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
99 * utils/mountd/rmtab.c (mountlist_add): Likewise.
100 (mountlist_del): Likewise.
101 (mountlist_del_all): Likewise.
102 (mountlist_list): Likewise.
104 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
105 for the existing entry and initialize "r_count" to 1.
106 (mountlist_del): Decrement "r_count".
108 2000-05-18 H.J. Lu <hjl@lucon.org>
110 * configure.in (VERSION): Set to "0.1.7.4".
111 * configure: Regenerated.
112 * nfs-utils.spec: Updated.
114 2000-05-18 H.J. Lu <hjl@lucon.org>
116 * etc/redhat/nfs.init (restart): Just do stop and start.
118 2000-05-09 Jay Weber <jweber@valinux.com>
120 * utils/rquotad/hasquota.c: added support for ext3 recognition
122 * utils/rquotad/mntent.h: Likewise.
124 2000-05-01 H.J. Lu <hjl@lucon.org>
126 * configure.in (VERSION): Set to "0.1.7.3".
127 * configure: Regenerated.
128 * nfs-utils.spec: Updated.
130 2000-05-01 H.J. Lu <hjl@lucon.org>
132 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
133 mounting poins in /etc/fstab.
135 2000-05-01 H.J. Lu <hjl@lucon.org>
137 * configure.in (VERSION): Set to "0.1.7.2".
138 * configure: Regenerated.
139 * nfs-utils.spec: Updated.
141 2000-05-01 H.J. Lu <hjl@lucon.org>
143 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
144 to check for the mounting point.
146 2000-04-29 Chip Salzenberg <chip@valinux.com>
147 Neil Brown <neilb@cse.unsw.edu.au>
149 * Really re-use RPC ports.
150 (Fixes earlier patch. Sorry, Neil.)
152 2000-04-26 H.J. Lu <hjl@lucon.org>
154 * configure.in (VERSION): Set to "0.1.7.1".
155 * configure: Regenerated.
156 * nfs-utils.spec: Updated.
158 2000-04-26 H.J. Lu <hjl@lucon.org>
160 * etc/redhat/nfslock.init: Check if lockd exits before killing
163 2000-04-25 H.J. Lu <hjl@lucon.org>
165 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
167 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
169 * support/nfs/exports.c (parsesquash): Correctly set the
172 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
174 * support/include/nfs/nfs.h: Removed knowledge of internals of
175 kernel filehandles (which can change) and defined nfs_fh_size
176 which has variable size
178 * support/nfs/getfh.c: defined getfh_size to use new syscall to
179 get variable sized file handles, and change getfh{,old} to
182 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
185 * tools/Makefile, tools/nlmtest/nlmtest.c
186 nlmtest.c depended on internel format of file handles, so now
190 2000-03-12 Chip Salzenberg <chip@valinux.com>
191 Neil Brown <neilb@cse.unsw.edu.au>
193 * support/nfs/rpcmisc.c (rpc_init): Share transports.
195 2000-03-13 H.J. Lu <hjl@lucon.org>
197 * etc/redhat/nfsd.init: Updated.
199 * etc/redhat/nfslock.init: Updated.
201 * nfs-utils.spec.in: Updated.
203 * configure.in (VERSION): Set to "0.1.7".
204 * configure: Regenerated.
205 * nfs-utils.spec: Updated.
209 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
211 * utils/exportfs/exportfs.c (dump): Included printing of
212 nohide, no_subtree_check, and insecure_locks
214 2000-02-26 Chip Salzenberg <chip@valinux.com>
216 * config.mk.in (INSTALLSUID): Strip ("-s").
217 (INSTALLSCRIPT): Define.
218 * utils/nhfsstone/Makefile: Use it.
220 2000-02-26 Chip Salzenberg <chip@valinux.com>
222 * utils/lockd/lockd.man: Create.
223 * utils/lockd/Makefile: Install it.
224 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
225 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
226 * utils/nhfsstone/Makefile: Install the helper scripts and
228 * utils/exportfs/exports.man: Fix typo.
230 2000-02-26 Chip Salzenberg <chip@valinux.com>
232 * support/nfs/xio.c (xungetc): Decrement line number when
233 character to unget is newline. Make first parameter int, so
234 it can distinguish EOF from \377.
235 * support/include/xio.h (xungetc): Adjust prototype.
237 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
239 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
240 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
241 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
243 This is for supporting a new option introduced in 2.3.42
245 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
247 * COPYING: Added. GPL.
249 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
251 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
252 to get the block size.
254 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
256 * nfs-utils.spec.in: Update ftp site.
258 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
260 * README: Update hostnames.
262 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
264 * configure.in (VERSION): Set to "0.1.6".
265 * configure: Regenerated.
266 * nfs-utils.spec: Updated.
270 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
272 * utils/mountd/auth.c (auth_authenticate_internal): Call
273 xstrdup for hostname before passing it to gethostbyname.
275 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
278 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
280 * README: Update the mailing list address.
282 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
284 * configure.in (VERSION): Set to "0.1.5".
285 * configure: Regenerated.
286 * nfs-utils.spec: Updated.
290 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
292 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
295 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
297 * configure.in (VERSION): Set to "0.1.4".
298 * configure: Regenerated.
299 * nfs-utils.spec: Updated.
303 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
305 * nfs-utils.spec.in: New file.
307 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
309 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
311 1999-12-04 Chip Salzenberg <chip@valinux.com>
313 * config.mk.in: Use $(CC) as set by configure.
315 1999-12-04 Chip Salzenberg <chip@valinux.com>
317 * rules.mk: Call $(MAKE) with $(MFLAGS).
319 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
321 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
322 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
324 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
326 * nfs-utils.spec (Version): Set to 0.1.3.
328 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
329 * configure: Regenerated.
333 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
335 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
336 (_PATH_DEV_DSK): Likewise.
337 (getquotainfo): Match the mounting point from /etc/mtab
338 instead of calling nfsmount_to_devname ().
340 1999-11-24 Chip Salzenberg <chip@valinux.com>
342 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
343 to the new port 24 as well as the historical port 100021.
345 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
347 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
348 stopping nfsd to stop spurious ESTALE on server shutdown.
350 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
352 * support/nfs/exports.c (parseopts): make copy of opt string
353 before 'nul'ing out commas so that
355 # exportfs -o option1,option2 hosta:/fs hostb:/fs
357 applies both options to both exports.
359 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
361 * README: Fix a few typos.
363 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
365 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
366 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
367 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
368 (unsigned_dec): Likewise.
369 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
370 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
372 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
374 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
375 (unsigned_dec): Likewise.
376 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
377 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
378 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
380 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
382 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
383 * support/nfs/exports.c: added {no_,}subtree_check and changed
385 * utils/exportfs/exports.man: added no_subtree_check and nohide
386 and removed irrelevant stuff from unfsd.
387 * support/export/rmtab.c: rmtab_read didn't quite do the right
388 thing if a pathname from rmtab was a subdirectory of an export-point
390 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
392 * README: Updated ftp site.
394 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
396 * nfs-utils.spec (Version): Set to 0.1.2.
398 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
399 * configure: Regenerated.
403 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
405 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
406 (auth_authenticate_internal): Check for NULL return on forward
408 (auth_authenticate): Handle "no_forward_dns".
410 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
412 * Version 0.1.1 released.
414 * nfs-utils.spec (Version): Set to 0.1.1.
416 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
417 * configure: Regenerated.
421 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
423 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
425 (Provides): Likewise.
427 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
429 * Initial version 0.1 released.
431 * configure.in (VERSION): Set to "nfs-utils 0.1".
432 * configure: Regenerated.
434 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
436 * utils/mountd/mountd.c (get_exportlist): Cleanup.
438 * utils/exportfs/exportfs.c (unexport_all): Unexport from
439 kernel only if the entry is exported to kernel.
440 (unexportfs): Likewise.
442 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
444 1/ utils/mountd/rmtab.c::mountlist_list
446 This routine stats the rmtab file to see if it has changed. It
447 if has, it cleans up it's old copy of the data. But it still
448 always re-read the file, thus returning multiple copies of the
449 data on consecutive calls without intervening changes.
450 "Showmount -a" didn't show this as it appears to sort/unique the
451 data, but 'strace showmount -a' showed that the size of the
452 datagram that it received grew.
454 I moved the getrmtabent loop inside the mtime test.
456 2/ utils/exportfs/exportfs.c
458 Many routines used the m_path field of m_export instead of
460 According to the comment in nfslib.h, m_path should only
461 be used when processing a mount request (i.e. in mountd)
462 where the mountpoint may be a subdirectory of the export point.
464 I changed all occurances of m_path to e_path
467 3/ utils/exportfs/exportfs.c:main
469 extra arguments are not meaningful with -a or -r, but
470 exportfs accepted them and then ignored the -a/-r, expect that
471 -r would still unexport everything first.
473 I generate an error if there are extra args and f_all
475 4/ utils/exportfs/exportfs.c:main
476 extract dump out as a special case.
478 5/ utils/exportfs/exportfs.c
479 made f_reexport a local variable.
482 6/ utils/exportfs/exportfs.c:main,exportall
484 support/export/rmtab.c
485 only mayexport on newly created entries, don't set xtabent at all
487 7/ support/include/nfslib.h
489 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
491 8/ support/export/xtab.c
493 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
497 9/ support/export/xtab.c
499 xtab_mount_read now sets m_exported, and NOT
500 xtabent and mayexport
502 removed the append arguement from xtab_write as it was
505 added is_export flag to xtab_write similar to xtab_read
506 if is_export, only write entries with m_xtabent or m_addxtab
507 if !is_export, only write entries with m_exported
509 10/ support/export/export.c::export_allowed_internal
511 added test for exp->m_mayexport, as the export tree
512 may have entries that are no longer allowed to be exported,
513 and so shouldn't caused deduced exported by rmtab_read
515 11/ utils/exportfs/exportfs.c::main
516 error checking of flags.
518 12/ utils/exportfs/exportfs.c
520 total rewrite of export and unexport logic.
522 - build an exportslist of valid exports, based on
523 current etab file and arguments,
524 - read rmtab to instantiate relevant wild card entries
525 - read etab to find out what is currently exported
526 - synchronise intention with reality
527 - write out etab and xtab
530 discard the m_addxtab flag
531 add m_changed flag so we know what to report in exportfs
533 14/ utils/mountd/auth.c:auth_authenticate
535 the value returned by gethostbyaddr was trusted.
537 It now follows this with a call to gethostbyname
538 and checks that the address is in the list.
540 15/ support/export/nfsctl.c::cltsetup,expsetup
542 force client names to lowercase as kernel is
545 16/ quietened a few compiler warnings
547 17/ support/export/client:client_lookup
549 look for pre-existing client with same name before creating
552 18/ support/include/exportfs.h
554 The ordering of the MCL_* enum was:
555 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
557 I moved ANONYMOUS to the end.
559 The ordering is significant when an export entry is being searched for to
560 match a given address. There are two problems with ANONYMOUS being first.
562 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
563 then the ro case will always be found first and the privileged hosts won't get
565 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
566 export entry for the specific host, and writes it to xtab.
567 When another request comes from the same host, the ANONYMOUS entry is found again,
568 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
569 again. If causes bloat in xtab.
571 Putting ANONYMOUS at the end reflects it's nature as a catch-all
573 19/ utils/exportfs/exportfs.man
574 many updates to the man page to reflect changes to the code
576 -----------------------
582 - allow exportfs to modify rmtab file
583 - make sure kernel never gets two clients with same IP address
584 - possible kernel should reject
585 - needs to be some way to lookup client in kernel by IP address
586 - maybe get kernel to do case-insensitive comparisons on client names
587 - remove unused clients from kernel
589 - change etab to xtab and xtab to xtab.active
591 - timestamp and/or statd-stamp in rmtab for removing old entries.
593 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
595 * linux-nfs: New directory.
596 * linux-nfs/ChangeLog: Moved from ..
597 * linux-nfs/INSTALL: Likewise.
598 * linux-nfs/KNOWNBUGS: Likewise.
599 * linux-nfs/NEW: Likewise.
600 * linux-nfs/README: Likewise.
601 * linux-nfs/THANKS: Likewise.
602 * linux-nfs/TODO: Likewise.
604 * Starting from knfsd 1.4.7.