1 commit 7194d7d6320736c14f40d31c3738d40f3119ead5
2 Author: Kevin Coffman <kwc@citi.umich.edu>
3 Date: Sat Jul 8 10:01:40 2006 +1000
5 Use uid/gid of -1 to indicate the export's anonuid/anongid should be used
7 Kernel routine nfsd_setuser() in fs/nfsd/auth.c checks for the
8 value -1 and defaults the credential's fsuid/fsgid to the
9 correct anonuid/anongid values for the given export. We should
10 be passing this value (-1) down when a name mapping cannot be found.
11 Thanks to J. Bruce Fields <bfields@fieldses.org> for the reference.
13 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
14 Acked-by: J. Bruce Fields <bfields@fieldses.org>
16 commit b0604c623f7a98c6061dff19988722d3ae848bd7
17 Author: Kevin Coffman <kwc@citi.umich.edu>
18 Date: Sat Jul 8 09:58:03 2006 +1000
20 Change svcgssd_LDFLAGS to match gssd_LDFLAGS
22 commit 99414bd3eecf93f23c378d3bb3d45bc98f364abc
23 Author: Neil Brown <neilb@suse.de>
24 Date: Sat Jul 8 09:41:58 2006 +1000
26 Disable building/installing mount.nfs by default.
28 mount.nfs does not yet support 'user' option and some others.
29 To make it support this we need to make it setuid-root, and
30 some security isses need to be resolved before that can be done
33 commit b0c3cbfee702c019dab0a22557bbf38e24dfcee1
34 Author: Steve Dickson <steved@redhat.com>
35 Date: Sat Jul 8 09:35:02 2006 +1000
37 Call nfssvc_versbits before nfssvc_setfds
39 nfssvc_versbits() has to be called before nfssvc_setfds()
40 for the version processing to work correctly
42 commit 26fff911b21943f20e3937ae3f2d29a1572d2309
43 Author: Neil Brown <neilb@suse.de>
44 Date: Thu Jul 6 13:05:11 2006 +1000
46 Only use -rpath for Kerberos libs when actually needed.
48 Avoid usage of -rpath is generally safer, and is required by Debian policy.
50 commit 28a7603b719f8d35bf22fd3018b610b489fec78f
51 Author: Neil Brown <neilb@suse.de>
52 Date: Thu Jul 6 12:28:33 2006 +1000
54 Use 65534 instead of -2 in svcgssd_proc.c
56 as this is more consistant across achitectures.
58 commit 904de920ea4da3ad5604c417f0d784fcda83ed2a
59 Author: Shankar Anand <shanand@novell.com>
60 Date: Tue Jul 4 08:50:56 2006 -0600
62 This patch adds code to nfsstat to read /proc/net/rpc/nfsd for nfsv4 server statistics and print them.
64 Submitted by: Shankar Anand <shanand@novell.com>
66 commit 2179c112b9a386ca3d51d0e19390ddfadd745030
67 Author: Steinar H. Gunderson <sesse@debian.org>
68 Date: Wed Jul 5 15:55:45 2006 +1000
70 Fix typos in various man pages.
72 commit 3419e37500dfd19cb2c246260dbd2bc0ee4704d4
73 Author: Steinar H. Gunderson <sesse@debian.org>
74 Date: Wed Jul 5 15:51:30 2006 +1000
76 Use 65534 for anon uid/gid rather than -2
78 This is more consistant across platforms.
80 commit 65735eef8a9441901245f6047edafc50f2d97c97
81 Author: Greg Banks <gnb@chook.melbourne.sgi.com>
82 Date: Wed Jul 5 13:37:21 2006 +1000
84 Update rpcdebug to know about new 2.6 debug flags. Added
85 a manpage and installed rpcdebug (in sbindir).
87 commit 23b3a9d0284d78cb6bf96b8cd44e9a4662ff60ae
88 Author: Greg Banks <gnb@chook.melbourne.sgi.com>
89 Date: Wed Jul 5 12:22:45 2006 +1000
91 Ignore new generated files.
93 commit 89053f3f440b629911cb994a293d5be73bb79bf9
94 Author: Greg Banks <gnb@chook.melbourne.sgi.com>
95 Date: Wed Jul 5 12:20:20 2006 +1000
97 Add rquota.h to BUILT_SOURCES so rquotad builds on the first try.
99 commit 66f9d8251c92124e46a209c47e5c0f7d3a0c4e6e
100 Author: Neil Brown <neilb@suse.de>
101 Date: Wed Jul 5 11:06:09 2006 +1000
103 Generate rquota_xdr.c and rquota.h from rquota.x
105 rquota_svc.c is still by-hand as it contains alot of extras.
106 These should really be moved to rquota_server.c
108 commit 9f5b40b7a68fe0a2648565ecbd4b08bf60287130
109 Author: Neil Brown <neilb@suse.de>
110 Date: Wed Jul 5 10:41:03 2006 +1000
112 Remove some files that old, unused, unneeded.
114 deleted: support/export/keys.c
115 deleted: support/include/rpcdispatch.h
116 deleted: support/include/rpcsec.h
117 deleted: support/include/version.h
118 deleted: support/include/ypupdate.h
119 deleted: support/nfs/clients.c
120 deleted: support/nfs/keytab.c
121 deleted: support/nfs/ypupdate_xdr.c
122 deleted: support/rpc/include/Makefile.am
123 deleted: tools/rpcdebug/neat_idea.c
124 deleted: utils/mountd/mount_xdr.c
125 deleted: utils/rquotad/pathnames.h
127 commit fbb1602bbd34cbe89dd55ca6eaaa19432237db1d
128 Author: Neil Brown <neilb@suse.de>
129 Date: Wed Jul 5 10:30:51 2006 +1000
131 Avoid error creating an existing symlink
133 Just remove the link first.
135 commit 0bc710a5a2b695039613a917e009dba3552ab1cc
136 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
137 Date: Mon Jul 3 18:33:54 2006 -0400
139 Don't depend on Kerberos headers when checking librpcsecgss in configure
141 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
143 Older versions of MIT Kerberos are missing an OID definition, causing
144 the configure checks for librpcsecgss to fail. We shouldn't be depending
145 on their libraries during the configure.
147 commit 5bfa10c94c44f082dc211a5fb431e2202ea9bb35
148 Author: Greg Banks <gnb@melbourne.sgi.com>
149 Date: Tue Jul 4 18:33:56 2006 +1000
151 Eliminate warnings from code generated by rpcgen
153 - unused variable 'buf'
154 - emit a declaration for `buf' on demand.
155 - unused variable 'i'
156 - declare i immediately before use
157 - unused value from IXDR_PUT_
159 - type-punned pointer reference
160 - cast to (void*) first :-(
162 commit acae444246635ec2ca8990d53e685c9062d73091
163 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
164 Date: Mon Jul 3 18:34:43 2006 -0400
166 Handle mapping failure from get_ids.
168 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
170 Temporary patch to do default mapping if we get an error while trying to
171 map a gss principal to the appropriate uid/gid. This currently returns
172 hardcoded values. This may be correct, or we may need to try and figure
173 out the correct values to match the anonuid/anongid for the export.
175 commit 1f1b05a65ef3dc6597c7bc1e2a38f38ae95bf230
176 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
177 Date: Mon Jul 3 18:34:38 2006 -0400
179 Properly report errors in readline() function
181 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
183 Change message priorities for errors and debug messages.
185 commit ee664fd246d77010af13fb557407c612752a5ea8
186 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
187 Date: Mon Jul 3 18:34:33 2006 -0400
189 Change default buffer size increment for readline()
191 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
193 The readline routine expects much smaller messages than we are passing.
194 Change the default initial allocation and increment value from 128
195 to 2048. This saves many calls to realloc().
197 commit 3da69ce5c4fac5677e91aa20e60750ab8de2ab97
198 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
199 Date: Mon Jul 3 18:34:27 2006 -0400
201 Clean up the printerr() logging function.
203 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
205 Update the printerr() function to:
207 1) Determine whether we'll print the message before going to all the
208 work of formatting it.
209 2) Don't just toss away messages that are too long for the buffer.
210 Print what we can and give an indication of the truncation with
212 3) Use a single buffer rather than two.
213 4) Messages either go to syslog (with level ERR) or stderr. Don't
214 send some messages to syslog level DEBUG.
216 commit 0b2a5b574c7ffd99aa3226d36e1d261826405625
217 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
218 Date: Mon Jul 3 18:34:21 2006 -0400
220 Use setfsuid() rather than seteuid() while creating contexts
222 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
224 As suggested by Olaf Kirch <okir@suse.de>, use setfsuid() rather than
225 seteuid() when creating a gss context. This prevents users from using
226 credentials that do not belong to them, while also preventing them from
227 doing things like killing, renicing, or changing the priority of the
228 gssd process while it is processing the context creation.
230 commit 0f899e6d862994ffb437ae73e087c4a21ab59723
231 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
232 Date: Mon Jul 3 18:34:16 2006 -0400
234 Limit acquire_cred call to to Kerberos only
236 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
238 Specify that the acquire_cred call should only be concerned with returning
239 Kerberos credentials since this is Kerberos-only functionality.
241 commit 3829bb90e764cd72c0009cb32a8b39d0fab89d81
242 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
243 Date: Mon Jul 3 18:34:10 2006 -0400
245 Check that the gssapi library is usable early on.
247 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
249 Do a call to determine mechanisms supported by the gssapi library early.
250 This allows us to discover early in case the gssapi library is somehow
251 misconfigured. We can bail out early and give a meaningful message
252 rather than getting errors on each attempt at a context negotiation.
254 commit 119c3e9aafe84c0f7c2846c46ad5e6f5eeece0da
255 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
256 Date: Mon Jul 3 18:34:05 2006 -0400
258 Fix problems with 64-bit big-endian machines
260 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
262 Correct the definition of mech_used in the gss context to use gss_OID_desc.
263 This fixes problems on 64-bit machines when referencing the OID.
265 Also updates write_buffer function to use u_int rather than size_t when
268 commit c3f05548d7b3d586e7eebbdde9339617e88530f3
269 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
270 Date: Mon Jul 3 18:33:59 2006 -0400
272 Define CFLAGS for gss_clnt_send_err compile
274 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
276 Add CFLAGS to make sure we find and use the correct gssapi.h when
277 building gss_clnt_send_err
279 commit 4e9ed06f8f8a0cd9f34a6830c0ff14344a528042
280 Author: Greg Banks <gnb@melbourne.sgi.com>
281 Date: Mon Jul 3 15:59:54 2006 +1000
283 Use socklen_t some more to avoid warnings.
285 commit 6c40236820fda8960af891f41aa9d53f8bbe50a2
286 Author: Greg Banks <gnb@melbourne.sgi.com>
287 Date: Mon Jul 3 15:39:41 2006 +1000
289 Fix warning about pointer signedness differing.
291 commit 3bf702b1a914b3867117b74d519c55fa68f4dc28
292 Author: Greg Banks <gnb@melbourne.sgi.com>
293 Date: Mon Jul 3 15:17:34 2006 +1000
295 Include the right header to get xmalloc() declaration.
297 commit 940c7c304d4a43c00c27529cdddc7c87db6eef87
298 Merge: b90d201... a503848...
299 Author: Greg Banks <gnb@melbourne.sgi.com>
300 Date: Mon Jul 3 14:21:48 2006 +1000
302 Merge branch 'master' of git://linux-nfs.org/nfs-utils
304 commit b90d201551aaa712c011c3d5de900fad714a26a6
305 Author: Greg Banks <gnb@melbourne.sgi.com>
306 Date: Tue Jun 27 21:30:18 2006 +1000
308 Comment out unused variable.
310 commit 33beb42d3d2cd13a82ddbbdc4275d2a048030ae3
311 Author: Greg Banks <gnb@melbourne.sgi.com>
312 Date: Tue Jun 27 21:22:59 2006 +1000
314 Comment out the decades-old SCCS id strings from the original Sun
315 distribution. They cause compile warnings, there is no longer any
316 reason to try to build them into the binaries, and gcc seems to be
317 eliding some of them anyway.
319 commit 3172063ead6b99611d049a59938808a6358f48a4
320 Author: Greg Banks <gnb@melbourne.sgi.com>
321 Date: Tue Jun 27 20:55:07 2006 +1000
323 Detect if glibc provides socklen_t and use that instead
324 of int in those cases which generate compile warnings,
325 e.g. the last argument of recvfrom().
327 commit a09eeb36c2c45151b9bb89f5015da0c584799716
328 Author: Greg Banks <gnb@melbourne.sgi.com>
329 Date: Tue Jun 27 20:28:02 2006 +1000
331 Replace the deprecated sigblock() with more modern
332 signal functions to avoid compile warnings.
334 commit 93608a52655abf5ac23404c4b5cc05fe575a9c04
335 Author: Greg Banks <gnb@melbourne.sgi.com>
336 Date: Thu Jun 22 18:01:10 2006 +1000
338 Fix a number of the easier compile warnings: unused variables,
339 unused labels, constness, signedness.
341 commit a07343ee0da4f0974a23b673ae1b0d482c7426a1
342 Author: Greg Banks <gnb@melbourne.sgi.com>
343 Date: Thu Jun 22 17:31:24 2006 +1000
345 Detect presence of nfs4_set_debug() in libnfsidmap and
346 don't bother calling it if it's missing.
348 commit dcfcb677b39443b6392db3234fd50498bc158507
349 Author: Greg Banks <gnb@melbourne.sgi.com>
350 Date: Thu Jun 22 17:19:17 2006 +1000
352 Remove useless m4 quoting around args to PKG_CHECK_MODULES().
354 commit 24d303ffae686192bda0a5996e8590219dcc82e7
355 Author: Greg Banks <gnb@melbourne.sgi.com>
356 Date: Thu Jun 22 17:16:19 2006 +1000
358 Do m4 quoting of AC_MSG_ERROR() and AC_MSG_WARN() as
359 the autoconf people intended. This avoids errors in
362 commit 66a699d953727d3a992cc09ed5304b83d661a737
363 Author: Greg Banks <gnb@melbourne.sgi.com>
364 Date: Thu Jun 22 16:51:44 2006 +1000
366 Add a .gitignore file to suppress the files generated
367 during autogen, configure and build.
368 commit 49b164d978ee6266df7ba0bd335cb34337e7c381
369 Author: Steve Dickson <SteveD@redhat.com>
370 Date: Mon Jul 3 09:52:00 2006 +1000
372 Allow rpc.nfsd to suppress tcp or udp, and listen on a specific address.
374 -T - will suppressing listening for TCP connection.
375 -U - will suppress UDP
376 -H host - will only listen on that local address
377 -p port - will listen on that port.
379 This requires kernel patches which will hopefully be in 2.6.19 and possibly some
380 earlier test and vendor kernels.
382 commit fde2ae7794047a698feeaf17963d690a1e660a80
383 Author: Steve Dickson <SteveD@redhat.com>
384 Date: Mon Jun 26 15:23:19 2006 +1000
386 Add support for suppressing different NFS versions.
389 means that NFSv2 won't be supported, just v3 and v4 (if the kernel
392 commit 0523fd513c6baa8dbf45d1a7afea2044262aeb3d
393 Author: Neil Brown <neilb@suse.de>
394 Date: Fri Jun 23 17:10:56 2006 +1000
396 Further coverity related cleanups.
398 Greg Banks suggested some variations, particularly improved
399 use of xmalloc/xstrdup functions. Thanks.
401 commit 2e075a16da4963f54cd556403ca9e15a68de27fd
402 Author: Neil Brown <neilb@suse.de>
403 Date: Fri Jun 23 14:38:33 2006 +1000
405 Fix various issues discovered by Coverity
407 Thanks to Michael Halcrow for finding them.
409 commit ff42180930a444cea7f19e55e2cd2bfe6d3f108b
410 Author: Neil Brown <neilb@suse.de>
411 Date: Fri Jun 23 14:06:00 2006 +1000
413 Fix comment parsing (again)
415 Bruce Fields noticed that I broke comment parsing...
417 as xskip() is always called before xgettok(), that is the
418 best place to put xskipcomment and still maintain proper
419 semantics of xskip and xgettok.
421 commit bec968578d97eabc63ae4a12bdeb2b33f40baec4
422 Author: Amit Gud <agud@redhat.com>
423 Date: Thu Jun 22 12:51:04 2006 -0400
425 Change mount configure option to --enable-mount
427 Change the configure option from --with-mount to --enable-mount.
429 Signed-off-by: Amit Gud <agud@redhat.com>
430 Signed-off-by: Steve Dickson <steved@redhat.com>
432 commit ceeffc1f76485b4084b2c61f4ff3c40e4f51c3b8
433 Author: Amit Gud <gud@eth.net>
434 Date: Thu Jun 22 12:49:24 2006 -0400
436 Merge nfsmount.x and mount.x into mount.x
439 Merge utils/mount/nfsmount.x and support/export/mount.x into support/export/mount.x.
441 Signed-off-by: Amit Gud <agud@redhat.com>
442 Signed-off-by: Steve Dickson <steved@redhat.com>
444 commit c2db41e8abb6ddc9d03a0c91c6db043fa0f85a8f
445 Author: Neil Brown <neilb@suse.de>
446 Date: Fri Jun 23 13:37:08 2006 +1000
448 Try to make sure that clientid used for NFSv4 is reliable.
450 We need to give an IP address to identify this client to the
452 The current code does a gethostbyname of the hostname. One
453 some systems this returns 127.0.0.1 or similar, which is not useful.
455 Instead, use getsockname of the sock used to connect to the server
456 to confirm that the server is working. This gives the address on the
457 interface that was chosen to talk to that server, which is the
458 best address we can find (if there is a NAT in the way, it might
459 still not work, but in that case there is nothing we can do).
461 commit 11d34d11153df198103a57291937ea9ff8b7356e
462 Author: Greg Banks <gnb@melbourne.sgi.com>
463 Date: Wed Jun 14 22:48:10 2006 +1000
465 multiple threads for mountd
468 How about the attached patch against nfs-utils tot? It
469 adds a -t option to set the number of forked workers.
470 Default is 1 thread, i.e. the old behaviour.
472 I've verified that showmount -e, the Ogata mount client,
473 and a real mount from Linux and IRIX boxes work with and
474 without the new option.
476 I've verified that you can manually kill any of the workers
477 without the portmap registration going away, that killing
478 all the workers causes the manager process to wake up and
479 unregister, and killing the manager process causes the
480 workers to be killed and portmap unregistered.
482 I've verified that all the workers have file descriptors
483 for the udp socket and the tcp rendezvous socket, that
484 connections are balanced across all the workers if service
485 times are sufficiently long, and that performance is
486 improved by that parallelism, at least for small numbers
487 of threads. For example, with 60 parallel MOUNT calls
488 and a testing patch to make DNS lookups take 100 milliseconds
489 time to perform all mounts (averaged over 5 runs) is:
505 Greg Banks, R&D Software Engineer, SGI Australian Software Group.
506 I don't speak for SGI.
508 commit db96d056578338dd1bb0371dc84638973c187ec6
509 Author: Neil Brown <neilb@suse.de>
510 Date: Fri Jun 16 13:16:09 2006 +1000
512 Remove some temporary files that shouldn't be in 'git'.
515 deleted: config.guess
522 commit 82b53188aaffad0e237461f8f1274794166feb3a
523 Author: Neil Brown <neilb@suse.de>
524 Date: Fri Jun 16 13:09:26 2006 +1000
526 Add support to auto-generate nfsmount* files for new nfs.mount program
528 commit 4e2bae795e5eaf9922f0b966ab5df64994c836a2
529 Author: Amit Gud <agud@redhat.com>
530 Date: Mon Jun 12 19:08:27 2006 -0400
532 Move NFS mount code from util-linux to nfs-utils - part 2
534 Adds the support functions needed for mount and umount. This
535 functionality will someday be available in the form of shared mount
538 Signed-off-by: Amit Gud <agud@redhat.com>
539 Signed-off-by: Steve Dickson <steved@redhat.com>
541 commit a0520fa1a41bd33815b331b660b4545f2723495c
542 Author: Amit Gud <agud@redhat.com>
543 Date: Mon Jun 12 19:06:36 2006 -0400
545 Move NFS mount code from util-linux to nfs-utils - part 1
547 Adds the mount directory and the code to mount and umount the NFS file system.
549 Signed-off-by: Amit Gud <agud@redhat.com>
550 Signed-off-by: Steve Dickson <steved@redhat.com>
552 2006-06-05 NeilBrown <neilb@suse.de>
553 - Remove debian/ at request of Debian maintainer "Steinar H. Gunderson" <sesse@debian.org>
554 - fix_exportfs_with_multiple_matches.diff: Fixes a problem with exportfs -o
555 and multiple entries of the same type for the same patch that matches
556 a given client. The entire rationale and problem description can be found
557 at http://bugs.debian.org/245449 (fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>)
558 - escape hashes in exports
559 Makes sure any # signs in the printed-out exports file are
560 escaped (as with quotes, spaces, etc.), so they won't be treated
561 as a comment when they're read back in again.
562 "Steinar H. Gunderson" <sesse@debian.org>
563 - Only treat '#' as starting a comment when at the start of a
564 token, otherwise '#' in filenames cannot be read.
566 - document sync option:
567 Document the 'sync' option in the exports(5) man page -- ATM
568 only the 'async' option is documented, which is not very
569 symmetric. :-) "Steinar H. Gunderson" <sesse@debian.org>
570 - mountd state directory:
571 Let the user select (via a new parameter) the path to the NFS
572 state directory for mountd, to match the statd functionality.
573 "Steinar H. Gunderson" <sesse@debian.org>
574 - fix nhfsrun signal:
575 nhfsrun is supposed to be able to be signalled with SIGUSR1, but
576 the signal trapped is number 30, which is something else
577 entirely (SIGPWR). This patch simply changes it to say "USR1",
578 which gets it right no matter what the value is.
579 "Steinar H. Gunderson" <sesse@debian.org>
580 - Minor man page tidy up
582 2006-04-12 NeilBrown <neilb@suse.de>
583 Remove **/Makefile.in, aclocal.m4, configure, and
584 support/include/config.h.in from source control
585 These are auto autogenerated by
586 aclocal -I aclocal ; autoheader ; automake ; autoconf
588 2006-04-12 NeilBrown <neilb@suse.de>
589 utils/statd/rmtcall.c: use HAVE_IFADDRS_H to control compilation
590 of code using ifaddrs.h
591 configure.in: test for present of ifaddrs.h
593 Old glibc's don't have ifaddrs.h
595 2006-06-12 Amit Gud <agud@redhat.com>
596 Added the mount functionality from util-linux.
597 Added --without-mount configure option.
599 2006-04-12 NeilBrown <neilb@suse.de>
600 Set version to 1.0.8,
601 aclocal -I aclocal ; autoheader ; automake ; autoconf
603 2006-04-10 NeilBrown <neilb@suse.de>
604 Various paranoia checks:
605 gssd_proc.c: pass max_field sizes to sscanf to avoid buffer
607 svcgssd_proc.c: range_check name.length, to ensure name.length+1
609 idmapd.c(nfsdcb): make sure at least one byte is read before
610 zeroing the last byte that was read, otherwise memory corruption
613 Found by SuSE security audit.
615 2006-04-10 "Kevin Coffman" <kwc@citi.umich.edu>
616 Check for sufficient version of librpcsecgss and libgssapi
619 2006-04-10 "Kevin Coffman" <kwc@citi.umich.edu>
620 Update aclocal/tcp-wrappers.m4 to define HAVE_LIBWRAP and
621 HAVE_TCP_WRAPPERS as appropriate.
623 2006-04-10 NeilBrown <neilb@suse.de>
624 Add checking for innetgr back to configure.in
626 2006-04-10 kwc@citi.umich.edu
627 Update calls to gss_export_lucid_sec_context()
629 Change the calls to gss_export_lucid_sec_context() to match the corrected
630 interface definition in libgssapi-0.9.
632 2006-04-10 kwc@citi.umich.edu
633 Plug memory leaks in svcgssd
635 Various memory leaks in the svcgssd context processing are eliminated.
637 2006-04-10 kwc@citi.umich.edu
638 Fix memory leak of the AUTH structure on context negotiations
640 Free AUTH structure after completing context negotiation and sending
641 context information to the kernel.
643 2006-04-10 kwc@citi.umich.edu
644 Fix support/include/config.h.in such as would be done be running autoheader.
646 2006-03-28 NeilBrown <neilb@suse.de>
647 1.0.8-pre3, aclocal/autoconf/automake
649 2006-03-28 kwc@citi.umich.edu
650 Use PKGCONFIG to locate gssapi and rpcsecgss header files
652 Instead of having separate copies of the gssapi and rpcsecgss
653 header files, or depending on the Kerberos gssapi header,
654 locate the headers now installed with the libgssapi and librpcsecgss
657 Remove local copies of the gssapi and rpcsecgss header files.
659 This depends on the configure_use_autotools patch.
661 2006-03-28 kwc@citi.umich.edu
662 Add debugging to better detect negotiation of enctype not supported by kernel
664 Print debugging message indicating the type of encryption keys being sent
665 down to the kernel. This should make it easier to detect cases where
666 unsupported encryption types are being negotiated.
669 2006-03-28 kwc@citi.umich.edu
671 Don't close and reopen all pipes on every DNOTIFY signal.
673 From: Vince Busam <vbusam@google.com>
674 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
676 Don't unnecessarily close and re-open all pipes after every DNOTIFY
677 signal. These unnecessary closes were triggering a kernel Oops.
678 Original patch modified to correct segfault when unmounting last
681 2006-03-28 kwc@citi.umich.edu
682 Add option to specify directory to search for credentials cache files
685 From: Vince Busam <vbusam@google.com>
686 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
688 Add command line option to specify which directory should be searched
689 to find credentials caches.
692 2006-03-28 kwc@citi.umich.edu
693 Must still use knowledge of the glue context for pre-1.4 versions of MIT krb5
695 We need to get access to the internal krb5 context pointer for
696 older (pre-1.4) versions of MIT Kerberos. We get a pointer to
697 the gss glue's context. Get the right pointer before accessing
698 the context information.
701 2006-03-28 kwc@citi.umich.edu
703 Remove unused groups variable from get_ids() which was causing a compiler warning.
706 2006-03-28 kwc@citi.umich.edu
707 Update krb5 code to use glue routine lucid context functions
711 The gssd code should not know about the glue layer's context structure.
712 A previous patch added gss_export_lucid_sec_context() and
713 gss_free_lucid_sec_context() functions to the gssapi glue layer.
714 Use these functions rather than calling directly to the Kerberos
715 gssapi code (which requires the Kerberos context handle rather
716 than the glue's context handle).
720 2006-03-28 kwc@citi.umich.edu
722 Separate out context handling code for MIT Kerberos and SPKM3
726 2006-03-28 Kevin Coffman <kwc@citi.umich.edu>
727 User-selectable idmapping cache lifetime
729 Read and process new configuration option, Cache-Expiration, and use
730 the value to determine how long idmapping entries are cached.
733 2006-03-27 NeilBrown <neilb@suse.de>
736 2006-03-27 kwc@citi.umich.edu
737 Add debugging to better detect negotiation of enctype not supported by kernel
739 Print debugging message indicating the type of encryption keys being sent
740 down to the kernel. This should make it easier to detect cases where
741 unsupported encryption types are being negotiated.
744 Don't close and reopen all pipes on every DNOTIFY signal.
746 Don't unnecessarily close and re-open all pipes after every DNOTIFY
747 signal. These unnecessary closes were triggering a kernel Oops.
748 Original patch modified to correct segfault when unmounting last
752 Add option to specify directory to search for credentials cache files
754 Add command line option to specify which directory should be searched
755 to find credentials caches.
757 2006-03-27 kwc@citi.umich.edu
758 Must still use knowledge of the glue context for pre-1.4 versions of MIT krb5
760 We need to get access to the internal krb5 context pointer for
761 older (pre-1.4) versions of MIT Kerberos. We get a pointer to
762 the gss glue's context. Get the right pointer before accessing
763 the context information.
765 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
766 Remove unused variable causing compile warning
768 Remove unused groups variable from get_ids() which was causing a compiler warning.
770 2006-03-27 kwc@citi.umich.edu
771 Update krb5 code to use glue routine lucid context functions
773 The gssd code should not know about the glue layer's context structure.
774 A previous patch added gss_export_lucid_sec_context() and
775 gss_free_lucid_sec_context() functions to the gssapi glue layer.
776 Use these functions rather than calling directly to the Kerberos
777 gssapi code (which requires the Kerberos context handle rather
778 than the glue's context handle).
780 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
781 Separate out context handling code for MIT Kerberos and SPKM3
784 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
785 Consolidate gssd and svcgssd since they share much code
787 Remove directory svcgssd which was only created because the old
788 build system could not handle building two daemons in the same
789 directory. This eliminates build complications since gssd and
790 svcgssd also share many source files.
792 This patch effectively removes the utils/svcgssd directory, moving
793 all its files to the utils/gssd directory. File utils/gssd/Makefile.am
794 is modified with directions to build both gssd and svcgssd.
796 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
797 Use PKGCONFIG to locate gssapi and rpcsecgss header files
799 Instead of having separate copies of the gssapi and rpcsecgss
800 header files, or depending on the Kerberos gssapi header,
801 locate the headers now installed with the libgssapi and librpcsecgss
804 Remove local copies of the gssapi and rpcsecgss header files.
806 This depends on the configure_use_autotools patch.
808 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
809 User-selectable idmapping cache lifetime
811 Read and process new configuration option, Cache-Expiration, and use
812 the value to determine how long idmapping entries are cached.
814 2006-03-27 Steve Dickson <steved@redhat.com>
815 Set libnfsidmap library debugging level and logging function.
817 This patch adds a call to the new libnfsidmap library function
818 nfs4_set_debug(), which defines the verbosity level libnfsidmap
819 should use as well as the logging function.
821 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
822 Don't close file descriptor until after calling event_del().
824 Delete event processing for a file descriptor before closing it.
825 This was causing hangs when used in combination with libevent-1.0b.
827 2006-03-27 kwc@citi.umich.edu
828 Find krb5-config on SuSE 10
830 SuSE 10.0 puts krb5-config in yet another obscure location.
831 Look for it there and use it if found.
833 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
834 Update debian package information.
836 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
837 Install /var/lib/nfs files using DESTDIR and add rpcsec headers to distribution
839 Add "$(DESTDIR)" to the paths for the "$(statedir)" files so they are
840 put in the right place when DESTDIR is defined.
842 Add the rpcsec header files to EXTRA_DIST list.
844 2005-12-21 NeilBrown <neilb@suse.de>
845 *utils/rquotad/rquota_server.c: Detect and handle both old-style
846 (2.4) and new-style(2.6) quotactl.
847 *utils/gssd/gss_destroy_cred: remove dependence on "head -1" which
848 might need to be "head -n 1"
849 *utils/nhfsstone/nhfsrun: convert "tail -1" to "tail -n 1"
851 2005-12-20 Kevin Coffman <kwc@citi.umich.edu> NeilBrown <neilb@suse.de>
852 Substantial Makefile/configure rewrite.
853 Run 'autogen.sh' to create "Makefile.in" etc.
855 Also add -D_FILE_OFFSET_BITS=64 to CPP_FLAGS so that mountd can
856 stat and export files larger than 2Gig.
860 2005-12-20 NeilBrown <neilb@suse.de>
861 support/nfs/exports.c(getexportent): is a null host name is given,
862 replace it with '*' so we have a non-empty host name for messages
864 utils/exportfs/exportfs.man: Correct documentation about default
867 2005-12-20 Kevin Coffman <kwc@citi.umich.edu>
868 utils/gssd/gssd_proc.c(create_auth_rpc_client): Use service
869 portion of clp->servicename rather than hard-coding "nfs".
871 2005-12-16 NeilBrown <neilb@suse.de>
874 2005-12-16 Kevin Coffman <kwc@citi.umich.edu>
875 svcgssd needs -lnfs when using new function closeall().
878 Remove unused argument from nfsdopen()
880 After previous changes, the arguement to nfsdopen() has become unused.
884 Fix idmapd error reporting after call to mydaemon()
886 After call to mydaemon(), calls to err[x] and warn[x] result
887 in the message going nowhere. Change to using idmapd_*
888 versions of these routines which write to syslog.
889 Original problem reported by Vincent Roqueta <vincent.roqueta@ext.bull.net>
890 with a different patch.
893 Don't add @domain to names that cannot be mapped.
895 Per rfc3530 section 5.8: when unable to map a uid to a name, don't
896 add the @domain to the "nobody" name.
899 Fix idmapd for systems where sizeof(uid_t)!=4 and sizeof(gid_t)!=4
901 Fix conversion cases where uid_t and gid_t are not 32 bits.
904 Don't segfault because mech wasn't filled in because of an error
906 From Kevin Coffman <kwc@citi.umich.edu>
908 Initialize mech to null to avoid segfault if an error occurs
909 and mech is never returned from gss_accept_sec_context.
912 Remove use of static buffer in do_downcall
914 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
916 Dynamically allocate buffer of the correct length rather
917 than using fixed-length buffer.
920 Print better error message if rpc routine clnt_create() fails.
923 Print appropriate error messages after gss calls.
925 Print gss error messages after calls to gss functions, even if they
926 are for Kerberos only.
929 Update gssd and svcgssd to use the new gss mech glue lucid context calls.
931 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
933 Update gssd and svcgssd to use a lucid context from SPKM3 to send down
935 Update gssd and svcgssd to use the new gss mech glue lucid context calls.
936 Add configure check to see if spkm3 support is available.
939 Add support for CONTINUE_NEEDED return from gss_accept_sec_context.
941 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
943 Add CONTINUE_INIT handling to svcgssd. Store the partially complete spkm
944 context handle in the out_handle of CONTINUE_INIT messages so that it is
945 returned in the in_handle of subsequent messages.
948 Replace GSS_C_ANON_FLAG with GSS_C_MUTUAL_FLAG.
950 Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
952 Specify GSS_C_MUTUAL_FLAG rather than GSS_C_ANON_FLAG for
955 NOTE: we need a way to pass the appropriate value rather than
956 hard-coding this flag.
959 Increase size of rpc send/receive buffers
961 Change the clnt_create() to use routines which allow us to set the
962 send and receive buffer size. This is needed for larger spkm3
963 exchanges including certificate chains.
965 This has the side-effect of skipping the portmap call since
966 we specify the port (by specifying the service) when getting
967 the server's address information.
970 Define _LINUX_QUOTA_VERSION to 1
972 The rquotad code is written against the "old" kernel quota interface.
973 Fedora Core 4 is the only platform known to check for different
974 versions, so this should not have any affect on other platforms
975 and fixes the build for FC4.
979 2005-12-12 Usha Ketineni <ketineni@us.ibm.com>, NeilBrown <neilb@suse.de>
980 *support/nfs/rpcmisc.c(rpc_init): is stdin is a socket, but
981 is already connected (as e.g. from ssh), don't assume we
982 were started by inetd.
984 2005-11-03 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
985 *utils/idmapd/idmaps.c:
987 I've recently updated the nfs-utils in rawhide with the
988 latest patches from the SourceForge CVS tree and the
989 latest CITI patches (1.0.7-4).
991 In testing these patches, I notice that when the server was started
992 and a SIGHUP was sent to rpc.idmapd to open the nfs4.nametoid/channel
993 and nfs4.idtoname/channel files, the second open (the nfs4.idtoname one)
994 failed because the path (i.e. ic->ic_path) was NULL.
996 Now the reason the ic_path was NULL was because it was never set
997 during the call to nfsdopen(). nfsdopen() looks like:
1000 return ((nfsdopenone(&nfsd_ic[IC_NAMEID], IC_NAMEID, path) == 0 &&
1001 nfsdopenone(&nfsd_ic[IC_IDNAME], IC_IDNAME, path) == 0) ? 0
1005 Note: the call to nfsdopenone() is how the path is set in each nfsd_ic[]
1006 entry and nfsdopen() is only called once.
1008 So when rpc.idmap comes up and the first call to nfsdopenone() fails
1009 (because the server is not running) the path in nfsd_ic[IC_IDNAME] is
1010 never filled in because the second nfsdopenone() never happen...
1012 Now there was a CITI patche (idmapd_revert_fix_reopen_on_sighup.dif)
1013 that tried to address this problem but did seem to fix it.. The
1014 attached patch fix the problem by initializing both nfsd_ic[IC_IDNAME]
1015 and nfsd_ic[IC_NAMEID] structures with the needed info...
1016 I figured since there is no way of changing these paths or filenames
1017 by command line args, why not just set them during compile time...
1018 so that's what this patch does.
1020 This patch also changes how nfsdreopen_one() handles the
1021 case where the event has already been set. Unlike the CITI
1022 patch (idmapd_revert_fix_reopen_on_sighup.dif) which just
1023 just does not register the second event, my patch deletes
1024 the old event and the registers the new one. It just seems like
1025 the right thing to do since a SIGHUP means a new server just
1026 started so we probably should create a new event as well...
1030 2005-10-14 NeilBrown <neilb@suse.de>
1031 *utils/mountd/cache.c(nfsd_fh): Understand type 2 and type 3
1032 filesystem identifiers, which are used with device numbers
1033 That don't fit into 16 bits.
1035 2005-10-07 Olaf Kirch <okir@suse.de>
1036 * utils/mountd/mountd.c(get_exportlist): Without this patch,
1037 showmount -e would sometimes display host names that should really
1038 have been subsumed under a wildcard entry.
1040 The problem was that the code in get_exportlist would always
1041 skip the next group entry after removing one FQDN.
1043 2005-10-06 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
1044 * support/nfs/export.c: don't warn about sync/async for readonly
1046 * support/nfs/closeall.c: new file with function to close all
1047 file descriptors from a give minimum upwards.
1048 * nfsd/mountd/statd/idmapd/gsssvcd: use closeall.
1049 * utils/mountd/mountd.c: Eliminate 3 syslog message that are
1050 logged for successful events.
1051 * utils/mountd/mountd.c: make sure the correct hostname is used in
1052 the SM_NOTIFY message that is sent from a rebooted server which
1053 has multiple network interfaces. (bz 139101)
1055 Details can be found in:
1056 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=139101
1058 *utils/idmapd/idmapd.c:Fixed subscripting problem in idmapd (bz
1059 158188) This fixes the following problem:
1060 rpc.idmapd: nfsdreopen: Opening '' failed: errno 2 (No such file or directory)
1062 Details can be found in:
1063 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=158188
1065 *utils/statd/statd.c(drop_privs): clear st_gid as well as st_uid
1067 *utils/statd/svc_run.c(my_svc_run): remove usage of undocumented
1068 %m format specifier.
1069 *utils/statd/montor.c(sm_mon_1_svc): as above
1070 *support/nfs/xlog.c(xlog): Changed xlog to use LOG_INFO instead of
1071 LOG_DEBUG so debug messages will appear w/out any config changes
1075 2005-09-02 Mike Frysinger <vapier@gentoo.org>
1076 * utils/rquotad/rquota_server.c(getquotainfo): use explicit
1077 struture-member copying rather than memcpy, as the element
1078 sizes are the same on all architectures.
1080 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
1081 Add option to set rpcsec_gss debugging level (if available)
1083 Changes to allow gssd/svcgssd to build when using Hiemdal Kerberos
1084 libraries. Note that there are still run-time issues preventing
1085 this from working when shared libraries for libgssapi and librpcsecgss
1088 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
1089 Remove the rpcsec_gss code and rely on an external library instead.
1091 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
1092 *utils/mountd/mountd.c:
1093 mountd currently always returns AUTH_NULL and AUTH_SYS as the
1094 allowable flavors in mount replies. We want it to also return gss
1095 flavors when appropriate. For now as a hack we just have it always
1096 return the KRB5 flavors as well.
1098 *utils/mountd/cache.c:
1100 When attempting to mount an NFSv4 pseudofilesystem (fsid=0) and the
1101 actual exported directory does not exist on the server, rpc.mountd
1102 doesn't check the directory exists (when fsidtype=1, i.e. using fsid,
1103 but does check for fsidtype=0, i.e. using dev/ino). The non-existent
1104 exported directory path with fsid=0 is written to the kernel via
1105 /proc/net/rpc/nfsd.export/channel, which leads to path_lookup() to
1106 return ENOENT (seems appropriate). Unfortunately, the new_cache
1107 approach ignores errors returned when writing via the channel file so
1108 that particular error is lost and the mount request is silently ignored.
1110 Assuming it doesn't make sense to revamp the new_cache/up-call method to
1111 not ignore returned errors, it seems appropriate to fix the case where
1112 rpc.mountd doesn't check for the existence of an exported directory with
1113 fsid= semantics. The following patch does this by moving the stat() up
1114 so it is done for both fsidtype's. I'm not certain whether the other
1115 tests need to be executed for fsidtype=1, but it doesn't appear to hurt
1116 [Not exactly true: the comparison of inode numbers caused problems so
1117 now it's kept for fsidtype=0 only].
1119 Would it be also desirable to log a warning for every error, if any,
1120 returned by a write to any of the /proc/net/rpc/*/channel files which
1121 would otherwise be ignored (maybe under a debug flag)?
1123 * gssd/mountd/svcgssd: Changes gssd, svcgssd, and mountd to ignore a
1124 SIGHUP rather than dying.
1126 * many: Remove the gssapi code and rely on an external library instead.
1128 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
1129 * utils/exportfs/exports.man: Document the "crossmnt" export export option
1130 * utils/gssd/krb5_util.c:
1131 Add better debugging and partially revert the function
1132 check for gss_krb5_ccache_name.
1134 For MIT Kerberos releases up to and including 1.3.1, we *must*
1135 use the routine gss_krb5_ccache_name to get the K5 gssapi code
1136 to use a different credentials cache.
1138 For releases 1.3.2 and on, we want to use the KRB5CCNAME
1139 environment variable to tell it what to use.
1140 (A problem was reported where 1.3.5 was being used, our
1141 code was using gss_krb5_ccache_name, but the underlying
1142 code continued to use the first (or default?) credentials
1143 cache. Switching to using the env variable fixed the problem.
1144 I cannot recreate this problem.
1146 *utils/gssd/krb5_util.c:
1147 Andrew Mahone <andrew.mahone@gmail.com> reported that reiser4
1148 always has DT_UNKNOWN. He supplied patch to move the check
1149 for regular files after the stat() call to correctly find
1150 ccache files in reiser4 filesystem.
1152 Also change the name comparison so that the wrong file is
1153 not selected when the substring comparison is done.
1155 *utils/gssd/krb5_util.c:
1156 Limit the set of encryption types that can be negotiated by
1157 the Kerberos library to those that the kernel code currently
1160 This should eventually query the kernel for the list of
1163 *utils/gssd/gss_util.c, utils/svcgssd/svcgssd_main_loop.c:
1164 Print more information in error messages to help debugging failures.
1166 *utils/svcgssd/svcgssd_proc.c: Increase token buffer size and
1167 update error handling so that a response is always sent.
1169 *utils/svcgssd/svcgssd_proc.c: Add support to retrieve
1170 supplementary groups.
1173 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
1175 Consolidate some of the Kerberos checking instead of repeating
1176 the same things for MIT and Heimdal.
1177 Also adds more checks to distinguish 32-bit from 64-bit
1178 (mainly for gssapi.h)
1179 Fix svcgssd Makefile so make TOP=../../ works correctly there.
1180 Enable running a modern autoheader.
1181 * utils/gssd/gss_oids.c: Use correct OID value for SPKM-3
1182 * utils/gssd/gss_util.c: Fix build with older MIT releases that do not define GSS_C_NT_HOSTBASED_SERVICE
1183 * utils/gssd/write_bytes.h, support/include/gssapi/gssapi.h:
1184 Length of gss_buffer_desc is a size_t which is 64-bits on a
1185 64-bit machine. Kernel code expects 32-bit integer for length.
1186 Coerce length value into a 32-bit value when reading from or
1187 writing to the kernel.
1188 Change gssapi.h to use datatype size values obtained from
1189 configure rather than hard-coded values.
1190 * utils/idmapd/idmapd.c: The EV_INIT check here was wrong, and was
1191 causing idmapd to become unresponsive to server requests after
1193 * utils/idmapd/idmapd.c: Idmapd should flush the server id<->name
1194 caches when its started.
1196 2005-04-12 G. Allen Morris III <gam3@gam3.net>
1198 * All Makefile: added TOP as needed for easier compile.
1200 * utils/nfsstat/nfsstat.c: added NFS V4 support; added the -m
1201 option; Added -2, -3, and -4 options; changed -a option to -v
1202 option; added long options; changed default output to not
1203 show V2 NFS statistics unless used.
1205 * utils/nfsstat/nfsstat.man: Documented above changes; changed
1206 authors email address; added BUGS section.
1208 2005-04-07 Chip Salzenberg <chip@pobox.com>
1210 * debian/changelog: Version 1.0.7-2.
1212 2005-04-06 Chip Salzenberg <chip@pobox.com>
1214 * config.guess, config.sub: Update.
1216 * support/rpc/svc_auth_gss.c (_svcauth_gss): Avoid using a cast as
1217 an lvalue, as it is non-portable.
1219 * support/nfs/exports.c (parseopts): Accept "acl" option to mean
1220 ~NFSEXP_NOACL, and "no_acl" to mean NFSEXP_NOACL.
1221 (putexportent): Report NFSEXP_NOACL as "no_acl", and ~NFSEXP_NOACL
1223 * utils/exportfs/exportfs.c (dump): Report NFSEXP_NOACL as
1225 * utils/exportfs/exports.man: Document "no_acl".
1227 2005-03-14 NeilBrown <neilb@cse.unsw.edu.au>
1228 Denis Vlasenko <vda@ilport.com.ua>
1229 * support/export/client.c(client_init and client_gettype):
1230 treat N.N.N.N as a special case of MCL_SUBNETWORK instead of
1233 2005-03-06 G. Allen Morris III <gam3@gam3.net>
1234 * support/nfs/cacheio.c(readline): Could not read lines greater
1235 than 128 bytes. [1157791]
1236 * utils/exportfs/exports.man: Added a SEE ALSO section and
1237 fixed 2 typos. [1018450]
1239 2005-02-28 Trond Myklebust <trond.myklebust@fys.uio.no>
1240 * utils/statd/rmtcall.c(statd_get_socket): If a port number is
1241 explicitly given, make sure to try to bind to that.
1243 2005-01-11 Chip Salzenberg <chip@pobox.com>
1245 * debian/changelog: Version 1.0.7-1.
1246 * debian/nfs-common.default (NEED_IDMAPD, NEED_GSSD):
1247 Disable by default, on advice of upstream.
1248 * debian/nfs-kernel-server.default (NEED_SVCGSSD):
1251 * utils/svcgssd/Makefile (predep): Symbolically link duplicated
1253 (distclean): Remove symlinks to duplicated files.
1255 2004-12-17 NeilBrown <neilb@cse.unsw.edu.au>
1258 * config.mk, configure.in: update version number, run autoconf
1259 * configure.in: require nfsidmap.h if gss is enabled.
1261 2004-12-10 NeilBrown <neilb@cse.unsw.edu.au>
1264 * config.mk, configure.in: update version number, run autoconf
1266 2004-12-10 Neil Brown <neilb@cse.unsw.edu.au>
1267 * README : note dependancy on kerberos, libevent, and nfsidmap
1268 * configure.in : fail if --enable-nfsv4 and libevent or
1269 libnfsidmap are missing.
1270 * configuyre.in: improve message if krb5 support is missing
1272 2004-12-06 Paul Clements <paul.clements@steeleye.com>
1273 * support/include/ha-callout.h: get return status from waitpid
1275 * support/include/ha-callout.h: don't ignore SIGCHLD while waiting
1276 for a callout to complete.
1277 * utils/statd/statd.c(sigusr): print current start when re-reading
1278 notify list due to SIGUSR1
1279 * utils/statd/svc_run.c(my_svc_run): call change_state when
1280 re-notifying clients.
1282 2004-12-06 Marc Eshel <eshel@almaden.ibm.com>
1283 * utils/statd/svc_run.c(my_svc_run): allow loop to exit when in
1285 *utils/statd/rmtcall.c(statd_get_socket): if a hostname is given
1286 to statd with -n, prefer it's IP address to the default for
1289 2004-12-06 Bruce Allan <bwa@us.ibm.com>
1290 * utils/mountd/auth.c(auth_reload) Clear the "my_client" cache on
1291 an auth_reload to avoid old data getting used.
1293 2004-12-03 NeilBrown <neilb@cse.unsw.edu.au>
1294 Release 1.0.7-pre1 for testing
1296 * config.mk, configure.in: update version number, run autoconf
1298 2004-12-03 Trond Myklebust <trond.myklebust@fys.uio.no>
1300 * utils/statd/statd.c(main): ignore SIGPIPE
1302 2004-11-22 "J. Bruce Fields" <bfields@fieldses.org>
1304 * tools/rpcdebug/rpcdebug.c: support aliases "nfsdebug" and
1305 "nfsddebug" and update flag names.
1306 * configure.in, nodist/* redhat/* nfs-utils.spec*: remove redhat
1307 specific files (as no-one actually uses them, especially not
1308 redhat), and the nodist /etc files (as they drift out-of-date, and
1309 the debian directory provides a suitable example.
1310 * utils/svcgssd_proc.c(get_ids): fix memory leak
1311 * utils/svcgssd/svcgssd_proc.c: Rely on count of the number of
1312 groups instead of using a special guard value to identify the end
1314 * utils/idmapd/idmapd.c: don't allow Default domain and anon-uid
1315 or -gid to be specified on command line.
1316 * utils/idmapd/idmapd.c: improve error messages
1317 * utils/idmapd/idmapd.c: Reopen nfsd files on sighup. Allows us
1318 to start up client side only (even when nfsd module not loaded),
1319 and then sighup later after insmodding nfsd module.
1320 * utils/idmapd/idmapd.c: Make sure we catch all errors on
1321 daemonizing by waiting for child to report succesfull startup
1323 * utils/idmapd/idmapd.c: Let libnfsidmapd parse the idmapd.conf
1324 file for the default domain, instead of doing that ourselves.
1325 * utils/gssd/gssd_proc.c: Make sure we get an error when a gssd
1327 * utils/gssd/gssd_proc.c: We were forgetting to restore the euid
1328 on certain failures, which meant gssd could get stuck in a state
1329 where it didn't have permissions to read the files in rpc_pipefs
1331 * utils/gssd/gssd_proc.c: Use libnfsidmapd to map gss principals
1333 * debian/nfs-kernel-server.default: Document the NEED_SVCGSSD
1334 variable in /etc/default/nfs-kernel-server.
1337 2004-11-22 NeilBrown <neilb@cse.unsw.edu.au>
1339 * utils/exportfs/nfsd.man: corrected typo in .BR macro usage -
1340 reported by Eric Raymond
1342 2004-10-19 "J. Bruce Fields" <bfields@fieldses.org>
1344 * support/gssapi/* support/rpc/* utils/gssd/* utils/svcgssd/* etc
1345 initial support for GSSAPI authentication
1347 2004-09-15 Neil Brown <neilb@cse.unsw.edu.au>
1349 * utils/statd/monitor.c(sm_unmon_1_svc): is RESTRICTED_STATD, then
1350 check IP address and force my_name to 127.0.0.1 to match
1351 what happens in sm_mon_1_svc. This avoid spurious "erroneous
1353 * utils/statd.monitor.c(sm_unmon_all_1_svc): likewise
1355 2004-09-15 "J. Bruce Fields" <bfields@fieldses.org>
1357 * Assorted changes to support "gss/*" style authentication
1358 * utils/idmapd: new idmapd daemon for nfsv4 username lookup
1360 2004-09-06 Trond Myklebust <trond.myklebust@fys.uio.no>
1361 Neil Brown <neilb@cse.unsw.edu.au>
1363 * utils/mountd/auth.c(auth_authenticate_internal): fix
1364 uninitialsed variable problem (causes bad error messages).
1366 2004-09-06 Paul Clements <paul.clements@steeleye.com>
1367 Neil Brown <neilb@cse.unsw.edu.au>
1369 * utils/mountd/mountd.c(main): support --ha-callout (-H) for
1370 specifying a callout program
1371 * utils/mountd/rmtab.c: Call ha_callout on mount/unmount
1372 * utils/statd/monitor.c: Call ha_callout on add/del client
1373 * utils/statd/rmtcall.c: as above
1374 * utils/statd/statd.c: handle --ha-callout (-H)
1375 * utils/statd/svc_run.c: call notify_hosts is we have received a
1377 * support/include/ha-callout.h: define ha_callout function
1380 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
1381 * utils/mountd/cache.c(cache_process_req): clear fd after
1382 processing so as not to confused libc/sunrpc into thinking
1383 it need to do something with that fd.
1385 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
1387 * debian/nfs-kernel-server.init(start,stop) mount the nfsd
1388 filesystem, if available, before starting nfs services, and
1389 unmount it afterwards.
1390 * etc/nodist/nfs-server: ditto
1391 * etc/redhat/nfs.init: likewise
1392 * etc/redhat/nfs: add "MOUNT_NFSD" flag to control above.
1394 2004-06-08 NeilBrown <neilb@cse.unsw.edu.au>
1396 * utils/exportfs/exportfs.c: Don't rmtab_read if new_cache, it
1398 * support/nfs/cacheio.c(cache_flush): Change order in which caches
1399 are flushed so that dependancies don't keep things in the cache
1402 2004-03-18 Chip Salzenberg <chip@pobox.com>
1404 * debian/changelog: Version 1.0.6-2.
1406 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
1407 from "J. Bruce Fields" <bfields@fieldses.org>
1409 * utils/mountd/cache.c: call auth_reload to make sure auth data is
1410 current before responding to kernel upcall.
1412 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
1413 Based on patch from Greg Banks <gnb@melbourne.sgi.com>
1415 * utils/exportfs/exports.man: Document fsid= option.
1417 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
1421 * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
1422 support/include, and depend in "predep"
1423 * support/export/Makefile, tools/rpcgen/Makefile,
1424 utils/statd/Makefile: add "predep" rule so that "make dep" works.
1425 * Makefile: allow a simple "make" to run ./configure and "make dep"
1427 * configure.in, nfs-utils.spec: Update version to 1.0.6
1430 2003-09-12 Chip Salzenberg <chip@pobox.com>
1432 * debian/changelog: Version 1.0.6-1.
1434 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1436 * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
1438 * utils/statd/statd.c(main): Ditto.
1440 michael <michael@newdream.net> discovered that svc_setreqsize
1441 in glibc can segfault if RLIMIT_NOFILE is bigger than
1442 FD_SETSIZE, so a simple solution is to impose a hard limit.
1444 2003-09-09 Chip Salzenberg <chip@pobox.com>
1446 * debian/changelog: Version 1.0.5-3.
1447 * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
1448 on invalid reverse DNS.
1449 * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
1450 * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
1451 * tools/rpcgen/rpc_parse.c (def_union): Likewise.
1453 2003-08-22 Chip Salzenberg <chip@pobox.com>
1455 * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
1456 N_*, to avoid conflict with ISO C built-in log() function.
1457 * utils/statd/*.c: Use note().
1459 2003-08-20 Chip Salzenberg <chip@pobox.com>
1461 * debian/changelog: Version 1.0.5-2.
1463 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
1465 * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
1468 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
1470 * support/include/nfs/export.h, support/nfs/exports.c,
1471 utils/exportfs/exports.c, utils/mountd/mountd.c: change
1472 NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
1473 meaning. Also remove meaningless
1474 NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
1476 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
1478 * support/export/xtab.c, support/include/nfslib.h,
1479 support/nfs/cacheio.c, support/nfs/nfssvc.c,
1480 utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
1481 utils/exportfs/nfsd.man, utils/mountd/cache.c: support
1482 /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
1483 (nfs-utils-1.0.5-post2)
1485 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
1487 * support/nfs/nfsexport.c: open channel file O_WRONLY when
1489 * utils/mountd/cache.c: maintain mountlist when new_cache is
1490 active. Also use O_WRONLY for channel files.
1491 * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
1492 rather than an nfs_export.
1493 * utils/mountd/rmtab.c: ditto.
1494 (nfs-utils-1.5.0-post1)
1496 2003-07-24 Chip Salzenberg <chip@pobox.com>
1498 * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
1499 use Debian security team's cleaner approach.
1500 * debian/changelog: Version 1.0.5-1.
1501 * debian/nfs-kernel-server.init: Cosmetic changes.
1503 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
1506 1.0.4 was a bit of a brown-paper-bag-release because of the extra
1507 'free' in auth.c. So I'm releasing this just a few days later.
1509 * support/nfs/cacheio.c(cache_flush): Correct test for 'open
1511 * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
1512 check if new_cache is enabled, error if not, flush and exit if it
1514 * utils/exportfs/exportfs.man: Explain -f option and explain the
1515 two different modes that exportfs can work in.
1516 * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
1517 option wasn't given.
1518 * utils/mountd/mountd.man: Record the change if default behaviour
1520 * configure.in, nfs-utils.spec: update version to 1.0.5 and
1523 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
1525 * utils/mountd/mountd.c(main): getopt string fix for 'o'
1526 * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
1527 * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
1529 * support/include/nfs/export.h: Reserve a bit for possible ACL
1532 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
1534 * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
1535 assorted changed to cope with section 7 of the manual.
1536 * configure.in, nfs-utils.spec: Update version to 1.0.4
1539 This is a 'pre-release' for 1.1.0 Hopefully 1.1.0 will be the
1540 baseline for 2.6 and 2.8. I.e. it should continue to work right
1541 through the 2.8 (or 3.0) kernel series. Previous releases wont.
1543 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>
1544 Steve Dickson <SteveD@redhat.com>
1547 * utils/statd/statd.c: create a pidfile with pid of statd, and
1548 truncate it when statd exists.
1549 * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
1550 and warn if this is root.
1551 * utils/statd/statd.c: when statd forks, connect child to parent
1552 with a pipe, and send a byte down the pipe once the child is
1554 * Makefile: create and chown sm, sm.bak, state when "make install"
1555 * configure.in: add --with-statduser= option which defaults to
1556 "rpcuser" or "nobody"
1557 * config.mk.in: pass "statduser" through to Makefile
1559 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
1561 * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
1562 used as the size was changed somewhere in 2.5.60-2.5.70. Without
1563 this nfs-utils compiles against 2.6 headers will not work on a
1566 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
1568 * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
1569 set number of threads by writing to there. This means it will
1570 still work when the syscall interface goes away in 2.7.
1572 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
1573 fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
1575 * utils/exportfs/exportfs.c(unexportfs): improve host comparison
1576 so as to only export the wildcard exports that were asked for.
1577 * support/export/export.c(export_allowed): changed to return the
1578 nfs_export rather than a "struct exportent", as m_changed is
1580 * support/export/rmtab.c(rmtab_read): modified to deal with
1581 interface change for export_allowed(), and enhanced to preserve
1582 m_changed flag when a wild-card export causes the creation of
1583 a non-wildcard export.
1585 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
1586 Steve Dickson <SteveD@redhat.com>
1588 * utils/mountd/mountd.man: Add valid kinds of debugging.
1589 * utils/mountd/mountd.c(main): ignore SIGPIPE
1590 * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
1591 we don't get warnings about unavailable stats that weren't asked
1594 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
1596 * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
1597 via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
1598 'forever', so things disappear out of the cache rather than just
1601 2003-06-16 "J. Bruce Fields" <bfields@fieldses.org>
1603 * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
1606 2003-06-16 NeilBrown <neilb@cse.unsw.edu.au>
1608 * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
1609 etc/redhat/nfs.init: when checking if V3 is supported, make sure
1610 nfs server 'knows' about 127.0.0.1 first.
1612 2003-06-10 Chip Salzenberg <chip@pobox.com>
1614 * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
1615 * debian/changelog: Version 1.0.3-2.
1617 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
1618 NeilBrown <neilb@cse.unsw.edu.au>
1620 utils/nfsstat/nfsstat.c(print_callstats): use unsigned
1621 long long to avoid overflow when printing stats.
1623 2003-05-30 NeilBrown <neilb@cse.unsw.edu.au>
1625 * support/export/export.c, support/include/nfslib.h,
1626 support/nfs/export.c, utils/exportfs/exportfs.c,
1627 utils/mountd/mountd.c: new export option "mountpoint"
1628 If no path is given, then the export point must be a
1629 mount point, or it won't be exported. If a path is
1630 given (e.g. mountpoint=/path) then that path must be
1631 a mountpoint or the exportpoint won't be exported.
1632 * utils/exportfs/exportfs.man: document mountpoint option.
1633 * support/misc/mountpoint.c: New file with is_mountpoint()
1634 to determine if something is a mountpoint.
1636 2003-05-23 NeilBrown <neilb@cse.unsw.edu.au>
1638 * utils/mountd/cache.c(cache_get_filehandle): take a separate path
1639 argument as we might not be getting the filehandle for the
1641 * utils/mountd/mountd.c(get_rootfh): pass real path when calling
1642 cache_get_filehandle.
1643 * utils/mountd/mountd.c(get_rootfh): check export point and
1644 requested directory are on the same filesystem, and complain if
1647 2003-05-22 NeilBrown <neilb@cse.unsw.edu.au>
1649 * utils/mountd/auth.c(auth_authenticate_internal): make sure
1650 portnumber is still checked when using new cache lookup.
1652 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
1654 * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
1655 Don't actually talk to kernel when new cache is in effect, except
1657 * utils/exportfs/exportfs.c: add -f option to fully flush cache.
1658 * support/export/xtab.c: Only rename new xtab into place if it has
1659 changed, thus preserving modify date for exportfs to use when
1661 * support/nfs/cacheio.c: Add cache_flush
1662 * support/export/xtab.c: Only rename new xtab into place if it has
1663 changed, thus preserving modify date for exportfs to use when
1666 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
1668 * support/export/client.c: Add client_compose, client_member to
1669 handle new composite client names
1670 * support/include/exportfs.h: Declare above functions.
1671 * utils/mountd/auth.c: use client_compose to determine calling
1672 client if new cache is being used.
1673 * utils/mountd/auth.c: call cache_export to export a filesystem if
1674 new_cache, check if new cache is used, and call my_svc_run instead
1676 * utils/mountd/svc_run.c: new file defining my_svc_run
1677 * utils/mountd/cache.c: new file for handling cache upcalls.
1678 * support/nfs/cacheio.c(check_new_cache): new function to check if
1679 new cache should be used.
1682 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
1684 * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
1685 * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
1686 * utils/exportfs/exportfs.c(dump): ditto
1688 2003-05-21 NeilBrown <neilb@cse.unsw.edu.au>
1690 * support/export/hostname.c(get_reliable_hostbyaddr): new function
1691 to get host name from address with full checking of authenticity.
1692 * support/include/misc.h: declare above function
1693 * utils/mountd/auth.c(auth_authenticate_internal): remove all
1694 logic for authenticating address.
1695 * utils/mountd/auth.c(auth_authenticate): call new
1696 get_reliable_hostbyaddr to to hostname lookup before calling _internal.
1699 2003-03-30 NeilBrown <neilb@cse.unsw.edu.au>
1701 * tools/rpcgen/rpc_main.c(find_cpp): removed
1702 * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp",
1703 then try hard-coded paths.
1705 2003-03-26 Chip Salzenberg <chip@pobox.com>
1707 * debian/changelog: Version 1.0.3-1.
1709 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
1711 * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
1712 "const char*", not "char*".
1714 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
1716 * configure.in (VERSION): Set to "1.0.3".
1717 * nfs-utils.spec: Likewise.
1718 * configure: Regenerated.
1720 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
1722 * support/nfs/cacheio.c: New File - support for read/writing
1723 to export cache in /proc/rpc/*/channel
1724 * support/nfs/Makefile: compile cacheio.c
1725 * support/include/nfslib.h: declare cacheio.c functions
1726 * support/nfs/nfsexport.c: export and unexport through
1727 /proc/rpc/*/channel if possible, as old syscall interface
1728 may not survive into 2.6 on all architectures.
1730 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>
1731 Ben Leslie <benno@sesgroup.net>
1733 * support/nfs/rpcmisc.c(rpc_init): change test for ignoring
1734 "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0). The
1735 former would incorectly ignore defport if the application
1736 explicitly set __rpcfdtype. The later is sufficient to avoid the
1737 special handling in the case where stdin is an internet socket.
1739 * utils/mountd/mountd.c(main): Add 'n' to option list in
1740 getopt_long as this is a short form of --no-tcp which want being
1743 2003-02-12 Chip Salzenberg <chip@pobox.com>
1745 * debian/changelog: Version 1.0.2-2.
1747 2002-11-27 Chip Salzenberg <chip@pobox.com>
1749 * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
1750 overflow bug. Reformat per rest of source file.
1752 2002-11-19 NeilBrown <neilb@cse.unsw.edu.au>
1754 * utils/exportfs/exports.man: Correct notes about whether the wild
1755 card characters match a period. They do.
1757 2002-10-15 Juan Gomez <juang@us.ibm.com>
1759 * utils/mountd/rmtab.c (slink_safe_rename): New. Support
1761 (mountlist_add): Call slink_safe_rename instead of rename.
1763 2002-10-11 H.J. Lu <hjl@lucon.org>
1765 * support/include/exportfs.h (export_errno): New.
1767 * support/nfs/exports.c: Include <errno.h>.
1768 (export_errno): New.
1769 (getexportent): Set export_errno to EINVAL for bad option.
1770 (parseopts): Likewise.
1771 Report the location of the default sync/async option.
1773 * utils/exportfs/exportfs.c (main): Initialize export_errno to
1774 0. Return export_errno.
1776 2002-10-11 Juan Gomez <gomez@cs.sjsu.edu>
1777 NeilBrown <neilb@cse.unsw.edu.au>
1779 utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
1780 utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
1782 2002-09-16 Chip Salzenberg <chip@pobox.com>
1784 * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
1786 2002-09-15 Chip Salzenberg <chip@pobox.com>
1788 * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
1789 socket, as occurs when run from sshd.
1790 * debian/changelog: Version 1.0.2-1.
1792 2002-09-12 H.J. Lu <hjl@lucon.org>
1794 * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
1797 2002-09-12 H.J. Lu <hjl@lucon.org>
1799 * configure.in: Remove checking svctcp_socket and svcudp_socket.
1800 * configure: Regenerated.
1802 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
1803 (HAVE_SVCUDP_SOCKET): Removed.
1805 * support/include/nfslib.h: Undo the last change.
1807 2002-09-12 H.J. Lu <hjl@lucon.org>
1809 * support/include/nfslib.h (svctcp_socket): Protect it with
1811 (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
1813 2002-09-12 H.J. Lu <hjl@lucon.org>
1815 * configure.in (VERSION): Set to "1.0.2".
1816 * configure: Regenerated.
1817 * nfs-utils.spec: Likewise.
1819 2002-09-12 H.J. Lu <hjl@lucon.org>
1821 * configure.in: Check svctcp_socket and svcudp_socket.
1822 * configure: Regenerated.
1824 * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
1825 (HAVE_SVCUDP_SOCKET): New.
1827 * support/include/nfslib.h (svctcp_socket): New.
1828 (svcudp_socket): New.
1830 * support/nfs/Makefile (OBJS): Add svc_socket.o.
1832 * support/nfs/svc_socket.c: New.
1834 * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
1835 svcudp_socket if port is unspecified.
1837 * utils/nfsd/nfsd.c (main): Call getservbyname for port.
1839 * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
1840 (killer): New. Signal handler to unregister.
1841 (main): Use killer. Call svcudp_socket to get the default
1844 2002-09-02 Juan Gomez <juang@us.ibm.com>
1845 NeilBrown <neilb@cse.unsw.edu.au>
1847 Add -N option to statd to run in notify-only mode.
1849 * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
1850 * utils/statd/statd.man: document -N
1851 * utils/statd/statd.c: enabled -N, largely exists but needed to be
1852 uncommented and completed
1854 2002-09-02 Juan Gomez <juang@us.ibm.com>
1855 NeilBrown <neilb@cse.unsw.edu.au>
1857 statd to have " -P directory" arg to use that directory instead
1858 of /var/lib/nfs. This is useful for fail-over clusters.
1860 * utils/statd/statd.h: define SM_DIR etc as var, not const.
1861 * utils/statd/statd.c: define "-P" option to set SM_*
1863 * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
1864 a constant any more.
1865 * utils/statd/notify.c: ditto.
1866 * utils/statd/statd.man: document -P option.
1868 2002-08-26 Chip Salzenberg <chip@pobox.com>
1870 * utils/nfsd/nfsd.man: Fix typo.
1871 * debian/changelog: Version 1.0.1-1.
1873 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
1875 * let parseopts know if /etc/exports was being read or not,
1876 and have it only print "no sync or async" warning in that case.
1878 2002-05-06 Tom McNeal <trmcneal@attbi.com>
1879 NeilBrown <neilb@cse.unsw.edu.au>
1881 * utils/nfsstat/nfsstat.c: Handle differing format for
1882 /proc/net/rpc/nfsd between pre and post 2.4.0
1884 2002-04-09 NeilBrown <neilb@cse.unsw.edu.au>
1885 James Pearson <james-p@moving-picture.com>
1887 * support/nfs/rmtab.c(fendrmtabent): sync changes to
1888 storage before returning, as this is critical state
1890 2002-04-08 Sean O'Connell <sean@ee.duke.edu>
1891 H.J. Lu <hjl@lucon.org>
1893 * etc/redhat/nfs: New.
1895 2002-04-08 H.J. Lu <hjl@lucon.org>
1897 * etc/redhat/nfs.init: Updated.
1899 * nfs-utils.spec.in: Updated.
1900 * nfs-utils.spec: Regenerated.
1902 * utils/mountd/mountd.c (longopts): Fix a typo.
1904 * utils/mountd/mountd.man: Updated.
1906 2002-04-07 H.J. Lu <hjl@lucon.org>
1908 * etc/redhat/nfslock.init (restart): Just do stop and start.
1910 * etc/redhat/nfs.init: Fix a typo.
1912 2002-04-07 H.J. Lu <hjl@lucon.org>
1914 * configure.in (VERSION): Set to "1.0.1".
1915 * configure: Regenerated.
1916 * nfs-utils.spec: Likewise.
1918 * README: Updated for 1.0.1.
1920 2002-04-07 Sean O'Connell <sean@ee.duke.edu>
1921 H.J. Lu <hjl@lucon.org>
1923 * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
1925 2002-02-28 Steven Whitehouse <steve@gw.chygwyn.com>
1926 NeilBrown <neilb@cse.unsw.edu.au>
1928 Add support for fsid=nn export option so that device
1929 numbers don't go in filehandles.
1930 * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
1931 is set, pass the fsid in-place of the device number
1932 * support/nfs/exports.c: parse and print fsid= option.
1933 Also check if efname has been set, and use "command line"
1934 instead in error messages.
1935 Also, use strtol instead of atoi for anon[ug]id= so that
1936 bad numbers cause errors.
1938 2002-01-17 Adrian Drzewiecki <drze@MissionCriticalLinux.com>
1939 NeilBrown <neilb@cse.unsw.edu.au>
1941 * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
1942 flag so that "sync" becomes the default.
1943 Check that either "sync" or "async" is given as an option
1944 and warn if neither are present
1945 * utils/exportfs/exports.man: change documentation for "sync"
1946 to be documentation for "async".
1947 * utils/exportfs/exportfs.man: note that "sync" is the default
1951 2002-01-02 Chip Salzenberg <chip@pobox.com>
1953 * support/export/nfsctl.c (expsetup): Don't export entries that
1954 specify id mappings not supported by the kernel. No extant kernel
1955 supports any significant mapping, only 'identity' (i.e. none).
1956 When other mappings are supported, this code will need changing.
1957 * debian/changelog: Version 1.0-2.
1959 2001-12-26 Chip Salzenberg <chip@pobox.com>
1961 * nfs-utils.spec (Version): Set to "1.0".
1962 * configure.in (VERSION): Likewise.
1963 * configure: Regenerated.
1964 * README: Rewritten.
1965 * debian/changelog: Version 1.0-1.
1967 * utils/exportfs/exports.man: Emphasize the need for options to
1968 immediately follow client names. Explain that wildcards don't
1969 usually work on addresses, but may work when reverse DNS fails.
1970 Comment out a leftover TP that was TPing our indentation.
1971 * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
1972 utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
1973 * debian/changelog: Version 0.3.3-6.
1975 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
1977 * support/export/client.c(client_lookup): If a host has multiple
1978 IP addresses, then we must always use the result of a
1979 gethostbyname, not that of gethostbyaddr for exporting
1981 2001-12-20 NeilBrown <neilb@cse.unsw.edu.au>
1983 * support/export/client.c (client_lookup): use strcasecmp when
1984 comparing host names
1985 * support/nfs/export.c (getexportent): add fromkernel arg and use
1986 different defaults as kernels prior to 2.4.11 assume different
1987 defaults in /proc/fs/nfs/exports
1988 * support/include/nfslib.h, support/export/export.c,
1989 support/export/xtab.c: support extra "fromkernel" arg for
1992 2001-12-13 Chip Salzenberg <chip@pobox.com>
1994 * debian/changelog: Version 0.3.3-5.
1996 2001-11-26 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
1998 * support/nfs/xio.c (xskip): Call `xungetc' instead of
1999 `ungetc' to keep x_line more properly.
2001 2001-11-26 Chip Salzenberg <chip@pobox.com>
2003 * utils/showmount/showmount.c (main): Don't assume that strings
2004 starting with digits are IP addresses.
2005 * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
2006 /dev/null before nfssvc(). Use syslog to report nfssvc errors.
2007 * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
2008 utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
2009 man pages: We check host names *and* addresses with tcpwrappers.
2010 * debian/changelog: Version 0.3.3-4.
2012 2001-11-21 Chip Salzenberg <chip@pobox.com>
2014 * support/nfs/clients.c (cfname): Added: current clients file name.
2015 (setnfsclntent): Set it.
2016 ({get,end}nfsclntent, syntaxerr): Use it.
2017 * support/nfs/exports.c (efname): Added: current exports file name.
2018 (setnfsexportent): Set it.
2019 (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
2020 (parseopts): Accept old-style "crossmnt" option, for old xtabs.
2021 * debian/changelog: Version 0.3.3-3.
2023 2001-10-11 Chip Salzenberg <chip@pobox.com>
2025 * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
2026 * debian/changelog: Version 0.3.3-2.
2028 2001-10-08 Chip Salzenberg <chip@pobox.com>
2030 * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
2031 * utils/Makefile.in: Remove old Makefile in target 'distclean'.
2032 * utils/mountd/mountd.man: Update paths to /var/lib.
2033 * debian/*: Version 0.3.3-1, with Debian-specific fixes.
2035 2001-10-06 Preston Brown <pbrown@redhat.com>
2037 * utils/nfsstat/nfsstat.man: Updated.
2039 2001-09-24 H.J. Lu <hjl@lucon.org>
2041 * configure.in (VERSION): Set to "0.3.3".
2042 * configure: Regenerated.
2043 * nfs-utils.spec: Likewise.
2045 * README: Updated for 0.3.3.
2047 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
2049 Arrange that "exportfs -au" never does DNS lookup:
2051 * support/export/client.c (client_lookup) : add "canonical"
2052 flag which says that the hostname is known to be canonical, so
2055 * support/export/export.c (export_create) : add "canonical"
2056 flag to be passed down to client_lookup
2057 * support/export/export.c (export_lookup) : Likewise
2059 * support/export/xtab.c (xtab_read) : pass appropriate
2060 "canonical" flag to export_lookup and export_create:
2061 set if reading list of filesystems currently exports
2064 * support/export/export.c (export_read) : pass 0 as
2065 "canonical" flag to export_lookup and export_create
2066 * support/export/rmtab.s (rmtab_read) : Likewise
2068 * support/include/exportfs.h : redeclare various routines
2069 to have "canonical" flag
2071 * utils/exportfs/exportfs.c (main) : redo logic for
2072 "-au" to read in what is currently exported, but never even
2073 look at what "should" be exported.
2075 * utils/exportfs/exportfs.c (unexportall) : remove this
2076 routine. Functionality is completely included in
2079 * utils/exportfs/exportfs.c (exportfs) : set "canonical"
2080 flag to zero in calls to export_lookup and export_create.
2083 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
2084 Anne Milicia <milicia@missioncriticallinux.com>
2086 * support/export/client.c (client_lookup) call gethostbyadd
2087 to make sure that we have a canonical hostname, even for
2089 * utils/exportfs/exportfs.c (exportfs) Likewise
2091 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
2093 * support/nfs/exports.c (putexportent): \octal quote any spaces
2095 * support/nfs/xio.c (xgettok): recognise double-quote and
2096 \octal quoting in path names
2097 * utils/exportfs/exports.man: document quoting conventions
2100 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
2102 * utils/mountd/auth.c (auth_authenticate_internal): Reverse
2103 change from 2000-08-02: It causes problems if someone exports
2104 to both a hostname and IP addresses. nfs-utils must be
2105 consistant about the canonical name that it chooses.
2107 2001-08-17 Ragnar Kjørstad <nfs@ragnark.vestdata.no>
2108 H.J. Lu <hjl@lucon.org>
2110 * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
2112 * utils/statd/statd.c (longopts): Add "name".
2113 (usage): Add "-n/--name".
2114 (main): Set MY_NAME with "-n/--name".
2116 * utils/statd/state.c (change_state): Set MY_NAME only if it
2119 * utils/statd/statd.man: Updated for "-n/--name".
2121 2001-07-26 H.J. Lu <hjl@lucon.org>
2123 * nfs-utils.spec (Release): Set to 8.
2125 2001-07-25 H.J. Lu <hjl@lucon.org>
2127 * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
2130 2001-06-27 H.J. Lu <hjl@lucon.org>
2132 * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
2134 2001-06-27 H.J. Lu <hjl@lucon.org>
2136 * utils/rquotad/rquota_server.c: Don't call statfs () for
2137 the block size. Use BLOCK_SIZE instead.
2139 2001-06-27 H.J. Lu <hjl@lucon.org>
2141 * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
2142 (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
2144 * configure.in (enable_nfsv3): Set to yes by default.
2145 (--enable-rquotad): Added
2146 (AC_PROG_CXX): Removed.
2147 (AC_OUTPUT): Add utils/Makefile.
2148 (CC_FOR_BUILD): Renamed from BUILD_CC.
2149 * configure: Regenerated.
2151 * utils/Makefile: Removed.
2153 * utils/Makefile.in: New.
2155 * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
2157 (CC_FOR_BUILD): Renamed from BUILD_CC.
2158 * nfs-utils.spec: Regenerated.
2160 2001-06-15 Chip Salzenberg <chip@debian.org>
2162 * debian/changelog: Version 0.3.2-2.
2163 * debian/*.init: Minor fixes.
2165 2001-06-07 Lon H. Hohberger <hohberger@missioncriticallinux.com>
2167 * etc/nodist/nfs-server: Fixed a bug where the script would
2168 disable mounts from NFSv3 clients if NFSv3 is present.
2170 2001-06-05 H.J. Lu <hjl@lucon.org>
2172 * utils/mountd/mountd.c (longopts): Add "descriptors/o".
2173 (main): Support --descriptors/-o to set the limit of the number
2174 of open file descriptors.
2177 * utils/mountd/mountd.man: Updated for --descriptors/-o.
2179 2001-06-04 H.J. Lu <hjl@lucon.org>
2181 * nfs-utils.spec (Release): Set to 6.
2183 2001-05-28 H.J. Lu <hjl@lucon.org>
2185 * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
2186 * utils/mountd/mountd.c (main): Likewise.
2187 * utils/nfsd/nfsd.c (main): Likewise.
2188 * utils/rquotad/rquota_svc.c (main): Likewise.
2190 2001-05-06 Anne Milicia <milicia@missioncriticallinux.com>
2192 * support/export/client.c (client_check): Check IP address
2195 2001-05-06 Neil Brown <neilb@cse.unsw.edu.au>
2197 * support/export/client.c (client_gettype): Treat `*' as
2200 2001-04-22 H.J. Lu <hjl@lucon.org>
2202 * nfs-utils.spec.in: Fix a typo.
2203 * nfs-utils.spec: Regenerated.
2205 2001-04-21 H.J. Lu <hjl@lucon.org>
2207 * nfs-utils.spec.in: Fix cross build.
2208 * nfs-utils.spec: Regenerated.
2209 (Release): Set to 5.
2211 2001-04-18 H.J. Lu <hjl@lucon.org>
2213 * nfs-utils.spec.in: Support cross build.
2214 * nfs-utils.spec: Regenerated.
2215 (Release): Set to 4.
2218 * config.guess: New.
2220 * config.mk.in (BUILD_CC): New.
2221 (CC): Set to $(BUILD_CC) if BUILD is defined.
2224 (RANLIB): Set to @RANLIB@.
2226 * configure.in: Check BUILD_CC, RANLIB, AR and LD.
2227 * configure: Regenerated.
2229 * tools/rpcgen/Makefile (BUILD): Set to true.
2231 2001-04-01 Chip Salzenberg <chip@valinux.com>
2233 * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
2234 redundant, and sometimes broken, declaration of svc_fdset;
2236 * support/nfs/rpcmisc.c (closedown): Likewise.
2238 2001-03-21 H.J. Lu <hjl@lucon.org>
2240 * nfs-utils.spec: Regenerated.
2241 (Release): Set to 3.
2243 2001-03-21 Ion Badulescu <ionut@cs.columbia.edu>
2245 * utils/statd/statd.c (main): make sure file descriptors 0-2
2246 are open to /dev/null.
2248 2001-03-21 H.J. Lu <hjl@lucon.org>
2250 * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
2251 * support/nfs/rpcmisc.c: Likewise.
2252 * utils/rquotad/rquota_svc.c: Likewise.
2253 * utils/rquotad/rquotad.man: Likewise.
2254 * utils/statd/Makefile: Likewise.
2255 * utils/statd/rmtcall.c: Likewise.
2256 * utils/statd/simulate.c: Likewise.
2257 * utils/statd/statd.c: Likewise.
2258 * utils/statd/statd.man: Likewise.
2260 2001-03-11 H.J. Lu <hjl@lucon.org>
2262 * configure.in (RELEASE): New. Default to 1, set by
2263 --with-release=XXX. Substitute nfs-utils.spec.
2264 * nfs-utils.spec.in (Release): Set to @RELEASE@.
2265 * configure: Regenerated.
2266 * nfs-utils.spec: Likewise.
2268 2001-03-11 H.J. Lu <hjl@lucon.org>
2270 * utils/rquotad/rquotad.man: Fix a typo.
2272 2001-03-11 H.J. Lu <hjl@lucon.org>
2274 * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
2275 * support/nfs/rpcmisc.c: Likewise.
2276 * utils/rquotad/rquota_svc.c: Likewise.
2277 * utils/rquotad/rquotad.man: Likewise.
2278 * utils/statd/Makefile: Likewise.
2279 * utils/statd/rmtcall.c: Likewise.
2280 * utils/statd/simulate.c: Likewise.
2281 * utils/statd/statd.c: Likewise.
2282 * utils/statd/statd.man: Likewise.
2284 2001-03-10 H.J. Lu <hjl@lucon.org>
2286 * configure.in (VERSION): Set to "0.3.2".
2287 * configure: Regenerated.
2288 * nfs-utils.spec: Likewise.
2290 * README: Updated for 0.3.2.
2292 2001-03-10 Tavis Barr <tavis@boole.isetr.columbia.edu>
2294 * utils/rquotad/rquotad.man: Updated for -p.
2295 * utils/statd/statd.man: Likewise.
2297 2001-03-10 Ion Badulescu <ionut@cs.columbia.edu>
2299 * support/nfs/rpcmisc.c: export makesock()
2301 * support/include/rpcmisc.h (makesock): Declared.
2303 * utils/rquotad/rquota_svc.c: added longopts, added support for
2304 specifying the port to bind to on the command line.
2306 * utils/statd/statd.c: ditto, also specify port used for
2307 outgoing connections.
2308 (do_regist): Removed.
2310 * utils/statd/rmtcall.c (statd_get_socket): Renamed from
2311 get_socket. Make it extern.
2313 * utils/statd/simulate.c (daemon_simulator): Call rpc_init
2314 instead of do_regist.
2316 * utils/statd/Makefile (LIBS): link with our own libnfs
2318 2001-03-09 H.J. Lu <hjl@lucon.org>
2320 * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
2321 * etc/nodist/nfs-client: Likewise.
2323 2001-02-26 Chip Salzenberg <chip@valinux.com>
2325 * debian/changelog: Version 0.3.1-1.
2326 * Mention upstream source and license in copyright file.
2327 * Add build-Depends for debhelper and libwrap0-dev.
2329 2001-02-20 Lon Hohberger <hohberger@missioncriticallinux.com>
2331 * etc/nodist/nfs-server: Changed chkconfig line to 60 20
2332 * etc/nodist/nfs-client: Likewise.
2334 2001-02-18 Lon Hohberger <hohberger@missioncriticallinux.com>
2336 * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
2339 2001-02-17 Patrick J. LoPresti <patl@curl.com>
2341 * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
2344 2001-02-14 H.J. Lu <hjl@lucon.org>
2346 * utils/statd/rmtcall.c: Include <time.h>.
2347 * utils/statd/svc_run.c: Likewise.
2349 2001-02-14 H.J. Lu <hjl@lucon.org>
2351 * configure.in (VERSION): Set to "0.3.1".
2352 * configure: Regenerated.
2353 * nfs-utils.spec: Likewise.
2355 * README: Updated for 0.3.1.
2357 2001-02-14 H.J. Lu <hjl@lucon.org>
2359 * support/nfs/rpcmisc.c: Include <time.h>.
2361 2001-02-14 Chip Salzenberg <chip@valinux.com>
2363 * debian/control: Change priority of nhfsstone package to 'extra'.
2365 2001-02-12 Chip Salzenberg <chip@valinux.com>
2367 * debian/changelog: Version 0.3-2.
2369 2001-02-02 H.J. Lu <hjl@lucon.org>
2371 * support/include/rpcmisc.h (rpc_init): Remove bufsize.
2373 * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
2374 out SO_SNDBUF/SO_RCVBUF.
2375 (rpc_init): Remove bufsize and remove socksz in calls to
2378 * utils/mountd/mountd.c (main): Remove bufsize in calls to
2381 2001-01-28 Chip Salzenberg <chip@valinux.com>
2383 * debian/changelog: Version 0.3-1.
2385 2001-01-25 H.J. Lu <hjl@lucon.org>
2387 * configure.in (VERSION): Set to "0.3".
2388 * configure: Regenerated.
2389 * nfs-utils.spec: Likewise.
2391 * README: Updated for 0.3.
2393 2001-01-25 H.J. Lu <hjl@lucon.org>
2395 * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
2397 2001-01-20 Chip Salzenberg <chip@valinux.com>
2399 * support/include/xio.h (xgetc): Declare to return int.
2400 * support/nfs/xio.c (xgetc): Return int.
2401 (xgettok, xskip, xskipcomment): Use int for value of xgetc.
2402 * utils/statd/statd.c (main): Use int for value of getopt.
2403 * debian/changelog: Version 0.2.1-5.
2405 2000-12-10 Chip Salzenberg <chip@valinux.com>
2407 * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
2408 program and procedure numbers of kernel lockd's callback. Also,
2409 besides the old (and broken) procedure #24, allow #16 per Trond.
2411 2000-12-03 Chip Salzenberg <chip@valinux.com>
2413 * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
2414 * debian/control: Let nhfsstone replace files in nfs-kernel-server.
2415 * debian/changelog: Version 0.2.1-4.
2417 2000-11-27 Tobias Ringstrom <tori@tellus.mine.nu>
2419 * utils/mountd/auth.c (auth_authenticate): Log the bad path
2422 2000-11-24 Neil Brown <neilb@cse.unsw.edu.au>
2424 * support/nfs/exports.c (getexportent): Check for host name
2425 without option, or options without hostname, and print a warning,
2426 as this is most likely a typo.
2428 2000-11-19 Chip Salzenberg <chip@valinux.com>
2430 * debian/control: Add dependency on portmap.
2431 * debian/changelog: Version 0.2.1-3.
2433 2000-11-10 H.J. Lu <hjl@lucon.org>
2435 * nfs-utils.spec.in: Don't use libtool.
2436 Add ChangeLog and COPYING to doc.
2437 * nfs-utils.spec: Rebuild.
2439 2000-11-09 H.J. Lu <hjl@lucon.org>
2441 * etc/redhat/nfs.init (start): Back out the last change.
2443 2000-11-09 H.J. Lu <hjl@lucon.org>
2445 * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
2446 TCP is not supported by kernel.
2448 * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
2450 * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
2451 (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
2453 * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
2455 2000-10-24 Lon Hohberger <hohberger@missioncriticallinux.com>
2457 * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
2458 * utils/statd/rmtcall.c: Add some IP address paranoia when doing
2459 callbacks to local lockd.
2461 2000-10-18 Scott McDermott <mcdermot@questra.com>
2463 * utils/exportfs/exports.man: Updated for CIDR netmask.
2465 2000-10-17 Scott McDermott <mcdermot@questra.com>
2467 * support/export/client.c (client_init): Support CIDR netmask
2470 2000-10-11 H.J. Lu <hjl@lucon.org>
2472 * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
2473 * configure: Rebuilt.
2475 2000-10-06 Lon Hohberger <hohberger@missioncriticallinux.com>
2477 * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
2478 "/var/lib/nfs/state".
2480 2000-10-05 Lon Hohberger <hohberger@missioncriticallinux.com>
2482 * utils/statd/statd.h (run_mode): New global bitmask of runtime
2483 behaviors: fg/bg, logging, etc.
2484 * utils/statd/statd.c: New command line options: -V -h -? -d .
2485 * utils/statd/statd.man: Update for changes to statd.
2487 * utils/statd/log.h (log_init): Remove parameter of function; use
2488 global variable "name_p" instead.
2489 * utils/statd/log.c: Add support for logging to stderr.
2491 * utils/statd/notlist.c: Partially rewrite notify list handling
2492 functions. Eliminate run-off-end-of-list bug when calling
2493 nlist_insert_timer. Add lots of comments.
2495 2000-09-27 H.J. Lu <hjl@lucon.org>
2497 * README: Updated for RedHat 7.0.
2499 2000-09-27 H.J. Lu <hjl@lucon.org>
2501 * nfs-utils.spec: Rebuild.
2503 2000-09-27 H.J. Lu <hjl@lucon.org>
2505 * README: Updated for 0.2.1.
2507 2000-09-27 H.J. Lu <hjl@lucon.org>
2509 * nfs-utils.spec.in: Updated to use rpm macros and support
2512 2000-09-25 H.J. Lu <hjl@lucon.org>
2514 * configure.in (VERSION): Set to "0.2.1".
2515 * configure: Regenerated.
2516 * nfs-utils.spec: Updated.
2518 2000-09-25 H.J. Lu <hjl@lucon.org>
2520 * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
2521 non-NULL hostent is always returned.
2523 2000-09-11 Ion Badulescu <ionut@cs.columbia.edu>
2525 * etc/redhat/nfslock.init: don't kill lockd processes that do not
2526 have an executable (i.e. kernel threads)
2528 2000-09-01 H.J. Lu <hjl@lucon.org>
2530 * README: Updated for 0.2.
2532 2000-09-01 Jay Weber <jweber@valinux.com>
2534 * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
2535 supporting version 3 of nfs if available, else it will fall back to
2536 version 2 support only.
2538 2000-08-30 H.J. Lu <hjl@lucon.org>
2540 * configure.in (VERSION): Set to "0.2".
2541 * configure: Regenerated.
2542 * nfs-utils.spec: Updated.
2544 2000-08-25 H.J. Lu <hjl@lucon.org>
2546 * support/misc/tcpwrapper.c (logit): Modify the log output.
2548 2000-08-25 Ion Badulescu <ionut@cs.columbia.edu>
2550 * utils/rquotad/rquotad.man, utils/statd/statd.man,
2551 utils/mountd/mountd.man: updated
2553 * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
2554 * utils/rquotad/Makefile: fix comment
2556 * support/misc/tcpwrapper.c (logit): added comment about waiting
2557 for the children after fork()
2559 * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
2560 zombies behind (from logit()'s fork)
2561 * utils/rquotad/rquota_svc.c (main): ditto
2562 * utils/statd/statd.c (main): ditto
2564 * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
2565 to check_default instead of 0, for prognum
2567 * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
2568 to check_default instead of 0, for prognum
2570 * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
2571 HAVE_TCP_WRAPPER is defined.
2572 (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
2573 defined. Reject an RPC call if check_default () fails.
2575 2000-08-25 H.J. Lu <hjl@lucon.org>
2577 * support/include/tcpwrapper.h: New for the tcp wrapper
2579 * support/misc/Makefile: Likewise.
2580 * support/misc/from_local.c: Likewise.
2581 * support/misc/tcpwrapper.c: Likewise.
2583 * aclocal.m4 (AC_TCP_WRAPPER): New.
2584 * configure.in: Use it. Substitute LIBWRAP.
2585 * configure: Rebuilt.
2587 * config.mk.in (LIBNSL): New.
2588 (LIBWRAP): Likewise.
2590 * support/Makefile (SUBDIRS): Add misc.
2592 * support/lib/Makefile (LIBS): Add libmisc.a.
2594 * utils/rquotad/Makefile (LIBS): Add
2596 -lmisc $(LIBWRAP) $(LIBNSL)
2598 * utils/statd/Makefile (LIBS): Likewise.
2600 * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
2601 HAVE_TCP_WRAPPER is defined.
2602 (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
2603 defined. Reject an RPC call if check_default () fails.
2605 * utils/statd/statd.c: Include "tcpwrapper.h" if
2606 HAVE_TCP_WRAPPER is defined.
2607 (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
2608 check_default () before calling sm_prog_1 (). Define it as
2609 sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
2611 2000-08-25 Chip Salzenberg <chip@valinux.com>
2613 * debian/*: Complete Debian build support.
2614 * etc/debian/*: Remove.
2616 2000-08-24 Neil Brown <neilb@cse.unsw.edu.au>
2618 * support/export/client.c(client_check): removed the "dot+1" as a
2619 ypdomain argument to innetgr as this is entirely bogus.
2620 It should always be NULL.
2622 2000-08-23 Neil Brown <neilb@cse.unsw.edu.au>
2624 * support/export/xtab.c(xtab_read): introduce new mode for
2625 reading xtab. i.e. a list of exports that might be known to the
2626 kernel, or might not. These are flagged as m_exported == -1
2627 * support/export/xtab.c(xtab_mount_read): call xtab_read with new
2628 value "2" for xtab, meaning don't trust this too much.
2629 * support/include/exportfs.h(struct mexport): changed m_exported
2630 from one bit to an int so that it can hold new value
2631 * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
2632 kernel if it is uncertain whether the kernel knows (m_exported == -1)
2633 * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
2636 * support/nfs/xio.c(xflock): added O_CREAT when getting
2637 a write lock so that missing files aren't fatal.
2639 * etc/debian/nfs-common: new file from "potato"
2640 * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
2642 2000-08-09 H.J. Lu <hjl@lucon.org>
2644 * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
2645 startup to ensure all existing clients work fine.
2647 * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
2648 to xtab_read () for reading _PATH_XTAB.
2650 2000-08-02 H.J. Lu <hjl@lucon.org>
2652 * utils/mountd/auth.c (auth_authenticate_internal): Try to
2653 avoid the reverse name lookup.
2655 2000-07-04 H.J. Lu <hjl@lucon.org>
2657 * utils/statd/log.c: Include <stdlib.h> for exit ().
2659 * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
2662 2000-07-04 H.J. Lu <hjl@lucon.org>
2664 * configure.in (VERSION): Set to "0.1.9.1".
2665 * configure: Regenerated.
2666 * nfs-utils.spec: Updated.
2670 2000-07-04 Neil Brown <neilb@cse.unsw.edu.au>
2672 * support/export/hostname.c (hostent_dup): Handle the NULL
2675 2000-07-03 H.J. Lu <hjl@lucon.org>
2677 * README: Update the util-linux requirement.
2679 2000-07-03 H.J. Lu <hjl@lucon.org>
2681 * configure.in (VERSION): Set to "0.1.9".
2682 * configure: Regenerated.
2683 * nfs-utils.spec: Updated.
2687 2000-07-03 H.J. Lu <hjl@lucon.org>
2689 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
2690 stop to ensure all clients can still access the server
2691 before it is shutdown.
2693 2000-06-30 Jeff Uphoff <juphoff@transmeta.com>
2695 * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
2696 calls with format string.
2698 2000-06-28 Chip Salzenberg <chip@valinux.com>
2700 * utils/statd/log.c (log): Call syslog with format string.
2702 2000-06-27 H.J. Lu <hjl@lucon.org>
2704 * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
2705 instead of OPEN_MAX.
2707 2000-06-27 H.J. Lu <hjl@lucon.org>
2711 2000-06-27 H.J. Lu <hjl@lucon.org>
2713 * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
2714 startup to ensure all existing clients are exported.
2716 * configure.in (VERSION): Set to "0.1.8.2".
2717 * configure: Regenerated.
2718 * nfs-utils.spec: Updated.
2720 2000-06-06 H.J. Lu <hjl@lucon.org>
2722 * configure.in (VERSION): Set to "0.1.8.1".
2723 * configure: Regenerated.
2724 * nfs-utils.spec: Updated.
2726 2000-06-06 H.J. Lu <hjl@lucon.org>
2728 * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
2729 to "struct sockaddr_in *" for glibc 2.2.
2730 (mount_umnt_1_svc): Likewise.
2731 (mount_umntall_1_svc): Likewise.
2732 (mount_export_1_svc): Likewise.
2733 (mount_exportall_1_svc): Likewise.
2734 (mount_pathconf_2_svc): Likewise.
2735 (get_rootfh): Likewise.
2737 2000-06-04 H.J. Lu <hjl@lucon.org>
2739 * etc/redhat/nfs.init: Fix a typo in comment.
2741 2000-05-31 H.J. Lu <hjl@lucon.org>
2743 * configure.in (VERSION): Set to "0.1.8".
2744 * configure: Regenerated.
2745 * nfs-utils.spec: Updated.
2749 2000-05-31 H.J. Lu <hjl@lucon.org>
2751 * configure.in (VERSION): Set to "0.1.7.5".
2752 * configure: Regenerated.
2753 * nfs-utils.spec: Updated.
2755 * support/include/nfslib.h (exportent): Add a new field,
2756 r_count, to count the number of mounts from a client.
2757 (getrmtabent): Take a new argument for position in file.
2758 (putrmtabent): Likewise.
2759 (fgetrmtabent): Likewise.
2760 (fputrmtabent): Likewise.
2761 * support/nfs/rmtab.c (getrmtabent): Handle the new argument
2762 for position in file.
2763 (fgetrmtabent): Likewise.
2764 (putrmtabent): Likewise.
2765 (fputrmtabent): Likewise.
2767 * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
2770 * support/export/rmtab.c (rmtab_read): Pass NULL as the new
2771 argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
2772 and fputrmtabent ().
2773 * utils/mountd/rmtab.c (mountlist_add): Likewise.
2774 (mountlist_del): Likewise.
2775 (mountlist_del_all): Likewise.
2776 (mountlist_list): Likewise.
2778 * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
2779 for the existing entry and initialize "r_count" to 1.
2780 (mountlist_del): Decrement "r_count".
2782 2000-05-18 H.J. Lu <hjl@lucon.org>
2784 * configure.in (VERSION): Set to "0.1.7.4".
2785 * configure: Regenerated.
2786 * nfs-utils.spec: Updated.
2788 2000-05-18 H.J. Lu <hjl@lucon.org>
2790 * etc/redhat/nfs.init (restart): Just do stop and start.
2792 2000-05-09 Jay Weber <jweber@valinux.com>
2794 * utils/rquotad/hasquota.c: added support for ext3 recognition
2796 * utils/rquotad/mntent.h: Likewise.
2798 2000-05-01 H.J. Lu <hjl@lucon.org>
2800 * configure.in (VERSION): Set to "0.1.7.3".
2801 * configure: Regenerated.
2802 * nfs-utils.spec: Updated.
2804 2000-05-01 H.J. Lu <hjl@lucon.org>
2806 * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
2807 mounting poins in /etc/fstab.
2809 2000-05-01 H.J. Lu <hjl@lucon.org>
2811 * configure.in (VERSION): Set to "0.1.7.2".
2812 * configure: Regenerated.
2813 * nfs-utils.spec: Updated.
2815 2000-05-01 H.J. Lu <hjl@lucon.org>
2817 * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
2818 to check for the mounting point.
2820 2000-04-29 Chip Salzenberg <chip@valinux.com>
2821 Neil Brown <neilb@cse.unsw.edu.au>
2823 * Really re-use RPC ports.
2824 (Fixes earlier patch. Sorry, Neil.)
2826 2000-04-26 H.J. Lu <hjl@lucon.org>
2828 * configure.in (VERSION): Set to "0.1.7.1".
2829 * configure: Regenerated.
2830 * nfs-utils.spec: Updated.
2832 2000-04-26 H.J. Lu <hjl@lucon.org>
2834 * etc/redhat/nfslock.init: Check if lockd exits before killing
2837 2000-04-25 H.J. Lu <hjl@lucon.org>
2839 * README: Require util-linux-2.10f-mount-rpc.patch for mount.
2841 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
2843 * support/nfs/exports.c (parsesquash): Correctly set the
2846 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
2848 * support/include/nfs/nfs.h: Removed knowledge of internals of
2849 kernel filehandles (which can change) and defined nfs_fh_size
2850 which has variable size
2852 * support/nfs/getfh.c: defined getfh_size to use new syscall to
2853 get variable sized file handles, and change getfh{,old} to
2856 * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
2859 * tools/Makefile, tools/nlmtest/nlmtest.c
2860 nlmtest.c depended on internel format of file handles, so now
2864 2000-03-12 Chip Salzenberg <chip@valinux.com>
2865 Neil Brown <neilb@cse.unsw.edu.au>
2867 * support/nfs/rpcmisc.c (rpc_init): Share transports.
2869 2000-03-13 H.J. Lu <hjl@lucon.org>
2871 * etc/redhat/nfsd.init: Updated.
2873 * etc/redhat/nfslock.init: Updated.
2875 * nfs-utils.spec.in: Updated.
2877 * configure.in (VERSION): Set to "0.1.7".
2878 * configure: Regenerated.
2879 * nfs-utils.spec: Updated.
2883 Wed Mar 8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
2885 * utils/exportfs/exportfs.c (dump): Included printing of
2886 nohide, no_subtree_check, and insecure_locks
2888 2000-02-26 Chip Salzenberg <chip@valinux.com>
2890 * config.mk.in (INSTALLSUID): Strip ("-s").
2891 (INSTALLSCRIPT): Define.
2892 * utils/nhfsstone/Makefile: Use it.
2894 2000-02-26 Chip Salzenberg <chip@valinux.com>
2896 * utils/lockd/lockd.man: Create.
2897 * utils/lockd/Makefile: Install it.
2898 * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
2899 * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
2900 * utils/nhfsstone/Makefile: Install the helper scripts and
2902 * utils/exportfs/exports.man: Fix typo.
2904 2000-02-26 Chip Salzenberg <chip@valinux.com>
2906 * support/nfs/xio.c (xungetc): Decrement line number when
2907 character to unget is newline. Make first parameter int, so
2908 it can distinguish EOF from \377.
2909 * support/include/xio.h (xungetc): Adjust prototype.
2911 Fri Feb 4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
2913 * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
2914 * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
2915 * utils/exportfs/exports.man: added documentation for no_auth_nlm.
2917 This is for supporting a new option introduced in 2.3.42
2919 Thu Feb 3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
2921 * COPYING: Added. GPL.
2923 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
2925 * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
2926 to get the block size.
2928 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
2930 * nfs-utils.spec.in: Update ftp site.
2932 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
2934 * README: Update hostnames.
2936 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
2938 * configure.in (VERSION): Set to "0.1.6".
2939 * configure: Regenerated.
2940 * nfs-utils.spec: Updated.
2944 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
2946 * utils/mountd/auth.c (auth_authenticate_internal): Call
2947 xstrdup for hostname before passing it to gethostbyname.
2949 * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
2952 Sun Dec 19 09:35:01 1999 H.J. Lu <hjl@lucon.org>
2954 * README: Update the mailing list address.
2956 Sun Dec 19 09:22:28 1999 H.J. Lu <hjl@lucon.org>
2958 * configure.in (VERSION): Set to "0.1.5".
2959 * configure: Regenerated.
2960 * nfs-utils.spec: Updated.
2964 Mon Dec 13 13:40:20 1999 H.J. Lu <hjl@lucon.org>
2966 * utils/rquotad/hasquota.c (hasquota): Malloc one more char
2969 Mon Dec 6 09:42:45 1999 H.J. Lu <hjl@lucon.org>
2971 * configure.in (VERSION): Set to "0.1.4".
2972 * configure: Regenerated.
2973 * nfs-utils.spec: Updated.
2977 Mon Dec 6 09:28:07 1999 H.J. Lu <hjl@lucon.org>
2979 * nfs-utils.spec.in: New file.
2981 * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
2983 * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
2985 1999-12-04 Chip Salzenberg <chip@valinux.com>
2987 * config.mk.in: Use $(CC) as set by configure.
2989 1999-12-04 Chip Salzenberg <chip@valinux.com>
2991 * rules.mk: Call $(MAKE) with $(MFLAGS).
2993 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
2995 * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
2996 IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
2998 Mon Nov 29 11:17:35 1999 H.J. Lu <hjl@lucon.org>
3000 * nfs-utils.spec (Version): Set to 0.1.3.
3002 * configure.in (VERSION): Set to "nfs-utils 0.1.3".
3003 * configure: Regenerated.
3007 Mon Nov 29 11:15:47 1999 H.J. Lu <hjl@lucon.org>
3009 * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
3010 (_PATH_DEV_DSK): Likewise.
3011 (getquotainfo): Match the mounting point from /etc/mtab
3012 instead of calling nfsmount_to_devname ().
3014 1999-11-24 Chip Salzenberg <chip@valinux.com>
3016 * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
3017 to the new port 24 as well as the historical port 100021.
3019 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
3021 * etc/redhat/nfsd.init (stop): moved exportfs -ua after
3022 stopping nfsd to stop spurious ESTALE on server shutdown.
3024 Tue Nov 23 10:13:39 1999 Neil Brown <neilb@cse.unsw.edu.au>
3026 * support/nfs/exports.c (parseopts): make copy of opt string
3027 before 'nul'ing out commas so that
3029 # exportfs -o option1,option2 hosta:/fs hostb:/fs
3031 applies both options to both exports.
3033 Thu Oct 28 12:55:42 1999 H.J. Lu <hjl@lucon.org>
3035 * README: Fix a few typos.
3037 * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
3039 * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
3040 * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
3041 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
3042 (unsigned_dec): Likewise.
3043 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
3044 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
3046 * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
3048 * tools/rpcgen/rpc_parse.c (get_type): Likewise.
3049 (unsigned_dec): Likewise.
3050 * tools/rpcgen/rpc_scan.c (symbols): Likewise.
3051 * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
3052 * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
3054 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
3056 * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
3057 * support/nfs/exports.c: added {no_,}subtree_check and changed
3059 * utils/exportfs/exports.man: added no_subtree_check and nohide
3060 and removed irrelevant stuff from unfsd.
3061 * support/export/rmtab.c: rmtab_read didn't quite do the right
3062 thing if a pathname from rmtab was a subdirectory of an export-point
3064 Tue Oct 26 17:22:40 1999 H.J. Lu <hjl@lucon.org>
3066 * README: Updated ftp site.
3068 Mon Oct 25 18:12:45 1999 H.J. Lu <hjl@lucon.org>
3070 * nfs-utils.spec (Version): Set to 0.1.2.
3072 * configure.in (VERSION): Set to "nfs-utils 0.1.2".
3073 * configure: Regenerated.
3077 Mon Oct 25 18:11:21 1999 H.J. Lu <hjl@lucon.org>
3079 * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
3080 (auth_authenticate_internal): Check for NULL return on forward
3082 (auth_authenticate): Handle "no_forward_dns".
3084 Thu Oct 21 16:22:06 1999 H.J. Lu <hjl@lucon.org>
3086 * Version 0.1.1 released.
3088 * nfs-utils.spec (Version): Set to 0.1.1.
3090 * configure.in (VERSION): Set to "nfs-utils 0.1.1".
3091 * configure: Regenerated.
3095 Mon Oct 18 17:43:29 1999 H.J. Lu <hjl@lucon.org>
3097 * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
3099 (Provides): Likewise.
3101 Mon Oct 18 14:56:22 1999 H.J. Lu <hjl@lucon.org>
3103 * Initial version 0.1 released.
3105 * configure.in (VERSION): Set to "nfs-utils 0.1".
3106 * configure: Regenerated.
3108 Mon Oct 18 14:54:57 1999 H.J. Lu <hjl@lucon.org>
3110 * utils/mountd/mountd.c (get_exportlist): Cleanup.
3112 * utils/exportfs/exportfs.c (unexport_all): Unexport from
3113 kernel only if the entry is exported to kernel.
3114 (unexportfs): Likewise.
3116 Wed Sep 08 16:49:32 1999 Neil Brown <neilb@cse.unsw.edu.au>
3118 1/ utils/mountd/rmtab.c::mountlist_list
3120 This routine stats the rmtab file to see if it has changed. It
3121 if has, it cleans up it's old copy of the data. But it still
3122 always re-read the file, thus returning multiple copies of the
3123 data on consecutive calls without intervening changes.
3124 "Showmount -a" didn't show this as it appears to sort/unique the
3125 data, but 'strace showmount -a' showed that the size of the
3126 datagram that it received grew.
3128 I moved the getrmtabent loop inside the mtime test.
3130 2/ utils/exportfs/exportfs.c
3132 Many routines used the m_path field of m_export instead of
3134 According to the comment in nfslib.h, m_path should only
3135 be used when processing a mount request (i.e. in mountd)
3136 where the mountpoint may be a subdirectory of the export point.
3138 I changed all occurances of m_path to e_path
3141 3/ utils/exportfs/exportfs.c:main
3143 extra arguments are not meaningful with -a or -r, but
3144 exportfs accepted them and then ignored the -a/-r, expect that
3145 -r would still unexport everything first.
3147 I generate an error if there are extra args and f_all
3149 4/ utils/exportfs/exportfs.c:main
3150 extract dump out as a special case.
3152 5/ utils/exportfs/exportfs.c
3153 made f_reexport a local variable.
3156 6/ utils/exportfs/exportfs.c:main,exportall
3158 support/export/rmtab.c
3159 only mayexport on newly created entries, don't set xtabent at all
3161 7/ support/include/nfslib.h
3163 add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
3165 8/ support/export/xtab.c
3167 xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
3171 9/ support/export/xtab.c
3173 xtab_mount_read now sets m_exported, and NOT
3174 xtabent and mayexport
3176 removed the append arguement from xtab_write as it was
3179 added is_export flag to xtab_write similar to xtab_read
3180 if is_export, only write entries with m_xtabent or m_addxtab
3181 if !is_export, only write entries with m_exported
3183 10/ support/export/export.c::export_allowed_internal
3185 added test for exp->m_mayexport, as the export tree
3186 may have entries that are no longer allowed to be exported,
3187 and so shouldn't caused deduced exported by rmtab_read
3189 11/ utils/exportfs/exportfs.c::main
3190 error checking of flags.
3192 12/ utils/exportfs/exportfs.c
3194 total rewrite of export and unexport logic.
3196 - build an exportslist of valid exports, based on
3197 current etab file and arguments,
3198 - read rmtab to instantiate relevant wild card entries
3199 - read etab to find out what is currently exported
3200 - synchronise intention with reality
3201 - write out etab and xtab
3204 discard the m_addxtab flag
3205 add m_changed flag so we know what to report in exportfs
3207 14/ utils/mountd/auth.c:auth_authenticate
3209 the value returned by gethostbyaddr was trusted.
3211 It now follows this with a call to gethostbyname
3212 and checks that the address is in the list.
3214 15/ support/export/nfsctl.c::cltsetup,expsetup
3216 force client names to lowercase as kernel is
3219 16/ quietened a few compiler warnings
3221 17/ support/export/client:client_lookup
3223 look for pre-existing client with same name before creating
3226 18/ support/include/exportfs.h
3228 The ordering of the MCL_* enum was:
3229 ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
3231 I moved ANONYMOUS to the end.
3233 The ordering is significant when an export entry is being searched for to
3234 match a given address. There are two problems with ANONYMOUS being first.
3236 1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
3237 then the ro case will always be found first and the privileged hosts won't get
3239 2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
3240 export entry for the specific host, and writes it to xtab.
3241 When another request comes from the same host, the ANONYMOUS entry is found again,
3242 before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
3243 again. If causes bloat in xtab.
3245 Putting ANONYMOUS at the end reflects it's nature as a catch-all
3247 19/ utils/exportfs/exportfs.man
3248 many updates to the man page to reflect changes to the code
3250 -----------------------
3256 - allow exportfs to modify rmtab file
3257 - make sure kernel never gets two clients with same IP address
3258 - possible kernel should reject
3259 - needs to be some way to lookup client in kernel by IP address
3260 - maybe get kernel to do case-insensitive comparisons on client names
3261 - remove unused clients from kernel
3263 - change etab to xtab and xtab to xtab.active
3265 - timestamp and/or statd-stamp in rmtab for removing old entries.
3267 Mon Oct 18 11:48:07 1999 H.J. Lu <hjl@lucon.org>
3269 * linux-nfs: New directory.
3270 * linux-nfs/ChangeLog: Moved from ..
3271 * linux-nfs/INSTALL: Likewise.
3272 * linux-nfs/KNOWNBUGS: Likewise.
3273 * linux-nfs/NEW: Likewise.
3274 * linux-nfs/README: Likewise.
3275 * linux-nfs/THANKS: Likewise.
3276 * linux-nfs/TODO: Likewise.
3278 * Starting from knfsd 1.4.7.