1 Author: NeilBrown <neilb@cse.unsw.edu.au>
2 Date: Mon Aug 7 16:35:03 AEST 2006
4 support/nfs/nfssvc.c: if any ports are already open,
5 don't try to open any more.
6 This means that once nfsd is running
8 will just change the number of threads, not the
11 Author: NeilBrown <neilb@cse.unsw.edu.au>
12 Date: Mon Aug 7 14:01:35 AEST 2006
14 Remove warning if neither 'sync' or 'async' present.
15 Add warning of neither 'subtree_check' or 'no_subtree_check' present.
17 commit 7194d7d6320736c14f40d31c3738d40f3119ead5
18 Author: Kevin Coffman <kwc@citi.umich.edu>
19 Date: Sat Jul 8 10:01:40 2006 +1000
21 Use uid/gid of -1 to indicate the export's anonuid/anongid should be used
23 Kernel routine nfsd_setuser() in fs/nfsd/auth.c checks for the
24 value -1 and defaults the credential's fsuid/fsgid to the
25 correct anonuid/anongid values for the given export. We should
26 be passing this value (-1) down when a name mapping cannot be found.
27 Thanks to J. Bruce Fields <bfields@fieldses.org> for the reference.
29 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
30 Acked-by: J. Bruce Fields <bfields@fieldses.org>
32 commit b0604c623f7a98c6061dff19988722d3ae848bd7
33 Author: Kevin Coffman <kwc@citi.umich.edu>
34 Date: Sat Jul 8 09:58:03 2006 +1000
36 Change svcgssd_LDFLAGS to match gssd_LDFLAGS
38 commit 99414bd3eecf93f23c378d3bb3d45bc98f364abc
39 Author: Neil Brown <neilb@suse.de>
40 Date: Sat Jul 8 09:41:58 2006 +1000
42 Disable building/installing mount.nfs by default.
44 mount.nfs does not yet support 'user' option and some others.
45 To make it support this we need to make it setuid-root, and
46 some security isses need to be resolved before that can be done
49 commit b0c3cbfee702c019dab0a22557bbf38e24dfcee1
50 Author: Steve Dickson <steved@redhat.com>
51 Date: Sat Jul 8 09:35:02 2006 +1000
53 Call nfssvc_versbits before nfssvc_setfds
55 nfssvc_versbits() has to be called before nfssvc_setfds()
56 for the version processing to work correctly
58 commit 26fff911b21943f20e3937ae3f2d29a1572d2309
59 Author: Neil Brown <neilb@suse.de>
60 Date: Thu Jul 6 13:05:11 2006 +1000
62 Only use -rpath for Kerberos libs when actually needed.
64 Avoid usage of -rpath is generally safer, and is required by Debian policy.
66 commit 28a7603b719f8d35bf22fd3018b610b489fec78f
67 Author: Neil Brown <neilb@suse.de>
68 Date: Thu Jul 6 12:28:33 2006 +1000
70 Use 65534 instead of -2 in svcgssd_proc.c
72 as this is more consistant across achitectures.
74 commit 904de920ea4da3ad5604c417f0d784fcda83ed2a
75 Author: Shankar Anand <shanand@novell.com>
76 Date: Tue Jul 4 08:50:56 2006 -0600
78 This patch adds code to nfsstat to read /proc/net/rpc/nfsd for nfsv4 server statistics and print them.
80 Submitted by: Shankar Anand <shanand@novell.com>
82 commit 2179c112b9a386ca3d51d0e19390ddfadd745030
83 Author: Steinar H. Gunderson <sesse@debian.org>
84 Date: Wed Jul 5 15:55:45 2006 +1000
86 Fix typos in various man pages.
88 commit 3419e37500dfd19cb2c246260dbd2bc0ee4704d4
89 Author: Steinar H. Gunderson <sesse@debian.org>
90 Date: Wed Jul 5 15:51:30 2006 +1000
92 Use 65534 for anon uid/gid rather than -2
94 This is more consistant across platforms.
96 commit 65735eef8a9441901245f6047edafc50f2d97c97
97 Author: Greg Banks <gnb@chook.melbourne.sgi.com>
98 Date: Wed Jul 5 13:37:21 2006 +1000
100 Update rpcdebug to know about new 2.6 debug flags. Added
101 a manpage and installed rpcdebug (in sbindir).
103 commit 23b3a9d0284d78cb6bf96b8cd44e9a4662ff60ae
104 Author: Greg Banks <gnb@chook.melbourne.sgi.com>
105 Date: Wed Jul 5 12:22:45 2006 +1000
107 Ignore new generated files.
109 commit 89053f3f440b629911cb994a293d5be73bb79bf9
110 Author: Greg Banks <gnb@chook.melbourne.sgi.com>
111 Date: Wed Jul 5 12:20:20 2006 +1000
113 Add rquota.h to BUILT_SOURCES so rquotad builds on the first try.
115 commit 66f9d8251c92124e46a209c47e5c0f7d3a0c4e6e
116 Author: Neil Brown <neilb@suse.de>
117 Date: Wed Jul 5 11:06:09 2006 +1000
119 Generate rquota_xdr.c and rquota.h from rquota.x
121 rquota_svc.c is still by-hand as it contains alot of extras.
122 These should really be moved to rquota_server.c
124 commit 9f5b40b7a68fe0a2648565ecbd4b08bf60287130
125 Author: Neil Brown <neilb@suse.de>
126 Date: Wed Jul 5 10:41:03 2006 +1000
128 Remove some files that old, unused, unneeded.
130 deleted: support/export/keys.c
131 deleted: support/include/rpcdispatch.h
132 deleted: support/include/rpcsec.h
133 deleted: support/include/version.h
134 deleted: support/include/ypupdate.h
135 deleted: support/nfs/clients.c
136 deleted: support/nfs/keytab.c
137 deleted: support/nfs/ypupdate_xdr.c
138 deleted: support/rpc/include/Makefile.am
139 deleted: tools/rpcdebug/neat_idea.c
140 deleted: utils/mountd/mount_xdr.c
141 deleted: utils/rquotad/pathnames.h
143 commit fbb1602bbd34cbe89dd55ca6eaaa19432237db1d
144 Author: Neil Brown <neilb@suse.de>
145 Date: Wed Jul 5 10:30:51 2006 +1000
147 Avoid error creating an existing symlink
149 Just remove the link first.
151 commit 0bc710a5a2b695039613a917e009dba3552ab1cc
152 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
153 Date: Mon Jul 3 18:33:54 2006 -0400
155 Don't depend on Kerberos headers when checking librpcsecgss in configure
157 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
159 Older versions of MIT Kerberos are missing an OID definition, causing
160 the configure checks for librpcsecgss to fail. We shouldn't be depending
161 on their libraries during the configure.
163 commit 5bfa10c94c44f082dc211a5fb431e2202ea9bb35
164 Author: Greg Banks <gnb@melbourne.sgi.com>
165 Date: Tue Jul 4 18:33:56 2006 +1000
167 Eliminate warnings from code generated by rpcgen
169 - unused variable 'buf'
170 - emit a declaration for `buf' on demand.
171 - unused variable 'i'
172 - declare i immediately before use
173 - unused value from IXDR_PUT_
175 - type-punned pointer reference
176 - cast to (void*) first :-(
178 commit acae444246635ec2ca8990d53e685c9062d73091
179 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
180 Date: Mon Jul 3 18:34:43 2006 -0400
182 Handle mapping failure from get_ids.
184 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
186 Temporary patch to do default mapping if we get an error while trying to
187 map a gss principal to the appropriate uid/gid. This currently returns
188 hardcoded values. This may be correct, or we may need to try and figure
189 out the correct values to match the anonuid/anongid for the export.
191 commit 1f1b05a65ef3dc6597c7bc1e2a38f38ae95bf230
192 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
193 Date: Mon Jul 3 18:34:38 2006 -0400
195 Properly report errors in readline() function
197 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
199 Change message priorities for errors and debug messages.
201 commit ee664fd246d77010af13fb557407c612752a5ea8
202 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
203 Date: Mon Jul 3 18:34:33 2006 -0400
205 Change default buffer size increment for readline()
207 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
209 The readline routine expects much smaller messages than we are passing.
210 Change the default initial allocation and increment value from 128
211 to 2048. This saves many calls to realloc().
213 commit 3da69ce5c4fac5677e91aa20e60750ab8de2ab97
214 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
215 Date: Mon Jul 3 18:34:27 2006 -0400
217 Clean up the printerr() logging function.
219 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
221 Update the printerr() function to:
223 1) Determine whether we'll print the message before going to all the
224 work of formatting it.
225 2) Don't just toss away messages that are too long for the buffer.
226 Print what we can and give an indication of the truncation with
228 3) Use a single buffer rather than two.
229 4) Messages either go to syslog (with level ERR) or stderr. Don't
230 send some messages to syslog level DEBUG.
232 commit 0b2a5b574c7ffd99aa3226d36e1d261826405625
233 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
234 Date: Mon Jul 3 18:34:21 2006 -0400
236 Use setfsuid() rather than seteuid() while creating contexts
238 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
240 As suggested by Olaf Kirch <okir@suse.de>, use setfsuid() rather than
241 seteuid() when creating a gss context. This prevents users from using
242 credentials that do not belong to them, while also preventing them from
243 doing things like killing, renicing, or changing the priority of the
244 gssd process while it is processing the context creation.
246 commit 0f899e6d862994ffb437ae73e087c4a21ab59723
247 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
248 Date: Mon Jul 3 18:34:16 2006 -0400
250 Limit acquire_cred call to to Kerberos only
252 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
254 Specify that the acquire_cred call should only be concerned with returning
255 Kerberos credentials since this is Kerberos-only functionality.
257 commit 3829bb90e764cd72c0009cb32a8b39d0fab89d81
258 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
259 Date: Mon Jul 3 18:34:10 2006 -0400
261 Check that the gssapi library is usable early on.
263 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
265 Do a call to determine mechanisms supported by the gssapi library early.
266 This allows us to discover early in case the gssapi library is somehow
267 misconfigured. We can bail out early and give a meaningful message
268 rather than getting errors on each attempt at a context negotiation.
270 commit 119c3e9aafe84c0f7c2846c46ad5e6f5eeece0da
271 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
272 Date: Mon Jul 3 18:34:05 2006 -0400
274 Fix problems with 64-bit big-endian machines
276 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
278 Correct the definition of mech_used in the gss context to use gss_OID_desc.
279 This fixes problems on 64-bit machines when referencing the OID.
281 Also updates write_buffer function to use u_int rather than size_t when
284 commit c3f05548d7b3d586e7eebbdde9339617e88530f3
285 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
286 Date: Mon Jul 3 18:33:59 2006 -0400
288 Define CFLAGS for gss_clnt_send_err compile
290 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
292 Add CFLAGS to make sure we find and use the correct gssapi.h when
293 building gss_clnt_send_err
295 commit 4e9ed06f8f8a0cd9f34a6830c0ff14344a528042
296 Author: Greg Banks <gnb@melbourne.sgi.com>
297 Date: Mon Jul 3 15:59:54 2006 +1000
299 Use socklen_t some more to avoid warnings.
301 commit 6c40236820fda8960af891f41aa9d53f8bbe50a2
302 Author: Greg Banks <gnb@melbourne.sgi.com>
303 Date: Mon Jul 3 15:39:41 2006 +1000
305 Fix warning about pointer signedness differing.
307 commit 3bf702b1a914b3867117b74d519c55fa68f4dc28
308 Author: Greg Banks <gnb@melbourne.sgi.com>
309 Date: Mon Jul 3 15:17:34 2006 +1000
311 Include the right header to get xmalloc() declaration.
313 commit 940c7c304d4a43c00c27529cdddc7c87db6eef87
314 Merge: b90d201... a503848...
315 Author: Greg Banks <gnb@melbourne.sgi.com>
316 Date: Mon Jul 3 14:21:48 2006 +1000
318 Merge branch 'master' of git://linux-nfs.org/nfs-utils
320 commit b90d201551aaa712c011c3d5de900fad714a26a6
321 Author: Greg Banks <gnb@melbourne.sgi.com>
322 Date: Tue Jun 27 21:30:18 2006 +1000
324 Comment out unused variable.
326 commit 33beb42d3d2cd13a82ddbbdc4275d2a048030ae3
327 Author: Greg Banks <gnb@melbourne.sgi.com>
328 Date: Tue Jun 27 21:22:59 2006 +1000
330 Comment out the decades-old SCCS id strings from the original Sun
331 distribution. They cause compile warnings, there is no longer any
332 reason to try to build them into the binaries, and gcc seems to be
333 eliding some of them anyway.
335 commit 3172063ead6b99611d049a59938808a6358f48a4
336 Author: Greg Banks <gnb@melbourne.sgi.com>
337 Date: Tue Jun 27 20:55:07 2006 +1000
339 Detect if glibc provides socklen_t and use that instead
340 of int in those cases which generate compile warnings,
341 e.g. the last argument of recvfrom().
343 commit a09eeb36c2c45151b9bb89f5015da0c584799716
344 Author: Greg Banks <gnb@melbourne.sgi.com>
345 Date: Tue Jun 27 20:28:02 2006 +1000
347 Replace the deprecated sigblock() with more modern
348 signal functions to avoid compile warnings.
350 commit 93608a52655abf5ac23404c4b5cc05fe575a9c04
351 Author: Greg Banks <gnb@melbourne.sgi.com>
352 Date: Thu Jun 22 18:01:10 2006 +1000
354 Fix a number of the easier compile warnings: unused variables,
355 unused labels, constness, signedness.
357 commit a07343ee0da4f0974a23b673ae1b0d482c7426a1
358 Author: Greg Banks <gnb@melbourne.sgi.com>
359 Date: Thu Jun 22 17:31:24 2006 +1000
361 Detect presence of nfs4_set_debug() in libnfsidmap and
362 don't bother calling it if it's missing.
364 commit dcfcb677b39443b6392db3234fd50498bc158507
365 Author: Greg Banks <gnb@melbourne.sgi.com>
366 Date: Thu Jun 22 17:19:17 2006 +1000
368 Remove useless m4 quoting around args to PKG_CHECK_MODULES().
370 commit 24d303ffae686192bda0a5996e8590219dcc82e7
371 Author: Greg Banks <gnb@melbourne.sgi.com>
372 Date: Thu Jun 22 17:16:19 2006 +1000
374 Do m4 quoting of AC_MSG_ERROR() and AC_MSG_WARN() as
375 the autoconf people intended. This avoids errors in
378 commit 66a699d953727d3a992cc09ed5304b83d661a737
379 Author: Greg Banks <gnb@melbourne.sgi.com>
380 Date: Thu Jun 22 16:51:44 2006 +1000
382 Add a .gitignore file to suppress the files generated
383 during autogen, configure and build.
384 commit 49b164d978ee6266df7ba0bd335cb34337e7c381
385 Author: Steve Dickson <SteveD@redhat.com>
386 Date: Mon Jul 3 09:52:00 2006 +1000
388 Allow rpc.nfsd to suppress tcp or udp, and listen on a specific address.
390 -T - will suppressing listening for TCP connection.
391 -U - will suppress UDP
392 -H host - will only listen on that local address
393 -p port - will listen on that port.
395 This requires kernel patches which will hopefully be in 2.6.19 and possibly some
396 earlier test and vendor kernels.
398 commit fde2ae7794047a698feeaf17963d690a1e660a80
399 Author: Steve Dickson <SteveD@redhat.com>
400 Date: Mon Jun 26 15:23:19 2006 +1000
402 Add support for suppressing different NFS versions.
405 means that NFSv2 won't be supported, just v3 and v4 (if the kernel
408 commit 0523fd513c6baa8dbf45d1a7afea2044262aeb3d
409 Author: Neil Brown <neilb@suse.de>
410 Date: Fri Jun 23 17:10:56 2006 +1000
412 Further coverity related cleanups.
414 Greg Banks suggested some variations, particularly improved
415 use of xmalloc/xstrdup functions. Thanks.
417 commit 2e075a16da4963f54cd556403ca9e15a68de27fd
418 Author: Neil Brown <neilb@suse.de>
419 Date: Fri Jun 23 14:38:33 2006 +1000
421 Fix various issues discovered by Coverity
423 Thanks to Michael Halcrow for finding them.
425 commit ff42180930a444cea7f19e55e2cd2bfe6d3f108b
426 Author: Neil Brown <neilb@suse.de>
427 Date: Fri Jun 23 14:06:00 2006 +1000
429 Fix comment parsing (again)
431 Bruce Fields noticed that I broke comment parsing...
433 as xskip() is always called before xgettok(), that is the
434 best place to put xskipcomment and still maintain proper
435 semantics of xskip and xgettok.
437 commit bec968578d97eabc63ae4a12bdeb2b33f40baec4
438 Author: Amit Gud <agud@redhat.com>
439 Date: Thu Jun 22 12:51:04 2006 -0400
441 Change mount configure option to --enable-mount
443 Change the configure option from --with-mount to --enable-mount.
445 Signed-off-by: Amit Gud <agud@redhat.com>
446 Signed-off-by: Steve Dickson <steved@redhat.com>
448 commit ceeffc1f76485b4084b2c61f4ff3c40e4f51c3b8
449 Author: Amit Gud <gud@eth.net>
450 Date: Thu Jun 22 12:49:24 2006 -0400
452 Merge nfsmount.x and mount.x into mount.x
455 Merge utils/mount/nfsmount.x and support/export/mount.x into support/export/mount.x.
457 Signed-off-by: Amit Gud <agud@redhat.com>
458 Signed-off-by: Steve Dickson <steved@redhat.com>
460 commit c2db41e8abb6ddc9d03a0c91c6db043fa0f85a8f
461 Author: Neil Brown <neilb@suse.de>
462 Date: Fri Jun 23 13:37:08 2006 +1000
464 Try to make sure that clientid used for NFSv4 is reliable.
466 We need to give an IP address to identify this client to the
468 The current code does a gethostbyname of the hostname. One
469 some systems this returns 127.0.0.1 or similar, which is not useful.
471 Instead, use getsockname of the sock used to connect to the server
472 to confirm that the server is working. This gives the address on the
473 interface that was chosen to talk to that server, which is the
474 best address we can find (if there is a NAT in the way, it might
475 still not work, but in that case there is nothing we can do).
477 commit 11d34d11153df198103a57291937ea9ff8b7356e
478 Author: Greg Banks <gnb@melbourne.sgi.com>
479 Date: Wed Jun 14 22:48:10 2006 +1000
481 multiple threads for mountd
484 How about the attached patch against nfs-utils tot? It
485 adds a -t option to set the number of forked workers.
486 Default is 1 thread, i.e. the old behaviour.
488 I've verified that showmount -e, the Ogata mount client,
489 and a real mount from Linux and IRIX boxes work with and
490 without the new option.
492 I've verified that you can manually kill any of the workers
493 without the portmap registration going away, that killing
494 all the workers causes the manager process to wake up and
495 unregister, and killing the manager process causes the
496 workers to be killed and portmap unregistered.
498 I've verified that all the workers have file descriptors
499 for the udp socket and the tcp rendezvous socket, that
500 connections are balanced across all the workers if service
501 times are sufficiently long, and that performance is
502 improved by that parallelism, at least for small numbers
503 of threads. For example, with 60 parallel MOUNT calls
504 and a testing patch to make DNS lookups take 100 milliseconds
505 time to perform all mounts (averaged over 5 runs) is:
521 Greg Banks, R&D Software Engineer, SGI Australian Software Group.
522 I don't speak for SGI.
524 commit db96d056578338dd1bb0371dc84638973c187ec6
525 Author: Neil Brown <neilb@suse.de>
526 Date: Fri Jun 16 13:16:09 2006 +1000
528 Remove some temporary files that shouldn't be in 'git'.
531 deleted: config.guess
538 commit 82b53188aaffad0e237461f8f1274794166feb3a
539 Author: Neil Brown <neilb@suse.de>
540 Date: Fri Jun 16 13:09:26 2006 +1000
542 Add support to auto-generate nfsmount* files for new nfs.mount program
544 commit 4e2bae795e5eaf9922f0b966ab5df64994c836a2
545 Author: Amit Gud <agud@redhat.com>
546 Date: Mon Jun 12 19:08:27 2006 -0400
548 Move NFS mount code from util-linux to nfs-utils - part 2
550 Adds the support functions needed for mount and umount. This
551 functionality will someday be available in the form of shared mount
554 Signed-off-by: Amit Gud <agud@redhat.com>
555 Signed-off-by: Steve Dickson <steved@redhat.com>
557 commit a0520fa1a41bd33815b331b660b4545f2723495c
558 Author: Amit Gud <agud@redhat.com>
559 Date: Mon Jun 12 19:06:36 2006 -0400
561 Move NFS mount code from util-linux to nfs-utils - part 1
563 Adds the mount directory and the code to mount and umount the NFS file system.
565 Signed-off-by: Amit Gud <agud@redhat.com>
566 Signed-off-by: Steve Dickson <steved@redhat.com>
568 2006-06-05 NeilBrown <neilb@suse.de>
569 - Remove debian/ at request of Debian maintainer "Steinar H. Gunderson" <sesse@debian.org>
570 - fix_exportfs_with_multiple_matches.diff: Fixes a problem with exportfs -o
571 and multiple entries of the same type for the same patch that matches
572 a given client. The entire rationale and problem description can be found
573 at http://bugs.debian.org/245449 (fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>)
574 - escape hashes in exports
575 Makes sure any # signs in the printed-out exports file are
576 escaped (as with quotes, spaces, etc.), so they won't be treated
577 as a comment when they're read back in again.
578 "Steinar H. Gunderson" <sesse@debian.org>
579 - Only treat '#' as starting a comment when at the start of a
580 token, otherwise '#' in filenames cannot be read.
582 - document sync option:
583 Document the 'sync' option in the exports(5) man page -- ATM
584 only the 'async' option is documented, which is not very
585 symmetric. :-) "Steinar H. Gunderson" <sesse@debian.org>
586 - mountd state directory:
587 Let the user select (via a new parameter) the path to the NFS
588 state directory for mountd, to match the statd functionality.
589 "Steinar H. Gunderson" <sesse@debian.org>
590 - fix nhfsrun signal:
591 nhfsrun is supposed to be able to be signalled with SIGUSR1, but
592 the signal trapped is number 30, which is something else
593 entirely (SIGPWR). This patch simply changes it to say "USR1",
594 which gets it right no matter what the value is.
595 "Steinar H. Gunderson" <sesse@debian.org>
596 - Minor man page tidy up
598 2006-04-12 NeilBrown <neilb@suse.de>
599 Remove **/Makefile.in, aclocal.m4, configure, and
600 support/include/config.h.in from source control
601 These are auto autogenerated by
602 aclocal -I aclocal ; autoheader ; automake ; autoconf
604 2006-04-12 NeilBrown <neilb@suse.de>
605 utils/statd/rmtcall.c: use HAVE_IFADDRS_H to control compilation
606 of code using ifaddrs.h
607 configure.in: test for present of ifaddrs.h
609 Old glibc's don't have ifaddrs.h
611 2006-06-12 Amit Gud <agud@redhat.com>
612 Added the mount functionality from util-linux.
613 Added --without-mount configure option.
615 2006-04-12 NeilBrown <neilb@suse.de>
616 Set version to 1.0.8,
617 aclocal -I aclocal ; autoheader ; automake ; autoconf
619 2006-04-10 NeilBrown <neilb@suse.de>
620 Various paranoia checks:
621 gssd_proc.c: pass max_field sizes to sscanf to avoid buffer
623 svcgssd_proc.c: range_check name.length, to ensure name.length+1
625 idmapd.c(nfsdcb): make sure at least one byte is read before
626 zeroing the last byte that was read, otherwise memory corruption
629 Found by SuSE security audit.
631 2006-04-10 "Kevin Coffman" <kwc@citi.umich.edu>
632 Check for sufficient version of librpcsecgss and libgssapi
635 2006-04-10 "Kevin Coffman" <kwc@citi.umich.edu>
636 Update aclocal/tcp-wrappers.m4 to define HAVE_LIBWRAP and
637 HAVE_TCP_WRAPPERS as appropriate.
639 2006-04-10 NeilBrown <neilb@suse.de>
640 Add checking for innetgr back to configure.in
642 2006-04-10 kwc@citi.umich.edu
643 Update calls to gss_export_lucid_sec_context()
645 Change the calls to gss_export_lucid_sec_context() to match the corrected
646 interface definition in libgssapi-0.9.
648 2006-04-10 kwc@citi.umich.edu
649 Plug memory leaks in svcgssd
651 Various memory leaks in the svcgssd context processing are eliminated.
653 2006-04-10 kwc@citi.umich.edu
654 Fix memory leak of the AUTH structure on context negotiations
656 Free AUTH structure after completing context negotiation and sending
657 context information to the kernel.
659 2006-04-10 kwc@citi.umich.edu
660 Fix support/include/config.h.in such as would be done be running autoheader.
662 2006-03-28 NeilBrown <neilb@suse.de>
663 1.0.8-pre3, aclocal/autoconf/automake
665 2006-03-28 kwc@citi.umich.edu
666 Use PKGCONFIG to locate gssapi and rpcsecgss header files
668 Instead of having separate copies of the gssapi and rpcsecgss
669 header files, or depending on the Kerberos gssapi header,
670 locate the headers now installed with the libgssapi and librpcsecgss
673 Remove local copies of the gssapi and rpcsecgss header files.
675 This depends on the configure_use_autotools patch.
677 2006-03-28 kwc@citi.umich.edu
678 Add debugging to better detect negotiation of enctype not supported by kernel
680 Print debugging message indicating the type of encryption keys being sent
681 down to the kernel. This should make it easier to detect cases where
682 unsupported encryption types are being negotiated.
685 2006-03-28 kwc@citi.umich.edu
687 Don't close and reopen all pipes on every DNOTIFY signal.
689 From: Vince Busam <vbusam@google.com>
690 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
692 Don't unnecessarily close and re-open all pipes after every DNOTIFY
693 signal. These unnecessary closes were triggering a kernel Oops.
694 Original patch modified to correct segfault when unmounting last
697 2006-03-28 kwc@citi.umich.edu
698 Add option to specify directory to search for credentials cache files
701 From: Vince Busam <vbusam@google.com>
702 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
704 Add command line option to specify which directory should be searched
705 to find credentials caches.
708 2006-03-28 kwc@citi.umich.edu
709 Must still use knowledge of the glue context for pre-1.4 versions of MIT krb5
711 We need to get access to the internal krb5 context pointer for
712 older (pre-1.4) versions of MIT Kerberos. We get a pointer to
713 the gss glue's context. Get the right pointer before accessing
714 the context information.
717 2006-03-28 kwc@citi.umich.edu
719 Remove unused groups variable from get_ids() which was causing a compiler warning.
722 2006-03-28 kwc@citi.umich.edu
723 Update krb5 code to use glue routine lucid context functions
727 The gssd code should not know about the glue layer's context structure.
728 A previous patch added gss_export_lucid_sec_context() and
729 gss_free_lucid_sec_context() functions to the gssapi glue layer.
730 Use these functions rather than calling directly to the Kerberos
731 gssapi code (which requires the Kerberos context handle rather
732 than the glue's context handle).
736 2006-03-28 kwc@citi.umich.edu
738 Separate out context handling code for MIT Kerberos and SPKM3
742 2006-03-28 Kevin Coffman <kwc@citi.umich.edu>
743 User-selectable idmapping cache lifetime
745 Read and process new configuration option, Cache-Expiration, and use
746 the value to determine how long idmapping entries are cached.
749 2006-03-27 NeilBrown <neilb@suse.de>
752 2006-03-27 kwc@citi.umich.edu
753 Add debugging to better detect negotiation of enctype not supported by kernel
755 Print debugging message indicating the type of encryption keys being sent
756 down to the kernel. This should make it easier to detect cases where
757 unsupported encryption types are being negotiated.
760 Don't close and reopen all pipes on every DNOTIFY signal.
762 Don't unnecessarily close and re-open all pipes after every DNOTIFY
763 signal. These unnecessary closes were triggering a kernel Oops.
764 Original patch modified to correct segfault when unmounting last
768 Add option to specify directory to search for credentials cache files
770 Add command line option to specify which directory should be searched
771 to find credentials caches.
773 2006-03-27 kwc@citi.umich.edu
774 Must still use knowledge of the glue context for pre-1.4 versions of MIT krb5
776 We need to get access to the internal krb5 context pointer for
777 older (pre-1.4) versions of MIT Kerberos. We get a pointer to
778 the gss glue's context. Get the right pointer before accessing
779 the context information.
781 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
782 Remove unused variable causing compile warning
784 Remove unused groups variable from get_ids() which was causing a compiler warning.
786 2006-03-27 kwc@citi.umich.edu
787 Update krb5 code to use glue routine lucid context functions
789 The gssd code should not know about the glue layer's context structure.
790 A previous patch added gss_export_lucid_sec_context() and
791 gss_free_lucid_sec_context() functions to the gssapi glue layer.
792 Use these functions rather than calling directly to the Kerberos
793 gssapi code (which requires the Kerberos context handle rather
794 than the glue's context handle).
796 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
797 Separate out context handling code for MIT Kerberos and SPKM3
800 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
801 Consolidate gssd and svcgssd since they share much code
803 Remove directory svcgssd which was only created because the old
804 build system could not handle building two daemons in the same
805 directory. This eliminates build complications since gssd and
806 svcgssd also share many source files.
808 This patch effectively removes the utils/svcgssd directory, moving
809 all its files to the utils/gssd directory. File utils/gssd/Makefile.am
810 is modified with directions to build both gssd and svcgssd.
812 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
813 Use PKGCONFIG to locate gssapi and rpcsecgss header files
815 Instead of having separate copies of the gssapi and rpcsecgss
816 header files, or depending on the Kerberos gssapi header,
817 locate the headers now installed with the libgssapi and librpcsecgss
820 Remove local copies of the gssapi and rpcsecgss header files.
822 This depends on the configure_use_autotools patch.
824 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
825 User-selectable idmapping cache lifetime
827 Read and process new configuration option, Cache-Expiration, and use
828 the value to determine how long idmapping entries are cached.
830 2006-03-27 Steve Dickson <steved@redhat.com>
831 Set libnfsidmap library debugging level and logging function.
833 This patch adds a call to the new libnfsidmap library function
834 nfs4_set_debug(), which defines the verbosity level libnfsidmap
835 should use as well as the logging function.
837 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
838 Don't close file descriptor until after calling event_del().
840 Delete event processing for a file descriptor before closing it.
841 This was causing hangs when used in combination with libevent-1.0b.
843 2006-03-27 kwc@citi.umich.edu
844 Find krb5-config on SuSE 10
846 SuSE 10.0 puts krb5-config in yet another obscure location.
847 Look for it there and use it if found.
849 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
850 Update debian package information.
852 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
853 Install /var/lib/nfs files using DESTDIR and add rpcsec headers to distribution
855 Add "$(DESTDIR)" to the paths for the "$(statedir)" files so they are
856 put in the right place when DESTDIR is defined.
858 Add the rpcsec header files to EXTRA_DIST list.
860 2005-12-21 NeilBrown <neilb@suse.de>
861 *utils/rquotad/rquota_server.c: Detect and handle both old-style
862 (2.4) and new-style(2.6) quotactl.
863 *utils/gssd/gss_destroy_cred: remove dependence on "head -1" which
864 might need to be "head -n 1"
865 *utils/nhfsstone/nhfsrun: convert "tail -1" to "tail -n 1"
867 2005-12-20 Kevin Coffman <kwc@citi.umich.edu> NeilBrown <neilb@suse.de>
868 Substantial Makefile/configure rewrite.
869 Run 'autogen.sh' to create "Makefile.in" etc.
871 Also add -D_FILE_OFFSET_BITS=64 to CPP_FLAGS so that mountd can
872 stat and export files larger than 2Gig.
876 2005-12-20 NeilBrown <neilb@suse.de>
877 support/nfs/exports.c(getexportent): is a null host name is given,
878 replace it with '*' so we have a non-empty host name for messages
880 utils/exportfs/exportfs.man: Correct documentation about default
883 2005-12-20 Kevin Coffman <kwc@citi.umich.edu>
884 utils/gssd/gssd_proc.c(create_auth_rpc_client): Use service
885 portion of clp->servicename rather than hard-coding "nfs".
887 2005-12-16 NeilBrown <neilb@suse.de>
890 2005-12-16 Kevin Coffman <kwc@citi.umich.edu>
891 svcgssd needs -lnfs when using new function closeall().
894 Remove unused argument from nfsdopen()
896 After previous changes, the arguement to nfsdopen() has become unused.
900 Fix idmapd error reporting after call to mydaemon()
902 After call to mydaemon(), calls to err[x] and warn[x] result
903 in the message going nowhere. Change to using idmapd_*
904 versions of these routines which write to syslog.
905 Original problem reported by Vincent Roqueta <vincent.roqueta@ext.bull.net>
906 with a different patch.
909 Don't add @domain to names that cannot be mapped.
911 Per rfc3530 section 5.8: when unable to map a uid to a name, don't
912 add the @domain to the "nobody" name.
915 Fix idmapd for systems where sizeof(uid_t)!=4 and sizeof(gid_t)!=4
917 Fix conversion cases where uid_t and gid_t are not 32 bits.
920 Don't segfault because mech wasn't filled in because of an error
922 From Kevin Coffman <kwc@citi.umich.edu>
924 Initialize mech to null to avoid segfault if an error occurs
925 and mech is never returned from gss_accept_sec_context.
928 Remove use of static buffer in do_downcall
930 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
932 Dynamically allocate buffer of the correct length rather
933 than using fixed-length buffer.
936 Print better error message if rpc routine clnt_create() fails.
939 Print appropriate error messages after gss calls.
941 Print gss error messages after calls to gss functions, even if they
942 are for Kerberos only.
945 Update gssd and svcgssd to use the new gss mech glue lucid context calls.
947 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
949 Update gssd and svcgssd to use a lucid context from SPKM3 to send down
951 Update gssd and svcgssd to use the new gss mech glue lucid context calls.
952 Add configure check to see if spkm3 support is available.
955 Add support for CONTINUE_NEEDED return from gss_accept_sec_context.
957 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
959 Add CONTINUE_INIT handling to svcgssd. Store the partially complete spkm
960 context handle in the out_handle of CONTINUE_INIT messages so that it is
961 returned in the in_handle of subsequent messages.
964 Replace GSS_C_ANON_FLAG with GSS_C_MUTUAL_FLAG.
966 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
968 Specify GSS_C_MUTUAL_FLAG rather than GSS_C_ANON_FLAG for
971 NOTE: we need a way to pass the appropriate value rather than
972 hard-coding this flag.
975 Increase size of rpc send/receive buffers
977 Change the clnt_create() to use routines which allow us to set the
978 send and receive buffer size. This is needed for larger spkm3
979 exchanges including certificate chains.
981 This has the side-effect of skipping the portmap call since
982 we specify the port (by specifying the service) when getting
983 the server's address information.
986 Define _LINUX_QUOTA_VERSION to 1
988 The rquotad code is written against the "old" kernel quota interface.
989 Fedora Core 4 is the only platform known to check for different
990 versions, so this should not have any affect on other platforms
991 and fixes the build for FC4.
995 2005-12-12 Usha Ketineni <ketineni@us.ibm.com>, NeilBrown <neilb@suse.de>
996 *support/nfs/rpcmisc.c(rpc_init): is stdin is a socket, but
997 is already connected (as e.g. from ssh), don't assume we
998 were started by inetd.
1000 2005-11-03 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
1001 *utils/idmapd/idmaps.c:
1003 I've recently updated the nfs-utils in rawhide with the
1004 latest patches from the SourceForge CVS tree and the
1005 latest CITI patches (1.0.7-4).
1007 In testing these patches, I notice that when the server was started
1008 and a SIGHUP was sent to rpc.idmapd to open the nfs4.nametoid/channel
1009 and nfs4.idtoname/channel files, the second open (the nfs4.idtoname one)
1010 failed because the path (i.e. ic->ic_path) was NULL.
1012 Now the reason the ic_path was NULL was because it was never set
1013 during the call to nfsdopen(). nfsdopen() looks like:
1014 nfsdopen(char *path)
1016 return ((nfsdopenone(&nfsd_ic[IC_NAMEID], IC_NAMEID, path) == 0 &&
1017 nfsdopenone(&nfsd_ic[IC_IDNAME], IC_IDNAME, path) == 0) ? 0
1021 Note: the call to nfsdopenone() is how the path is set in each nfsd_ic[]
1022 entry and nfsdopen() is only called once.
1024 So when rpc.idmap comes up and the first call to nfsdopenone() fails
1025 (because the server is not running) the path in nfsd_ic[IC_IDNAME] is
1026 never filled in because the second nfsdopenone() never happen...
1028 Now there was a CITI patche (idmapd_revert_fix_reopen_on_sighup.dif)
1029 that tried to address this problem but did seem to fix it.. The
1030 attached patch fix the problem by initializing both nfsd_ic[IC_IDNAME]
1031 and nfsd_ic[IC_NAMEID] structures with the needed info...
1032 I figured since there is no way of changing these paths or filenames
1033 by command line args, why not just set them during compile time...
1034 so that's what this patch does.
1036 This patch also changes how nfsdreopen_one() handles the
1037 case where the event has already been set. Unlike the CITI
1038 patch (idmapd_revert_fix_reopen_on_sighup.dif) which just
1039 just does not register the second event, my patch deletes
1040 the old event and the registers the new one. It just seems like
1041 the right thing to do since a SIGHUP means a new server just
1042 started so we probably should create a new event as well...
1046 2005-10-14 NeilBrown <neilb@suse.de>
1047 *utils/mountd/cache.c(nfsd_fh): Understand type 2 and type 3
1048 filesystem identifiers, which are used with device numbers
1049 That don't fit into 16 bits.
1051 2005-10-07 Olaf Kirch <okir@suse.de>
1052 * utils/mountd/mountd.c(get_exportlist): Without this patch,
1053 showmount -e would sometimes display host names that should really
1054 have been subsumed under a wildcard entry.
1056 The problem was that the code in get_exportlist would always
1057 skip the next group entry after removing one FQDN.
1059 2005-10-06 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
1060 * support/nfs/export.c: don't warn about sync/async for readonly
1062 * support/nfs/closeall.c: new file with function to close all
1063 file descriptors from a give minimum upwards.
1064 * nfsd/mountd/statd/idmapd/gsssvcd: use closeall.
1065 * utils/mountd/mountd.c: Eliminate 3 syslog message that are
1066 logged for successful events.
1067 * utils/mountd/mountd.c: make sure the correct hostname is used in
1068 the SM_NOTIFY message that is sent from a rebooted server which
1069 has multiple network interfaces. (bz 139101)
1071 Details can be found in:
1072 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=139101
1074 *utils/idmapd/idmapd.c:Fixed subscripting problem in idmapd (bz
1075 158188) This fixes the following problem:
1076 rpc.idmapd: nfsdreopen: Opening '' failed: errno 2 (No such file or directory)
1078 Details can be found in:
1079 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=158188
1081 *utils/statd/statd.c(drop_privs): clear st_gid as well as st_uid
1083 *utils/statd/svc_run.c(my_svc_run): remove usage of undocumented
1084 %m format specifier.
1085 *utils/statd/montor.c(sm_mon_1_svc): as above
1086 *support/nfs/xlog.c(xlog): Changed xlog to use LOG_INFO instead of
1087 LOG_DEBUG so debug messages will appear w/out any config changes
1091 2005-09-02 Mike Frysinger <vapier@gentoo.org>
1092 * utils/rquotad/rquota_server.c(getquotainfo): use explicit
1093 struture-member copying rather than memcpy, as the element
1094 sizes are the same on all architectures.
1096 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
1097 Add option to set rpcsec_gss debugging level (if available)
1099 Changes to allow gssd/svcgssd to build when using Hiemdal Kerberos
1100 libraries. Note that there are still run-time issues preventing
1101 this from working when shared libraries for libgssapi and librpcsecgss
1104 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
1105 Remove the rpcsec_gss code and rely on an external library instead.
1107 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
1108 *utils/mountd/mountd.c:
1109 mountd currently always returns AUTH_NULL and AUTH_SYS as the
1110 allowable flavors in mount replies. We want it to also return gss
1111 flavors when appropriate. For now as a hack we just have it always
1112 return the KRB5 flavors as well.
1114 *utils/mountd/cache.c:
1116 When attempting to mount an NFSv4 pseudofilesystem (fsid=0) and the
1117 actual exported directory does not exist on the server, rpc.mountd
1118 doesn't check the directory exists (when fsidtype=1, i.e. using fsid,
1119 but does check for fsidtype=0, i.e. using dev/ino). The non-existent
1120 exported directory path with fsid=0 is written to the kernel via
1121 /proc/net/rpc/nfsd.export/channel, which leads to path_lookup() to
1122 return ENOENT (seems appropriate). Unfortunately, the new_cache
1123 approach ignores errors returned when writing via the channel file so
1124 that particular error is lost and the mount request is silently ignored.
1126 Assuming it doesn't make sense to revamp the new_cache/up-call method to
1127 not ignore returned errors, it seems appropriate to fix the case where
1128 rpc.mountd doesn't check for the existence of an exported directory with
1129 fsid= semantics. The following patch does this by moving the stat() up
1130 so it is done for both fsidtype's. I'm not certain whether the other
1131 tests need to be executed for fsidtype=1, but it doesn't appear to hurt
1132 [Not exactly true: the comparison of inode numbers caused problems so
1133 now it's kept for fsidtype=0 only].
1135 Would it be also desirable to log a warning for every error, if any,
1136 returned by a write to any of the /proc/net/rpc/*/channel files which
1137 would otherwise be ignored (maybe under a debug flag)?
1139 * gssd/mountd/svcgssd: Changes gssd, svcgssd, and mountd to ignore a
1140 SIGHUP rather than dying.
1142 * many: Remove the gssapi code and rely on an external library instead.
1144 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
1145 * utils/exportfs/exports.man: Document the "crossmnt" export export option
1146 * utils/gssd/krb5_util.c:
1147 Add better debugging and partially revert the function
1148 check for gss_krb5_ccache_name.
1150 For MIT Kerberos releases up to and including 1.3.1, we *must*
1151 use the routine gss_krb5_ccache_name to get the K5 gssapi code
1152 to use a different credentials cache.
1154 For releases 1.3.2 and on, we want to use the KRB5CCNAME
1155 environment variable to tell it what to use.
1156 (A problem was reported where 1.3.5 was being used, our
1157 code was using gss_krb5_ccache_name, but the underlying
1158 code continued to use the first (or default?) credentials
1159 cache. Switching to using the env variable fixed the problem.
1160 I cannot recreate this problem.
1162 *utils/gssd/krb5_util.c:
1163 Andrew Mahone <andrew.mahone@gmail.com> reported that reiser4
1164 always has DT_UNKNOWN. He supplied patch to move the check
1165 for regular files after the stat() call to correctly find
1166 ccache files in reiser4 filesystem.
1168 Also change the name comparison so that the wrong file is
1169 not selected when the substring comparison is done.
1171 *utils/gssd/krb5_util.c:
1172 Limit the set of encryption types that can be negotiated by
1173 the Kerberos library to those that the kernel code currently
1176 This should eventually query the kernel for the list of
1179 *utils/gssd/gss_util.c, utils/svcgssd/svcgssd_main_loop.c:
1180 Print more information in error messages to help debugging failures.
1182 *utils/svcgssd/svcgssd_proc.c: Increase token buffer size and
1183 update error handling so that a response is always sent.
1185 *utils/svcgssd/svcgssd_proc.c: Add support to retrieve
1186 supplementary groups.
1189 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
1191 Consolidate some of the Kerberos checking instead of repeating
1192 the same things for MIT and Heimdal.
1193 Also adds more checks to distinguish 32-bit from 64-bit
1194 (mainly for gssapi.h)
1195 Fix svcgssd Makefile so make TOP=../../ works correctly there.
1196 Enable running a modern autoheader.
1197 * utils/gssd/gss_oids.c: Use correct OID value for SPKM-3
1198 * utils/gssd/gss_util.c: Fix build with older MIT releases that do not define GSS_C_NT_HOSTBASED_SERVICE
1199 * utils/gssd/write_bytes.h, support/include/gssapi/gssapi.h:
1200 Length of gss_buffer_desc is a size_t which is 64-bits on a
1201 64-bit machine. Kernel code expects 32-bit integer for length.
1202 Coerce length value into a 32-bit value when reading from or
1203 writing to the kernel.
1204 Change gssapi.h to use datatype size values obtained from
1205 configure rather than hard-coded values.
1206 * utils/idmapd/idmapd.c: The EV_INIT check here was wrong, and was
1207 causing idmapd to become unresponsive to server requests after
1209 * utils/idmapd/idmapd.c: Idmapd should flush the server id<->name
1210 caches when its started.
1212 2005-04-12 G. Allen Morris III <gam3@gam3.net>
1214 * All Makefile: added TOP as needed for easier compile.
1216 * utils/nfsstat/nfsstat.c: added NFS V4 support; added the -m
1217 option; Added -2, -3, and -4 options; changed -a option to -v
1218 option; added long options; changed default output to not
1219 show V2 NFS statistics unless used.
1221 * utils/nfsstat/nfsstat.man: Documented above changes; changed
1222 authors email address; added BUGS section.
1224 2005-04-07 Chip Salzenberg <chip@pobox.com>
1226 * debian/changelog: Version 1.0.7-2.
1228 2005-04-06 Chip Salzenberg <chip@pobox.com>
1230 * config.guess, config.sub: Update.
1232 * support/rpc/svc_auth_gss.c (_svcauth_gss): Avoid using a cast as
1233 an lvalue, as it is non-portable.
1235 * support/nfs/exports.c (parseopts): Accept "acl" option to mean
1236 ~NFSEXP_NOACL, and "no_acl" to mean NFSEXP_NOACL.
1237 (putexportent): Report NFSEXP_NOACL as "no_acl", and ~NFSEXP_NOACL
1239 * utils/exportfs/exportfs.c (dump): Report NFSEXP_NOACL as
1241 * utils/exportfs/exports.man: Document "no_acl".
1243 2005-03-14 NeilBrown <neilb@cse.unsw.edu.au>
1244 Denis Vlasenko <vda@ilport.com.ua>
1245 * support/export/client.c(client_init and client_gettype):
1246 treat N.N.N.N as a special case of MCL_SUBNETWORK instead of
1249 2005-03-06 G. Allen Morris III <gam3@gam3.net>
1250 * support/nfs/cacheio.c(readline): Could not read lines greater
1251 than 128 bytes. [1157791]
1252 * utils/exportfs/exports.man: Added a SEE ALSO section and
1253 fixed 2 typos. [1018450]
1255 2005-02-28 Trond Myklebust <trond.myklebust@fys.uio.no>
1256 * utils/statd/rmtcall.c(statd_get_socket): If a port number is
1257 explicitly given, make sure to try to bind to that.
1259 2005-01-11 Chip Salzenberg <chip@pobox.com>
1261 * debian/changelog: Version 1.0.7-1.
1262 * debian/nfs-common.default (NEED_IDMAPD, NEED_GSSD):
1263 Disable by default, on advice of upstream.
1264 * debian/nfs-kernel-server.default (NEED_SVCGSSD):
1267 * utils/svcgssd/Makefile (predep): Symbolically link duplicated
1269 (distclean): Remove symlinks to duplicated files.
1271 2004-12-17 NeilBrown <neilb@cse.unsw.edu.au>
1274 * config.mk, configure.in: update version number, run autoconf
1275 * configure.in: require nfsidmap.h if gss is enabled.
1277 2004-12-10 NeilBrown <neilb@cse.unsw.edu.au>
1280 * config.mk, configure.in: update version number, run autoconf
1282 2004-12-10 Neil Brown <neilb@cse.unsw.edu.au>
1283 * README : note dependancy on kerberos, libevent, and nfsidmap
1284 * configure.in : fail if --enable-nfsv4 and libevent or
1285 libnfsidmap are missing.
1286 * configuyre.in: improve message if krb5 support is missing
1288 2004-12-06 Paul Clements <paul.clements@steeleye.com>
1289 * support/include/ha-callout.h: get return status from waitpid
1291 * support/include/ha-callout.h: don't ignore SIGCHLD while waiting
1292 for a callout to complete.
1293 * utils/statd/statd.c(sigusr): print current start when re-reading
1294 notify list due to SIGUSR1
1295 * utils/statd/svc_run.c(my_svc_run): call change_state when
1296 re-notifying clients.
1298 2004-12-06 Marc Eshel <eshel@almaden.ibm.com>
1299 * utils/statd/svc_run.c(my_svc_run): allow loop to exit when in
1301 *utils/statd/rmtcall.c(statd_get_socket): if a hostname is given
1302 to statd with -n, prefer it's IP address to the default for
1305 2004-12-06 Bruce Allan <bwa@us.ibm.com>
1306 * utils/mountd/auth.c(auth_reload) Clear the "my_client" cache on
1307 an auth_reload to avoid old data getting used.
1309 2004-12-03 NeilBrown <neilb@cse.unsw.edu.au>
1310 Release 1.0.7-pre1 for testing
1312 * config.mk, configure.in: update version number, run autoconf
1314 2004-12-03 Trond Myklebust <trond.myklebust@fys.uio.no>
1316 * utils/statd/statd.c(main): ignore SIGPIPE
1318 2004-11-22 "J. Bruce Fields" <bfields@fieldses.org>
1320 * tools/rpcdebug/rpcdebug.c: support aliases "nfsdebug" and
1321 "nfsddebug" and update flag names.
1322 * configure.in, nodist/* redhat/* nfs-utils.spec*: remove redhat
1323 specific files (as no-one actually uses them, especially not
1324 redhat), and the nodist /etc files (as they drift out-of-date, and
1325 the debian directory provides a suitable example.
1326 * utils/svcgssd_proc.c(get_ids): fix memory leak
1327 * utils/svcgssd/svcgssd_proc.c: Rely on count of the number of
1328 groups instead of using a special guard value to identify the end
1330 * utils/idmapd/idmapd.c: don't allow Default domain and anon-uid
1331 or -gid to be specified on command line.
1332 * utils/idmapd/idmapd.c: improve error messages
1333 * utils/idmapd/idmapd.c: Reopen nfsd files on sighup. Allows us
1334 to start up client side only (even when nfsd module not loaded),
1335 and then sighup later after insmodding nfsd module.
1336 * utils/idmapd/idmapd.c: Make sure we catch all errors on
1337 daemonizing by waiting for child to report succesfull startup
1339 * utils/idmapd/idmapd.c: Let libnfsidmapd parse the idmapd.conf
1340 file for the default domain, instead of doing that ourselves.
1341 * utils/gssd/gssd_proc.c: Make sure we get an error when a gssd
1343 * utils/gssd/gssd_proc.c: We were forgetting to restore the euid
1344 on certain failures, which meant gssd could get stuck in a state
1345 where it didn't have permissions to read the files in rpc_pipefs
1347 * utils/gssd/gssd_proc.c: Use libnfsidmapd to map gss principals
1349 * debian/nfs-kernel-server.default: Document the NEED_SVCGSSD
1350 variable in /etc/default/nfs-kernel-server.
1353 2004-11-22 NeilBrown <neilb@cse.unsw.edu.au>
1355 * utils/exportfs/nfsd.man: corrected typo in .BR macro usage -
1356 reported by Eric Raymond
1358 2004-10-19 "J. Bruce Fields" <bfields@fieldses.org>
1360 * support/gssapi/* support/rpc/* utils/gssd/* utils/svcgssd/* etc
1361 initial support for GSSAPI authentication
1363 2004-09-15 Neil Brown <neilb@cse.unsw.edu.au>
1365 * utils/statd/monitor.c(sm_unmon_1_svc): is RESTRICTED_STATD, then
1366 check IP address and force my_name to 127.0.0.1 to match
1367 what happens in sm_mon_1_svc. This avoid spurious "erroneous
1369 * utils/statd.monitor.c(sm_unmon_all_1_svc): likewise
1371 2004-09-15 "J. Bruce Fields" <bfields@fieldses.org>
1373 * Assorted changes to support "gss/*" style authentication
1374 * utils/idmapd: new idmapd daemon for nfsv4 username lookup
1376 2004-09-06 Trond Myklebust <trond.myklebust@fys.uio.no>
1377 Neil Brown <neilb@cse.unsw.edu.au>
1379 * utils/mountd/auth.c(auth_authenticate_internal): fix
1380 uninitialsed variable problem (causes bad error messages).
1382 2004-09-06 Paul Clements <paul.clements@steeleye.com>
1383 Neil Brown <neilb@cse.unsw.edu.au>
1385 * utils/mountd/mountd.c(main): support --ha-callout (-H) for
1386 specifying a callout program
1387 * utils/mountd/rmtab.c: Call ha_callout on mount/unmount
1388 * utils/statd/monitor.c: Call ha_callout on add/del client
1389 * utils/statd/rmtcall.c: as above
1390 * utils/statd/statd.c: handle --ha-callout (-H)
1391 * utils/statd/svc_run.c: call notify_hosts is we have received a
1393 * support/include/ha-callout.h: define ha_callout function
1396 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
1397 * utils/mountd/cache.c(cache_process_req): clear fd after
1398 processing so as not to confused libc/sunrpc into thinking
1399 it need to do something with that fd.
1401 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
1403 * debian/nfs-kernel-server.init(start,stop) mount the nfsd
1404 filesystem, if available, before starting nfs services, and
1405 unmount it afterwards.
1406 * etc/nodist/nfs-server: ditto
1407 * etc/redhat/nfs.init: likewise
1408 * etc/redhat/nfs: add "MOUNT_NFSD" flag to control above.
1410 2004-06-08 NeilBrown <neilb@cse.unsw.edu.au>
1412 * utils/exportfs/exportfs.c: Don't rmtab_read if new_cache, it
1414 * support/nfs/cacheio.c(cache_flush): Change order in which caches
1415 are flushed so that dependancies don't keep things in the cache
1418 2004-03-18 Chip Salzenberg <chip@pobox.com>
1420 * debian/changelog: Version 1.0.6-2.
1422 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
1423 from "J. Bruce Fields" <bfields@fieldses.org>
1425 * utils/mountd/cache.c: call auth_reload to make sure auth data is
1426 current before responding to kernel upcall.
1428 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
1429 Based on patch from Greg Banks <gnb@melbourne.sgi.com>
1431 * utils/exportfs/exports.man: Document fsid= option.
1433 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
1437 * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
1438 support/include, and depend in "predep"
1439 * support/export/Makefile, tools/rpcgen/Makefile,
1440 utils/statd/Makefile: add "predep" rule so that "make dep" works.
1441 * Makefile: allow a simple "make" to run ./configure and "make dep"
1443 * configure.in, nfs-utils.spec: Update version to 1.0.6
1446 2003-09-12 Chip Salzenberg <chip@pobox.com>
1448 * debian/changelog: Version 1.0.6-1.
1450 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1452 * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
1454 * utils/statd/statd.c(main): Ditto.
1456 michael <michael@newdream.net> discovered that svc_setreqsize
1457 in glibc can segfault if RLIMIT_NOFILE is bigger than
1458 FD_SETSIZE, so a simple solution is to impose a hard limit.
1460 2003-09-09 Chip Salzenberg <chip@pobox.com>
1462 * debian/changelog: Version 1.0.5-3.
1463 * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
1464 on invalid reverse DNS.
1465 * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
1466 * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
1467 * tools/rpcgen/rpc_parse.c (def_union): Likewise.
1469 2003-08-22 Chip Salzenberg <chip@pobox.com>
1471 * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
1472 N_*, to avoid conflict with ISO C built-in log() function.
1473 * utils/statd/*.c: Use note().
1475 2003-08-20 Chip Salzenberg <chip@pobox.com>
1477 * debian/changelog: Version 1.0.5-2.
1479 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
1481 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
1484 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
1486 * support/include/nfs/export.h, support/nfs/exports.c,
1487 utils/exportfs/exports.c, utils/mountd/mountd.c: change
1488 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
1489 meaning. Also remove meaningless
1490 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
1492 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
1494 * support/export/xtab.c, support/include/nfslib.h,
1495 support/nfs/cacheio.c, support/nfs/nfssvc.c,
1496 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
1497 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
1498 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
1499 (nfs-utils-1.0.5-post2)
1501 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
1503 * support/nfs/nfsexport.c: open channel file O_WRONLY when
1505 * utils/mountd/cache.c: maintain mountlist when new_cache is
1506 active. Also use O_WRONLY for channel files.
1507 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
1508 rather than an nfs_export.
1509 * utils/mountd/rmtab.c: ditto.
1510 (nfs-utils-1.5.0-post1)
1512 2003-07-24 Chip Salzenberg <chip@pobox.com>
1514 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
1515 use Debian security team's cleaner approach.
1516 * debian/changelog: Version 1.0.5-1.
1517 * debian/nfs-kernel-server.init: Cosmetic changes.
1519 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
1522 1.0.4 was a bit of a brown-paper-bag-release because of the extra
1523 'free' in auth.c. So I'm releasing this just a few days later.
1525 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
1527 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
1528 check if new_cache is enabled, error if not, flush and exit if it
1530 * utils/exportfs/exportfs.man: Explain -f option and explain the
1531 two different modes that exportfs can work in.
1532 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
1533 option wasn't given.
1534 * utils/mountd/mountd.man: Record the change if default behaviour
1536 * configure.in, nfs-utils.spec: update version to 1.0.5 and
1539 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
1541 * utils/mountd/mountd.c(main): getopt string fix for 'o'
1542 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
1543 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
1545 * support/include/nfs/export.h: Reserve a bit for possible ACL
1548 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
1550 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
1551 assorted changed to cope with section 7 of the manual.
1552 * configure.in, nfs-utils.spec: Update version to 1.0.4
1555 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
1556 baseline for 2.6 and 2.8. I.e. it should continue to work right
1557 through the 2.8 (or 3.0) kernel series. Previous releases wont.
1559 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
1560 Steve Dickson <SteveD@redhat.com>
1563 * utils/statd/statd.c: create a pidfile with pid of statd, and
1564 truncate it when statd exists.
1565 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
1566 and warn if this is root.
1567 * utils/statd/statd.c: when statd forks, connect child to parent
1568 with a pipe, and send a byte down the pipe once the child is
1570 * Makefile: create and chown sm, sm.bak, state when "make install"
1571 * configure.in: add --with-statduser= option which defaults to
1572 "rpcuser" or "nobody"
1573 * config.mk.in: pass "statduser" through to Makefile
1575 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
1577 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
1578 used as the size was changed somewhere in 2.5.60-2.5.70. Without
1579 this nfs-utils compiles against 2.6 headers will not work on a
1582 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
1584 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
1585 set number of threads by writing to there. This means it will
1586 still work when the syscall interface goes away in 2.7.
1588 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
1589 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
1591 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
1592 so as to only export the wildcard exports that were asked for.
1593 * support/export/export.c(export_allowed): changed to return the
1594 nfs_export rather than a "struct exportent", as m_changed is
1596 * support/export/rmtab.c(rmtab_read): modified to deal with
1597 interface change for export_allowed(), and enhanced to preserve
1598 m_changed flag when a wild-card export causes the creation of
1599 a non-wildcard export.
1601 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
1602 Steve Dickson <SteveD@redhat.com>
1604 * utils/mountd/mountd.man: Add valid kinds of debugging.
1605 * utils/mountd/mountd.c(main): ignore SIGPIPE
1606 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
1607 we don't get warnings about unavailable stats that weren't asked
1610 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
1612 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
1613 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
1614 'forever', so things disappear out of the cache rather than just
1617 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
1619 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
1622 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
1624 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
1625 etc/redhat/nfs.init: when checking if V3 is supported, make sure
1626 nfs server 'knows' about 127.0.0.1 first.
1628 2003-06-10 Chip Salzenberg <chip@pobox.com>
1630 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
1631 * debian/changelog: Version 1.0.3-2.
1633 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
1634 NeilBrown <neilb@cse.unsw.edu.au>
1636 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
1637 long long to avoid overflow when printing stats.
1639 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
1641 * support/export/export.c, support/include/nfslib.h,
1642 support/nfs/export.c, utils/exportfs/exportfs.c,
1643 utils/mountd/mountd.c: new export option "mountpoint"
1644 If no path is given, then the export point must be a
1645 mount point, or it won't be exported. If a path is
1646 given (e.g. mountpoint=/path) then that path must be
1647 a mountpoint or the exportpoint won't be exported.
1648 * utils/exportfs/exportfs.man: document mountpoint option.
1649 * support/misc/mountpoint.c: New file with is_mountpoint()
1650 to determine if something is a mountpoint.
1652 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
1654 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
1655 argument as we might not be getting the filehandle for the
1657 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
1658 cache_get_filehandle.
1659 * utils/mountd/mountd.c(get_rootfh): check export point and
1660 requested directory are on the same filesystem, and complain if
1663 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
1665 * utils/mountd/auth.c(auth_authenticate_internal): make sure
1666 portnumber is still checked when using new cache lookup.
1668 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
1670 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
1671 Don't actually talk to kernel when new cache is in effect, except
1673 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
1674 * support/export/xtab.c: Only rename new xtab into place if it has
1675 changed, thus preserving modify date for exportfs to use when
1677 * support/nfs/cacheio.c: Add cache_flush
1678 * support/export/xtab.c: Only rename new xtab into place if it has
1679 changed, thus preserving modify date for exportfs to use when
1682 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
1684 * support/export/client.c: Add client_compose, client_member to
1685 handle new composite client names
1686 * support/include/exportfs.h: Declare above functions.
1687 * utils/mountd/auth.c: use client_compose to determine calling
1688 client if new cache is being used.
1689 * utils/mountd/auth.c: call cache_export to export a filesystem if
1690 new_cache, check if new cache is used, and call my_svc_run instead
1692 * utils/mountd/svc_run.c: new file defining my_svc_run
1693 * utils/mountd/cache.c: new file for handling cache upcalls.
1694 * support/nfs/cacheio.c(check_new_cache): new function to check if
1695 new cache should be used.
1698 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
1700 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
1701 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
1702 * utils/exportfs/exportfs.c(dump): ditto
1704 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
1706 * support/export/hostname.c(get_reliable_hostbyaddr): new function
1707 to get host name from address with full checking of authenticity.
1708 * support/include/misc.h: declare above function
1709 * utils/mountd/auth.c(auth_authenticate_internal): remove all
1710 logic for authenticating address.
1711 * utils/mountd/auth.c(auth_authenticate): call new
1712 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
1715 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
1717 * tools/rpcgen/rpc_main.c(find_cpp): removed
1718 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
1719 then try hard-coded paths.
1721 2003-03-26 Chip Salzenberg <chip@pobox.com>
1723 * debian/changelog: Version 1.0.3-1.
1725 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
1727 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
1728 "const char*", not "char*".
1730 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
1732 * configure.in (VERSION): Set to "1.0.3".
1733 * nfs-utils.spec: Likewise.
1734 * configure: Regenerated.
1736 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
1738 * support/nfs/cacheio.c: New File - support for read/writing
1739 to export cache in /proc/rpc/*/channel
1740 * support/nfs/Makefile: compile cacheio.c
1741 * support/include/nfslib.h: declare cacheio.c functions
1742 * support/nfs/nfsexport.c: export and unexport through
1743 /proc/rpc/*/channel if possible, as old syscall interface
1744 may not survive into 2.6 on all architectures.
1746 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
1747 Ben Leslie <benno@sesgroup.net>
1749 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
1750 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
1751 former would incorectly ignore defport if the application
1752 explicitly set __rpcfdtype. The later is sufficient to avoid the
1753 special handling in the case where stdin is an internet socket.
1755 * utils/mountd/mountd.c(main): Add 'n' to option list in
1756 getopt_long as this is a short form of --no-tcp which want being
1759 2003-02-12 Chip Salzenberg <chip@pobox.com>
1761 * debian/changelog: Version 1.0.2-2.
1763 2002-11-27 Chip Salzenberg <chip@pobox.com>
1765 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
1766 overflow bug. Reformat per rest of source file.
1768 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
1770 * utils/exportfs/exports.man: Correct notes about whether the wild
1771 card characters match a period. They do.
1773 2002-10-15 Juan Gomez <juang@us.ibm.com>
1775 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
1777 (mountlist_add): Call slink_safe_rename instead of rename.
1779 2002-10-11 H.J. Lu <hjl@lucon.org>
1781 * support/include/exportfs.h (export_errno): New.
1783 * support/nfs/exports.c: Include <errno.h>.
1784 (export_errno): New.
1785 (getexportent): Set export_errno to EINVAL for bad option.
1786 (parseopts): Likewise.
1787 Report the location of the default sync/async option.
1789 * utils/exportfs/exportfs.c (main): Initialize export_errno to
1790 0. Return export_errno.
1792 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
1793 NeilBrown <neilb@cse.unsw.edu.au>
1795 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
1796 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
1798 2002-09-16 Chip Salzenberg <chip@pobox.com>
1800 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
1802 2002-09-15 Chip Salzenberg <chip@pobox.com>
1804 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
1805 socket, as occurs when run from sshd.
1806 * debian/changelog: Version 1.0.2-1.
1808 2002-09-12 H.J. Lu <hjl@lucon.org>
1810 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
1813 2002-09-12 H.J. Lu <hjl@lucon.org>
1815 * configure.in: Remove checking svctcp_socket and svcudp_socket.
1816 * configure: Regenerated.
1818 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
1819 (HAVE_SVCUDP_SOCKET): Removed.
1821 * support/include/nfslib.h: Undo the last change.
1823 2002-09-12 H.J. Lu <hjl@lucon.org>
1825 * support/include/nfslib.h (svctcp_socket): Protect it with
1827 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
1829 2002-09-12 H.J. Lu <hjl@lucon.org>
1831 * configure.in (VERSION): Set to "1.0.2".
1832 * configure: Regenerated.
1833 * nfs-utils.spec: Likewise.
1835 2002-09-12 H.J. Lu <hjl@lucon.org>
1837 * configure.in: Check svctcp_socket and svcudp_socket.
1838 * configure: Regenerated.
1840 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
1841 (HAVE_SVCUDP_SOCKET): New.
1843 * support/include/nfslib.h (svctcp_socket): New.
1844 (svcudp_socket): New.
1846 * support/nfs/Makefile (OBJS): Add svc_socket.o.
1848 * support/nfs/svc_socket.c: New.
1850 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
1851 svcudp_socket if port is unspecified.
1853 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
1855 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
1856 (killer): New. Signal handler to unregister.
1857 (main): Use killer. Call svcudp_socket to get the default
1860 2002-09-02 Juan Gomez <juang@us.ibm.com>
1861 NeilBrown <neilb@cse.unsw.edu.au>
1863 Add -N option to statd to run in notify-only mode.
1865 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
1866 * utils/statd/statd.man: document -N
1867 * utils/statd/statd.c: enabled -N, largely exists but needed to be
1868 uncommented and completed
1870 2002-09-02 Juan Gomez <juang@us.ibm.com>
1871 NeilBrown <neilb@cse.unsw.edu.au>
1873 statd to have " -P directory" arg to use that directory instead
1874 of /var/lib/nfs. This is useful for fail-over clusters.
1876 * utils/statd/statd.h: define SM_DIR etc as var, not const.
1877 * utils/statd/statd.c: define "-P" option to set SM_*
1879 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
1880 a constant any more.
1881 * utils/statd/notify.c: ditto.
1882 * utils/statd/statd.man: document -P option.
1884 2002-08-26 Chip Salzenberg <chip@pobox.com>
1886 * utils/nfsd/nfsd.man: Fix typo.
1887 * debian/changelog: Version 1.0.1-1.
1889 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
1891 * let parseopts know if /etc/exports was being read or not,
1892 and have it only print "no sync or async" warning in that case.
1894 2002-05-06 Tom McNeal <trmcneal@attbi.com>
1895 NeilBrown <neilb@cse.unsw.edu.au>
1897 * utils/nfsstat/nfsstat.c: Handle differing format for
1898 /proc/net/rpc/nfsd between pre and post 2.4.0
1900 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
1901 James Pearson <james-p@moving-picture.com>
1903 * support/nfs/rmtab.c(fendrmtabent): sync changes to
1904 storage before returning, as this is critical state
1906 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
1907 H.J. Lu <hjl@lucon.org>
1909 * etc/redhat/nfs: New.
1911 2002-04-08 H.J. Lu <hjl@lucon.org>
1913 * etc/redhat/nfs.init: Updated.
1915 * nfs-utils.spec.in: Updated.
1916 * nfs-utils.spec: Regenerated.
1918 * utils/mountd/mountd.c (longopts): Fix a typo.
1920 * utils/mountd/mountd.man: Updated.
1922 2002-04-07 H.J. Lu <hjl@lucon.org>
1924 * etc/redhat/nfslock.init (restart): Just do stop and start.
1926 * etc/redhat/nfs.init: Fix a typo.
1928 2002-04-07 H.J. Lu <hjl@lucon.org>
1930 * configure.in (VERSION): Set to "1.0.1".
1931 * configure: Regenerated.
1932 * nfs-utils.spec: Likewise.
1934 * README: Updated for 1.0.1.
1936 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
1937 H.J. Lu <hjl@lucon.org>
1939 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
1941 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
1942 NeilBrown <neilb@cse.unsw.edu.au>
1944 Add support for fsid=nn export option so that device
1945 numbers don't go in filehandles.
1946 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
1947 is set, pass the fsid in-place of the device number
1948 * support/nfs/exports.c: parse and print fsid= option.
1949 Also check if efname has been set, and use "command line"
1950 instead in error messages.
1951 Also, use strtol instead of atoi for anon[ug]id= so that
1952 bad numbers cause errors.
1954 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
1955 NeilBrown <neilb@cse.unsw.edu.au>
1957 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
1958 flag so that "sync" becomes the default.
1959 Check that either "sync" or "async" is given as an option
1960 and warn if neither are present
1961 * utils/exportfs/exports.man: change documentation for "sync"
1962 to be documentation for "async".
1963 * utils/exportfs/exportfs.man: note that "sync" is the default
1967 2002-01-02 Chip Salzenberg <chip@pobox.com>
1969 * support/export/nfsctl.c (expsetup): Don't export entries that
1970 specify id mappings not supported by the kernel. No extant kernel
1971 supports any significant mapping, only 'identity' (i.e. none).
1972 When other mappings are supported, this code will need changing.
1973 * debian/changelog: Version 1.0-2.
1975 2001-12-26 Chip Salzenberg <chip@pobox.com>
1977 * nfs-utils.spec (Version): Set to "1.0".
1978 * configure.in (VERSION): Likewise.
1979 * configure: Regenerated.
1980 * README: Rewritten.
1981 * debian/changelog: Version 1.0-1.
1983 * utils/exportfs/exports.man: Emphasize the need for options to
1984 immediately follow client names. Explain that wildcards don't
1985 usually work on addresses, but may work when reverse DNS fails.
1986 Comment out a leftover TP that was TPing our indentation.
1987 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
1988 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
1989 * debian/changelog: Version 0.3.3-6.
1991 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
1993 * support/export/client.c(client_lookup): If a host has multiple
1994 IP addresses, then we must always use the result of a
1995 gethostbyname, not that of gethostbyaddr for exporting
1997 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
1999 * support/export/client.c (client_lookup): use strcasecmp when
2000 comparing host names
2001 * support/nfs/export.c (getexportent): add fromkernel arg and use
2002 different defaults as kernels prior to 2.4.11 assume different
2003 defaults in /proc/fs/nfs/exports
2004 * support/include/nfslib.h, support/export/export.c,
2005 support/export/xtab.c: support extra "fromkernel" arg for
2008 2001-12-13 Chip Salzenberg <chip@pobox.com>
2010 * debian/changelog: Version 0.3.3-5.
2012 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
2014 * support/nfs/xio.c (xskip): Call `xungetc' instead of
2015 `ungetc' to keep x_line more properly.
2017 2001-11-26 Chip Salzenberg <chip@pobox.com>
2019 * utils/showmount/showmount.c (main): Don't assume that strings
2020 starting with digits are IP addresses.
2021 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
2022 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
2023 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
2024 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
2025 man pages: We check host names *and* addresses with tcpwrappers.
2026 * debian/changelog: Version 0.3.3-4.
2028 2001-11-21 Chip Salzenberg <chip@pobox.com>
2030 * support/nfs/clients.c (cfname): Added: current clients file name.
2031 (setnfsclntent): Set it.
2032 ({get,end}nfsclntent, syntaxerr): Use it.
2033 * support/nfs/exports.c (efname): Added: current exports file name.
2034 (setnfsexportent): Set it.
2035 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
2036 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
2037 * debian/changelog: Version 0.3.3-3.
2039 2001-10-11 Chip Salzenberg <chip@pobox.com>
2041 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
2042 * debian/changelog: Version 0.3.3-2.
2044 2001-10-08 Chip Salzenberg <chip@pobox.com>
2046 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
2047 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
2048 * utils/mountd/mountd.man: Update paths to /var/lib.
2049 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
2051 2001-10-06 Preston Brown <pbrown@redhat.com>
2053 * utils/nfsstat/nfsstat.man: Updated.
2055 2001-09-24 H.J. Lu <hjl@lucon.org>
2057 * configure.in (VERSION): Set to "0.3.3".
2058 * configure: Regenerated.
2059 * nfs-utils.spec: Likewise.
2061 * README: Updated for 0.3.3.
2063 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
2065 Arrange that "exportfs -au" never does DNS lookup:
2067 * support/export/client.c (client_lookup) : add "canonical"
2068 flag which says that the hostname is known to be canonical, so
2071 * support/export/export.c (export_create) : add "canonical"
2072 flag to be passed down to client_lookup
2073 * support/export/export.c (export_lookup) : Likewise
2075 * support/export/xtab.c (xtab_read) : pass appropriate
2076 "canonical" flag to export_lookup and export_create:
2077 set if reading list of filesystems currently exports
2080 * support/export/export.c (export_read) : pass 0 as
2081 "canonical" flag to export_lookup and export_create
2082 * support/export/rmtab.s (rmtab_read) : Likewise
2084 * support/include/exportfs.h : redeclare various routines
2085 to have "canonical" flag
2087 * utils/exportfs/exportfs.c (main) : redo logic for
2088 "-au" to read in what is currently exported, but never even
2089 look at what "should" be exported.
2091 * utils/exportfs/exportfs.c (unexportall) : remove this
2092 routine. Functionality is completely included in
2095 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
2096 flag to zero in calls to export_lookup and export_create.
2099 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
2100 Anne Milicia <milicia@missioncriticallinux.com>
2102 * support/export/client.c (client_lookup) call gethostbyadd
2103 to make sure that we have a canonical hostname, even for
2105 * utils/exportfs/exportfs.c (exportfs) Likewise
2107 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
2109 * support/nfs/exports.c (putexportent): \octal quote any spaces
2111 * support/nfs/xio.c (xgettok): recognise double-quote and
2112 \octal quoting in path names
2113 * utils/exportfs/exports.man: document quoting conventions
2116 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
2118 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
2119 change from 2000-08-02: It causes problems if someone exports
2120 to both a hostname and IP addresses. nfs-utils must be
2121 consistant about the canonical name that it chooses.
2123 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
2124 H.J. Lu <hjl@lucon.org>
2126 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
2128 * utils/statd/statd.c (longopts): Add "name".
2129 (usage): Add "-n/--name".
2130 (main): Set MY_NAME with "-n/--name".
2132 * utils/statd/state.c (change_state): Set MY_NAME only if it
2135 * utils/statd/statd.man: Updated for "-n/--name".
2137 2001-07-26 H.J. Lu <hjl@lucon.org>
2139 * nfs-utils.spec (Release): Set to 8.
2141 2001-07-25 H.J. Lu <hjl@lucon.org>
2143 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
2146 2001-06-27 H.J. Lu <hjl@lucon.org>
2148 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
2150 2001-06-27 H.J. Lu <hjl@lucon.org>
2152 * utils/rquotad/rquota_server.c: Don't call statfs () for
2153 the block size. Use BLOCK_SIZE instead.
2155 2001-06-27 H.J. Lu <hjl@lucon.org>
2157 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
2158 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
2160 * configure.in (enable_nfsv3): Set to yes by default.
2161 (--enable-rquotad): Added
2162 (AC_PROG_CXX): Removed.
2163 (AC_OUTPUT): Add utils/Makefile.
2164 (CC_FOR_BUILD): Renamed from BUILD_CC.
2165 * configure: Regenerated.
2167 * utils/Makefile: Removed.
2169 * utils/Makefile.in: New.
2171 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
2173 (CC_FOR_BUILD): Renamed from BUILD_CC.
2174 * nfs-utils.spec: Regenerated.
2176 2001-06-15 Chip Salzenberg <chip@debian.org>
2178 * debian/changelog: Version 0.3.2-2.
2179 * debian/*.init: Minor fixes.
2181 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
2183 * etc/nodist/nfs-server: Fixed a bug where the script would
2184 disable mounts from NFSv3 clients if NFSv3 is present.
2186 2001-06-05 H.J. Lu <hjl@lucon.org>
2188 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
2189 (main): Support --descriptors/-o to set the limit of the number
2190 of open file descriptors.
2193 * utils/mountd/mountd.man: Updated for --descriptors/-o.
2195 2001-06-04 H.J. Lu <hjl@lucon.org>
2197 * nfs-utils.spec (Release): Set to 6.
2199 2001-05-28 H.J. Lu <hjl@lucon.org>
2201 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
2202 * utils/mountd/mountd.c (main): Likewise.
2203 * utils/nfsd/nfsd.c (main): Likewise.
2204 * utils/rquotad/rquota_svc.c (main): Likewise.
2206 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
2208 * support/export/client.c (client_check): Check IP address
2211 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
2213 * support/export/client.c (client_gettype): Treat `*' as
2216 2001-04-22 H.J. Lu <hjl@lucon.org>
2218 * nfs-utils.spec.in: Fix a typo.
2219 * nfs-utils.spec: Regenerated.
2221 2001-04-21 H.J. Lu <hjl@lucon.org>
2223 * nfs-utils.spec.in: Fix cross build.
2224 * nfs-utils.spec: Regenerated.
2225 (Release): Set to 5.
2227 2001-04-18 H.J. Lu <hjl@lucon.org>
2229 * nfs-utils.spec.in: Support cross build.
2230 * nfs-utils.spec: Regenerated.
2231 (Release): Set to 4.
2234 * config.guess: New.
2236 * config.mk.in (BUILD_CC): New.
2237 (CC): Set to $(BUILD_CC) if BUILD is defined.
2240 (RANLIB): Set to @RANLIB@.
2242 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
2243 * configure: Regenerated.
2245 * tools/rpcgen/Makefile (BUILD): Set to true.
2247 2001-04-01 Chip Salzenberg <chip@valinux.com>
2249 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
2250 redundant, and sometimes broken, declaration of svc_fdset;
2252 * support/nfs/rpcmisc.c (closedown): Likewise.
2254 2001-03-21 H.J. Lu <hjl@lucon.org>
2256 * nfs-utils.spec: Regenerated.
2257 (Release): Set to 3.
2259 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
2261 * utils/statd/statd.c (main): make sure file descriptors 0-2
2262 are open to /dev/null.
2264 2001-03-21 H.J. Lu <hjl@lucon.org>
2266 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
2267 * support/nfs/rpcmisc.c: Likewise.
2268 * utils/rquotad/rquota_svc.c: Likewise.
2269 * utils/rquotad/rquotad.man: Likewise.
2270 * utils/statd/Makefile: Likewise.
2271 * utils/statd/rmtcall.c: Likewise.
2272 * utils/statd/simulate.c: Likewise.
2273 * utils/statd/statd.c: Likewise.
2274 * utils/statd/statd.man: Likewise.
2276 2001-03-11 H.J. Lu <hjl@lucon.org>
2278 * configure.in (RELEASE): New. Default to 1, set by
2279 --with-release=XXX. Substitute nfs-utils.spec.
2280 * nfs-utils.spec.in (Release): Set to @RELEASE@.
2281 * configure: Regenerated.
2282 * nfs-utils.spec: Likewise.
2284 2001-03-11 H.J. Lu <hjl@lucon.org>
2286 * utils/rquotad/rquotad.man: Fix a typo.
2288 2001-03-11 H.J. Lu <hjl@lucon.org>
2290 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
2291 * support/nfs/rpcmisc.c: Likewise.
2292 * utils/rquotad/rquota_svc.c: Likewise.
2293 * utils/rquotad/rquotad.man: Likewise.
2294 * utils/statd/Makefile: Likewise.
2295 * utils/statd/rmtcall.c: Likewise.
2296 * utils/statd/simulate.c: Likewise.
2297 * utils/statd/statd.c: Likewise.
2298 * utils/statd/statd.man: Likewise.
2300 2001-03-10 H.J. Lu <hjl@lucon.org>
2302 * configure.in (VERSION): Set to "0.3.2".
2303 * configure: Regenerated.
2304 * nfs-utils.spec: Likewise.
2306 * README: Updated for 0.3.2.
2308 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
2310 * utils/rquotad/rquotad.man: Updated for -p.
2311 * utils/statd/statd.man: Likewise.
2313 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
2315 * support/nfs/rpcmisc.c: export makesock()
2317 * support/include/rpcmisc.h (makesock): Declared.
2319 * utils/rquotad/rquota_svc.c: added longopts, added support for
2320 specifying the port to bind to on the command line.
2322 * utils/statd/statd.c: ditto, also specify port used for
2323 outgoing connections.
2324 (do_regist): Removed.
2326 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
2327 get_socket. Make it extern.
2329 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
2330 instead of do_regist.
2332 * utils/statd/Makefile (LIBS): link with our own libnfs
2334 2001-03-09 H.J. Lu <hjl@lucon.org>
2336 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
2337 * etc/nodist/nfs-client: Likewise.
2339 2001-02-26 Chip Salzenberg <chip@valinux.com>
2341 * debian/changelog: Version 0.3.1-1.
2342 * Mention upstream source and license in copyright file.
2343 * Add build-Depends for debhelper and libwrap0-dev.
2345 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
2347 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
2348 * etc/nodist/nfs-client: Likewise.
2350 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
2352 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
2355 2001-02-17 Patrick J. LoPresti <patl@curl.com>
2357 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
2360 2001-02-14 H.J. Lu <hjl@lucon.org>
2362 * utils/statd/rmtcall.c: Include <time.h>.
2363 * utils/statd/svc_run.c: Likewise.
2365 2001-02-14 H.J. Lu <hjl@lucon.org>
2367 * configure.in (VERSION): Set to "0.3.1".
2368 * configure: Regenerated.
2369 * nfs-utils.spec: Likewise.
2371 * README: Updated for 0.3.1.
2373 2001-02-14 H.J. Lu <hjl@lucon.org>
2375 * support/nfs/rpcmisc.c: Include <time.h>.
2377 2001-02-14 Chip Salzenberg <chip@valinux.com>
2379 * debian/control: Change priority of nhfsstone package to 'extra'.
2381 2001-02-12 Chip Salzenberg <chip@valinux.com>
2383 * debian/changelog: Version 0.3-2.
2385 2001-02-02 H.J. Lu <hjl@lucon.org>
2387 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
2389 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
2390 out SO_SNDBUF/SO_RCVBUF.
2391 (rpc_init): Remove bufsize and remove socksz in calls to
2394 * utils/mountd/mountd.c (main): Remove bufsize in calls to
2397 2001-01-28 Chip Salzenberg <chip@valinux.com>
2399 * debian/changelog: Version 0.3-1.
2401 2001-01-25 H.J. Lu <hjl@lucon.org>
2403 * configure.in (VERSION): Set to "0.3".
2404 * configure: Regenerated.
2405 * nfs-utils.spec: Likewise.
2407 * README: Updated for 0.3.
2409 2001-01-25 H.J. Lu <hjl@lucon.org>
2411 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
2413 2001-01-20 Chip Salzenberg <chip@valinux.com>
2415 * support/include/xio.h (xgetc): Declare to return int.
2416 * support/nfs/xio.c (xgetc): Return int.
2417 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
2418 * utils/statd/statd.c (main): Use int for value of getopt.
2419 * debian/changelog: Version 0.2.1-5.
2421 2000-12-10 Chip Salzenberg <chip@valinux.com>
2423 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
2424 program and procedure numbers of kernel lockd's callback. Also,
2425 besides the old (and broken) procedure #24, allow #16 per Trond.
2427 2000-12-03 Chip Salzenberg <chip@valinux.com>
2429 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
2430 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
2431 * debian/changelog: Version 0.2.1-4.
2433 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
2435 * utils/mountd/auth.c (auth_authenticate): Log the bad path
2438 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
2440 * support/nfs/exports.c (getexportent): Check for host name
2441 without option, or options without hostname, and print a warning,
2442 as this is most likely a typo.
2444 2000-11-19 Chip Salzenberg <chip@valinux.com>
2446 * debian/control: Add dependency on portmap.
2447 * debian/changelog: Version 0.2.1-3.
2449 2000-11-10 H.J. Lu <hjl@lucon.org>
2451 * nfs-utils.spec.in: Don't use libtool.
2452 Add ChangeLog and COPYING to doc.
2453 * nfs-utils.spec: Rebuild.
2455 2000-11-09 H.J. Lu <hjl@lucon.org>
2457 * etc/redhat/nfs.init (start): Back out the last change.
2459 2000-11-09 H.J. Lu <hjl@lucon.org>
2461 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
2462 TCP is not supported by kernel.
2464 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
2466 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
2467 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
2469 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
2471 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
2473 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
2474 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
2475 callbacks to local lockd.
2477 2000-10-18 Scott McDermott <mcdermot@questra.com>
2479 * utils/exportfs/exports.man: Updated for CIDR netmask.
2481 2000-10-17 Scott McDermott <mcdermot@questra.com>
2483 * support/export/client.c (client_init): Support CIDR netmask
2486 2000-10-11 H.J. Lu <hjl@lucon.org>
2488 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
2489 * configure: Rebuilt.
2491 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
2493 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
2494 "/var/lib/nfs/state".
2496 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
2498 * utils/statd/statd.h (run_mode): New global bitmask of runtime
2499 behaviors: fg/bg, logging, etc.
2500 * utils/statd/statd.c: New command line options: -V -h -? -d .
2501 * utils/statd/statd.man: Update for changes to statd.
2503 * utils/statd/log.h (log_init): Remove parameter of function; use
2504 global variable "name_p" instead.
2505 * utils/statd/log.c: Add support for logging to stderr.
2507 * utils/statd/notlist.c: Partially rewrite notify list handling
2508 functions. Eliminate run-off-end-of-list bug when calling
2509 nlist_insert_timer. Add lots of comments.
2511 2000-09-27 H.J. Lu <hjl@lucon.org>
2513 * README: Updated for RedHat 7.0.
2515 2000-09-27 H.J. Lu <hjl@lucon.org>
2517 * nfs-utils.spec: Rebuild.
2519 2000-09-27 H.J. Lu <hjl@lucon.org>
2521 * README: Updated for 0.2.1.
2523 2000-09-27 H.J. Lu <hjl@lucon.org>
2525 * nfs-utils.spec.in: Updated to use rpm macros and support
2528 2000-09-25 H.J. Lu <hjl@lucon.org>
2530 * configure.in (VERSION): Set to "0.2.1".
2531 * configure: Regenerated.
2532 * nfs-utils.spec: Updated.
2534 2000-09-25 H.J. Lu <hjl@lucon.org>
2536 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
2537 non-NULL hostent is always returned.
2539 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
2541 * etc/redhat/nfslock.init: don't kill lockd processes that do not
2542 have an executable (i.e. kernel threads)
2544 2000-09-01 H.J. Lu <hjl@lucon.org>
2546 * README: Updated for 0.2.
2548 2000-09-01 Jay Weber <jweber@valinux.com>
2550 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
2551 supporting version 3 of nfs if available, else it will fall back to
2552 version 2 support only.
2554 2000-08-30 H.J. Lu <hjl@lucon.org>
2556 * configure.in (VERSION): Set to "0.2".
2557 * configure: Regenerated.
2558 * nfs-utils.spec: Updated.
2560 2000-08-25 H.J. Lu <hjl@lucon.org>
2562 * support/misc/tcpwrapper.c (logit): Modify the log output.
2564 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
2566 * utils/rquotad/rquotad.man, utils/statd/statd.man,
2567 utils/mountd/mountd.man: updated
2569 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
2570 * utils/rquotad/Makefile: fix comment
2572 * support/misc/tcpwrapper.c (logit): added comment about waiting
2573 for the children after fork()
2575 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
2576 zombies behind (from logit()'s fork)
2577 * utils/rquotad/rquota_svc.c (main): ditto
2578 * utils/statd/statd.c (main): ditto
2580 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
2581 to check_default instead of 0, for prognum
2583 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
2584 to check_default instead of 0, for prognum
2586 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
2587 HAVE_TCP_WRAPPER is defined.
2588 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
2589 defined. Reject an RPC call if check_default () fails.
2591 2000-08-25 H.J. Lu <hjl@lucon.org>
2593 * support/include/tcpwrapper.h: New for the tcp wrapper
2595 * support/misc/Makefile: Likewise.
2596 * support/misc/from_local.c: Likewise.
2597 * support/misc/tcpwrapper.c: Likewise.
2599 * aclocal.m4 (AC_TCP_WRAPPER): New.
2600 * configure.in: Use it. Substitute LIBWRAP.
2601 * configure: Rebuilt.
2603 * config.mk.in (LIBNSL): New.
2604 (LIBWRAP): Likewise.
2606 * support/Makefile (SUBDIRS): Add misc.
2608 * support/lib/Makefile (LIBS): Add libmisc.a.
2610 * utils/rquotad/Makefile (LIBS): Add
2612 -lmisc $(LIBWRAP) $(LIBNSL)
2614 * utils/statd/Makefile (LIBS): Likewise.
2616 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
2617 HAVE_TCP_WRAPPER is defined.
2618 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
2619 defined. Reject an RPC call if check_default () fails.
2621 * utils/statd/statd.c: Include "tcpwrapper.h" if
2622 HAVE_TCP_WRAPPER is defined.
2623 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
2624 check_default () before calling sm_prog_1 (). Define it as
2625 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
2627 2000-08-25 Chip Salzenberg <chip@valinux.com>
2629 * debian/*: Complete Debian build support.
2630 * etc/debian/*: Remove.
2632 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
2634 * support/export/client.c(client_check): removed the "dot+1" as a
2635 ypdomain argument to innetgr as this is entirely bogus.
2636 It should always be NULL.
2638 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
2640 * support/export/xtab.c(xtab_read): introduce new mode for
2641 reading xtab. i.e. a list of exports that might be known to the
2642 kernel, or might not. These are flagged as m_exported == -1
2643 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
2644 value "2" for xtab, meaning don't trust this too much.
2645 * support/include/exportfs.h(struct mexport): changed m_exported
2646 from one bit to an int so that it can hold new value
2647 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
2648 kernel if it is uncertain whether the kernel knows (m_exported == -1)
2649 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
2652 * support/nfs/xio.c(xflock): added O_CREAT when getting
2653 a write lock so that missing files aren't fatal.
2655 * etc/debian/nfs-common: new file from "potato"
2656 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
2658 2000-08-09 H.J. Lu <hjl@lucon.org>
2660 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
2661 startup to ensure all existing clients work fine.
2663 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
2664 to xtab_read () for reading _PATH_XTAB.
2666 2000-08-02 H.J. Lu <hjl@lucon.org>
2668 * utils/mountd/auth.c (auth_authenticate_internal): Try to
2669 avoid the reverse name lookup.
2671 2000-07-04 H.J. Lu <hjl@lucon.org>
2673 * utils/statd/log.c: Include <stdlib.h> for exit ().
2675 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
2678 2000-07-04 H.J. Lu <hjl@lucon.org>
2680 * configure.in (VERSION): Set to "0.1.9.1".
2681 * configure: Regenerated.
2682 * nfs-utils.spec: Updated.
2686 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
2688 * support/export/hostname.c (hostent_dup): Handle the NULL
2691 2000-07-03 H.J. Lu <hjl@lucon.org>
2693 * README: Update the util-linux requirement.
2695 2000-07-03 H.J. Lu <hjl@lucon.org>
2697 * configure.in (VERSION): Set to "0.1.9".
2698 * configure: Regenerated.
2699 * nfs-utils.spec: Updated.
2703 2000-07-03 H.J. Lu <hjl@lucon.org>
2705 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
2706 stop to ensure all clients can still access the server
2707 before it is shutdown.
2709 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
2711 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
2712 calls with format string.
2714 2000-06-28 Chip Salzenberg <chip@valinux.com>
2716 * utils/statd/log.c (log): Call syslog with format string.
2718 2000-06-27 H.J. Lu <hjl@lucon.org>
2720 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
2721 instead of OPEN_MAX.
2723 2000-06-27 H.J. Lu <hjl@lucon.org>
2727 2000-06-27 H.J. Lu <hjl@lucon.org>
2729 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
2730 startup to ensure all existing clients are exported.
2732 * configure.in (VERSION): Set to "0.1.8.2".
2733 * configure: Regenerated.
2734 * nfs-utils.spec: Updated.
2736 2000-06-06 H.J. Lu <hjl@lucon.org>
2738 * configure.in (VERSION): Set to "0.1.8.1".
2739 * configure: Regenerated.
2740 * nfs-utils.spec: Updated.
2742 2000-06-06 H.J. Lu <hjl@lucon.org>
2744 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
2745 to "struct sockaddr_in *" for glibc 2.2.
2746 (mount_umnt_1_svc): Likewise.
2747 (mount_umntall_1_svc): Likewise.
2748 (mount_export_1_svc): Likewise.
2749 (mount_exportall_1_svc): Likewise.
2750 (mount_pathconf_2_svc): Likewise.
2751 (get_rootfh): Likewise.
2753 2000-06-04 H.J. Lu <hjl@lucon.org>
2755 * etc/redhat/nfs.init: Fix a typo in comment.
2757 2000-05-31 H.J. Lu <hjl@lucon.org>
2759 * configure.in (VERSION): Set to "0.1.8".
2760 * configure: Regenerated.
2761 * nfs-utils.spec: Updated.
2765 2000-05-31 H.J. Lu <hjl@lucon.org>
2767 * configure.in (VERSION): Set to "0.1.7.5".
2768 * configure: Regenerated.
2769 * nfs-utils.spec: Updated.
2771 * support/include/nfslib.h (exportent): Add a new field,
2772 r_count, to count the number of mounts from a client.
2773 (getrmtabent): Take a new argument for position in file.
2774 (putrmtabent): Likewise.
2775 (fgetrmtabent): Likewise.
2776 (fputrmtabent): Likewise.
2777 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
2778 for position in file.
2779 (fgetrmtabent): Likewise.
2780 (putrmtabent): Likewise.
2781 (fputrmtabent): Likewise.
2783 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
2786 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
2787 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
2788 and fputrmtabent ().
2789 * utils/mountd/rmtab.c (mountlist_add): Likewise.
2790 (mountlist_del): Likewise.
2791 (mountlist_del_all): Likewise.
2792 (mountlist_list): Likewise.
2794 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
2795 for the existing entry and initialize "r_count" to 1.
2796 (mountlist_del): Decrement "r_count".
2798 2000-05-18 H.J. Lu <hjl@lucon.org>
2800 * configure.in (VERSION): Set to "0.1.7.4".
2801 * configure: Regenerated.
2802 * nfs-utils.spec: Updated.
2804 2000-05-18 H.J. Lu <hjl@lucon.org>
2806 * etc/redhat/nfs.init (restart): Just do stop and start.
2808 2000-05-09 Jay Weber <jweber@valinux.com>
2810 * utils/rquotad/hasquota.c: added support for ext3 recognition
2812 * utils/rquotad/mntent.h: Likewise.
2814 2000-05-01 H.J. Lu <hjl@lucon.org>
2816 * configure.in (VERSION): Set to "0.1.7.3".
2817 * configure: Regenerated.
2818 * nfs-utils.spec: Updated.
2820 2000-05-01 H.J. Lu <hjl@lucon.org>
2822 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
2823 mounting poins in /etc/fstab.
2825 2000-05-01 H.J. Lu <hjl@lucon.org>
2827 * configure.in (VERSION): Set to "0.1.7.2".
2828 * configure: Regenerated.
2829 * nfs-utils.spec: Updated.
2831 2000-05-01 H.J. Lu <hjl@lucon.org>
2833 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
2834 to check for the mounting point.
2836 2000-04-29 Chip Salzenberg <chip@valinux.com>
2837 Neil Brown <neilb@cse.unsw.edu.au>
2839 * Really re-use RPC ports.
2840 (Fixes earlier patch. Sorry, Neil.)
2842 2000-04-26 H.J. Lu <hjl@lucon.org>
2844 * configure.in (VERSION): Set to "0.1.7.1".
2845 * configure: Regenerated.
2846 * nfs-utils.spec: Updated.
2848 2000-04-26 H.J. Lu <hjl@lucon.org>
2850 * etc/redhat/nfslock.init: Check if lockd exits before killing
2853 2000-04-25 H.J. Lu <hjl@lucon.org>
2855 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
2857 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
2859 * support/nfs/exports.c (parsesquash): Correctly set the
2862 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
2864 * support/include/nfs/nfs.h: Removed knowledge of internals of
2865 kernel filehandles (which can change) and defined nfs_fh_size
2866 which has variable size
2868 * support/nfs/getfh.c: defined getfh_size to use new syscall to
2869 get variable sized file handles, and change getfh{,old} to
2872 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
2875 * tools/Makefile, tools/nlmtest/nlmtest.c
2876 nlmtest.c depended on internel format of file handles, so now
2880 2000-03-12 Chip Salzenberg <chip@valinux.com>
2881 Neil Brown <neilb@cse.unsw.edu.au>
2883 * support/nfs/rpcmisc.c (rpc_init): Share transports.
2885 2000-03-13 H.J. Lu <hjl@lucon.org>
2887 * etc/redhat/nfsd.init: Updated.
2889 * etc/redhat/nfslock.init: Updated.
2891 * nfs-utils.spec.in: Updated.
2893 * configure.in (VERSION): Set to "0.1.7".
2894 * configure: Regenerated.
2895 * nfs-utils.spec: Updated.
2899 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
2901 * utils/exportfs/exportfs.c (dump): Included printing of
2902 nohide, no_subtree_check, and insecure_locks
2904 2000-02-26 Chip Salzenberg <chip@valinux.com>
2906 * config.mk.in (INSTALLSUID): Strip ("-s").
2907 (INSTALLSCRIPT): Define.
2908 * utils/nhfsstone/Makefile: Use it.
2910 2000-02-26 Chip Salzenberg <chip@valinux.com>
2912 * utils/lockd/lockd.man: Create.
2913 * utils/lockd/Makefile: Install it.
2914 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
2915 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
2916 * utils/nhfsstone/Makefile: Install the helper scripts and
2918 * utils/exportfs/exports.man: Fix typo.
2920 2000-02-26 Chip Salzenberg <chip@valinux.com>
2922 * support/nfs/xio.c (xungetc): Decrement line number when
2923 character to unget is newline. Make first parameter int, so
2924 it can distinguish EOF from \377.
2925 * support/include/xio.h (xungetc): Adjust prototype.
2927 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
2929 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
2930 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
2931 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
2933 This is for supporting a new option introduced in 2.3.42
2935 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
2937 * COPYING: Added. GPL.
2939 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
2941 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
2942 to get the block size.
2944 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
2946 * nfs-utils.spec.in: Update ftp site.
2948 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
2950 * README: Update hostnames.
2952 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
2954 * configure.in (VERSION): Set to "0.1.6".
2955 * configure: Regenerated.
2956 * nfs-utils.spec: Updated.
2960 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
2962 * utils/mountd/auth.c (auth_authenticate_internal): Call
2963 xstrdup for hostname before passing it to gethostbyname.
2965 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
2968 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
2970 * README: Update the mailing list address.
2972 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
2974 * configure.in (VERSION): Set to "0.1.5".
2975 * configure: Regenerated.
2976 * nfs-utils.spec: Updated.
2980 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
2982 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
2985 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
2987 * configure.in (VERSION): Set to "0.1.4".
2988 * configure: Regenerated.
2989 * nfs-utils.spec: Updated.
2993 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
2995 * nfs-utils.spec.in: New file.
2997 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
2999 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
3001 1999-12-04 Chip Salzenberg <chip@valinux.com>
3003 * config.mk.in: Use $(CC) as set by configure.
3005 1999-12-04 Chip Salzenberg <chip@valinux.com>
3007 * rules.mk: Call $(MAKE) with $(MFLAGS).
3009 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
3011 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
3012 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
3014 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
3016 * nfs-utils.spec (Version): Set to 0.1.3.
3018 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
3019 * configure: Regenerated.
3023 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
3025 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
3026 (_PATH_DEV_DSK): Likewise.
3027 (getquotainfo): Match the mounting point from /etc/mtab
3028 instead of calling nfsmount_to_devname ().
3030 1999-11-24 Chip Salzenberg <chip@valinux.com>
3032 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
3033 to the new port 24 as well as the historical port 100021.
3035 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
3037 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
3038 stopping nfsd to stop spurious ESTALE on server shutdown.
3040 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
3042 * support/nfs/exports.c (parseopts): make copy of opt string
3043 before 'nul'ing out commas so that
3045 # exportfs -o option1,option2 hosta:/fs hostb:/fs
3047 applies both options to both exports.
3049 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
3051 * README: Fix a few typos.
3053 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
3055 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
3056 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
3057 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
3058 (unsigned_dec): Likewise.
3059 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
3060 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
3062 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
3064 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
3065 (unsigned_dec): Likewise.
3066 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
3067 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
3068 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
3070 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
3072 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
3073 * support/nfs/exports.c: added {no_,}subtree_check and changed
3075 * utils/exportfs/exports.man: added no_subtree_check and nohide
3076 and removed irrelevant stuff from unfsd.
3077 * support/export/rmtab.c: rmtab_read didn't quite do the right
3078 thing if a pathname from rmtab was a subdirectory of an export-point
3080 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
3082 * README: Updated ftp site.
3084 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
3086 * nfs-utils.spec (Version): Set to 0.1.2.
3088 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
3089 * configure: Regenerated.
3093 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
3095 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
3096 (auth_authenticate_internal): Check for NULL return on forward
3098 (auth_authenticate): Handle "no_forward_dns".
3100 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
3102 * Version 0.1.1 released.
3104 * nfs-utils.spec (Version): Set to 0.1.1.
3106 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
3107 * configure: Regenerated.
3111 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
3113 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
3115 (Provides): Likewise.
3117 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
3119 * Initial version 0.1 released.
3121 * configure.in (VERSION): Set to "nfs-utils 0.1".
3122 * configure: Regenerated.
3124 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
3126 * utils/mountd/mountd.c (get_exportlist): Cleanup.
3128 * utils/exportfs/exportfs.c (unexport_all): Unexport from
3129 kernel only if the entry is exported to kernel.
3130 (unexportfs): Likewise.
3132 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
3134 1/ utils/mountd/rmtab.c::mountlist_list
3136 This routine stats the rmtab file to see if it has changed. It
3137 if has, it cleans up it's old copy of the data. But it still
3138 always re-read the file, thus returning multiple copies of the
3139 data on consecutive calls without intervening changes.
3140 "Showmount -a" didn't show this as it appears to sort/unique the
3141 data, but 'strace showmount -a' showed that the size of the
3142 datagram that it received grew.
3144 I moved the getrmtabent loop inside the mtime test.
3146 2/ utils/exportfs/exportfs.c
3148 Many routines used the m_path field of m_export instead of
3150 According to the comment in nfslib.h, m_path should only
3151 be used when processing a mount request (i.e. in mountd)
3152 where the mountpoint may be a subdirectory of the export point.
3154 I changed all occurances of m_path to e_path
3157 3/ utils/exportfs/exportfs.c:main
3159 extra arguments are not meaningful with -a or -r, but
3160 exportfs accepted them and then ignored the -a/-r, expect that
3161 -r would still unexport everything first.
3163 I generate an error if there are extra args and f_all
3165 4/ utils/exportfs/exportfs.c:main
3166 extract dump out as a special case.
3168 5/ utils/exportfs/exportfs.c
3169 made f_reexport a local variable.
3172 6/ utils/exportfs/exportfs.c:main,exportall
3174 support/export/rmtab.c
3175 only mayexport on newly created entries, don't set xtabent at all
3177 7/ support/include/nfslib.h
3179 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
3181 8/ support/export/xtab.c
3183 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
3187 9/ support/export/xtab.c
3189 xtab_mount_read now sets m_exported, and NOT
3190 xtabent and mayexport
3192 removed the append arguement from xtab_write as it was
3195 added is_export flag to xtab_write similar to xtab_read
3196 if is_export, only write entries with m_xtabent or m_addxtab
3197 if !is_export, only write entries with m_exported
3199 10/ support/export/export.c::export_allowed_internal
3201 added test for exp->m_mayexport, as the export tree
3202 may have entries that are no longer allowed to be exported,
3203 and so shouldn't caused deduced exported by rmtab_read
3205 11/ utils/exportfs/exportfs.c::main
3206 error checking of flags.
3208 12/ utils/exportfs/exportfs.c
3210 total rewrite of export and unexport logic.
3212 - build an exportslist of valid exports, based on
3213 current etab file and arguments,
3214 - read rmtab to instantiate relevant wild card entries
3215 - read etab to find out what is currently exported
3216 - synchronise intention with reality
3217 - write out etab and xtab
3220 discard the m_addxtab flag
3221 add m_changed flag so we know what to report in exportfs
3223 14/ utils/mountd/auth.c:auth_authenticate
3225 the value returned by gethostbyaddr was trusted.
3227 It now follows this with a call to gethostbyname
3228 and checks that the address is in the list.
3230 15/ support/export/nfsctl.c::cltsetup,expsetup
3232 force client names to lowercase as kernel is
3235 16/ quietened a few compiler warnings
3237 17/ support/export/client:client_lookup
3239 look for pre-existing client with same name before creating
3242 18/ support/include/exportfs.h
3244 The ordering of the MCL_* enum was:
3245 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
3247 I moved ANONYMOUS to the end.
3249 The ordering is significant when an export entry is being searched for to
3250 match a given address. There are two problems with ANONYMOUS being first.
3252 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
3253 then the ro case will always be found first and the privileged hosts won't get
3255 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
3256 export entry for the specific host, and writes it to xtab.
3257 When another request comes from the same host, the ANONYMOUS entry is found again,
3258 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
3259 again. If causes bloat in xtab.
3261 Putting ANONYMOUS at the end reflects it's nature as a catch-all
3263 19/ utils/exportfs/exportfs.man
3264 many updates to the man page to reflect changes to the code
3266 -----------------------
3272 - allow exportfs to modify rmtab file
3273 - make sure kernel never gets two clients with same IP address
3274 - possible kernel should reject
3275 - needs to be some way to lookup client in kernel by IP address
3276 - maybe get kernel to do case-insensitive comparisons on client names
3277 - remove unused clients from kernel
3279 - change etab to xtab and xtab to xtab.active
3281 - timestamp and/or statd-stamp in rmtab for removing old entries.
3283 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
3285 * linux-nfs: New directory.
3286 * linux-nfs/ChangeLog: Moved from ..
3287 * linux-nfs/INSTALL: Likewise.
3288 * linux-nfs/KNOWNBUGS: Likewise.
3289 * linux-nfs/NEW: Likewise.
3290 * linux-nfs/README: Likewise.
3291 * linux-nfs/THANKS: Likewise.
3292 * linux-nfs/TODO: Likewise.
3294 * Starting from knfsd 1.4.7.