1 2000-06-27 H.J. Lu <hjl@lucon.org>
3 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
6 2000-06-27 H.J. Lu <hjl@lucon.org>
10 2000-06-27 H.J. Lu <hjl@lucon.org>
12 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
13 startup to ensure all exiting clients are exported.
15 * configure.in (VERSION): Set to "0.1.8.2".
16 * configure: Regenerated.
17 * nfs-utils.spec: Updated.
19 2000-06-06 H.J. Lu <hjl@lucon.org>
21 * configure.in (VERSION): Set to "0.1.8.1".
22 * configure: Regenerated.
23 * nfs-utils.spec: Updated.
25 2000-06-06 H.J. Lu <hjl@lucon.org>
27 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
28 to "struct sockaddr_in *" for glibc 2.2.
29 (mount_umnt_1_svc): Likewise.
30 (mount_umntall_1_svc): Likewise.
31 (mount_export_1_svc): Likewise.
32 (mount_exportall_1_svc): Likewise.
33 (mount_pathconf_2_svc): Likewise.
34 (get_rootfh): Likewise.
36 2000-06-04 H.J. Lu <hjl@lucon.org>
38 * etc/redhat/nfs.init: Fix a typo in comment.
40 2000-05-31 H.J. Lu <hjl@lucon.org>
42 * configure.in (VERSION): Set to "0.1.8".
43 * configure: Regenerated.
44 * nfs-utils.spec: Updated.
48 2000-05-31 H.J. Lu <hjl@lucon.org>
50 * configure.in (VERSION): Set to "0.1.7.5".
51 * configure: Regenerated.
52 * nfs-utils.spec: Updated.
54 * support/include/nfslib.h (exportent): Add a new field,
55 r_count, to count the number of mounts from a client.
56 (getrmtabent): Take a new argument for position in file.
57 (putrmtabent): Likewise.
58 (fgetrmtabent): Likewise.
59 (fputrmtabent): Likewise.
60 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
62 (fgetrmtabent): Likewise.
63 (putrmtabent): Likewise.
64 (fputrmtabent): Likewise.
66 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
69 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
70 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
72 * utils/mountd/rmtab.c (mountlist_add): Likewise.
73 (mountlist_del): Likewise.
74 (mountlist_del_all): Likewise.
75 (mountlist_list): Likewise.
77 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
78 for the existing entry and initialize "r_count" to 1.
79 (mountlist_del): Decrement "r_count".
81 2000-05-18 H.J. Lu <hjl@lucon.org>
83 * configure.in (VERSION): Set to "0.1.7.4".
84 * configure: Regenerated.
85 * nfs-utils.spec: Updated.
87 2000-05-18 H.J. Lu <hjl@lucon.org>
89 * etc/redhat/nfs.init (restart): Just do stop and start.
91 2000-05-09 Jay Weber <jweber@valinux.com>
93 * utils/rquotad/hasquota.c: added support for ext3 recognition
95 * utils/rquotad/mntent.h: Likewise.
97 2000-05-01 H.J. Lu <hjl@lucon.org>
99 * configure.in (VERSION): Set to "0.1.7.3".
100 * configure: Regenerated.
101 * nfs-utils.spec: Updated.
103 2000-05-01 H.J. Lu <hjl@lucon.org>
105 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
106 mounting poins in /etc/fstab.
108 2000-05-01 H.J. Lu <hjl@lucon.org>
110 * configure.in (VERSION): Set to "0.1.7.2".
111 * configure: Regenerated.
112 * nfs-utils.spec: Updated.
114 2000-05-01 H.J. Lu <hjl@lucon.org>
116 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
117 to check for the mounting point.
119 2000-04-29 Chip Salzenberg <chip@valinux.com>
120 Neil Brown <neilb@cse.unsw.edu.au>
122 * Really re-use RPC ports.
123 (Fixes earlier patch. Sorry, Neil.)
125 2000-04-26 H.J. Lu <hjl@lucon.org>
127 * configure.in (VERSION): Set to "0.1.7.1".
128 * configure: Regenerated.
129 * nfs-utils.spec: Updated.
131 2000-04-26 H.J. Lu <hjl@lucon.org>
133 * etc/redhat/nfslock.init: Check if lockd exits before killing
136 2000-04-25 H.J. Lu <hjl@lucon.org>
138 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
140 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
142 * support/nfs/exports.c (parsesquash): Correctly set the
145 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
147 * support/include/nfs/nfs.h: Removed knowledge of internals of
148 kernel filehandles (which can change) and defined nfs_fh_size
149 which has variable size
151 * support/nfs/getfh.c: defined getfh_size to use new syscall to
152 get variable sized file handles, and change getfh{,old} to
155 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
158 * tools/Makefile, tools/nlmtest/nlmtest.c
159 nlmtest.c depended on internel format of file handles, so now
163 2000-03-12 Chip Salzenberg <chip@valinux.com>
164 Neil Brown <neilb@cse.unsw.edu.au>
166 * support/nfs/rpcmisc.c (rpc_init): Share transports.
168 2000-03-13 H.J. Lu <hjl@lucon.org>
170 * etc/redhat/nfsd.init: Updated.
172 * etc/redhat/nfslock.init: Updated.
174 * nfs-utils.spec.in: Updated.
176 * configure.in (VERSION): Set to "0.1.7".
177 * configure: Regenerated.
178 * nfs-utils.spec: Updated.
182 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
184 * utils/exportfs/exportfs.c (dump): Included printing of
185 nohide, no_subtree_check, and insecure_locks
187 2000-02-26 Chip Salzenberg <chip@valinux.com>
189 * config.mk.in (INSTALLSUID): Strip ("-s").
190 (INSTALLSCRIPT): Define.
191 * utils/nhfsstone/Makefile: Use it.
193 2000-02-26 Chip Salzenberg <chip@valinux.com>
195 * utils/lockd/lockd.man: Create.
196 * utils/lockd/Makefile: Install it.
197 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
198 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
199 * utils/nhfsstone/Makefile: Install the helper scripts and
201 * utils/exportfs/exports.man: Fix typo.
203 2000-02-26 Chip Salzenberg <chip@valinux.com>
205 * support/nfs/xio.c (xungetc): Decrement line number when
206 character to unget is newline. Make first parameter int, so
207 it can distinguish EOF from \377.
208 * support/include/xio.h (xungetc): Adjust prototype.
210 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
212 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
213 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
214 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
216 This is for supporting a new option introduced in 2.3.42
218 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
220 * COPYING: Added. GPL.
222 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
224 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
225 to get the block size.
227 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
229 * nfs-utils.spec.in: Update ftp site.
231 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
233 * README: Update hostnames.
235 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
237 * configure.in (VERSION): Set to "0.1.6".
238 * configure: Regenerated.
239 * nfs-utils.spec: Updated.
243 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
245 * utils/mountd/auth.c (auth_authenticate_internal): Call
246 xstrdup for hostname before passing it to gethostbyname.
248 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
251 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
253 * README: Update the mailing list address.
255 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
257 * configure.in (VERSION): Set to "0.1.5".
258 * configure: Regenerated.
259 * nfs-utils.spec: Updated.
263 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
265 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
268 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
270 * configure.in (VERSION): Set to "0.1.4".
271 * configure: Regenerated.
272 * nfs-utils.spec: Updated.
276 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
278 * nfs-utils.spec.in: New file.
280 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
282 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
284 1999-12-04 Chip Salzenberg <chip@valinux.com>
286 * config.mk.in: Use $(CC) as set by configure.
288 1999-12-04 Chip Salzenberg <chip@valinux.com>
290 * rules.mk: Call $(MAKE) with $(MFLAGS).
292 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
294 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
295 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
297 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
299 * nfs-utils.spec (Version): Set to 0.1.3.
301 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
302 * configure: Regenerated.
306 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
308 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
309 (_PATH_DEV_DSK): Likewise.
310 (getquotainfo): Match the mounting point from /etc/mtab
311 instead of calling nfsmount_to_devname ().
313 1999-11-24 Chip Salzenberg <chip@valinux.com>
315 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
316 to the new port 24 as well as the historical port 100021.
318 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
320 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
321 stopping nfsd to stop spurious ESTALE on server shutdown.
323 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
325 * support/nfs/exports.c (parseopts): make copy of opt string
326 before 'nul'ing out commas so that
328 # exportfs -o option1,option2 hosta:/fs hostb:/fs
330 applies both options to both exports.
332 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
334 * README: Fix a few typos.
336 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
338 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
339 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
340 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
341 (unsigned_dec): Likewise.
342 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
343 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
345 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
347 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
348 (unsigned_dec): Likewise.
349 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
350 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
351 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
353 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
355 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
356 * support/nfs/exports.c: added {no_,}subtree_check and changed
358 * utils/exportfs/exports.man: added no_subtree_check and nohide
359 and removed irrelevant stuff from unfsd.
360 * support/export/rmtab.c: rmtab_read didn't quite do the right
361 thing if a pathname from rmtab was a subdirectory of an export-point
363 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
365 * README: Updated ftp site.
367 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
369 * nfs-utils.spec (Version): Set to 0.1.2.
371 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
372 * configure: Regenerated.
376 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
378 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
379 (auth_authenticate_internal): Check for NULL return on forward
381 (auth_authenticate): Handle "no_forward_dns".
383 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
385 * Version 0.1.1 released.
387 * nfs-utils.spec (Version): Set to 0.1.1.
389 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
390 * configure: Regenerated.
394 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
396 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
398 (Provides): Likewise.
400 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
402 * Initial version 0.1 released.
404 * configure.in (VERSION): Set to "nfs-utils 0.1".
405 * configure: Regenerated.
407 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
409 * utils/mountd/mountd.c (get_exportlist): Cleanup.
411 * utils/exportfs/exportfs.c (unexport_all): Unexport from
412 kernel only if the entry is exported to kernel.
413 (unexportfs): Likewise.
415 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
417 1/ utils/mountd/rmtab.c::mountlist_list
419 This routine stats the rmtab file to see if it has changed. It
420 if has, it cleans up it's old copy of the data. But it still
421 always re-read the file, thus returning multiple copies of the
422 data on consecutive calls without intervening changes.
423 "Showmount -a" didn't show this as it appears to sort/unique the
424 data, but 'strace showmount -a' showed that the size of the
425 datagram that it received grew.
427 I moved the getrmtabent loop inside the mtime test.
429 2/ utils/exportfs/exportfs.c
431 Many routines used the m_path field of m_export instead of
433 According to the comment in nfslib.h, m_path should only
434 be used when processing a mount request (i.e. in mountd)
435 where the mountpoint may be a subdirectory of the export point.
437 I changed all occurances of m_path to e_path
440 3/ utils/exportfs/exportfs.c:main
442 extra arguments are not meaningful with -a or -r, but
443 exportfs accepted them and then ignored the -a/-r, expect that
444 -r would still unexport everything first.
446 I generate an error if there are extra args and f_all
448 4/ utils/exportfs/exportfs.c:main
449 extract dump out as a special case.
451 5/ utils/exportfs/exportfs.c
452 made f_reexport a local variable.
455 6/ utils/exportfs/exportfs.c:main,exportall
457 support/export/rmtab.c
458 only mayexport on newly created entries, don't set xtabent at all
460 7/ support/include/nfslib.h
462 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
464 8/ support/export/xtab.c
466 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
470 9/ support/export/xtab.c
472 xtab_mount_read now sets m_exported, and NOT
473 xtabent and mayexport
475 removed the append arguement from xtab_write as it was
478 added is_export flag to xtab_write similar to xtab_read
479 if is_export, only write entries with m_xtabent or m_addxtab
480 if !is_export, only write entries with m_exported
482 10/ support/export/export.c::export_allowed_internal
484 added test for exp->m_mayexport, as the export tree
485 may have entries that are no longer allowed to be exported,
486 and so shouldn't caused deduced exported by rmtab_read
488 11/ utils/exportfs/exportfs.c::main
489 error checking of flags.
491 12/ utils/exportfs/exportfs.c
493 total rewrite of export and unexport logic.
495 - build an exportslist of valid exports, based on
496 current etab file and arguments,
497 - read rmtab to instantiate relevant wild card entries
498 - read etab to find out what is currently exported
499 - synchronise intention with reality
500 - write out etab and xtab
503 discard the m_addxtab flag
504 add m_changed flag so we know what to report in exportfs
506 14/ utils/mountd/auth.c:auth_authenticate
508 the value returned by gethostbyaddr was trusted.
510 It now follows this with a call to gethostbyname
511 and checks that the address is in the list.
513 15/ support/export/nfsctl.c::cltsetup,expsetup
515 force client names to lowercase as kernel is
518 16/ quietened a few compiler warnings
520 17/ support/export/client:client_lookup
522 look for pre-existing client with same name before creating
525 18/ support/include/exportfs.h
527 The ordering of the MCL_* enum was:
528 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
530 I moved ANONYMOUS to the end.
532 The ordering is significant when an export entry is being searched for to
533 match a given address. There are two problems with ANONYMOUS being first.
535 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
536 then the ro case will always be found first and the privileged hosts won't get
538 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
539 export entry for the specific host, and writes it to xtab.
540 When another request comes from the same host, the ANONYMOUS entry is found again,
541 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
542 again. If causes bloat in xtab.
544 Putting ANONYMOUS at the end reflects it's nature as a catch-all
546 19/ utils/exportfs/exportfs.man
547 many updates to the man page to reflect changes to the code
549 -----------------------
555 - allow exportfs to modify rmtab file
556 - make sure kernel never gets two clients with same IP address
557 - possible kernel should reject
558 - needs to be some way to lookup client in kernel by IP address
559 - maybe get kernel to do case-insensitive comparisons on client names
560 - remove unused clients from kernel
562 - change etab to xtab and xtab to xtab.active
564 - timestamp and/or statd-stamp in rmtab for removing old entries.
566 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
568 * linux-nfs: New directory.
569 * linux-nfs/ChangeLog: Moved from ..
570 * linux-nfs/INSTALL: Likewise.
571 * linux-nfs/KNOWNBUGS: Likewise.
572 * linux-nfs/NEW: Likewise.
573 * linux-nfs/README: Likewise.
574 * linux-nfs/THANKS: Likewise.
575 * linux-nfs/TODO: Likewise.
577 * Starting from knfsd 1.4.7.