]> git.decadent.org.uk Git - nfs-utils.git/blob - ChangeLog
Remove warning if neither 'sync' or 'async' present.
[nfs-utils.git] / ChangeLog
1 Author: NeilBrown <neilb@cse.unsw.edu.au>
2 Date:  Mon Aug  7 14:01:35 EST 2006
3
4     Remove warning if neither 'sync' or 'async' present.
5     Add warning of neither 'subtree_check' or 'no_subtree_check' present.
6         
7 commit 7194d7d6320736c14f40d31c3738d40f3119ead5
8 Author: Kevin Coffman <kwc@citi.umich.edu>
9 Date:   Sat Jul 8 10:01:40 2006 +1000
10
11     Use uid/gid of -1 to indicate the export's anonuid/anongid should be used
12     
13     Kernel routine nfsd_setuser() in fs/nfsd/auth.c checks for the
14     value -1 and defaults the credential's fsuid/fsgid to the
15     correct anonuid/anongid values for the given export.  We should
16     be passing this value (-1) down when a name mapping cannot be found.
17     Thanks to J. Bruce Fields <bfields@fieldses.org> for the reference.
18     
19     Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
20     Acked-by: J. Bruce Fields <bfields@fieldses.org>
21
22 commit b0604c623f7a98c6061dff19988722d3ae848bd7
23 Author: Kevin Coffman <kwc@citi.umich.edu>
24 Date:   Sat Jul 8 09:58:03 2006 +1000
25
26     Change svcgssd_LDFLAGS to match gssd_LDFLAGS
27
28 commit 99414bd3eecf93f23c378d3bb3d45bc98f364abc
29 Author: Neil Brown <neilb@suse.de>
30 Date:   Sat Jul 8 09:41:58 2006 +1000
31
32     Disable building/installing mount.nfs by default.
33     
34     mount.nfs does not yet support 'user' option and some others.
35     To make it support this we need to make it setuid-root, and
36     some security isses need to be resolved before that can be done
37     safely.
38
39 commit b0c3cbfee702c019dab0a22557bbf38e24dfcee1
40 Author: Steve Dickson <steved@redhat.com>
41 Date:   Sat Jul 8 09:35:02 2006 +1000
42
43     Call nfssvc_versbits before nfssvc_setfds
44     
45     nfssvc_versbits() has to be called before nfssvc_setfds()
46     for the version processing to work correctly
47
48 commit 26fff911b21943f20e3937ae3f2d29a1572d2309
49 Author: Neil Brown <neilb@suse.de>
50 Date:   Thu Jul 6 13:05:11 2006 +1000
51
52     Only use -rpath for Kerberos libs when actually needed.
53     
54     Avoid usage of -rpath is generally safer, and is required by Debian policy.
55
56 commit 28a7603b719f8d35bf22fd3018b610b489fec78f
57 Author: Neil Brown <neilb@suse.de>
58 Date:   Thu Jul 6 12:28:33 2006 +1000
59
60     Use 65534 instead of -2 in svcgssd_proc.c
61     
62     as this is more consistant across achitectures.
63
64 commit 904de920ea4da3ad5604c417f0d784fcda83ed2a
65 Author: Shankar Anand <shanand@novell.com>
66 Date:   Tue Jul 4 08:50:56 2006 -0600
67
68     This patch adds code to nfsstat to read /proc/net/rpc/nfsd for nfsv4 server statistics and print them.
69     
70     Submitted by: Shankar Anand <shanand@novell.com>
71
72 commit 2179c112b9a386ca3d51d0e19390ddfadd745030
73 Author: Steinar H. Gunderson <sesse@debian.org>
74 Date:   Wed Jul 5 15:55:45 2006 +1000
75
76     Fix typos in various man pages.
77
78 commit 3419e37500dfd19cb2c246260dbd2bc0ee4704d4
79 Author: Steinar H. Gunderson <sesse@debian.org>
80 Date:   Wed Jul 5 15:51:30 2006 +1000
81
82     Use 65534 for anon uid/gid rather than -2
83     
84     This is more consistant across platforms.
85
86 commit 65735eef8a9441901245f6047edafc50f2d97c97
87 Author: Greg Banks <gnb@chook.melbourne.sgi.com>
88 Date:   Wed Jul 5 13:37:21 2006 +1000
89
90     Update rpcdebug to know about new 2.6 debug flags.  Added
91     a manpage and installed rpcdebug (in sbindir).
92
93 commit 23b3a9d0284d78cb6bf96b8cd44e9a4662ff60ae
94 Author: Greg Banks <gnb@chook.melbourne.sgi.com>
95 Date:   Wed Jul 5 12:22:45 2006 +1000
96
97     Ignore new generated files.
98
99 commit 89053f3f440b629911cb994a293d5be73bb79bf9
100 Author: Greg Banks <gnb@chook.melbourne.sgi.com>
101 Date:   Wed Jul 5 12:20:20 2006 +1000
102
103     Add rquota.h to BUILT_SOURCES so rquotad builds on the first try.
104
105 commit 66f9d8251c92124e46a209c47e5c0f7d3a0c4e6e
106 Author: Neil Brown <neilb@suse.de>
107 Date:   Wed Jul 5 11:06:09 2006 +1000
108
109     Generate rquota_xdr.c and rquota.h from rquota.x
110     
111     rquota_svc.c is still by-hand as it contains alot of extras.
112     These should really be moved to rquota_server.c
113
114 commit 9f5b40b7a68fe0a2648565ecbd4b08bf60287130
115 Author: Neil Brown <neilb@suse.de>
116 Date:   Wed Jul 5 10:41:03 2006 +1000
117
118     Remove some files that old, unused, unneeded.
119     
120         deleted:  support/export/keys.c
121         deleted:  support/include/rpcdispatch.h
122         deleted:  support/include/rpcsec.h
123         deleted:  support/include/version.h
124         deleted:  support/include/ypupdate.h
125         deleted:  support/nfs/clients.c
126         deleted:  support/nfs/keytab.c
127         deleted:  support/nfs/ypupdate_xdr.c
128         deleted:  support/rpc/include/Makefile.am
129         deleted:  tools/rpcdebug/neat_idea.c
130         deleted:  utils/mountd/mount_xdr.c
131         deleted:  utils/rquotad/pathnames.h
132
133 commit fbb1602bbd34cbe89dd55ca6eaaa19432237db1d
134 Author: Neil Brown <neilb@suse.de>
135 Date:   Wed Jul 5 10:30:51 2006 +1000
136
137     Avoid error creating an existing symlink
138     
139     Just remove the link first.
140
141 commit 0bc710a5a2b695039613a917e009dba3552ab1cc
142 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
143 Date:   Mon Jul 3 18:33:54 2006 -0400
144
145     Don't depend on Kerberos headers when checking librpcsecgss in configure
146     
147     Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
148     
149     Older versions of MIT Kerberos are missing an OID definition, causing
150     the configure checks for librpcsecgss to fail.  We shouldn't be depending
151     on their libraries during the configure.
152
153 commit 5bfa10c94c44f082dc211a5fb431e2202ea9bb35
154 Author: Greg Banks <gnb@melbourne.sgi.com>
155 Date:   Tue Jul 4 18:33:56 2006 +1000
156
157     Eliminate warnings from code generated by rpcgen
158     
159      - unused variable 'buf'
160         - emit a declaration for `buf' on demand.
161      - unused variable 'i'
162         - declare i immediately before use
163      - unused value from IXDR_PUT_
164         - cast to (void)
165      - type-punned pointer reference
166         - cast to (void*) first :-(
167
168 commit acae444246635ec2ca8990d53e685c9062d73091
169 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
170 Date:   Mon Jul 3 18:34:43 2006 -0400
171
172     Handle mapping failure from get_ids.
173     
174     Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
175     
176     Temporary patch to do default mapping if we get an error while trying to
177     map a gss principal to the appropriate uid/gid.  This currently returns
178     hardcoded values.  This may be correct, or we may need to try and figure
179     out the correct values to match the anonuid/anongid for the export.
180
181 commit 1f1b05a65ef3dc6597c7bc1e2a38f38ae95bf230
182 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
183 Date:   Mon Jul 3 18:34:38 2006 -0400
184
185     Properly report errors in readline() function
186     
187     Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
188     
189     Change message priorities for errors and debug messages.
190
191 commit ee664fd246d77010af13fb557407c612752a5ea8
192 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
193 Date:   Mon Jul 3 18:34:33 2006 -0400
194
195     Change default buffer size increment for readline()
196     
197     Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
198     
199     The readline routine expects much smaller messages than we are passing.
200     Change the default initial allocation and increment value from 128
201     to 2048.  This saves many calls to realloc().
202
203 commit 3da69ce5c4fac5677e91aa20e60750ab8de2ab97
204 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
205 Date:   Mon Jul 3 18:34:27 2006 -0400
206
207     Clean up the printerr() logging function.
208     
209     Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
210     
211     Update the printerr() function to:
212     
213     1) Determine whether we'll print the message before going to all the
214        work of formatting it.
215     2) Don't just toss away messages that are too long for the buffer.
216        Print what we can and give an indication of the truncation with
217        "..." at the end.
218     3) Use a single buffer rather than two.
219     4) Messages either go to syslog (with level ERR) or stderr.  Don't
220        send some messages to syslog level DEBUG.
221
222 commit 0b2a5b574c7ffd99aa3226d36e1d261826405625
223 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
224 Date:   Mon Jul 3 18:34:21 2006 -0400
225
226     Use setfsuid() rather than seteuid() while creating contexts
227     
228     Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
229     
230     As suggested by Olaf Kirch <okir@suse.de>, use setfsuid() rather than
231     seteuid() when creating a gss context.  This prevents users from using
232     credentials that do not belong to them, while also preventing them from
233     doing things like killing, renicing, or changing the priority of the
234     gssd process while it is processing the context creation.
235
236 commit 0f899e6d862994ffb437ae73e087c4a21ab59723
237 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
238 Date:   Mon Jul 3 18:34:16 2006 -0400
239
240     Limit acquire_cred call to to Kerberos only
241     
242     Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
243     
244     Specify that the acquire_cred call should only be concerned with returning
245     Kerberos credentials since this is Kerberos-only functionality.
246
247 commit 3829bb90e764cd72c0009cb32a8b39d0fab89d81
248 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
249 Date:   Mon Jul 3 18:34:10 2006 -0400
250
251     Check that the gssapi library is usable early on.
252     
253     Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
254     
255     Do a call to determine mechanisms supported by the gssapi library early.
256     This allows us to discover early in case the gssapi library is somehow
257     misconfigured.  We can bail out early and give a meaningful message
258     rather than getting errors on each attempt at a context negotiation.
259
260 commit 119c3e9aafe84c0f7c2846c46ad5e6f5eeece0da
261 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
262 Date:   Mon Jul 3 18:34:05 2006 -0400
263
264     Fix problems with 64-bit big-endian machines
265     
266     Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
267     
268     Correct the definition of mech_used in the gss context to use gss_OID_desc.
269     This fixes problems on 64-bit machines when referencing the OID.
270     
271     Also updates write_buffer function to use u_int rather than size_t when
272     doing calculations.
273
274 commit c3f05548d7b3d586e7eebbdde9339617e88530f3
275 Author: kwc@citi.umich.edu <kwc@citi.umich.edu>
276 Date:   Mon Jul 3 18:33:59 2006 -0400
277
278     Define CFLAGS for gss_clnt_send_err compile
279     
280     Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
281     
282     Add CFLAGS to make sure we find and use the correct gssapi.h when
283     building gss_clnt_send_err
284
285 commit 4e9ed06f8f8a0cd9f34a6830c0ff14344a528042
286 Author: Greg Banks <gnb@melbourne.sgi.com>
287 Date:   Mon Jul 3 15:59:54 2006 +1000
288
289     Use socklen_t some more to avoid warnings.
290
291 commit 6c40236820fda8960af891f41aa9d53f8bbe50a2
292 Author: Greg Banks <gnb@melbourne.sgi.com>
293 Date:   Mon Jul 3 15:39:41 2006 +1000
294
295     Fix warning about pointer signedness differing.
296
297 commit 3bf702b1a914b3867117b74d519c55fa68f4dc28
298 Author: Greg Banks <gnb@melbourne.sgi.com>
299 Date:   Mon Jul 3 15:17:34 2006 +1000
300
301     Include the right header to get xmalloc() declaration.
302
303 commit 940c7c304d4a43c00c27529cdddc7c87db6eef87
304 Merge: b90d201... a503848...
305 Author: Greg Banks <gnb@melbourne.sgi.com>
306 Date:   Mon Jul 3 14:21:48 2006 +1000
307
308     Merge branch 'master' of git://linux-nfs.org/nfs-utils
309
310 commit b90d201551aaa712c011c3d5de900fad714a26a6
311 Author: Greg Banks <gnb@melbourne.sgi.com>
312 Date:   Tue Jun 27 21:30:18 2006 +1000
313
314     Comment out unused variable.
315
316 commit 33beb42d3d2cd13a82ddbbdc4275d2a048030ae3
317 Author: Greg Banks <gnb@melbourne.sgi.com>
318 Date:   Tue Jun 27 21:22:59 2006 +1000
319
320     Comment out the decades-old SCCS id strings from the original Sun
321     distribution.  They cause compile warnings, there is no longer any
322     reason to try to build them into the binaries, and gcc seems to be
323     eliding some of them anyway.
324
325 commit 3172063ead6b99611d049a59938808a6358f48a4
326 Author: Greg Banks <gnb@melbourne.sgi.com>
327 Date:   Tue Jun 27 20:55:07 2006 +1000
328
329     Detect if glibc provides socklen_t and use that instead
330     of int in those cases which generate compile warnings,
331     e.g. the last argument of recvfrom().
332
333 commit a09eeb36c2c45151b9bb89f5015da0c584799716
334 Author: Greg Banks <gnb@melbourne.sgi.com>
335 Date:   Tue Jun 27 20:28:02 2006 +1000
336
337     Replace the deprecated sigblock() with more modern
338     signal functions to avoid compile warnings.
339
340 commit 93608a52655abf5ac23404c4b5cc05fe575a9c04
341 Author: Greg Banks <gnb@melbourne.sgi.com>
342 Date:   Thu Jun 22 18:01:10 2006 +1000
343
344     Fix a number of the easier compile warnings: unused variables,
345     unused labels, constness, signedness.
346
347 commit a07343ee0da4f0974a23b673ae1b0d482c7426a1
348 Author: Greg Banks <gnb@melbourne.sgi.com>
349 Date:   Thu Jun 22 17:31:24 2006 +1000
350
351     Detect presence of nfs4_set_debug() in libnfsidmap and
352     don't bother calling it if it's missing.
353
354 commit dcfcb677b39443b6392db3234fd50498bc158507
355 Author: Greg Banks <gnb@melbourne.sgi.com>
356 Date:   Thu Jun 22 17:19:17 2006 +1000
357
358     Remove useless m4 quoting around args to PKG_CHECK_MODULES().
359
360 commit 24d303ffae686192bda0a5996e8590219dcc82e7
361 Author: Greg Banks <gnb@melbourne.sgi.com>
362 Date:   Thu Jun 22 17:16:19 2006 +1000
363
364     Do m4 quoting of AC_MSG_ERROR() and AC_MSG_WARN() as
365     the autoconf people intended.  This avoids errors in
366     autoconf on SLES10.
367
368 commit 66a699d953727d3a992cc09ed5304b83d661a737
369 Author: Greg Banks <gnb@melbourne.sgi.com>
370 Date:   Thu Jun 22 16:51:44 2006 +1000
371
372     Add a .gitignore file to suppress the files generated
373     during autogen, configure and build.
374 commit 49b164d978ee6266df7ba0bd335cb34337e7c381
375 Author: Steve Dickson <SteveD@redhat.com>
376 Date:   Mon Jul 3 09:52:00 2006 +1000
377
378     Allow rpc.nfsd to suppress tcp or udp, and listen on a specific address.
379     
380      -T       - will suppressing listening for TCP connection.
381      -U       - will suppress UDP
382      -H host  - will only listen on that local address
383      -p port  - will listen on that port.
384     
385     This requires kernel patches which will hopefully be in 2.6.19 and possibly some
386     earlier test and vendor kernels.
387
388 commit fde2ae7794047a698feeaf17963d690a1e660a80
389 Author: Steve Dickson <SteveD@redhat.com>
390 Date:   Mon Jun 26 15:23:19 2006 +1000
391
392     Add support for suppressing different NFS versions.
393     
394     e.g.  -N 2
395     means that NFSv2 won't be supported, just v3 and v4 (if the kernel
396     supports them).
397
398 commit 0523fd513c6baa8dbf45d1a7afea2044262aeb3d
399 Author: Neil Brown <neilb@suse.de>
400 Date:   Fri Jun 23 17:10:56 2006 +1000
401
402     Further coverity related cleanups.
403     
404     Greg Banks suggested some variations, particularly improved
405     use of xmalloc/xstrdup functions.  Thanks.
406
407 commit 2e075a16da4963f54cd556403ca9e15a68de27fd
408 Author: Neil Brown <neilb@suse.de>
409 Date:   Fri Jun 23 14:38:33 2006 +1000
410
411     Fix various issues discovered by Coverity
412     
413     Thanks to Michael Halcrow for finding them.
414
415 commit ff42180930a444cea7f19e55e2cd2bfe6d3f108b
416 Author: Neil Brown <neilb@suse.de>
417 Date:   Fri Jun 23 14:06:00 2006 +1000
418
419     Fix comment parsing (again)
420     
421     Bruce Fields noticed that I broke comment parsing...
422     
423     as xskip() is always called before xgettok(), that is the
424     best place to put xskipcomment and still maintain proper
425     semantics of xskip and xgettok.
426
427 commit bec968578d97eabc63ae4a12bdeb2b33f40baec4
428 Author: Amit Gud <agud@redhat.com>
429 Date:   Thu Jun 22 12:51:04 2006 -0400
430
431     Change mount configure option to --enable-mount
432     
433     Change the configure option from --with-mount to --enable-mount.
434     
435     Signed-off-by: Amit Gud <agud@redhat.com>
436     Signed-off-by: Steve Dickson <steved@redhat.com>
437
438 commit ceeffc1f76485b4084b2c61f4ff3c40e4f51c3b8
439 Author: Amit Gud <gud@eth.net>
440 Date:   Thu Jun 22 12:49:24 2006 -0400
441
442     Merge nfsmount.x and mount.x into mount.x
443     
444     
445     Merge utils/mount/nfsmount.x and support/export/mount.x into support/export/mount.x.
446     
447     Signed-off-by: Amit Gud <agud@redhat.com>
448     Signed-off-by: Steve Dickson <steved@redhat.com>
449
450 commit c2db41e8abb6ddc9d03a0c91c6db043fa0f85a8f
451 Author: Neil Brown <neilb@suse.de>
452 Date:   Fri Jun 23 13:37:08 2006 +1000
453
454     Try to make sure that clientid used for NFSv4 is reliable.
455     
456     We need to give an IP address to identify this client to the
457     server.
458     The current code does a gethostbyname of the hostname. One
459     some systems this returns 127.0.0.1 or similar, which is not useful.
460     
461     Instead, use getsockname of the sock used to connect to the server
462     to confirm that the server is working.  This gives the address on the
463     interface that was chosen to talk to that server, which is the
464     best address we can find (if there is a NAT in the way, it might
465     still not work, but in that case there is nothing we can do).
466
467 commit 11d34d11153df198103a57291937ea9ff8b7356e
468 Author: Greg Banks <gnb@melbourne.sgi.com>
469 Date:   Wed Jun 14 22:48:10 2006 +1000
470
471     multiple threads for mountd
472     
473     
474     How about the attached patch against nfs-utils tot?  It
475     adds a -t option to set the number of forked workers.
476     Default is 1 thread, i.e. the old behaviour.
477     
478     I've verified that showmount -e, the Ogata mount client,
479     and a real mount from Linux and IRIX boxes work with and
480     without the new option.
481     
482     I've verified that you can manually kill any of the workers
483     without the portmap registration going away, that killing
484     all the workers causes the manager process to wake up and
485     unregister, and killing the manager process causes the
486     workers to be killed and portmap unregistered.
487     
488     I've verified that all the workers have file descriptors
489     for the udp socket and the tcp rendezvous socket, that
490     connections are balanced across all the workers if service
491     times are sufficiently long, and that performance is
492     improved by that parallelism, at least for small numbers
493     of threads.  For example, with 60 parallel MOUNT calls
494     and a testing patch to make DNS lookups take 100 milliseconds
495     time to perform all mounts (averaged over 5 runs) is:
496     
497     num         elapsed
498     threads             time (sec)
499      ------             ----------
500     1           13.125
501     2            6.859
502     3            4.836
503     4            3.841
504     5            3.303
505     6            3.100
506     7            3.078
507     8            3.018
508     
509     Greg.
510     --
511     Greg Banks, R&D Software Engineer, SGI Australian Software Group.
512     I don't speak for SGI.
513
514 commit db96d056578338dd1bb0371dc84638973c187ec6
515 Author: Neil Brown <neilb@suse.de>
516 Date:   Fri Jun 16 13:16:09 2006 +1000
517
518     Remove some temporary files that shouldn't be in 'git'.
519     
520         deleted:  compile
521         deleted:  config.guess
522         deleted:  config.sub
523         deleted:  depcomp
524         deleted:  install-sh
525         deleted:  ltmain.sh
526         deleted:  missing
527
528 commit 82b53188aaffad0e237461f8f1274794166feb3a
529 Author: Neil Brown <neilb@suse.de>
530 Date:   Fri Jun 16 13:09:26 2006 +1000
531
532     Add support to auto-generate nfsmount* files for new nfs.mount program
533
534 commit 4e2bae795e5eaf9922f0b966ab5df64994c836a2
535 Author: Amit Gud <agud@redhat.com>
536 Date:   Mon Jun 12 19:08:27 2006 -0400
537
538     Move NFS mount code from util-linux to nfs-utils - part 2
539     
540     Adds the support functions needed for mount and umount. This
541     functionality will someday be available in the form of shared mount
542     library.
543     
544     Signed-off-by: Amit Gud <agud@redhat.com>
545     Signed-off-by: Steve Dickson <steved@redhat.com>
546
547 commit a0520fa1a41bd33815b331b660b4545f2723495c
548 Author: Amit Gud <agud@redhat.com>
549 Date:   Mon Jun 12 19:06:36 2006 -0400
550
551     Move NFS mount code from util-linux to nfs-utils - part 1
552     
553     Adds the mount directory and the code to mount and umount the NFS file system.
554     
555     Signed-off-by: Amit Gud <agud@redhat.com>
556     Signed-off-by: Steve Dickson <steved@redhat.com>
557
558 2006-06-05 NeilBrown <neilb@suse.de>
559         - Remove debian/ at request of Debian maintainer "Steinar H. Gunderson" <sesse@debian.org>
560         - fix_exportfs_with_multiple_matches.diff: Fixes a problem with exportfs -o
561           and multiple entries of the same type for the same patch that matches
562           a given client. The entire rationale and problem description can be found
563           at http://bugs.debian.org/245449 (fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>)
564         - escape hashes in exports
565           Makes sure any # signs in the printed-out exports file are
566           escaped (as with quotes, spaces, etc.), so they won't be treated
567           as a comment when they're read back in again.
568                 "Steinar H. Gunderson" <sesse@debian.org>
569         - Only treat '#' as starting a comment when at the start of a
570           token, otherwise '#' in filenames cannot be read.
571                 NeilBrown
572         - document sync option:
573           Document the 'sync' option in the exports(5) man page -- ATM
574           only the 'async' option is documented, which is not very
575           symmetric. :-)  "Steinar H. Gunderson" <sesse@debian.org>
576         - mountd state directory:
577           Let the user select (via a new parameter) the path to the NFS
578           state directory for mountd, to match the statd functionality.
579                  "Steinar H. Gunderson" <sesse@debian.org>
580         - fix nhfsrun signal:
581           nhfsrun is supposed to be able to be signalled with SIGUSR1, but
582           the signal trapped is number 30, which is something else
583           entirely (SIGPWR). This patch simply changes it to say "USR1",
584           which gets it right no matter what the value is.
585                  "Steinar H. Gunderson" <sesse@debian.org>
586         - Minor man page tidy up
587         
588 2006-04-12 NeilBrown <neilb@suse.de>
589         Remove **/Makefile.in, aclocal.m4, configure, and
590          support/include/config.h.in from source control
591         These are auto autogenerated by
592           aclocal -I aclocal ; autoheader ; automake ; autoconf
593         
594 2006-04-12 NeilBrown <neilb@suse.de>
595         utils/statd/rmtcall.c: use HAVE_IFADDRS_H to control compilation
596         of code using ifaddrs.h
597         configure.in: test for present of ifaddrs.h
598
599         Old glibc's don't have ifaddrs.h
600         
601 2006-06-12 Amit Gud <agud@redhat.com>
602         Added the mount functionality from util-linux.
603         Added --without-mount configure option.
604
605 2006-04-12 NeilBrown <neilb@suse.de>
606         Set version to 1.0.8, 
607         aclocal -I aclocal ; autoheader ; automake ; autoconf
608
609 2006-04-10 NeilBrown <neilb@suse.de>
610         Various paranoia checks:
611         gssd_proc.c: pass max_field sizes to sscanf to avoid buffer
612           overflow
613         svcgssd_proc.c: range_check name.length, to ensure name.length+1
614           doesn't wrap
615         idmapd.c(nfsdcb): make sure at least one byte is read before
616          zeroing the last byte that was read, otherwise memory corruption
617          is possible.
618
619         Found by SuSE security audit.
620         
621 2006-04-10 "Kevin Coffman" <kwc@citi.umich.edu>
622         Check for sufficient version of librpcsecgss and libgssapi
623         in configure.in
624
625 2006-04-10 "Kevin Coffman" <kwc@citi.umich.edu>
626         Update aclocal/tcp-wrappers.m4 to define HAVE_LIBWRAP and
627         HAVE_TCP_WRAPPERS as appropriate.       
628
629 2006-04-10 NeilBrown <neilb@suse.de>
630         Add checking for innetgr back to configure.in
631         
632 2006-04-10 kwc@citi.umich.edu
633         Update calls to gss_export_lucid_sec_context()
634         
635         Change the calls to gss_export_lucid_sec_context() to match the corrected
636         interface definition in libgssapi-0.9.
637         
638 2006-04-10 kwc@citi.umich.edu
639         Plug memory leaks in svcgssd
640         
641         Various memory leaks in the svcgssd context processing are eliminated.
642         
643 2006-04-10 kwc@citi.umich.edu
644         Fix memory leak of the AUTH structure on context negotiations
645         
646         Free AUTH structure after completing context negotiation and sending
647         context information to the kernel.
648         
649 2006-04-10 kwc@citi.umich.edu
650         Fix support/include/config.h.in such as would be done be running autoheader.
651         
652 2006-03-28 NeilBrown <neilb@suse.de>
653         1.0.8-pre3, aclocal/autoconf/automake
654         
655 2006-03-28 kwc@citi.umich.edu
656         Use PKGCONFIG to locate gssapi and rpcsecgss header files
657         
658         Instead of having separate copies of the gssapi and rpcsecgss
659         header files, or depending on the Kerberos gssapi header,
660         locate the headers now installed with the libgssapi and librpcsecgss
661         libraries.
662         
663         Remove local copies of the gssapi and rpcsecgss header files.
664         
665         This depends on the configure_use_autotools patch.
666         
667 2006-03-28 kwc@citi.umich.edu
668         Add debugging to better detect negotiation of enctype not supported by kernel
669         
670         Print debugging message indicating the type of encryption keys being sent
671         down to the kernel.  This should make it easier to detect cases where
672         unsupported encryption types are being negotiated.
673         (really this time)
674         
675 2006-03-28 kwc@citi.umich.edu
676         
677         Don't close and reopen all pipes on every DNOTIFY signal.
678         
679         From: Vince Busam <vbusam@google.com>
680         Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
681         
682         Don't unnecessarily close and re-open all pipes after every DNOTIFY
683         signal.  These unnecessary closes were triggering a kernel Oops.
684         Original patch modified to correct segfault when unmounting last
685         NFSv4 mount.
686         
687 2006-03-28 kwc@citi.umich.edu
688         Add option to specify directory to search for credentials cache files
689         
690         
691         From: Vince Busam <vbusam@google.com>
692         Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
693         
694         Add command line option to specify which directory should be searched
695         to find credentials caches.
696         (really this time)      
697         
698 2006-03-28 kwc@citi.umich.edu
699         Must still use knowledge of the glue context for pre-1.4 versions of MIT krb5
700         
701         We need to get access to the internal krb5 context pointer for
702         older (pre-1.4) versions of MIT Kerberos.  We get a pointer to
703         the gss glue's context.  Get the right pointer before accessing
704         the context information.
705         (really this time)
706         
707 2006-03-28 kwc@citi.umich.edu
708         
709         Remove unused groups variable from get_ids() which was causing a compiler warning.
710         (really this time)
711         
712 2006-03-28 kwc@citi.umich.edu
713         Update krb5 code to use glue routine lucid context functions
714         
715         
716         
717         The gssd code should not know about the glue layer's context structure.
718         A previous patch added gss_export_lucid_sec_context() and
719         gss_free_lucid_sec_context() functions to the gssapi glue layer.
720         Use these functions rather than calling directly to the Kerberos
721         gssapi code (which requires the Kerberos context handle rather
722         than the glue's context handle).
723         
724         (really this time)
725         
726 2006-03-28 kwc@citi.umich.edu
727         
728         Separate out context handling code for MIT Kerberos and SPKM3
729         into their own file.
730         (Really this time)
731         
732 2006-03-28 Kevin Coffman <kwc@citi.umich.edu>
733         User-selectable idmapping cache lifetime
734         
735         Read and process new configuration option, Cache-Expiration, and use
736         the value to determine how long idmapping entries are cached.
737         (Really this time)
738         
739 2006-03-27 NeilBrown <neilb@suse.de>
740         1.0.8-rc3
741
742 2006-03-27 kwc@citi.umich.edu
743         Add debugging to better detect negotiation of enctype not supported by kernel
744
745         Print debugging message indicating the type of encryption keys being sent
746         down to the kernel.  This should make it easier to detect cases where
747         unsupported encryption types are being negotiated.
748         
749 2006-03-27
750         Don't close and reopen all pipes on every DNOTIFY signal.
751         
752         Don't unnecessarily close and re-open all pipes after every DNOTIFY
753         signal.  These unnecessary closes were triggering a kernel Oops.
754         Original patch modified to correct segfault when unmounting last
755         NFSv4 mount.
756         
757 2006-03-27
758         Add option to specify directory to search for credentials cache files
759         
760         Add command line option to specify which directory should be searched
761         to find credentials caches.
762         
763 2006-03-27 kwc@citi.umich.edu
764         Must still use knowledge of the glue context for pre-1.4 versions of MIT krb5
765         
766         We need to get access to the internal krb5 context pointer for
767         older (pre-1.4) versions of MIT Kerberos.  We get a pointer to
768         the gss glue's context.  Get the right pointer before accessing
769         the context information.
770         
771 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
772         Remove unused variable causing compile warning
773         
774         Remove unused groups variable from get_ids() which was causing a compiler warning.
775         
776 2006-03-27 kwc@citi.umich.edu
777         Update krb5 code to use glue routine lucid context functions
778         
779         The gssd code should not know about the glue layer's context structure.
780         A previous patch added gss_export_lucid_sec_context() and
781         gss_free_lucid_sec_context() functions to the gssapi glue layer.
782         Use these functions rather than calling directly to the Kerberos
783         gssapi code (which requires the Kerberos context handle rather
784         than the glue's context handle).
785         
786 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
787         Separate out context handling code for MIT Kerberos and SPKM3
788         into their own file.
789         
790 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
791         Consolidate gssd and svcgssd since they share much code
792         
793         Remove directory svcgssd which was only created because the old
794         build system could not handle building two daemons in the same
795         directory.  This eliminates build complications since gssd and
796         svcgssd also share many source files.
797         
798         This patch effectively removes the utils/svcgssd directory, moving
799         all its files to the utils/gssd directory.  File utils/gssd/Makefile.am
800         is modified with directions to build both gssd and svcgssd.
801         
802 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
803         Use PKGCONFIG to locate gssapi and rpcsecgss header files
804         
805         Instead of having separate copies of the gssapi and rpcsecgss
806         header files, or depending on the Kerberos gssapi header,
807         locate the headers now installed with the libgssapi and librpcsecgss
808         libraries.
809         
810         Remove local copies of the gssapi and rpcsecgss header files.
811         
812         This depends on the configure_use_autotools patch.
813         
814 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
815         User-selectable idmapping cache lifetime
816         
817         Read and process new configuration option, Cache-Expiration, and use
818         the value to determine how long idmapping entries are cached.
819         
820 2006-03-27 Steve Dickson <steved@redhat.com>
821         Set libnfsidmap library debugging level and logging function.
822
823         This patch adds a call to the new libnfsidmap library function 
824         nfs4_set_debug(), which defines the verbosity level libnfsidmap
825         should use as well as the logging function.
826
827 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
828         Don't close file descriptor until after calling event_del().
829
830         Delete event processing for a file descriptor before closing it.
831         This was causing hangs when used in combination with libevent-1.0b.
832
833 2006-03-27 kwc@citi.umich.edu
834         Find krb5-config on SuSE 10
835
836         SuSE 10.0 puts krb5-config in yet another obscure location.
837         Look for it there and use it if found.
838
839 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
840         Update debian package information.
841
842 2006-03-27 Kevin Coffman <kwc@citi.umich.edu>
843         Install /var/lib/nfs files using DESTDIR and add rpcsec headers to distribution
844
845         Add "$(DESTDIR)" to the paths for the "$(statedir)" files so they are
846         put in the right place when DESTDIR is defined.
847
848         Add the rpcsec header files to EXTRA_DIST list.
849
850 2005-12-21 NeilBrown <neilb@suse.de>
851         *utils/rquotad/rquota_server.c: Detect and handle both old-style
852         (2.4) and new-style(2.6) quotactl.
853         *utils/gssd/gss_destroy_cred: remove dependence on "head -1" which
854         might need to be "head -n 1"
855         *utils/nhfsstone/nhfsrun: convert "tail -1" to "tail -n 1"
856         
857 2005-12-20 Kevin Coffman <kwc@citi.umich.edu> NeilBrown <neilb@suse.de>
858         Substantial Makefile/configure rewrite.  
859         Run 'autogen.sh' to create "Makefile.in" etc.
860
861         Also add -D_FILE_OFFSET_BITS=64 to CPP_FLAGS so that mountd can
862         stat and export files larger than 2Gig.
863
864         1.0.8-rc2 released
865
866 2005-12-20 NeilBrown <neilb@suse.de>
867         support/nfs/exports.c(getexportent): is a null host name is given,
868         replace it with '*' so we have a non-empty host name for messages
869         etc.
870         utils/exportfs/exportfs.man: Correct documentation about default
871         export options.
872
873 2005-12-20 Kevin Coffman <kwc@citi.umich.edu>
874         utils/gssd/gssd_proc.c(create_auth_rpc_client): Use service
875           portion of clp->servicename rather than hard-coding "nfs". 
876
877 2005-12-16 NeilBrown <neilb@suse.de>
878         1.0.8-rc1 released
879
880 2005-12-16 Kevin Coffman <kwc@citi.umich.edu>
881         svcgssd needs -lnfs when using new function closeall().
882         
883         ---
884         Remove unused argument from nfsdopen()
885         
886         After previous changes, the arguement to nfsdopen() has become unused.
887         Remove it.
888         
889         ---
890         Fix idmapd error reporting after call to mydaemon()
891         
892         After call to mydaemon(), calls to err[x] and warn[x] result
893         in the message going nowhere.  Change to using idmapd_*
894         versions of these routines which write to syslog.
895         Original problem reported by Vincent Roqueta <vincent.roqueta@ext.bull.net>
896         with a different patch.
897         
898         ---
899         Don't add @domain to names that cannot be mapped.
900         
901         Per rfc3530 section 5.8: when unable to map a uid to a name, don't
902         add the @domain to the "nobody" name.
903         
904         ---
905         Fix idmapd for systems where sizeof(uid_t)!=4 and sizeof(gid_t)!=4
906         
907         Fix conversion cases where uid_t and gid_t are not 32 bits.
908         
909         ---
910         Don't segfault because mech wasn't filled in because of an error
911         
912         From Kevin Coffman <kwc@citi.umich.edu>
913         
914         Initialize mech to null to avoid segfault if an error occurs
915         and mech is never returned from gss_accept_sec_context.
916         
917         ---
918         Remove use of static buffer in do_downcall
919         
920         Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
921         
922         Dynamically allocate buffer of the correct length rather
923         than using fixed-length buffer.
924         
925         ---
926         Print better error message if rpc routine clnt_create() fails.
927         
928         ---
929         Print appropriate error messages after gss calls.
930         
931         Print gss error messages after calls to gss functions, even if they
932         are for Kerberos only.
933         
934         ---
935         Update gssd and svcgssd to use the new gss mech glue lucid context calls.
936         
937         Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
938         
939         Update gssd and svcgssd to use a lucid context from SPKM3 to send down
940         to the kernel.
941         Update gssd and svcgssd to use the new gss mech glue lucid context calls.
942         Add configure check to see if spkm3 support is available.
943         
944         ---
945         Add support for CONTINUE_NEEDED return from gss_accept_sec_context.
946         
947         Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
948         
949         Add CONTINUE_INIT handling to svcgssd. Store the partially complete spkm
950         context handle in the out_handle of CONTINUE_INIT messages so that it is
951         returned in the in_handle of subsequent messages.
952         
953         ---
954         Replace GSS_C_ANON_FLAG with GSS_C_MUTUAL_FLAG.
955         
956         Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
957         
958         Specify GSS_C_MUTUAL_FLAG rather than GSS_C_ANON_FLAG for
959         spkm3.
960         
961         NOTE: we need a way to pass the appropriate value rather than
962         hard-coding this flag.
963         
964         ---
965         Increase size of rpc send/receive buffers
966         
967         Change the clnt_create() to use routines which allow us to set the
968         send and receive buffer size.  This is needed for larger spkm3
969         exchanges including certificate chains.
970         
971         This has the side-effect of skipping the portmap call since
972         we specify the port (by specifying the service) when getting
973         the server's address information.
974         
975         ---
976         Define _LINUX_QUOTA_VERSION to 1
977         
978         The rquotad code is written against the "old" kernel quota interface.
979         Fedora Core 4 is the only platform known to check for different
980         versions, so this should not have any affect on other platforms
981         and fixes the build for FC4.
982         
983         ---
984
985 2005-12-12 Usha Ketineni <ketineni@us.ibm.com>, NeilBrown <neilb@suse.de>
986         *support/nfs/rpcmisc.c(rpc_init): is stdin is a socket, but
987         is already connected (as e.g. from ssh), don't assume we
988         were started by inetd.
989
990 2005-11-03 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
991         *utils/idmapd/idmaps.c:
992         
993         I've recently updated the nfs-utils in rawhide with the
994         latest patches from the SourceForge CVS tree and the
995         latest CITI patches (1.0.7-4).
996         
997         In testing these patches, I notice that when the server was started
998         and a SIGHUP was sent to rpc.idmapd to open the nfs4.nametoid/channel
999         and nfs4.idtoname/channel files, the second open (the nfs4.idtoname one)
1000         failed because the path (i.e. ic->ic_path) was NULL.
1001         
1002         Now the reason the ic_path was NULL was because it was never set
1003         during the call to nfsdopen(). nfsdopen() looks like:
1004         nfsdopen(char *path)
1005         {
1006              return ((nfsdopenone(&nfsd_ic[IC_NAMEID], IC_NAMEID, path) == 0 &&
1007              nfsdopenone(&nfsd_ic[IC_IDNAME], IC_IDNAME, path) == 0) ? 0 
1008                : -1);
1009         }
1010
1011         Note: the call to nfsdopenone() is how the path is set in each nfsd_ic[]
1012         entry and nfsdopen() is only called once.
1013         
1014         So when rpc.idmap comes up and the first call to nfsdopenone() fails
1015         (because the server is not running) the path in nfsd_ic[IC_IDNAME] is
1016         never filled in because the second nfsdopenone() never happen...
1017         
1018         Now there was a CITI patche (idmapd_revert_fix_reopen_on_sighup.dif)
1019         that tried to address this problem but did seem to fix it.. The
1020         attached patch fix the problem by initializing both nfsd_ic[IC_IDNAME]
1021         and nfsd_ic[IC_NAMEID] structures with the needed info...
1022         I figured since there is no way of changing these paths or filenames
1023         by command line args, why not just set them during compile time...
1024         so that's what this patch does.
1025         
1026         This patch also changes how nfsdreopen_one() handles the
1027         case where the event has already been set. Unlike the CITI
1028         patch (idmapd_revert_fix_reopen_on_sighup.dif) which just
1029         just does not register the second event, my patch deletes
1030         the old event and the registers the new one. It just seems like
1031         the right thing to do since a SIGHUP means a new server just
1032         started so we probably should create a new event as well...
1033         
1034         steved.
1035         
1036 2005-10-14 NeilBrown <neilb@suse.de>
1037         *utils/mountd/cache.c(nfsd_fh): Understand type 2 and type 3
1038         filesystem identifiers, which are used with device numbers
1039         That don't fit into 16 bits.
1040
1041 2005-10-07 Olaf Kirch <okir@suse.de>
1042         * utils/mountd/mountd.c(get_exportlist): Without this patch,
1043         showmount -e would sometimes display host names that should really
1044         have been subsumed under a wildcard entry.
1045
1046         The problem was that the code in get_exportlist would always
1047         skip the next group entry after removing one FQDN.
1048
1049 2005-10-06 Steve Dickson <SteveD@redhat.com> NeilBrown <neilb@suse.de>
1050         * support/nfs/export.c: don't warn about sync/async for readonly
1051         exports
1052         * support/nfs/closeall.c: new file with function to close all 
1053         file descriptors from a give minimum upwards.
1054         * nfsd/mountd/statd/idmapd/gsssvcd: use closeall.
1055         * utils/mountd/mountd.c: Eliminate 3 syslog message that are
1056         logged for successful events. 
1057         * utils/mountd/mountd.c: make sure the correct hostname is used in
1058         the SM_NOTIFY message that is sent from a rebooted server which
1059         has multiple network interfaces. (bz 139101)
1060
1061         Details can be found in:
1062         https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=139101
1063
1064         *utils/idmapd/idmapd.c:Fixed subscripting problem in idmapd (bz
1065         158188) This fixes the following problem: 
1066          rpc.idmapd: nfsdreopen: Opening '' failed: errno 2 (No such file or directory)
1067
1068          Details can be found in:
1069          https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=158188
1070
1071         *utils/statd/statd.c(drop_privs): clear st_gid as well as st_uid
1072         of stat fails.
1073         *utils/statd/svc_run.c(my_svc_run): remove usage of undocumented
1074         %m format specifier.
1075         *utils/statd/montor.c(sm_mon_1_svc): as above
1076         *support/nfs/xlog.c(xlog): Changed xlog to use LOG_INFO instead of
1077         LOG_DEBUG so debug messages will appear w/out any config changes
1078         to syslog.conf. 
1079
1080         
1081 2005-09-02 Mike Frysinger <vapier@gentoo.org>
1082         * utils/rquotad/rquota_server.c(getquotainfo): use explicit
1083         struture-member copying rather than memcpy, as the element
1084         sizes are the same on all architectures.
1085
1086 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
1087         Add option to set rpcsec_gss debugging level (if available)
1088
1089         Changes to allow gssd/svcgssd to build when using Hiemdal Kerberos
1090         libraries.  Note that there are still run-time issues preventing
1091         this from working when shared libraries for libgssapi and librpcsecgss
1092         are used.
1093         
1094 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
1095         Remove the rpcsec_gss code and rely on an external library instead.
1096
1097 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
1098         *utils/mountd/mountd.c:
1099         mountd currently always returns AUTH_NULL and AUTH_SYS as the
1100         allowable flavors in mount replies.  We want it to also return gss
1101         flavors when appropriate. For now as a hack we just have it always
1102         return the KRB5 flavors as well. 
1103
1104         *utils/mountd/cache.c:
1105         
1106         When attempting to mount an NFSv4 pseudofilesystem (fsid=0) and the
1107         actual exported directory does not exist on the server, rpc.mountd
1108         doesn't check the directory exists (when fsidtype=1, i.e. using fsid,
1109         but does check for fsidtype=0, i.e. using dev/ino).  The non-existent
1110         exported directory path with fsid=0 is written to the kernel via
1111         /proc/net/rpc/nfsd.export/channel, which leads to path_lookup() to
1112         return ENOENT (seems appropriate).  Unfortunately, the new_cache
1113         approach ignores errors returned when writing via the channel file so
1114         that particular error is lost and the mount request is silently ignored.
1115         
1116         Assuming it doesn't make sense to revamp the new_cache/up-call method to
1117         not ignore returned errors, it seems appropriate to fix the case where
1118         rpc.mountd doesn't check for the existence of an exported directory with
1119         fsid= semantics.  The following patch does this by moving the stat() up
1120         so it is done for both fsidtype's.  I'm not certain whether the other
1121         tests need to be executed for fsidtype=1, but it doesn't appear to hurt
1122         [Not exactly true: the comparison of inode numbers caused problems so
1123         now it's kept for fsidtype=0 only].
1124         
1125         Would it be also desirable to log a warning for every error, if any,
1126         returned by a write to any of the /proc/net/rpc/*/channel files which
1127         would otherwise be ignored (maybe under a debug flag)?
1128
1129         * gssd/mountd/svcgssd: Changes gssd, svcgssd, and mountd to ignore a
1130         SIGHUP rather than dying.
1131
1132         * many: Remove the gssapi code and rely on an external library instead.
1133
1134 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
1135         * utils/exportfs/exports.man: Document the "crossmnt" export export option
1136         * utils/gssd/krb5_util.c: 
1137         Add better debugging and partially revert the function
1138         check for gss_krb5_ccache_name.
1139         
1140         For MIT Kerberos releases up to and including 1.3.1, we *must*
1141         use the routine gss_krb5_ccache_name to get the K5 gssapi code
1142         to use a different credentials cache.
1143         
1144         For releases 1.3.2 and on, we want to use the KRB5CCNAME
1145         environment variable to tell it what to use.
1146         (A problem was reported where 1.3.5 was being used, our
1147         code was using gss_krb5_ccache_name, but the underlying
1148         code continued to use the first (or default?) credentials
1149         cache.  Switching to using the env variable fixed the problem.
1150         I cannot recreate this problem.
1151
1152         *utils/gssd/krb5_util.c:
1153         Andrew Mahone <andrew.mahone@gmail.com> reported that reiser4
1154         always has DT_UNKNOWN.  He supplied patch to move the check
1155         for regular files after the stat() call to correctly find
1156         ccache files in reiser4 filesystem.
1157         
1158         Also change the name comparison so that the wrong file is
1159         not selected when the substring comparison is done.
1160
1161         *utils/gssd/krb5_util.c:
1162         Limit the set of encryption types that can be negotiated by
1163         the Kerberos library to those that the kernel code currently
1164         supports.
1165         
1166         This should eventually query the kernel for the list of
1167         supported enctypes.
1168
1169         *utils/gssd/gss_util.c, utils/svcgssd/svcgssd_main_loop.c:
1170         Print more information in error messages to help debugging failures.
1171
1172         *utils/svcgssd/svcgssd_proc.c: Increase token buffer size and
1173         update error handling so that a response is always sent.
1174
1175         *utils/svcgssd/svcgssd_proc.c: Add support to retrieve
1176         supplementary groups. 
1177         
1178         
1179 2005-08-26 Kevin Coffman <kwc@citi.umich.edu>
1180         * configure.in etc
1181         Consolidate some of the Kerberos checking instead of repeating
1182         the same things for MIT and Heimdal.
1183         Also adds more checks to distinguish 32-bit from 64-bit
1184         (mainly for gssapi.h)
1185         Fix svcgssd Makefile so make TOP=../../ works correctly there.
1186         Enable running a modern autoheader.
1187         * utils/gssd/gss_oids.c: Use correct OID value for SPKM-3
1188         * utils/gssd/gss_util.c: Fix build with older MIT releases that do not define GSS_C_NT_HOSTBASED_SERVICE
1189         * utils/gssd/write_bytes.h, support/include/gssapi/gssapi.h:
1190         Length of gss_buffer_desc is a size_t which is 64-bits on a
1191         64-bit machine.  Kernel code expects 32-bit integer for length.
1192         Coerce length value into a 32-bit value when reading from or
1193         writing to the kernel.
1194         Change gssapi.h to use datatype size values obtained from
1195         configure rather than hard-coded values.
1196         * utils/idmapd/idmapd.c: The EV_INIT check here was wrong, and was
1197         causing idmapd to become unresponsive to server requests after
1198         receiving a sighup. 
1199         * utils/idmapd/idmapd.c: Idmapd should flush the server id<->name
1200         caches when its started. 
1201
1202 2005-04-12  G. Allen Morris III <gam3@gam3.net>
1203
1204         * All Makefile: added TOP as needed for easier compile.
1205
1206         * utils/nfsstat/nfsstat.c: added NFS V4 support; added the -m
1207           option; Added -2, -3, and -4 options; changed -a option to -v
1208           option; added long options; changed default output to not
1209           show V2 NFS statistics unless used.
1210
1211         * utils/nfsstat/nfsstat.man: Documented above changes; changed
1212           authors email address; added BUGS section.
1213
1214 2005-04-07  Chip Salzenberg  <chip@pobox.com>
1215
1216         * debian/changelog: Version 1.0.7-2.
1217
1218 2005-04-06  Chip Salzenberg  <chip@pobox.com>
1219
1220         * config.guess, config.sub: Update.
1221
1222         * support/rpc/svc_auth_gss.c (_svcauth_gss): Avoid using a cast as
1223         an lvalue, as it is non-portable.
1224
1225         * support/nfs/exports.c (parseopts): Accept "acl" option to mean
1226         ~NFSEXP_NOACL, and "no_acl" to mean NFSEXP_NOACL.
1227         (putexportent): Report NFSEXP_NOACL as "no_acl", and ~NFSEXP_NOACL
1228         as "acl".
1229         * utils/exportfs/exportfs.c (dump): Report NFSEXP_NOACL as
1230         "no_acl".
1231         * utils/exportfs/exports.man: Document "no_acl".
1232
1233 2005-03-14  NeilBrown <neilb@cse.unsw.edu.au>
1234         Denis Vlasenko <vda@ilport.com.ua>
1235         * support/export/client.c(client_init and client_gettype):
1236         treat N.N.N.N as a special case of MCL_SUBNETWORK instead of 
1237         MCL_FQDN
1238
1239 2005-03-06  G. Allen Morris III <gam3@gam3.net>
1240         * support/nfs/cacheio.c(readline): Could not read lines greater
1241         than 128 bytes. [1157791] 
1242         * utils/exportfs/exports.man: Added a SEE ALSO section and
1243         fixed 2 typos. [1018450]
1244
1245 2005-02-28  Trond Myklebust <trond.myklebust@fys.uio.no>
1246         * utils/statd/rmtcall.c(statd_get_socket): If a port number is
1247         explicitly given, make sure to try to bind to that.
1248         
1249 2005-01-11  Chip Salzenberg  <chip@pobox.com>
1250
1251         * debian/changelog: Version 1.0.7-1.
1252         * debian/nfs-common.default (NEED_IDMAPD, NEED_GSSD):
1253         Disable by default, on advice of upstream.
1254         * debian/nfs-kernel-server.default (NEED_SVCGSSD):
1255         Likewise.
1256
1257         * utils/svcgssd/Makefile (predep): Symbolically link duplicated
1258         source files.
1259         (distclean): Remove symlinks to duplicated files.
1260
1261 2004-12-17 NeilBrown <neilb@cse.unsw.edu.au>
1262         Release 1.0.7
1263
1264         * config.mk, configure.in: update version number, run autoconf
1265         * configure.in: require nfsidmap.h if gss is enabled.
1266         
1267 2004-12-10 NeilBrown <neilb@cse.unsw.edu.au>
1268         Release 1.0.7-pre2
1269         
1270         * config.mk, configure.in: update version number, run autoconf
1271         
1272 2004-12-10 Neil Brown <neilb@cse.unsw.edu.au>
1273         * README : note dependancy on kerberos, libevent, and nfsidmap
1274         * configure.in : fail if --enable-nfsv4 and libevent or
1275         libnfsidmap are missing.
1276         * configuyre.in: improve message if krb5 support is missing
1277         
1278 2004-12-06 Paul Clements <paul.clements@steeleye.com>   
1279         * support/include/ha-callout.h: get return status from waitpid
1280         correctly. 
1281         * support/include/ha-callout.h: don't ignore SIGCHLD while waiting
1282         for a callout to complete.
1283         * utils/statd/statd.c(sigusr): print current start when re-reading
1284         notify list due to SIGUSR1
1285         * utils/statd/svc_run.c(my_svc_run): call change_state when
1286         re-notifying clients.
1287         
1288 2004-12-06 Marc Eshel <eshel@almaden.ibm.com>
1289         * utils/statd/svc_run.c(my_svc_run): allow loop to exit when in
1290         MODE_NOTIFY_ONLY
1291         *utils/statd/rmtcall.c(statd_get_socket): if a hostname is given
1292         to statd with -n, prefer it's IP address to the default for
1293         listening on.
1294         
1295 2004-12-06 Bruce Allan <bwa@us.ibm.com>
1296         * utils/mountd/auth.c(auth_reload)  Clear the "my_client" cache on
1297         an auth_reload to avoid old data getting used.
1298         
1299 2004-12-03 NeilBrown <neilb@cse.unsw.edu.au>
1300         Release 1.0.7-pre1 for testing
1301         
1302         * config.mk, configure.in: update version number, run autoconf
1303         
1304 2004-12-03 Trond Myklebust <trond.myklebust@fys.uio.no>
1305
1306         * utils/statd/statd.c(main): ignore SIGPIPE
1307         
1308 2004-11-22 "J. Bruce Fields" <bfields@fieldses.org>
1309
1310         * tools/rpcdebug/rpcdebug.c: support aliases "nfsdebug" and
1311         "nfsddebug" and update flag names.
1312         * configure.in, nodist/* redhat/* nfs-utils.spec*: remove redhat
1313         specific files (as no-one actually uses them, especially not
1314         redhat), and the nodist /etc files (as they drift out-of-date, and
1315         the debian directory provides a suitable example.
1316         * utils/svcgssd_proc.c(get_ids): fix memory leak
1317         * utils/svcgssd/svcgssd_proc.c: Rely on count of the number of
1318         groups instead of using a special guard value to identify the end
1319         of the list. 
1320         * utils/idmapd/idmapd.c: don't allow Default domain and anon-uid
1321         or -gid to be specified on command line.
1322         * utils/idmapd/idmapd.c: improve error messages
1323         * utils/idmapd/idmapd.c: Reopen nfsd files on sighup.  Allows us
1324         to start up client side only (even when nfsd module not loaded),
1325         and then sighup later after insmodding nfsd module. 
1326         * utils/idmapd/idmapd.c: Make sure we catch all errors on
1327         daemonizing by waiting for child to report succesfull startup
1328         using a pipe. 
1329         * utils/idmapd/idmapd.c: Let libnfsidmapd parse the idmapd.conf
1330         file for the default domain, instead of doing that ourselves.
1331         * utils/gssd/gssd_proc.c: Make sure we get an error when a gssd
1332         downcall fails. 
1333         * utils/gssd/gssd_proc.c: We were forgetting to restore the euid
1334         on certain failures, which meant gssd could get stuck in a state
1335         where it didn't have permissions to read the files in rpc_pipefs
1336         that it needed to. 
1337         * utils/gssd/gssd_proc.c: Use libnfsidmapd to map gss principals
1338         to uids. 
1339         * debian/nfs-kernel-server.default: Document the NEED_SVCGSSD
1340         variable in /etc/default/nfs-kernel-server. 
1341
1342         
1343 2004-11-22 NeilBrown <neilb@cse.unsw.edu.au>
1344
1345         * utils/exportfs/nfsd.man: corrected typo in .BR macro usage -
1346         reported by Eric Raymond
1347         
1348 2004-10-19 "J. Bruce Fields" <bfields@fieldses.org>
1349
1350         * support/gssapi/* support/rpc/* utils/gssd/* utils/svcgssd/* etc
1351         initial support for GSSAPI authentication
1352         
1353 2004-09-15 Neil Brown <neilb@cse.unsw.edu.au>
1354
1355         * utils/statd/monitor.c(sm_unmon_1_svc): is RESTRICTED_STATD, then
1356         check IP address and force my_name to 127.0.0.1 to match 
1357         what happens in sm_mon_1_svc.  This avoid spurious "erroneous
1358         SM_UNMON" messages.
1359         * utils/statd.monitor.c(sm_unmon_all_1_svc): likewise
1360         
1361 2004-09-15 "J. Bruce Fields" <bfields@fieldses.org>     
1362
1363         * Assorted changes to support "gss/*" style authentication
1364         * utils/idmapd: new idmapd daemon for nfsv4 username lookup
1365         
1366 2004-09-06 Trond Myklebust <trond.myklebust@fys.uio.no>
1367         Neil Brown <neilb@cse.unsw.edu.au>
1368
1369         * utils/mountd/auth.c(auth_authenticate_internal): fix
1370         uninitialsed variable problem (causes bad error messages).
1371
1372 2004-09-06 Paul Clements <paul.clements@steeleye.com>
1373         Neil Brown <neilb@cse.unsw.edu.au>
1374
1375         * utils/mountd/mountd.c(main): support --ha-callout (-H) for
1376         specifying a callout program
1377         * utils/mountd/rmtab.c: Call ha_callout on mount/unmount
1378         * utils/statd/monitor.c: Call ha_callout on add/del client
1379         * utils/statd/rmtcall.c: as above
1380         * utils/statd/statd.c: handle --ha-callout (-H)
1381         * utils/statd/svc_run.c: call notify_hosts is we have received a
1382         sighup
1383         * support/include/ha-callout.h: define ha_callout function
1384          
1385         
1386 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
1387         * utils/mountd/cache.c(cache_process_req): clear fd after
1388         processing so as not to confused libc/sunrpc into thinking
1389         it need to do something with that fd.
1390         
1391 2004-08-31 NeilBrown <neilb@cse.unsw.edu.au>
1392
1393         * debian/nfs-kernel-server.init(start,stop) mount the nfsd
1394         filesystem, if available, before starting nfs services, and 
1395         unmount it afterwards.
1396         * etc/nodist/nfs-server: ditto
1397         * etc/redhat/nfs.init: likewise
1398         * etc/redhat/nfs: add "MOUNT_NFSD" flag to control above.
1399         
1400 2004-06-08 NeilBrown <neilb@cse.unsw.edu.au>
1401
1402         * utils/exportfs/exportfs.c: Don't rmtab_read if new_cache, it
1403           isn't necessary.
1404         * support/nfs/cacheio.c(cache_flush): Change order in which caches
1405           are flushed so that dependancies don't keep things in the cache
1406           too long.
1407         
1408 2004-03-18  Chip Salzenberg  <chip@pobox.com>
1409
1410         * debian/changelog: Version 1.0.6-2.
1411
1412 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
1413         from "J. Bruce Fields" <bfields@fieldses.org>
1414
1415         * utils/mountd/cache.c: call auth_reload to make sure auth data is
1416         current before responding to kernel upcall.
1417         
1418 2004-02-24 NeilBrown <neilb@cse.unsw.edu.au>
1419         Based on patch from  Greg Banks <gnb@melbourne.sgi.com>
1420
1421         * utils/exportfs/exports.man: Document fsid= option.
1422         
1423 2003-09-15 NeilBrown <neilb@cse.unsw.edu.au>
1424
1425         Release 1.0.6
1426
1427         * rules.mk: Add dep: rule when no OBJS, so "make dep" works in
1428         support/include, and depend in "predep"
1429         * support/export/Makefile, tools/rpcgen/Makefile,
1430         utils/statd/Makefile: add "predep" rule so that "make dep" works.
1431         * Makefile: allow a simple "make" to run ./configure and "make dep"
1432         if needed.
1433         * configure.in, nfs-utils.spec: Update version to 1.0.6
1434         * run autoconf
1435         
1436 2003-09-12  Chip Salzenberg  <chip@pobox.com>
1437
1438         * debian/changelog: Version 1.0.6-1.
1439
1440 2003-09-12 NeilBrown <neilb@cse.unsw.edu.au>
1441
1442         * utils/mountd/mountd.c(main): Impose FD_SETSIZE as an upper limit
1443         for RLIMIT_NOFILE
1444         * utils/statd/statd.c(main): Ditto.
1445
1446            michael <michael@newdream.net> discovered that svc_setreqsize
1447            in glibc can segfault if RLIMIT_NOFILE is bigger than
1448            FD_SETSIZE, so a simple solution is to impose a hard limit.
1449
1450 2003-09-09  Chip Salzenberg  <chip@pobox.com>
1451
1452         * debian/changelog: Version 1.0.5-3.
1453         * support/export/hostname.c (get_reliable_hostbyaddr): Fix crash
1454         on invalid reverse DNS.
1455         * utils/showmount/showmount.c (main): Fix inet_ntoa() parameter.
1456         * tools/rpcgen/rpc_cout.c (print_header): Remove unused vars.
1457         * tools/rpcgen/rpc_parse.c (def_union): Likewise.
1458
1459 2003-08-22  Chip Salzenberg  <chip@pobox.com>
1460
1461         * utils/statd/{log.h,log.c}: Rename log() to note() and L_* to
1462         N_*, to avoid conflict with ISO C built-in log() function.
1463         * utils/statd/*.c: Use note().
1464
1465 2003-08-20  Chip Salzenberg  <chip@pobox.com>
1466
1467         * debian/changelog: Version 1.0.5-2.
1468
1469 2003-08-11 NeilBrown <neilb@cse.unsw.edu.au>
1470
1471         * utils/mountd/cache.c(cache_get_filehandle): close the filehandle
1472         before returning.
1473         
1474 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
1475
1476         * support/include/nfs/export.h, support/nfs/exports.c,
1477         utils/exportfs/exports.c, utils/mountd/mountd.c:  change
1478         NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT to avoid confusion with older
1479         meaning. Also remove meaningless
1480         NFSEXP_{UIDMAP,KERBEROS,SUNSECURE}
1481         
1482 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
1483
1484         * support/export/xtab.c, support/include/nfslib.h,
1485         support/nfs/cacheio.c, support/nfs/nfssvc.c,
1486         utils/exportfs/exportfs.c, utils/exportfs/exportfs.man,
1487         utils/exportfs/nfsd.man, utils/mountd/cache.c: support
1488         /proc/fs/nfsd/* as a perferred alternate to /proc/fs/nfs/*
1489         (nfs-utils-1.0.5-post2)
1490         
1491 2003-08-04 NeilBrown <neilb@cse.unsw.edu.au>
1492
1493         * support/nfs/nfsexport.c: open channel file O_WRONLY when
1494         only writing.
1495         * utils/mountd/cache.c: maintain mountlist when new_cache is
1496         active. Also use O_WRONLY for channel files.
1497         * utils/mountd/mountd.h: mountlist_{del,add} now take a host name
1498         rather than an nfs_export.
1499         * utils/mountd/rmtab.c: ditto.
1500         (nfs-utils-1.5.0-post1)
1501         
1502 2003-07-24  Chip Salzenberg  <chip@pobox.com>
1503
1504         * support/nfs/xlog.c (xlog): Revise buffer-overflow fix to
1505         use Debian security team's cleaner approach.
1506         * debian/changelog: Version 1.0.5-1.
1507         * debian/nfs-kernel-server.init: Cosmetic changes.
1508
1509 2003-07-18 NeilBrown <neilb@cse.unsw.edu.au>
1510
1511         Release 1.0.5:
1512          1.0.4 was a bit of a brown-paper-bag-release because of the extra
1513          'free' in auth.c.  So I'm releasing this just a few days later.
1514
1515         * support/nfs/cacheio.c(cache_flush): Correct test for 'open
1516         failed'
1517         * utils/exportfs/exportfs.c(main): If "-f" given as lone option,
1518         check if new_cache is enabled, error if not, flush and exit if it
1519         is. 
1520         * utils/exportfs/exportfs.man: Explain -f option and explain the
1521         two different modes that exportfs can work in.
1522         * utils/mountd/mountd.c: Do not change RLIMIT_NOFILE if the -o
1523         option wasn't given.
1524         * utils/mountd/mountd.man: Record the change if default behaviour
1525         for RLIMIT_NOFILE.
1526         * configure.in, nfs-utils.spec: update version to 1.0.5 and
1527         run autoconf
1528         
1529 2003-07-15 NeilBrown <neilb@cse.unsw.edu.au>
1530
1531         * utils/mountd/mountd.c(main): getopt string fix for 'o'
1532         * utils/mountd/auth.c(auth_authenticate): remove extra 'free'
1533         * utils/exportfs/exportfs.c(main): make 'exportfs -f' just flush
1534         the caches.
1535         * support/include/nfs/export.h: Reserve a bit for possible ACL
1536         related use.
1537         
1538 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
1539
1540         * utils/exportfs/nfsd.man: new man page for nfsd filesystem. Also
1541         assorted changed to cope with section 7 of the manual.
1542         * configure.in, nfs-utils.spec: Update version to 1.0.4
1543         * run autoconf
1544
1545         This is a 'pre-release' for 1.1.0  Hopefully 1.1.0 will be the
1546         baseline for 2.6 and 2.8.  I.e. it should continue to work right
1547         through the 2.8 (or 3.0) kernel series.  Previous releases wont.
1548
1549 2003-07-04 NeilBrown <neilb@cse.unsw.edu.au>    
1550         Steve Dickson <SteveD@redhat.com>
1551
1552         statd cleanup:
1553         * utils/statd/statd.c: create a pidfile with pid of statd, and
1554         truncate it when statd exists.
1555         * utils/statd/statd.c: drop privs by setuid to owner of SM_DIR,
1556         and warn if this is root.
1557         * utils/statd/statd.c: when statd forks, connect child to parent
1558         with a pipe, and send a byte down the pipe once the child is
1559         working properly.
1560         * Makefile: create and chown sm, sm.bak, state when "make install"
1561         * configure.in: add --with-statduser= option which defaults to
1562         "rpcuser" or "nobody"
1563         * config.mk.in: pass "statduser" through to Makefile
1564         
1565 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
1566
1567         * support/include/nfs/nfs.h: Make sure correct __kernel_dev_t is
1568         used as the size was changed somewhere in 2.5.60-2.5.70.  Without
1569         this nfs-utils compiles against 2.6 headers will not work on a
1570         2.4 kernel.     
1571         
1572 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
1573
1574         * support/nfs/nfssvc.c(nfssvc): If /proc/fs/nfs/threads exists,
1575         set number of threads by writing to there.  This means it will
1576         still work when the syscall interface goes away in 2.7.
1577
1578 2003-07-03 NeilBrown <neilb@cse.unsw.edu.au>
1579         fumihiko kakuma <kakmy@mvh.biglobe.ne.jp>
1580
1581         * utils/exportfs/exportfs.c(unexportfs): improve host comparison
1582         so as to only export the wildcard exports that were asked for.
1583         * support/export/export.c(export_allowed): changed to return the
1584         nfs_export rather than a "struct exportent", as m_changed is
1585         needed by called
1586         * support/export/rmtab.c(rmtab_read): modified to deal with
1587         interface change for export_allowed(), and enhanced to preserve
1588         m_changed flag when a wild-card export causes the creation of
1589         a non-wildcard export.
1590         
1591 2003-07-02 NeilBrown <neilb@cse.unsw.edu.au>
1592         Steve Dickson <SteveD@redhat.com>
1593
1594         * utils/mountd/mountd.man: Add valid kinds of debugging.
1595         * utils/mountd/mountd.c(main): ignore SIGPIPE
1596         * utils/nfsstat/nfsstat.c: fine-tune printing of warning so
1597         we don't get warnings about unavailable stats that weren't asked
1598         for.
1599         
1600 2003-06-24 NeilBrown <neilb@cse.unsw.edu.au>
1601
1602         * support/nfs/nfsexport.c(exp_unexp): When unexporting filesystems
1603         via /rpc/net/rpc/nfsd*/channel, set the expiry date to 1, not
1604         'forever', so things disappear out of the cache rather than just
1605         be ignored. 
1606         
1607 2003-06-16  "J. Bruce Fields" <bfields@fieldses.org>
1608
1609         * utils/mountd/cache.c(nfsd_fh): don't export the export_ent
1610         if it wasn't found.
1611
1612 2003-06-16  NeilBrown   <neilb@cse.unsw.edu.au>
1613
1614         * debian/nfs-kernel-server.init,etc/nodist/nfs-server,
1615         etc/redhat/nfs.init: when checking if V3 is supported, make sure
1616         nfs server 'knows' about 127.0.0.1 first.
1617         
1618 2003-06-10  Chip Salzenberg  <chip@pobox.com>
1619
1620         * support/nfs/xlog.c (xlog): Fix off-by-one buffer overflow bug.
1621         * debian/changelog: Version 1.0.3-2.
1622
1623 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
1624         NeilBrown <neilb@cse.unsw.edu.au>
1625
1626         utils/nfsstat/nfsstat.c(print_callstats): use unsigned
1627         long long to avoid overflow when printing stats.
1628         
1629 2003-05-30  NeilBrown <neilb@cse.unsw.edu.au>
1630
1631         * support/export/export.c, support/include/nfslib.h,
1632         support/nfs/export.c, utils/exportfs/exportfs.c,
1633         utils/mountd/mountd.c: new export option "mountpoint"
1634         If no path is given, then the export point must be a
1635         mount point, or it won't be exported.  If a path is 
1636         given (e.g. mountpoint=/path) then that path must be
1637         a mountpoint or the exportpoint won't be exported.
1638         * utils/exportfs/exportfs.man: document mountpoint option.
1639         * support/misc/mountpoint.c: New file with is_mountpoint()
1640         to determine if something is a mountpoint.
1641         
1642 2003-05-23  NeilBrown <neilb@cse.unsw.edu.au>
1643
1644         * utils/mountd/cache.c(cache_get_filehandle): take a separate path
1645         argument as we might not be getting the filehandle for the
1646         mountpoint.
1647         * utils/mountd/mountd.c(get_rootfh): pass real path when calling
1648         cache_get_filehandle.
1649         * utils/mountd/mountd.c(get_rootfh): check export point and
1650         requested directory are on the same filesystem, and complain if
1651         not.
1652         
1653 2003-05-22  NeilBrown <neilb@cse.unsw.edu.au>
1654
1655         * utils/mountd/auth.c(auth_authenticate_internal): make sure
1656         portnumber is still checked when using new cache lookup.
1657         
1658 2003-05-21  NeilBrown <neilb@cse.unsw.edu.au>
1659
1660         * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
1661          Don't actually talk to kernel when new cache is in effect, except
1662          to flush
1663         * utils/exportfs/exportfs.c: add -f option to fully flush cache.
1664         * support/export/xtab.c: Only rename new xtab into place if it has
1665          changed, thus preserving modify date for exportfs to use when
1666          flushing.
1667         * support/nfs/cacheio.c: Add cache_flush
1668         * support/export/xtab.c: Only rename new xtab into place if it has
1669          changed, thus preserving modify date for exportfs to use when
1670          flushing.
1671         
1672 2003-05-21  NeilBrown <neilb@cse.unsw.edu.au>
1673
1674         * support/export/client.c: Add client_compose, client_member to
1675         handle new composite client names
1676         * support/include/exportfs.h: Declare above functions.
1677         * utils/mountd/auth.c: use client_compose to determine calling
1678         client if new cache is being used.
1679         * utils/mountd/auth.c: call cache_export to export a filesystem if
1680         new_cache, check if new cache is used, and call my_svc_run instead
1681         of svc_run
1682         * utils/mountd/svc_run.c: new file defining my_svc_run
1683         * utils/mountd/cache.c: new file for handling cache upcalls.
1684         * support/nfs/cacheio.c(check_new_cache): new function to check if
1685         new cache should be used.
1686         
1687         
1688 2003-05-21  NeilBrown <neilb@cse.unsw.edu.au>
1689
1690         * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
1691         * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
1692         * utils/exportfs/exportfs.c(dump): ditto
1693         
1694 2003-05-21  NeilBrown <neilb@cse.unsw.edu.au>
1695
1696         * support/export/hostname.c(get_reliable_hostbyaddr): new function
1697         to get host name from address with full checking of authenticity.
1698         * support/include/misc.h: declare above function
1699         * utils/mountd/auth.c(auth_authenticate_internal): remove all
1700         logic for authenticating address.
1701         * utils/mountd/auth.c(auth_authenticate): call new
1702         get_reliable_hostbyaddr to to hostname lookup before calling _internal.
1703         
1704         
1705 2003-03-30  NeilBrown <neilb@cse.unsw.edu.au>
1706
1707         * tools/rpcgen/rpc_main.c(find_cpp): removed
1708         * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp", 
1709         then try hard-coded paths.
1710         
1711 2003-03-26  Chip Salzenberg  <chip@pobox.com>
1712
1713         * debian/changelog: Version 1.0.3-1.
1714
1715 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
1716
1717         * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
1718         "const char*", not "char*".
1719
1720 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
1721
1722         * configure.in (VERSION): Set to "1.0.3".
1723         * nfs-utils.spec: Likewise.
1724         * configure: Regenerated.
1725
1726 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
1727
1728         * support/nfs/cacheio.c: New File - support for read/writing
1729         to export cache in /proc/rpc/*/channel
1730         * support/nfs/Makefile: compile cacheio.c
1731         * support/include/nfslib.h: declare cacheio.c functions
1732         * support/nfs/nfsexport.c: export and unexport through
1733         /proc/rpc/*/channel if possible, as old syscall interface
1734         may not survive into 2.6 on all architectures.
1735         
1736 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>    
1737         Ben Leslie <benno@sesgroup.net>
1738
1739         * support/nfs/rpcmisc.c(rpc_init):  change test for ignoring
1740         "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0).  The
1741         former would incorectly ignore defport if the application 
1742         explicitly set __rpcfdtype.  The later is sufficient to avoid the
1743         special handling in the case where stdin is an internet socket.
1744
1745         * utils/mountd/mountd.c(main): Add 'n' to option list in
1746         getopt_long as this is a short form of --no-tcp which want being
1747         checked.
1748         
1749 2003-02-12  Chip Salzenberg  <chip@pobox.com>
1750
1751         * debian/changelog: Version 1.0.2-2.
1752
1753 2002-11-27  Chip Salzenberg  <chip@pobox.com>
1754
1755         * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
1756         overflow bug.  Reformat per rest of source file.
1757
1758 2002-11-19  NeilBrown <neilb@cse.unsw.edu.au>
1759
1760         * utils/exportfs/exports.man: Correct notes about whether the wild
1761         card characters match a period.  They do.
1762         
1763 2002-10-15  Juan Gomez <juang@us.ibm.com>
1764
1765         * utils/mountd/rmtab.c (slink_safe_rename): New. Support
1766         symlink.
1767         (mountlist_add): Call slink_safe_rename instead of rename.
1768
1769 2002-10-11  H.J. Lu <hjl@lucon.org>
1770
1771         * support/include/exportfs.h (export_errno): New.
1772
1773         * support/nfs/exports.c: Include <errno.h>.
1774         (export_errno): New.
1775         (getexportent): Set export_errno to EINVAL for bad option.
1776         (parseopts): Likewise.
1777         Report the location of the default sync/async option.
1778
1779         * utils/exportfs/exportfs.c (main): Initialize export_errno to
1780         0. Return export_errno.
1781
1782 2002-10-11  Juan Gomez  <gomez@cs.sjsu.edu>
1783         NeilBrown <neilb@cse.unsw.edu.au>
1784
1785         utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
1786         utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
1787         
1788 2002-09-16  Chip Salzenberg  <chip@pobox.com>
1789
1790         * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
1791
1792 2002-09-15  Chip Salzenberg  <chip@pobox.com>
1793
1794         * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
1795         socket, as occurs when run from sshd.
1796         * debian/changelog: Version 1.0.2-1.
1797
1798 2002-09-12  H.J. Lu <hjl@lucon.org>
1799
1800         * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
1801         HAVE_SVCUDP_SOCKET.
1802
1803 2002-09-12  H.J. Lu <hjl@lucon.org>
1804
1805         * configure.in: Remove checking svctcp_socket and svcudp_socket.
1806         * configure: Regenerated.
1807
1808         * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
1809         (HAVE_SVCUDP_SOCKET): Removed.
1810
1811         * support/include/nfslib.h: Undo the last change.
1812
1813 2002-09-12  H.J. Lu <hjl@lucon.org>
1814
1815         * support/include/nfslib.h (svctcp_socket): Protect it with
1816         HAVE_SVCTCP_SOCKET.
1817         (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
1818
1819 2002-09-12  H.J. Lu <hjl@lucon.org>
1820
1821         * configure.in (VERSION): Set to "1.0.2".
1822         * configure: Regenerated.
1823         * nfs-utils.spec: Likewise.
1824
1825 2002-09-12  H.J. Lu <hjl@lucon.org>
1826
1827         * configure.in: Check svctcp_socket and svcudp_socket.
1828         * configure: Regenerated.
1829
1830         * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
1831         (HAVE_SVCUDP_SOCKET): New.
1832
1833         * support/include/nfslib.h (svctcp_socket): New.
1834         (svcudp_socket): New.
1835
1836         * support/nfs/Makefile (OBJS): Add svc_socket.o.
1837
1838         * support/nfs/svc_socket.c: New.
1839
1840         * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
1841         svcudp_socket if port is unspecified.
1842
1843         * utils/nfsd/nfsd.c (main): Call getservbyname for port.
1844
1845         * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
1846         (killer): New. Signal handler to unregister.
1847         (main): Use killer. Call svcudp_socket to get the default
1848         socket.
1849
1850 2002-09-02 Juan Gomez <juang@us.ibm.com>
1851         NeilBrown <neilb@cse.unsw.edu.au>
1852
1853         Add -N option to statd to run in notify-only mode.
1854
1855         * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
1856         * utils/statd/statd.man: document -N
1857         * utils/statd/statd.c: enabled -N, largely exists but needed to be
1858         uncommented and completed
1859         
1860 2002-09-02 Juan Gomez <juang@us.ibm.com>
1861         NeilBrown <neilb@cse.unsw.edu.au>
1862
1863         statd to have " -P directory" arg to use that directory instead
1864         of /var/lib/nfs.  This is useful for fail-over clusters.
1865         
1866         * utils/statd/statd.h: define SM_DIR etc as var, not const.
1867         * utils/statd/statd.c: define "-P" option to set SM_*
1868         appropriately.
1869         * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
1870         a constant any more.
1871         * utils/statd/notify.c: ditto.
1872         * utils/statd/statd.man: document -P option.
1873         
1874 2002-08-26  Chip Salzenberg  <chip@pobox.com>
1875
1876         * utils/nfsd/nfsd.man: Fix typo.
1877         * debian/changelog: Version 1.0.1-1.
1878
1879 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
1880
1881         * let parseopts know if /etc/exports was being read or not, 
1882         and have it only print "no sync or async" warning in that case.
1883         
1884 2002-05-06 Tom McNeal <trmcneal@attbi.com>
1885         NeilBrown <neilb@cse.unsw.edu.au>
1886
1887         * utils/nfsstat/nfsstat.c: Handle differing format for
1888            /proc/net/rpc/nfsd between pre and post 2.4.0
1889         
1890 2002-04-09  NeilBrown <neilb@cse.unsw.edu.au>
1891         James Pearson <james-p@moving-picture.com>
1892
1893         * support/nfs/rmtab.c(fendrmtabent): sync changes to 
1894         storage before returning, as this is critical state
1895
1896 2002-04-08  Sean O'Connell <sean@ee.duke.edu>
1897             H.J. Lu <hjl@lucon.org>
1898
1899         * etc/redhat/nfs: New.
1900
1901 2002-04-08  H.J. Lu <hjl@lucon.org>
1902
1903         * etc/redhat/nfs.init: Updated.
1904
1905         * nfs-utils.spec.in: Updated.
1906         * nfs-utils.spec: Regenerated.
1907
1908         * utils/mountd/mountd.c (longopts): Fix a typo.
1909
1910         * utils/mountd/mountd.man: Updated.
1911
1912 2002-04-07  H.J. Lu <hjl@lucon.org>
1913
1914         * etc/redhat/nfslock.init (restart): Just do stop and start.
1915
1916         * etc/redhat/nfs.init: Fix a typo.
1917
1918 2002-04-07  H.J. Lu <hjl@lucon.org>
1919
1920         * configure.in (VERSION): Set to "1.0.1".
1921         * configure: Regenerated.
1922         * nfs-utils.spec: Likewise.
1923
1924         * README: Updated for 1.0.1.
1925
1926 2002-04-07  Sean O'Connell <sean@ee.duke.edu>
1927             H.J. Lu <hjl@lucon.org>
1928
1929         * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
1930
1931 2002-02-28   Steven Whitehouse <steve@gw.chygwyn.com>
1932               NeilBrown <neilb@cse.unsw.edu.au>
1933
1934         Add support for fsid=nn export option so that device
1935         numbers don't go in filehandles.
1936         * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
1937         is set, pass the fsid in-place of the device number
1938         * support/nfs/exports.c: parse and print fsid= option.
1939         Also check if efname has been set, and use "command line"
1940         instead in error messages.
1941         Also, use strtol instead of atoi for anon[ug]id= so that
1942         bad numbers cause errors.
1943         
1944 2002-01-17   Adrian Drzewiecki <drze@MissionCriticalLinux.com>
1945              NeilBrown <neilb@cse.unsw.edu.au>
1946
1947         * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
1948         flag so that "sync" becomes the default.
1949         Check that either "sync" or "async" is given as an option
1950         and warn if neither are present
1951         * utils/exportfs/exports.man: change documentation for "sync"
1952         to be documentation for "async".
1953         * utils/exportfs/exportfs.man: note that "sync" is the default
1954         rather than "async"
1955         
1956         
1957 2002-01-02  Chip Salzenberg  <chip@pobox.com>
1958
1959         * support/export/nfsctl.c (expsetup): Don't export entries that
1960         specify id mappings not supported by the kernel.  No extant kernel
1961         supports any significant mapping, only 'identity' (i.e. none).
1962         When other mappings are supported, this code will need changing.
1963         * debian/changelog: Version 1.0-2.
1964
1965 2001-12-26  Chip Salzenberg  <chip@pobox.com>
1966
1967         * nfs-utils.spec (Version): Set to "1.0".
1968         * configure.in (VERSION): Likewise.
1969         * configure: Regenerated.
1970         * README: Rewritten.
1971         * debian/changelog: Version 1.0-1.
1972
1973         * utils/exportfs/exports.man: Emphasize the need for options to
1974         immediately follow client names.  Explain that wildcards don't
1975         usually work on addresses, but may work when reverse DNS fails.
1976         Comment out a leftover TP that was TPing our indentation.
1977         * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
1978         utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
1979         * debian/changelog: Version 0.3.3-6.
1980
1981 2001-12-20  NeilBrown <neilb@cse.unsw.edu.au>
1982
1983         * support/export/client.c(client_lookup): If a host has multiple
1984         IP addresses, then we must always use the result of a
1985         gethostbyname, not that of gethostbyaddr for exporting
1986         
1987 2001-12-20  NeilBrown <neilb@cse.unsw.edu.au>
1988
1989         * support/export/client.c (client_lookup): use strcasecmp when
1990         comparing host names
1991         * support/nfs/export.c (getexportent): add fromkernel arg and use
1992         different defaults as kernels prior to 2.4.11 assume different
1993         defaults in /proc/fs/nfs/exports
1994         * support/include/nfslib.h, support/export/export.c,
1995         support/export/xtab.c:  support extra "fromkernel" arg for
1996         getexportent. 
1997         
1998 2001-12-13  Chip Salzenberg  <chip@pobox.com>
1999
2000         * debian/changelog: Version 0.3.3-5.
2001
2002 2001-11-26  TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
2003
2004         * support/nfs/xio.c (xskip): Call `xungetc' instead of
2005         `ungetc' to keep x_line more properly.
2006
2007 2001-11-26  Chip Salzenberg  <chip@pobox.com>
2008
2009         * utils/showmount/showmount.c (main): Don't assume that strings
2010         starting with digits are IP addresses.
2011         * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
2012         /dev/null before nfssvc().  Use syslog to report nfssvc errors.
2013         * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
2014         utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
2015         man pages: We check host names *and* addresses with tcpwrappers.
2016         * debian/changelog: Version 0.3.3-4.
2017
2018 2001-11-21  Chip Salzenberg  <chip@pobox.com>
2019
2020         * support/nfs/clients.c (cfname): Added: current clients file name.
2021         (setnfsclntent): Set it.
2022         ({get,end}nfsclntent, syntaxerr): Use it.
2023         * support/nfs/exports.c (efname): Added: current exports file name.
2024         (setnfsexportent): Set it.
2025         (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
2026         (parseopts): Accept old-style "crossmnt" option, for old xtabs.
2027         * debian/changelog: Version 0.3.3-3.
2028
2029 2001-10-11  Chip Salzenberg  <chip@pobox.com>
2030
2031         * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
2032         * debian/changelog: Version 0.3.3-2.
2033
2034 2001-10-08  Chip Salzenberg  <chip@pobox.com>
2035
2036         * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
2037         * utils/Makefile.in: Remove old Makefile in target 'distclean'.
2038         * utils/mountd/mountd.man: Update paths to /var/lib.
2039         * debian/*: Version 0.3.3-1, with Debian-specific fixes.
2040
2041 2001-10-06  Preston Brown <pbrown@redhat.com>
2042
2043         * utils/nfsstat/nfsstat.man: Updated.
2044
2045 2001-09-24  H.J. Lu <hjl@lucon.org>
2046
2047         * configure.in (VERSION): Set to "0.3.3".
2048         * configure: Regenerated.
2049         * nfs-utils.spec: Likewise.
2050
2051         * README: Updated for 0.3.3.
2052
2053 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
2054
2055         Arrange that "exportfs -au" never does DNS lookup:
2056         
2057         * support/export/client.c (client_lookup) : add "canonical"
2058         flag which says that the hostname is known to be canonical, so
2059         don't do a lookup
2060
2061         * support/export/export.c (export_create) : add "canonical"
2062         flag to be passed down to client_lookup
2063         * support/export/export.c (export_lookup) : Likewise
2064
2065         * support/export/xtab.c (xtab_read) : pass appropriate
2066         "canonical" flag to export_lookup and export_create:
2067         set if reading list of filesystems currently exports
2068         (is_export != 1). 
2069
2070         * support/export/export.c (export_read) : pass 0 as 
2071         "canonical" flag to export_lookup and export_create
2072         * support/export/rmtab.s (rmtab_read) : Likewise
2073
2074         * support/include/exportfs.h : redeclare various routines
2075         to have "canonical" flag
2076
2077         * utils/exportfs/exportfs.c (main) : redo logic for 
2078         "-au" to read in what is currently exported, but never even 
2079         look at what "should" be exported.
2080
2081         * utils/exportfs/exportfs.c (unexportall) : remove this
2082         routine. Functionality is completely included in
2083         exports_update
2084
2085         * utils/exportfs/exportfs.c (exportfs) : set "canonical"
2086         flag to zero in calls to export_lookup and export_create.
2087
2088         
2089 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
2090             Anne Milicia <milicia@missioncriticallinux.com>
2091
2092         * support/export/client.c (client_lookup) call gethostbyadd
2093         to make sure that we have a canonical hostname, even for
2094         dotted-quads
2095         * utils/exportfs/exportfs.c (exportfs) Likewise
2096         
2097 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
2098
2099         * support/nfs/exports.c (putexportent): \octal quote any spaces
2100         etc in a path name
2101         * support/nfs/xio.c (xgettok): recognise double-quote and
2102         \octal quoting in path names
2103         * utils/exportfs/exports.man: document quoting conventions
2104         for path names
2105         
2106 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
2107
2108         * utils/mountd/auth.c (auth_authenticate_internal): Reverse
2109           change from 2000-08-02:  It causes problems if someone exports
2110           to both a hostname and IP addresses.  nfs-utils must be
2111           consistant about the canonical name that it chooses.
2112
2113 2001-08-17  Ragnar Kjørstad <nfs@ragnark.vestdata.no>
2114             H.J. Lu <hjl@lucon.org>
2115
2116         * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
2117
2118         * utils/statd/statd.c (longopts): Add "name".
2119         (usage): Add "-n/--name".
2120         (main): Set MY_NAME with "-n/--name".
2121
2122         * utils/statd/state.c (change_state): Set MY_NAME only if it
2123         is NULL.
2124         
2125         * utils/statd/statd.man: Updated for "-n/--name".
2126
2127 2001-07-26  H.J. Lu <hjl@lucon.org>
2128
2129         * nfs-utils.spec (Release): Set to 8.
2130
2131 2001-07-25  H.J. Lu <hjl@lucon.org>
2132
2133         * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
2134         anything about it.
2135
2136 2001-06-27  H.J. Lu <hjl@lucon.org>
2137
2138         * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
2139
2140 2001-06-27  H.J. Lu <hjl@lucon.org>
2141
2142         * utils/rquotad/rquota_server.c: Don't call statfs () for
2143         the block size. Use BLOCK_SIZE instead.
2144
2145 2001-06-27  H.J. Lu <hjl@lucon.org>
2146
2147         * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
2148         (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
2149
2150         * configure.in (enable_nfsv3): Set to yes by default.
2151         (--enable-rquotad): Added
2152         (AC_PROG_CXX): Removed.
2153         (AC_OUTPUT): Add utils/Makefile.
2154         (CC_FOR_BUILD): Renamed from BUILD_CC.
2155         * configure: Regenerated.
2156
2157         * utils/Makefile: Removed.
2158
2159         * utils/Makefile.in: New.
2160
2161         * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
2162         rquotad.
2163         (CC_FOR_BUILD): Renamed from BUILD_CC.
2164         * nfs-utils.spec: Regenerated.
2165
2166 2001-06-15  Chip Salzenberg  <chip@debian.org>
2167
2168         * debian/changelog: Version 0.3.2-2.
2169         * debian/*.init: Minor fixes.
2170
2171 2001-06-07  Lon H. Hohberger <hohberger@missioncriticallinux.com>
2172
2173         * etc/nodist/nfs-server: Fixed a bug where the script would
2174         disable mounts from NFSv3 clients if NFSv3 is present.
2175
2176 2001-06-05  H.J. Lu <hjl@lucon.org>
2177
2178         * utils/mountd/mountd.c (longopts): Add "descriptors/o".
2179         (main): Support --descriptors/-o to set the limit of the number
2180         of open file descriptors.
2181         (usage): Updated.
2182
2183         * utils/mountd/mountd.man: Updated for --descriptors/-o.
2184
2185 2001-06-04  H.J. Lu <hjl@lucon.org>
2186
2187         * nfs-utils.spec (Release): Set to 6.
2188
2189 2001-05-28  H.J. Lu <hjl@lucon.org>
2190
2191         * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
2192         * utils/mountd/mountd.c (main): Likewise.
2193         * utils/nfsd/nfsd.c (main): Likewise.
2194         * utils/rquotad/rquota_svc.c (main): Likewise.
2195
2196 2001-05-06  Anne Milicia <milicia@missioncriticallinux.com>
2197
2198         * support/export/client.c (client_check): Check IP address
2199         againet netgroup.
2200
2201 2001-05-06  Neil Brown <neilb@cse.unsw.edu.au>
2202
2203         * support/export/client.c (client_gettype): Treat `*' as
2204         MCL_ANONYMOUS.
2205
2206 2001-04-22  H.J. Lu <hjl@lucon.org>
2207
2208         * nfs-utils.spec.in: Fix a typo.
2209         * nfs-utils.spec: Regenerated.
2210
2211 2001-04-21  H.J. Lu <hjl@lucon.org>
2212
2213         * nfs-utils.spec.in: Fix cross build.
2214         * nfs-utils.spec: Regenerated.
2215         (Release): Set to 5.
2216
2217 2001-04-18  H.J. Lu <hjl@lucon.org>
2218
2219         * nfs-utils.spec.in: Support cross build.
2220         * nfs-utils.spec: Regenerated.
2221         (Release): Set to 4.
2222
2223         * config.sub: New.
2224         * config.guess: New.
2225
2226         * config.mk.in (BUILD_CC): New.
2227         (CC): Set to $(BUILD_CC) if BUILD is defined.
2228         (AR): Set to @AR@.
2229         (LD): Set to @LD@.
2230         (RANLIB): Set to @RANLIB@.
2231
2232         * configure.in: Check BUILD_CC, RANLIB, AR and LD.
2233         * configure: Regenerated.
2234
2235         * tools/rpcgen/Makefile (BUILD): Set to true.
2236
2237 2001-04-01  Chip Salzenberg  <chip@valinux.com>
2238
2239         * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
2240         redundant, and sometimes broken, declaration of svc_fdset;
2241         it may be a macro.
2242         * support/nfs/rpcmisc.c (closedown): Likewise.
2243         
2244 2001-03-21  H.J. Lu <hjl@lucon.org>
2245
2246         * nfs-utils.spec: Regenerated.
2247         (Release): Set to 3.
2248
2249 2001-03-21  Ion Badulescu  <ionut@cs.columbia.edu>
2250
2251         * utils/statd/statd.c (main): make sure file descriptors 0-2
2252         are open to /dev/null.
2253
2254 2001-03-21  H.J. Lu <hjl@lucon.org>
2255
2256         * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
2257         * support/nfs/rpcmisc.c: Likewise.
2258         * utils/rquotad/rquota_svc.c: Likewise.
2259         * utils/rquotad/rquotad.man: Likewise.
2260         * utils/statd/Makefile: Likewise.
2261         * utils/statd/rmtcall.c: Likewise.
2262         * utils/statd/simulate.c: Likewise.
2263         * utils/statd/statd.c: Likewise.
2264         * utils/statd/statd.man: Likewise.
2265
2266 2001-03-11  H.J. Lu <hjl@lucon.org>
2267
2268         * configure.in (RELEASE): New. Default to 1, set by
2269         --with-release=XXX. Substitute nfs-utils.spec.
2270         * nfs-utils.spec.in (Release): Set to @RELEASE@.
2271         * configure: Regenerated.
2272         * nfs-utils.spec: Likewise.
2273
2274 2001-03-11  H.J. Lu <hjl@lucon.org>
2275
2276         * utils/rquotad/rquotad.man: Fix a typo.
2277
2278 2001-03-11  H.J. Lu <hjl@lucon.org>
2279
2280         * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
2281         * support/nfs/rpcmisc.c: Likewise.
2282         * utils/rquotad/rquota_svc.c: Likewise.
2283         * utils/rquotad/rquotad.man: Likewise.
2284         * utils/statd/Makefile: Likewise.
2285         * utils/statd/rmtcall.c: Likewise.
2286         * utils/statd/simulate.c: Likewise.
2287         * utils/statd/statd.c: Likewise.
2288         * utils/statd/statd.man: Likewise.
2289
2290 2001-03-10  H.J. Lu <hjl@lucon.org>
2291
2292         * configure.in (VERSION): Set to "0.3.2".
2293         * configure: Regenerated.
2294         * nfs-utils.spec: Likewise.
2295
2296         * README: Updated for 0.3.2.
2297
2298 2001-03-10  Tavis Barr <tavis@boole.isetr.columbia.edu>
2299
2300         * utils/rquotad/rquotad.man: Updated for -p.
2301         * utils/statd/statd.man: Likewise.
2302
2303 2001-03-10  Ion Badulescu  <ionut@cs.columbia.edu>
2304
2305         * support/nfs/rpcmisc.c: export makesock()
2306
2307         * support/include/rpcmisc.h (makesock): Declared.
2308
2309         * utils/rquotad/rquota_svc.c: added longopts, added support for
2310         specifying the port to bind to on the command line.
2311
2312         * utils/statd/statd.c: ditto, also specify port used for
2313         outgoing connections.
2314         (do_regist): Removed.
2315
2316         * utils/statd/rmtcall.c (statd_get_socket): Renamed from
2317         get_socket. Make it extern.
2318
2319         * utils/statd/simulate.c (daemon_simulator): Call rpc_init
2320         instead of do_regist.
2321
2322         * utils/statd/Makefile (LIBS): link with our own libnfs
2323
2324 2001-03-09  H.J. Lu <hjl@lucon.org>
2325
2326         * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
2327         * etc/nodist/nfs-client: Likewise.
2328
2329 2001-02-26  Chip Salzenberg  <chip@valinux.com>
2330
2331         * debian/changelog: Version 0.3.1-1.
2332         * Mention upstream source and license in copyright file.
2333         * Add build-Depends for debhelper and libwrap0-dev.
2334
2335 2001-02-20  Lon Hohberger <hohberger@missioncriticallinux.com>
2336
2337         * etc/nodist/nfs-server: Changed chkconfig line to 60 20
2338         * etc/nodist/nfs-client: Likewise.
2339
2340 2001-02-18  Lon Hohberger <hohberger@missioncriticallinux.com>
2341
2342         * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
2343         /sbin/rpc.statd.
2344
2345 2001-02-17  Patrick J. LoPresti <patl@curl.com>
2346
2347         * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
2348         LOG_LOCAL5.
2349
2350 2001-02-14  H.J. Lu <hjl@lucon.org>
2351
2352         * utils/statd/rmtcall.c: Include <time.h>.
2353         * utils/statd/svc_run.c: Likewise.
2354
2355 2001-02-14  H.J. Lu <hjl@lucon.org>
2356
2357         * configure.in (VERSION): Set to "0.3.1".
2358         * configure: Regenerated.
2359         * nfs-utils.spec: Likewise.
2360
2361         * README: Updated for 0.3.1.
2362
2363 2001-02-14  H.J. Lu <hjl@lucon.org>
2364
2365         * support/nfs/rpcmisc.c: Include <time.h>.
2366
2367 2001-02-14  Chip Salzenberg  <chip@valinux.com>
2368
2369         * debian/control: Change priority of nhfsstone package to 'extra'.
2370
2371 2001-02-12  Chip Salzenberg  <chip@valinux.com>
2372
2373         * debian/changelog: Version 0.3-2.
2374
2375 2001-02-02  H.J. Lu <hjl@lucon.org>
2376
2377         * support/include/rpcmisc.h (rpc_init): Remove bufsize.
2378         
2379         * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
2380         out SO_SNDBUF/SO_RCVBUF.
2381         (rpc_init): Remove bufsize and remove socksz in calls to
2382         makesock ().
2383
2384         * utils/mountd/mountd.c (main): Remove bufsize in calls to
2385         rpc_init ().
2386
2387 2001-01-28  Chip Salzenberg  <chip@valinux.com>
2388
2389         * debian/changelog: Version 0.3-1.
2390
2391 2001-01-25  H.J. Lu <hjl@lucon.org>
2392
2393         * configure.in (VERSION): Set to "0.3".
2394         * configure: Regenerated.
2395         * nfs-utils.spec: Likewise.
2396
2397         * README: Updated for 0.3.
2398
2399 2001-01-25  H.J. Lu <hjl@lucon.org>
2400
2401         * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
2402
2403 2001-01-20  Chip Salzenberg  <chip@valinux.com>
2404
2405         * support/include/xio.h (xgetc): Declare to return int.
2406         * support/nfs/xio.c (xgetc): Return int.
2407         (xgettok, xskip, xskipcomment): Use int for value of xgetc.
2408         * utils/statd/statd.c (main): Use int for value of getopt.
2409         * debian/changelog: Version 0.2.1-5.
2410         
2411 2000-12-10  Chip Salzenberg  <chip@valinux.com>
2412
2413         * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
2414         program and procedure numbers of kernel lockd's callback.  Also,
2415         besides the old (and broken) procedure #24, allow #16 per Trond.
2416
2417 2000-12-03  Chip Salzenberg  <chip@valinux.com>
2418
2419         * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
2420         * debian/control: Let nhfsstone replace files in nfs-kernel-server.
2421         * debian/changelog: Version 0.2.1-4.
2422
2423 2000-11-27  Tobias Ringstrom <tori@tellus.mine.nu>
2424
2425         * utils/mountd/auth.c (auth_authenticate): Log the bad path
2426         warning.
2427
2428 2000-11-24  Neil Brown <neilb@cse.unsw.edu.au>
2429
2430         * support/nfs/exports.c (getexportent): Check for host name
2431         without option, or options without hostname, and print a warning,
2432         as this is most likely a typo.
2433
2434 2000-11-19  Chip Salzenberg  <chip@valinux.com>
2435
2436         * debian/control: Add dependency on portmap.
2437         * debian/changelog: Version 0.2.1-3.
2438
2439 2000-11-10  H.J. Lu <hjl@lucon.org>
2440
2441         * nfs-utils.spec.in: Don't use libtool.
2442         Add ChangeLog and COPYING to doc.
2443         * nfs-utils.spec: Rebuild.
2444
2445 2000-11-09  H.J. Lu <hjl@lucon.org>
2446
2447         * etc/redhat/nfs.init (start): Back out the last change.
2448
2449 2000-11-09  H.J. Lu <hjl@lucon.org>
2450
2451         * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
2452         TCP is not supported by kernel.
2453
2454         * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
2455
2456         * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
2457         (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
2458
2459         * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
2460
2461 2000-10-24  Lon Hohberger <hohberger@missioncriticallinux.com>
2462
2463         * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
2464         * utils/statd/rmtcall.c: Add some IP address paranoia when doing
2465         callbacks to local lockd.
2466
2467 2000-10-18  Scott McDermott <mcdermot@questra.com>
2468
2469         * utils/exportfs/exports.man: Updated for CIDR netmask.
2470
2471 2000-10-17  Scott McDermott <mcdermot@questra.com>
2472
2473         * support/export/client.c (client_init): Support CIDR netmask
2474         in /etc/exports.
2475
2476 2000-10-11  H.J. Lu <hjl@lucon.org>
2477
2478         * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
2479         * configure: Rebuilt.
2480
2481 2000-10-06  Lon Hohberger <hohberger@missioncriticallinux.com>
2482
2483         * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
2484         "/var/lib/nfs/state".
2485
2486 2000-10-05  Lon Hohberger <hohberger@missioncriticallinux.com>
2487
2488         * utils/statd/statd.h (run_mode): New global bitmask of runtime
2489         behaviors: fg/bg, logging, etc.
2490         * utils/statd/statd.c: New command line options: -V -h -? -d .
2491         * utils/statd/statd.man: Update for changes to statd.
2492
2493         * utils/statd/log.h (log_init): Remove parameter of function; use
2494         global variable "name_p" instead.
2495         * utils/statd/log.c: Add support for logging to stderr.
2496
2497         * utils/statd/notlist.c: Partially rewrite notify list handling
2498         functions.  Eliminate run-off-end-of-list bug when calling
2499         nlist_insert_timer.  Add lots of comments.
2500         
2501 2000-09-27  H.J. Lu <hjl@lucon.org>
2502
2503         * README: Updated for RedHat 7.0.
2504
2505 2000-09-27  H.J. Lu <hjl@lucon.org>
2506
2507         * nfs-utils.spec: Rebuild.
2508
2509 2000-09-27  H.J. Lu <hjl@lucon.org>
2510
2511         * README: Updated for 0.2.1.
2512
2513 2000-09-27  H.J. Lu <hjl@lucon.org>
2514
2515         * nfs-utils.spec.in: Updated to use rpm macros and support
2516         RedHat 7.0.
2517
2518 2000-09-25  H.J. Lu <hjl@lucon.org>
2519
2520         * configure.in (VERSION): Set to "0.2.1".
2521         * configure: Regenerated.
2522         * nfs-utils.spec: Updated.
2523
2524 2000-09-25  H.J. Lu <hjl@lucon.org>
2525
2526         * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
2527         non-NULL hostent is always returned.
2528
2529 2000-09-11  Ion Badulescu  <ionut@cs.columbia.edu>
2530
2531         * etc/redhat/nfslock.init: don't kill lockd processes that do not
2532         have an executable (i.e. kernel threads)
2533
2534 2000-09-01  H.J. Lu <hjl@lucon.org>
2535
2536         * README: Updated for 0.2.
2537
2538 2000-09-01  Jay Weber <jweber@valinux.com>
2539
2540         * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
2541         supporting version 3 of nfs if available, else it will fall back to
2542         version 2 support only.
2543
2544 2000-08-30  H.J. Lu <hjl@lucon.org>
2545
2546         * configure.in (VERSION): Set to "0.2".
2547         * configure: Regenerated.
2548         * nfs-utils.spec: Updated.
2549
2550 2000-08-25  H.J. Lu <hjl@lucon.org>
2551
2552         * support/misc/tcpwrapper.c (logit): Modify the log output.
2553
2554 2000-08-25  Ion Badulescu  <ionut@cs.columbia.edu>
2555
2556         * utils/rquotad/rquotad.man, utils/statd/statd.man,
2557         utils/mountd/mountd.man: updated
2558         
2559         * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
2560         * utils/rquotad/Makefile: fix comment
2561
2562         * support/misc/tcpwrapper.c (logit): added comment about waiting
2563         for the children after fork()
2564         
2565         * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
2566         zombies behind (from logit()'s fork)
2567         * utils/rquotad/rquota_svc.c (main): ditto
2568         * utils/statd/statd.c (main): ditto
2569
2570         * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
2571         to check_default instead of 0, for prognum
2572
2573         * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
2574         to check_default instead of 0, for prognum
2575
2576         * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
2577         HAVE_TCP_WRAPPER is defined.
2578         (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
2579         defined. Reject an RPC call if check_default () fails.
2580
2581 2000-08-25  H.J. Lu <hjl@lucon.org>
2582
2583         * support/include/tcpwrapper.h: New for the tcp wrapper
2584         support.
2585         * support/misc/Makefile: Likewise.
2586         * support/misc/from_local.c: Likewise.
2587         * support/misc/tcpwrapper.c: Likewise.
2588
2589         * aclocal.m4 (AC_TCP_WRAPPER): New.
2590         * configure.in: Use it. Substitute LIBWRAP.
2591         * configure: Rebuilt.
2592
2593         * config.mk.in (LIBNSL): New.
2594         (LIBWRAP): Likewise.
2595
2596         * support/Makefile (SUBDIRS): Add misc.
2597
2598         * support/lib/Makefile (LIBS): Add libmisc.a.
2599
2600         * utils/rquotad/Makefile (LIBS): Add
2601         
2602                 -lmisc $(LIBWRAP) $(LIBNSL)
2603
2604         * utils/statd/Makefile (LIBS): Likewise.
2605
2606         * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
2607         HAVE_TCP_WRAPPER is defined.
2608         (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
2609         defined. Reject an RPC call if check_default () fails.
2610
2611         * utils/statd/statd.c: Include "tcpwrapper.h" if
2612         HAVE_TCP_WRAPPER is defined.
2613         (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
2614         check_default () before calling sm_prog_1 (). Define it as
2615         sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
2616
2617 2000-08-25  Chip Salzenberg  <chip@valinux.com>
2618
2619         * debian/*: Complete Debian build support.
2620         * etc/debian/*: Remove.
2621
2622 2000-08-24  Neil Brown <neilb@cse.unsw.edu.au>
2623
2624         * support/export/client.c(client_check): removed the "dot+1" as a
2625           ypdomain argument to innetgr as this is entirely bogus.
2626           It should always be NULL.
2627         
2628 2000-08-23  Neil Brown <neilb@cse.unsw.edu.au>
2629
2630         * support/export/xtab.c(xtab_read): introduce new mode for
2631            reading xtab. i.e. a list of exports that might be known to the
2632            kernel, or might not.  These are flagged as m_exported == -1
2633         * support/export/xtab.c(xtab_mount_read):  call xtab_read with new
2634            value "2" for xtab, meaning don't trust this too much.
2635         * support/include/exportfs.h(struct mexport): changed m_exported
2636            from one bit to an int so that it can hold new value
2637         * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
2638            kernel if it is uncertain whether the kernel knows (m_exported == -1)
2639         * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
2640            status is uncertain
2641
2642         * support/nfs/xio.c(xflock): added O_CREAT when getting
2643            a write lock so that missing files aren't fatal.
2644
2645         * etc/debian/nfs-common: new file from "potato"
2646         * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
2647          
2648 2000-08-09  H.J. Lu <hjl@lucon.org>
2649
2650         * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
2651         startup to ensure all existing clients work fine.
2652
2653         * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
2654         to xtab_read () for reading _PATH_XTAB.
2655
2656 2000-08-02  H.J. Lu <hjl@lucon.org>
2657
2658         * utils/mountd/auth.c (auth_authenticate_internal): Try to
2659         avoid the reverse name lookup.
2660
2661 2000-07-04  H.J. Lu <hjl@lucon.org>
2662
2663         * utils/statd/log.c: Include <stdlib.h> for exit ().
2664
2665         * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
2666         gcc warning.
2667
2668 2000-07-04  H.J. Lu <hjl@lucon.org>
2669
2670         * configure.in (VERSION): Set to "0.1.9.1".
2671         * configure: Regenerated.
2672         * nfs-utils.spec: Updated.
2673
2674         * README: Updated.
2675
2676 2000-07-04  Neil Brown  <neilb@cse.unsw.edu.au>
2677
2678         * support/export/hostname.c (hostent_dup): Handle the NULL
2679         h_aliases field.
2680
2681 2000-07-03  H.J. Lu <hjl@lucon.org>
2682
2683         * README: Update the util-linux requirement.
2684
2685 2000-07-03  H.J. Lu <hjl@lucon.org>
2686
2687         * configure.in (VERSION): Set to "0.1.9".
2688         * configure: Regenerated.
2689         * nfs-utils.spec: Updated.
2690
2691         * README: Updated.
2692
2693 2000-07-03  H.J. Lu <hjl@lucon.org>
2694
2695         * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
2696         stop to ensure all clients can still access the server
2697         before it is shutdown.
2698
2699 2000-06-30  Jeff Uphoff <juphoff@transmeta.com>
2700
2701         * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
2702         calls with format string.
2703         
2704 2000-06-28  Chip Salzenberg  <chip@valinux.com>
2705
2706         * utils/statd/log.c (log): Call syslog with format string.
2707
2708 2000-06-27  H.J. Lu <hjl@lucon.org>
2709
2710         * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
2711         instead of OPEN_MAX.
2712
2713 2000-06-27  H.J. Lu <hjl@lucon.org>
2714
2715         * README: Updated.
2716
2717 2000-06-27  H.J. Lu <hjl@lucon.org>
2718
2719         * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
2720         startup to ensure all existing clients are exported.
2721
2722         * configure.in (VERSION): Set to "0.1.8.2".
2723         * configure: Regenerated.
2724         * nfs-utils.spec: Updated.
2725
2726 2000-06-06  H.J. Lu <hjl@lucon.org>
2727
2728         * configure.in (VERSION): Set to "0.1.8.1".
2729         * configure: Regenerated.
2730         * nfs-utils.spec: Updated.
2731
2732 2000-06-06  H.J. Lu <hjl@lucon.org>
2733
2734         * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
2735         to "struct sockaddr_in *" for glibc 2.2.
2736         (mount_umnt_1_svc): Likewise.
2737         (mount_umntall_1_svc): Likewise.
2738         (mount_export_1_svc): Likewise.
2739         (mount_exportall_1_svc): Likewise.
2740         (mount_pathconf_2_svc): Likewise.
2741         (get_rootfh): Likewise.
2742
2743 2000-06-04  H.J. Lu <hjl@lucon.org>
2744
2745         * etc/redhat/nfs.init: Fix a typo in comment.
2746
2747 2000-05-31  H.J. Lu <hjl@lucon.org>
2748
2749         * configure.in (VERSION): Set to "0.1.8".
2750         * configure: Regenerated.
2751         * nfs-utils.spec: Updated.
2752
2753         * README: Updated.
2754
2755 2000-05-31  H.J. Lu <hjl@lucon.org>
2756
2757         * configure.in (VERSION): Set to "0.1.7.5".
2758         * configure: Regenerated.
2759         * nfs-utils.spec: Updated.
2760
2761         * support/include/nfslib.h (exportent): Add a new field,
2762         r_count, to count the number of mounts from a client.
2763         (getrmtabent): Take a new argument for position in file.
2764         (putrmtabent): Likewise.
2765         (fgetrmtabent): Likewise.
2766         (fputrmtabent): Likewise.
2767         * support/nfs/rmtab.c (getrmtabent): Handle the new argument
2768         for position in file.
2769         (fgetrmtabent): Likewise.
2770         (putrmtabent): Likewise.
2771         (fputrmtabent): Likewise.
2772
2773         * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
2774         field, r_count.
2775
2776         * support/export/rmtab.c (rmtab_read): Pass NULL as the new
2777         argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
2778         and fputrmtabent ().
2779         * utils/mountd/rmtab.c (mountlist_add): Likewise.
2780         (mountlist_del): Likewise.
2781         (mountlist_del_all): Likewise.
2782         (mountlist_list): Likewise.
2783
2784         * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
2785         for the existing entry and initialize "r_count" to 1.
2786         (mountlist_del): Decrement "r_count".
2787
2788 2000-05-18  H.J. Lu <hjl@lucon.org>
2789
2790         * configure.in (VERSION): Set to "0.1.7.4".
2791         * configure: Regenerated.
2792         * nfs-utils.spec: Updated.
2793
2794 2000-05-18  H.J. Lu <hjl@lucon.org>
2795
2796         * etc/redhat/nfs.init (restart): Just do stop and start.
2797
2798 2000-05-09  Jay Weber <jweber@valinux.com>
2799
2800         * utils/rquotad/hasquota.c: added support for ext3 recognition
2801         in rquotad.
2802         * utils/rquotad/mntent.h: Likewise.
2803
2804 2000-05-01  H.J. Lu <hjl@lucon.org>
2805
2806         * configure.in (VERSION): Set to "0.1.7.3".
2807         * configure: Regenerated.
2808         * nfs-utils.spec: Updated.
2809
2810 2000-05-01  H.J. Lu <hjl@lucon.org>
2811
2812         * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
2813         mounting poins in /etc/fstab.
2814
2815 2000-05-01  H.J. Lu <hjl@lucon.org>
2816
2817         * configure.in (VERSION): Set to "0.1.7.2".
2818         * configure: Regenerated.
2819         * nfs-utils.spec: Updated.
2820
2821 2000-05-01  H.J. Lu <hjl@lucon.org>
2822
2823         * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
2824         to check for the mounting point.
2825
2826 2000-04-29  Chip Salzenberg  <chip@valinux.com>
2827             Neil Brown  <neilb@cse.unsw.edu.au>
2828
2829         * Really re-use RPC ports.
2830           (Fixes earlier patch.  Sorry, Neil.)
2831
2832 2000-04-26  H.J. Lu <hjl@lucon.org>
2833
2834         * configure.in (VERSION): Set to "0.1.7.1".
2835         * configure: Regenerated.
2836         * nfs-utils.spec: Updated.
2837
2838 2000-04-26  H.J. Lu <hjl@lucon.org>
2839
2840         * etc/redhat/nfslock.init: Check if lockd exits before killing
2841         it.
2842
2843 2000-04-25  H.J. Lu <hjl@lucon.org>
2844
2845         * README: Require util-linux-2.10f-mount-rpc.patch for mount.
2846
2847 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
2848
2849         * support/nfs/exports.c (parsesquash): Correctly set the
2850         return pointer.
2851
2852 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
2853
2854         * support/include/nfs/nfs.h: Removed knowledge of internals of
2855              kernel filehandles (which can change) and defined nfs_fh_size
2856              which has variable size
2857         
2858         * support/nfs/getfh.c: defined getfh_size to use new syscall to
2859              get variable sized file handles, and change getfh{,old} to
2860              use nfs_fh_size        
2861         
2862         * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
2863              NFSv3 file handles
2864
2865         * tools/Makefile, tools/nlmtest/nlmtest.c
2866              nlmtest.c depended on internel format of file handles, so now
2867              doesn't work.
2868
2869         
2870 2000-03-12  Chip Salzenberg  <chip@valinux.com>
2871             Neil Brown  <neilb@cse.unsw.edu.au>
2872
2873         * support/nfs/rpcmisc.c (rpc_init): Share transports.
2874
2875 2000-03-13 H.J. Lu <hjl@lucon.org>
2876
2877         * etc/redhat/nfsd.init: Updated.
2878
2879         * etc/redhat/nfslock.init: Updated.
2880
2881         * nfs-utils.spec.in: Updated.
2882
2883         * configure.in (VERSION): Set to "0.1.7".
2884         * configure: Regenerated.
2885         * nfs-utils.spec: Updated.
2886
2887         * README: Updated.
2888
2889 Wed Mar  8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
2890
2891         * utils/exportfs/exportfs.c (dump): Included printing of
2892            nohide, no_subtree_check, and insecure_locks
2893
2894 2000-02-26  Chip Salzenberg  <chip@valinux.com>
2895
2896         * config.mk.in (INSTALLSUID): Strip ("-s").
2897         (INSTALLSCRIPT): Define.
2898         * utils/nhfsstone/Makefile: Use it.
2899
2900 2000-02-26  Chip Salzenberg  <chip@valinux.com>
2901
2902         * utils/lockd/lockd.man: Create.
2903         * utils/lockd/Makefile: Install it.
2904         * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
2905         * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
2906         * utils/nhfsstone/Makefile: Install the helper scripts and
2907           all four man pages.
2908         * utils/exportfs/exports.man: Fix typo.
2909
2910 2000-02-26  Chip Salzenberg  <chip@valinux.com>
2911
2912         * support/nfs/xio.c (xungetc): Decrement line number when
2913         character to unget is newline.  Make first parameter int, so
2914         it can distinguish EOF from \377.
2915         * support/include/xio.h (xungetc): Adjust prototype.
2916
2917 Fri Feb  4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
2918
2919         * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
2920         * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
2921         * utils/exportfs/exports.man: added documentation for no_auth_nlm.
2922
2923         This is for supporting a new option introduced in 2.3.42
2924
2925 Thu Feb  3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
2926
2927         * COPYING: Added. GPL.
2928
2929 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
2930
2931         * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
2932         to get the block size.
2933
2934 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
2935
2936         * nfs-utils.spec.in: Update ftp site.
2937
2938 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
2939
2940         * README: Update hostnames.
2941
2942 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
2943
2944         * configure.in (VERSION): Set to "0.1.6".
2945         * configure: Regenerated.
2946         * nfs-utils.spec: Updated.
2947
2948         * README: Updated.
2949
2950 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
2951
2952         * utils/mountd/auth.c (auth_authenticate_internal): Call
2953         xstrdup for hostname before passing it to gethostbyname.
2954
2955         * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
2956         of strdup.
2957
2958 Sun Dec 19 09:35:01 1999  H.J. Lu <hjl@lucon.org>
2959
2960         * README: Update the mailing list address.
2961
2962 Sun Dec 19 09:22:28 1999  H.J. Lu <hjl@lucon.org>
2963
2964         * configure.in (VERSION): Set to "0.1.5".
2965         * configure: Regenerated.
2966         * nfs-utils.spec: Updated.
2967
2968         * README: Updated.
2969
2970 Mon Dec 13 13:40:20 1999  H.J. Lu <hjl@lucon.org>
2971
2972         * utils/rquotad/hasquota.c (hasquota): Malloc one more char
2973         for '/'.
2974
2975 Mon Dec  6 09:42:45 1999  H.J. Lu <hjl@lucon.org>
2976
2977         * configure.in (VERSION): Set to "0.1.4".
2978         * configure: Regenerated.
2979         * nfs-utils.spec: Updated.
2980
2981         * README: Updated.
2982
2983 Mon Dec  6 09:28:07 1999  H.J. Lu <hjl@lucon.org>
2984
2985         * nfs-utils.spec.in: New file.
2986
2987         * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
2988
2989         * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
2990
2991 1999-12-04  Chip Salzenberg  <chip@valinux.com>
2992
2993         * config.mk.in: Use $(CC) as set by configure.
2994
2995 1999-12-04  Chip Salzenberg  <chip@valinux.com>
2996
2997         * rules.mk: Call $(MAKE) with $(MFLAGS).
2998
2999 Mon Nov 29 11:17:35 1999  H.J. Lu <hjl@lucon.org>
3000
3001         * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
3002         IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
3003
3004 Mon Nov 29 11:17:35 1999  H.J. Lu <hjl@lucon.org>
3005
3006         * nfs-utils.spec (Version): Set to 0.1.3.
3007
3008         * configure.in (VERSION): Set to "nfs-utils 0.1.3".
3009         * configure: Regenerated.
3010
3011         * README: Updated.
3012
3013 Mon Nov 29 11:15:47 1999  H.J. Lu <hjl@lucon.org>
3014
3015         * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
3016         (_PATH_DEV_DSK): Likewise.
3017         (getquotainfo): Match the mounting point from /etc/mtab
3018         instead of calling nfsmount_to_devname ().
3019
3020 1999-11-24  Chip Salzenberg  <chip@valinux.com>
3021
3022         * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
3023         to the new port 24 as well as the historical port 100021.
3024
3025 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
3026
3027         * etc/redhat/nfsd.init (stop): moved exportfs -ua after
3028         stopping nfsd to stop spurious ESTALE on server shutdown.
3029         
3030 Tue Nov 23 10:13:39 1999  Neil Brown <neilb@cse.unsw.edu.au>
3031
3032         * support/nfs/exports.c (parseopts): make copy of opt string
3033         before 'nul'ing out commas so that
3034
3035         # exportfs -o option1,option2 hosta:/fs hostb:/fs
3036
3037         applies both options to both exports.
3038
3039 Thu Oct 28 12:55:42 1999  H.J. Lu <hjl@lucon.org>
3040
3041         * README: Fix a few typos.
3042
3043         * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
3044         of long.
3045         * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
3046         * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
3047         * tools/rpcgen/rpc_parse.c (get_type): Likewise.
3048         (unsigned_dec): Likewise.
3049         * tools/rpcgen/rpc_scan.c (symbols): Likewise.
3050         * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
3051
3052         * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
3053         instead of LONG.
3054         * tools/rpcgen/rpc_parse.c (get_type): Likewise.
3055         (unsigned_dec): Likewise.
3056         * tools/rpcgen/rpc_scan.c (symbols): Likewise.
3057         * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
3058         * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
3059
3060 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
3061
3062         * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
3063         * support/nfs/exports.c: added {no_,}subtree_check and changed
3064           crossmnt to nohide
3065         * utils/exportfs/exports.man: added no_subtree_check and nohide
3066           and removed irrelevant stuff from unfsd.
3067         * support/export/rmtab.c: rmtab_read didn't quite do the right
3068           thing if a pathname from rmtab was a subdirectory of an export-point
3069
3070 Tue Oct 26 17:22:40 1999  H.J. Lu <hjl@lucon.org>
3071
3072         * README: Updated ftp site.
3073
3074 Mon Oct 25 18:12:45 1999  H.J. Lu <hjl@lucon.org>
3075
3076         * nfs-utils.spec (Version): Set to 0.1.2.
3077
3078         * configure.in (VERSION): Set to "nfs-utils 0.1.2".
3079         * configure: Regenerated.
3080
3081         * README: Updated.
3082
3083 Mon Oct 25 18:11:21 1999  H.J. Lu <hjl@lucon.org>
3084
3085         * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
3086         (auth_authenticate_internal): Check for NULL return on forward
3087         DNS lookup.
3088         (auth_authenticate): Handle "no_forward_dns".
3089
3090 Thu Oct 21 16:22:06 1999  H.J. Lu <hjl@lucon.org>
3091
3092         * Version 0.1.1 released.
3093
3094         * nfs-utils.spec (Version): Set to 0.1.1.
3095
3096         * configure.in (VERSION): Set to "nfs-utils 0.1.1".
3097         * configure: Regenerated.
3098
3099         * README: Updated.
3100
3101 Mon Oct 18 17:43:29 1999  H.J. Lu <hjl@lucon.org>
3102
3103         * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
3104         to knfsd-clients.
3105         (Provides): Likewise.
3106
3107 Mon Oct 18 14:56:22 1999  H.J. Lu <hjl@lucon.org>
3108
3109         * Initial version 0.1 released.
3110
3111         * configure.in (VERSION): Set to "nfs-utils 0.1".
3112         * configure: Regenerated.
3113
3114 Mon Oct 18 14:54:57 1999  H.J. Lu <hjl@lucon.org>
3115
3116         * utils/mountd/mountd.c (get_exportlist): Cleanup.
3117
3118         * utils/exportfs/exportfs.c (unexport_all): Unexport from
3119         kernel only if the entry is exported to kernel.
3120         (unexportfs): Likewise.
3121
3122 Wed Sep 08 16:49:32 1999  Neil Brown <neilb@cse.unsw.edu.au>
3123
3124 1/ utils/mountd/rmtab.c::mountlist_list
3125
3126      This routine stats the rmtab file to see if it has changed.  It
3127      if has, it cleans up it's old copy of the data. But it still
3128      always re-read the file, thus returning multiple copies of the
3129      data on consecutive calls without intervening changes.
3130      "Showmount -a" didn't show this as it appears to sort/unique the
3131      data, but 'strace showmount -a' showed that the size of the
3132      datagram that it received grew.
3133
3134      I moved the getrmtabent loop inside the mtime test.
3135
3136 2/ utils/exportfs/exportfs.c
3137    
3138      Many routines used the m_path field of m_export instead of
3139      e_path.
3140      According to the comment in nfslib.h, m_path should only
3141      be used when processing a mount request (i.e. in mountd)
3142      where the mountpoint may be a subdirectory of the export point.
3143
3144      I changed all occurances of m_path to e_path
3145
3146
3147 3/ utils/exportfs/exportfs.c:main
3148
3149       extra arguments are not meaningful with -a or -r, but
3150       exportfs accepted them and then ignored the -a/-r, expect that
3151       -r would still unexport everything first.
3152
3153       I generate an error if there are extra args and f_all
3154
3155 4/ utils/exportfs/exportfs.c:main
3156      extract dump out as a special case.
3157
3158 5/ utils/exportfs/exportfs.c
3159      made f_reexport a local variable.
3160
3161
3162 6/ utils/exportfs/exportfs.c:main,exportall
3163
3164     support/export/rmtab.c
3165        only  mayexport on newly created entries, don't set xtabent at all
3166
3167 7/ support/include/nfslib.h
3168
3169       add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
3170
3171 8/ support/export/xtab.c
3172
3173       xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
3174       else from xtab
3175
3176
3177 9/ support/export/xtab.c
3178
3179       xtab_mount_read now sets m_exported, and NOT
3180         xtabent and mayexport
3181
3182       removed the append arguement from xtab_write as it was
3183         never used.
3184
3185       added is_export flag to xtab_write similar to xtab_read
3186         if is_export, only write entries with m_xtabent or m_addxtab
3187         if !is_export, only write entries with m_exported
3188      
3189 10/ support/export/export.c::export_allowed_internal
3190
3191       added test for exp->m_mayexport, as the export tree
3192         may have entries that are no longer allowed to be exported,
3193         and so shouldn't caused deduced exported by rmtab_read
3194
3195 11/ utils/exportfs/exportfs.c::main
3196         error checking of flags.
3197
3198 12/ utils/exportfs/exportfs.c
3199
3200         total rewrite of export and unexport logic.
3201         We now:
3202         -  build an exportslist of valid exports, based on
3203            current etab file  and arguments,
3204         -  read rmtab to instantiate relevant wild card entries
3205         -  read etab to find out what is currently exported
3206         -  synchronise intention with reality
3207         -  write out etab and xtab
3208
3209 13/  various
3210         discard the m_addxtab flag
3211         add m_changed flag so we know what to report in exportfs
3212
3213 14/ utils/mountd/auth.c:auth_authenticate
3214
3215         the value returned by gethostbyaddr was trusted.
3216
3217         It now follows this with a call to gethostbyname
3218         and checks that the address is in the list.
3219
3220 15/ support/export/nfsctl.c::cltsetup,expsetup
3221
3222         force client names to lowercase as kernel is
3223         sensitive to case
3224
3225 16/ quietened a few compiler warnings
3226
3227 17/ support/export/client:client_lookup
3228
3229      look for pre-existing client with same name before creating
3230         a new one.
3231
3232 18/ support/include/exportfs.h
3233
3234      The ordering of the MCL_* enum was:
3235         ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
3236
3237      I moved ANONYMOUS to the end.
3238
3239      The ordering is significant when an export entry is being searched for to 
3240         match a given address.  There are two problems with ANONYMOUS being first.
3241
3242         1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
3243            then the ro case will always be found first and the privileged hosts won't get
3244            their privilege
3245         2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
3246            export entry for the specific host, and writes it to xtab.
3247            When another request comes from the same host, the ANONYMOUS entry is found again, 
3248            before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
3249            again.  If causes bloat in xtab.
3250
3251       Putting ANONYMOUS at the end reflects it's nature as a catch-all
3252
3253 19/ utils/exportfs/exportfs.man
3254         many updates to the man page to reflect changes to the code
3255
3256 -----------------------
3257
3258
3259
3260 TODO:
3261
3262 - allow exportfs to modify rmtab file
3263 - make sure kernel never gets two clients with same IP address
3264     - possible kernel should reject
3265     - needs to be some way to lookup client in kernel by IP address
3266 - maybe get kernel to do case-insensitive comparisons on client names
3267 - remove unused clients from kernel
3268
3269 - change etab to xtab and xtab to xtab.active
3270
3271 - timestamp and/or statd-stamp in rmtab for removing old entries.
3272
3273 Mon Oct 18 11:48:07 1999  H.J. Lu <hjl@lucon.org>
3274
3275         * linux-nfs: New directory.
3276         * linux-nfs/ChangeLog: Moved from ..
3277         * linux-nfs/INSTALL: Likewise.
3278         * linux-nfs/KNOWNBUGS: Likewise.
3279         * linux-nfs/NEW: Likewise.
3280         * linux-nfs/README: Likewise.
3281         * linux-nfs/THANKS: Likewise.
3282         * linux-nfs/TODO: Likewise.
3283
3284         * Starting from knfsd 1.4.7.