]> git.decadent.org.uk Git - nfs-utils.git/blob - ChangeLog
7b93669da6d5ca2c7a6fa089783c48bf2182264f
[nfs-utils.git] / ChangeLog
1 2003-05-30 Michael Griffith <grif@michaelgriffith.com>
2         NeilBrown <neilb@cse.unsw.edu.au>
3
4         utils/nfsstat/nfsstat.c(print_callstats): use unsigned
5         long long to avoid overflow when printing stats.
6         
7 2003-05-30  NeilBrown <neilb@cse.unsw.edu.au>
8
9         * support/export/export.c, support/include/nfslib.h,
10         support/nfs/export.c, utils/exportfs/exportfs.c,
11         utils/mountd/mountd.c: new export option "mountpoint"
12         If no path is given, then the export point must be a
13         mount point, or it won't be exported.  If a path is 
14         given (e.g. mountpoint=/path) then that path must be
15         a mountpoint or the exportpoint won't be exported.
16         * utils/exportfs/exportfs.man: document mountpoint option.
17         * support/misc/mountpoint.c: New file with is_mountpoint()
18         to determine if something is a mountpoint.
19         
20 2003-05-23  NeilBrown <neilb@cse.unsw.edu.au>
21
22         * utils/mountd/cache.c(cache_get_filehandle): take a separate path
23         argument as we might not be getting the filehandle for the
24         mountpoint.
25         * utils/mountd/mountd.c(get_rootfh): pass real path when calling
26         cache_get_filehandle.
27         * utils/mountd/mountd.c(get_rootfh): check export point and
28         requested directory are on the same filesystem, and complain if
29         not.
30         
31 2003-05-22  NeilBrown <neilb@cse.unsw.edu.au>
32
33         * utils/mountd/auth.c(auth_authenticate_internal): make sure
34         portnumber is still checked when using new cache lookup.
35         
36 2003-05-21  NeilBrown <neilb@cse.unsw.edu.au>
37
38         * utils/exportfs/exportfs.c: Use check_new_cache and cache_flush
39          Don't actually talk to kernel when new cache is in effect, except
40          to flush
41         * utils/exportfs/exportfs.c: add -f option to fully flush cache.
42         * support/export/xtab.c: Only rename new xtab into place if it has
43          changed, thus preserving modify date for exportfs to use when
44          flushing.
45         * support/nfs/cacheio.c: Add cache_flush
46         * support/export/xtab.c: Only rename new xtab into place if it has
47          changed, thus preserving modify date for exportfs to use when
48          flushing.
49         
50 2003-05-21  NeilBrown <neilb@cse.unsw.edu.au>
51
52         * support/export/client.c: Add client_compose, client_member to
53         handle new composite client names
54         * support/include/exportfs.h: Declare above functions.
55         * utils/mountd/auth.c: use client_compose to determine calling
56         client if new cache is being used.
57         * utils/mountd/auth.c: call cache_export to export a filesystem if
58         new_cache, check if new cache is used, and call my_svc_run instead
59         of svc_run
60         * utils/mountd/svc_run.c: new file defining my_svc_run
61         * utils/mountd/cache.c: new file for handling cache upcalls.
62         * support/nfs/cacheio.c(check_new_cache): new function to check if
63         new cache should be used.
64         
65         
66 2003-05-21  NeilBrown <neilb@cse.unsw.edu.au>
67
68         * support/include/nfs/export.h: New CROSSMNT distinct from NOHIDE
69         * support/nfs/exports.c: Make CROSSMNT distinct from NOHIDE
70         * utils/exportfs/exportfs.c(dump): ditto
71         
72 2003-05-21  NeilBrown <neilb@cse.unsw.edu.au>
73
74         * support/export/hostname.c(get_reliable_hostbyaddr): new function
75         to get host name from address with full checking of authenticity.
76         * support/include/misc.h: declare above function
77         * utils/mountd/auth.c(auth_authenticate_internal): remove all
78         logic for authenticating address.
79         * utils/mountd/auth.c(auth_authenticate): call new
80         get_reliable_hostbyaddr to to hostname lookup before calling _internal.
81         
82         
83 2003-03-30  NeilBrown <neilb@cse.unsw.edu.au>
84
85         * tools/rpcgen/rpc_main.c(find_cpp): removed
86         * tools/rpcgen/rpc_main.c(open_input): use execvp to find "cpp", 
87         then try hard-coded paths.
88         
89 2003-03-26  Chip Salzenberg  <chip@pobox.com>
90
91         * debian/changelog: Version 1.0.3-1.
92
93 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
94
95         * utils/mountd/rmtab.c (slink_safe_rename): real_newpath should be
96         "const char*", not "char*".
97
98 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
99
100         * configure.in (VERSION): Set to "1.0.3".
101         * nfs-utils.spec: Likewise.
102         * configure: Regenerated.
103
104 2003-03-26 NeilBrown <neilb@cse.unsw.edu.au>
105
106         * support/nfs/cacheio.c: New File - support for read/writing
107         to export cache in /proc/rpc/*/channel
108         * support/nfs/Makefile: compile cacheio.c
109         * support/include/nfslib.h: declare cacheio.c functions
110         * support/nfs/nfsexport.c: export and unexport through
111         /proc/rpc/*/channel if possible, as old syscall interface
112         may not survive into 2.6 on all architectures.
113         
114 2003-02-19 NeilBrown <neilb@cse.unsw.edu.au>    
115         Ben Leslie <benno@sesgroup.net>
116
117         * support/nfs/rpcmisc.c(rpc_init):  change test for ignoring
118         "defport" from (__rpcfdtype == 0) to (__rpcpmstart==0).  The
119         former would incorectly ignore defport if the application 
120         explicitly set __rpcfdtype.  The later is sufficient to avoid the
121         special handling in the case where stdin is an internet socket.
122
123         * utils/mountd/mountd.c(main): Add 'n' to option list in
124         getopt_long as this is a short form of --no-tcp which want being
125         checked.
126         
127 2003-02-12  Chip Salzenberg  <chip@pobox.com>
128
129         * debian/changelog: Version 1.0.2-2.
130
131 2002-11-27  Chip Salzenberg  <chip@pobox.com>
132
133         * utils/mountd/rmtab.c (slink_safe_rename): Fix off-by-one buffer
134         overflow bug.  Reformat per rest of source file.
135
136 2002-11-19  NeilBrown <neilb@cse.unsw.edu.au>
137
138         * utils/exportfs/exports.man: Correct notes about whether the wild
139         card characters match a period.  They do.
140         
141 2002-10-15  Juan Gomez <juang@us.ibm.com>
142
143         * utils/mountd/rmtab.c (slink_safe_rename): New. Support
144         symlink.
145         (mountlist_add): Call slink_safe_rename instead of rename.
146
147 2002-10-11  H.J. Lu <hjl@lucon.org>
148
149         * support/include/exportfs.h (export_errno): New.
150
151         * support/nfs/exports.c: Include <errno.h>.
152         (export_errno): New.
153         (getexportent): Set export_errno to EINVAL for bad option.
154         (parseopts): Likewise.
155         Report the location of the default sync/async option.
156
157         * utils/exportfs/exportfs.c (main): Initialize export_errno to
158         0. Return export_errno.
159
160 2002-10-11  Juan Gomez  <gomez@cs.sjsu.edu>
161         NeilBrown <neilb@cse.unsw.edu.au>
162
163         utils/statd/statd.c(killer): don't pmap_unset if in notify_only mode
164         utils/statd/statd.c(main): don't pmap_unset if in notify_only mode
165         
166 2002-09-16  Chip Salzenberg  <chip@pobox.com>
167
168         * utils/rquotad/rquota_svc.c (main): Use int for value of getopt.
169
170 2002-09-15  Chip Salzenberg  <chip@pobox.com>
171
172         * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET
173         socket, as occurs when run from sshd.
174         * debian/changelog: Version 1.0.2-1.
175
176 2002-09-12  H.J. Lu <hjl@lucon.org>
177
178         * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and
179         HAVE_SVCUDP_SOCKET.
180
181 2002-09-12  H.J. Lu <hjl@lucon.org>
182
183         * configure.in: Remove checking svctcp_socket and svcudp_socket.
184         * configure: Regenerated.
185
186         * support/include/config.h.in (HAVE_SVCTCP_SOCKET): Removed.
187         (HAVE_SVCUDP_SOCKET): Removed.
188
189         * support/include/nfslib.h: Undo the last change.
190
191 2002-09-12  H.J. Lu <hjl@lucon.org>
192
193         * support/include/nfslib.h (svctcp_socket): Protect it with
194         HAVE_SVCTCP_SOCKET.
195         (svcudp_socket): Protect it with HAVE_SVCUDP_SOCKET.
196
197 2002-09-12  H.J. Lu <hjl@lucon.org>
198
199         * configure.in (VERSION): Set to "1.0.2".
200         * configure: Regenerated.
201         * nfs-utils.spec: Likewise.
202
203 2002-09-12  H.J. Lu <hjl@lucon.org>
204
205         * configure.in: Check svctcp_socket and svcudp_socket.
206         * configure: Regenerated.
207
208         * support/include/config.h.in (HAVE_SVCTCP_SOCKET): New.
209         (HAVE_SVCUDP_SOCKET): New.
210
211         * support/include/nfslib.h (svctcp_socket): New.
212         (svcudp_socket): New.
213
214         * support/nfs/Makefile (OBJS): Add svc_socket.o.
215
216         * support/nfs/svc_socket.c: New.
217
218         * support/nfs/rpcmisc.c (rpc_init): Call svctcp_socket and
219         svcudp_socket if port is unspecified.
220
221         * utils/nfsd/nfsd.c (main): Call getservbyname for port.
222
223         * utils/rquotad/rquota_svc.c: Include <nfslib.h>.
224         (killer): New. Signal handler to unregister.
225         (main): Use killer. Call svcudp_socket to get the default
226         socket.
227
228 2002-09-02 Juan Gomez <juang@us.ibm.com>
229         NeilBrown <neilb@cse.unsw.edu.au>
230
231         Add -N option to statd to run in notify-only mode.
232
233         * utils/statd/statd.h: uncomment MODE_NOTIFY_ONLY
234         * utils/statd/statd.man: document -N
235         * utils/statd/statd.c: enabled -N, largely exists but needed to be
236         uncommented and completed
237         
238 2002-09-02 Juan Gomez <juang@us.ibm.com>
239         NeilBrown <neilb@cse.unsw.edu.au>
240
241         statd to have " -P directory" arg to use that directory instead
242         of /var/lib/nfs.  This is useful for fail-over clusters.
243         
244         * utils/statd/statd.h: define SM_DIR etc as var, not const.
245         * utils/statd/statd.c: define "-P" option to set SM_*
246         appropriately.
247         * utils/statd/monitor.c: sprintf to cope with SM_DIR not being
248         a constant any more.
249         * utils/statd/notify.c: ditto.
250         * utils/statd/statd.man: document -P option.
251         
252 2002-08-26  Chip Salzenberg  <chip@pobox.com>
253
254         * utils/nfsd/nfsd.man: Fix typo.
255         * debian/changelog: Version 1.0.1-1.
256
257 2002-05-29 NeilBrown <neilb@cse.unsw.edu.au>
258
259         * let parseopts know if /etc/exports was being read or not, 
260         and have it only print "no sync or async" warning in that case.
261         
262 2002-05-06 Tom McNeal <trmcneal@attbi.com>
263         NeilBrown <neilb@cse.unsw.edu.au>
264
265         * utils/nfsstat/nfsstat.c: Handle differing format for
266            /proc/net/rpc/nfsd between pre and post 2.4.0
267         
268 2002-04-09  NeilBrown <neilb@cse.unsw.edu.au>
269         James Pearson <james-p@moving-picture.com>
270
271         * support/nfs/rmtab.c(fendrmtabent): sync changes to 
272         storage before returning, as this is critical state
273
274 2002-04-08  Sean O'Connell <sean@ee.duke.edu>
275             H.J. Lu <hjl@lucon.org>
276
277         * etc/redhat/nfs: New.
278
279 2002-04-08  H.J. Lu <hjl@lucon.org>
280
281         * etc/redhat/nfs.init: Updated.
282
283         * nfs-utils.spec.in: Updated.
284         * nfs-utils.spec: Regenerated.
285
286         * utils/mountd/mountd.c (longopts): Fix a typo.
287
288         * utils/mountd/mountd.man: Updated.
289
290 2002-04-07  H.J. Lu <hjl@lucon.org>
291
292         * etc/redhat/nfslock.init (restart): Just do stop and start.
293
294         * etc/redhat/nfs.init: Fix a typo.
295
296 2002-04-07  H.J. Lu <hjl@lucon.org>
297
298         * configure.in (VERSION): Set to "1.0.1".
299         * configure: Regenerated.
300         * nfs-utils.spec: Likewise.
301
302         * README: Updated for 1.0.1.
303
304 2002-04-07  Sean O'Connell <sean@ee.duke.edu>
305             H.J. Lu <hjl@lucon.org>
306
307         * etc/redhat/nfs.init: Read /etc/sysconfig/nfsd for NFS tuning.
308
309 2002-02-28   Steven Whitehouse <steve@gw.chygwyn.com>
310               NeilBrown <neilb@cse.unsw.edu.au>
311
312         Add support for fsid=nn export option so that device
313         numbers don't go in filehandles.
314         * support/export/nfsctl.c(expsetup): if exporting and NFSEXP_FSID
315         is set, pass the fsid in-place of the device number
316         * support/nfs/exports.c: parse and print fsid= option.
317         Also check if efname has been set, and use "command line"
318         instead in error messages.
319         Also, use strtol instead of atoi for anon[ug]id= so that
320         bad numbers cause errors.
321         
322 2002-01-17   Adrian Drzewiecki <drze@MissionCriticalLinux.com>
323              NeilBrown <neilb@cse.unsw.edu.au>
324
325         * support/nfs/exports.c: remove NFSEXP_ASYNC as a default
326         flag so that "sync" becomes the default.
327         Check that either "sync" or "async" is given as an option
328         and warn if neither are present
329         * utils/exportfs/exports.man: change documentation for "sync"
330         to be documentation for "async".
331         * utils/exportfs/exportfs.man: note that "sync" is the default
332         rather than "async"
333         
334         
335 2002-01-02  Chip Salzenberg  <chip@pobox.com>
336
337         * support/export/nfsctl.c (expsetup): Don't export entries that
338         specify id mappings not supported by the kernel.  No extant kernel
339         supports any significant mapping, only 'identity' (i.e. none).
340         When other mappings are supported, this code will need changing.
341         * debian/changelog: Version 1.0-2.
342
343 2001-12-26  Chip Salzenberg  <chip@pobox.com>
344
345         * nfs-utils.spec (Version): Set to "1.0".
346         * configure.in (VERSION): Likewise.
347         * configure: Regenerated.
348         * README: Rewritten.
349         * debian/changelog: Version 1.0-1.
350
351         * utils/exportfs/exports.man: Emphasize the need for options to
352         immediately follow client names.  Explain that wildcards don't
353         usually work on addresses, but may work when reverse DNS fails.
354         Comment out a leftover TP that was TPing our indentation.
355         * utils/mountd/mountd.man, utils/rquotad/rquotad.man,
356         utils/statd/statd.man: Remove refs to non-existent "hosts_allow(5)".
357         * debian/changelog: Version 0.3.3-6.
358
359 2001-12-20  NeilBrown <neilb@cse.unsw.edu.au>
360
361         * support/export/client.c(client_lookup): If a host has multiple
362         IP addresses, then we must always use the result of a
363         gethostbyname, not that of gethostbyaddr for exporting
364         
365 2001-12-20  NeilBrown <neilb@cse.unsw.edu.au>
366
367         * support/export/client.c (client_lookup): use strcasecmp when
368         comparing host names
369         * support/nfs/export.c (getexportent): add fromkernel arg and use
370         different defaults as kernels prior to 2.4.11 assume different
371         defaults in /proc/fs/nfs/exports
372         * support/include/nfslib.h, support/export/export.c,
373         support/export/xtab.c:  support extra "fromkernel" arg for
374         getexportent. 
375         
376 2001-12-13  Chip Salzenberg  <chip@pobox.com>
377
378         * debian/changelog: Version 0.3.3-5.
379
380 2001-11-26  TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
381
382         * support/nfs/xio.c (xskip): Call `xungetc' instead of
383         `ungetc' to keep x_line more properly.
384
385 2001-11-26  Chip Salzenberg  <chip@pobox.com>
386
387         * utils/showmount/showmount.c (main): Don't assume that strings
388         starting with digits are IP addresses.
389         * utils/nfsd/nfsd.c (main): Close all fds and reopen 0,1,2 on
390         /dev/null before nfssvc().  Use syslog to report nfssvc errors.
391         * support/misc/tcpwrapper.c, utils/mountd/mountd.man,
392         utils/rquotad/rquotad.man, utils/statd/statd.man: Fix comments and
393         man pages: We check host names *and* addresses with tcpwrappers.
394         * debian/changelog: Version 0.3.3-4.
395
396 2001-11-21  Chip Salzenberg  <chip@pobox.com>
397
398         * support/nfs/clients.c (cfname): Added: current clients file name.
399         (setnfsclntent): Set it.
400         ({get,end}nfsclntent, syntaxerr): Use it.
401         * support/nfs/exports.c (efname): Added: current exports file name.
402         (setnfsexportent): Set it.
403         (endnfsexportent, parseopts, getexport, syntaxerr): Use it.
404         (parseopts): Accept old-style "crossmnt" option, for old xtabs.
405         * debian/changelog: Version 0.3.3-3.
406
407 2001-10-11  Chip Salzenberg  <chip@pobox.com>
408
409         * utils/mountd/mountd.c (main): Close fds > 2 _before_ RPC init.
410         * debian/changelog: Version 0.3.3-2.
411
412 2001-10-08  Chip Salzenberg  <chip@pobox.com>
413
414         * utils/mountd/mountd.c (main): When daemonizing, close all fds > 2.
415         * utils/Makefile.in: Remove old Makefile in target 'distclean'.
416         * utils/mountd/mountd.man: Update paths to /var/lib.
417         * debian/*: Version 0.3.3-1, with Debian-specific fixes.
418
419 2001-10-06  Preston Brown <pbrown@redhat.com>
420
421         * utils/nfsstat/nfsstat.man: Updated.
422
423 2001-09-24  H.J. Lu <hjl@lucon.org>
424
425         * configure.in (VERSION): Set to "0.3.3".
426         * configure: Regenerated.
427         * nfs-utils.spec: Likewise.
428
429         * README: Updated for 0.3.3.
430
431 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
432
433         Arrange that "exportfs -au" never does DNS lookup:
434         
435         * support/export/client.c (client_lookup) : add "canonical"
436         flag which says that the hostname is known to be canonical, so
437         don't do a lookup
438
439         * support/export/export.c (export_create) : add "canonical"
440         flag to be passed down to client_lookup
441         * support/export/export.c (export_lookup) : Likewise
442
443         * support/export/xtab.c (xtab_read) : pass appropriate
444         "canonical" flag to export_lookup and export_create:
445         set if reading list of filesystems currently exports
446         (is_export != 1). 
447
448         * support/export/export.c (export_read) : pass 0 as 
449         "canonical" flag to export_lookup and export_create
450         * support/export/rmtab.s (rmtab_read) : Likewise
451
452         * support/include/exportfs.h : redeclare various routines
453         to have "canonical" flag
454
455         * utils/exportfs/exportfs.c (main) : redo logic for 
456         "-au" to read in what is currently exported, but never even 
457         look at what "should" be exported.
458
459         * utils/exportfs/exportfs.c (unexportall) : remove this
460         routine. Functionality is completely included in
461         exports_update
462
463         * utils/exportfs/exportfs.c (exportfs) : set "canonical"
464         flag to zero in calls to export_lookup and export_create.
465
466         
467 2001-09-20 NeilBrown <neilb@cse.unsw.edu.au>
468             Anne Milicia <milicia@missioncriticallinux.com>
469
470         * support/export/client.c (client_lookup) call gethostbyadd
471         to make sure that we have a canonical hostname, even for
472         dotted-quads
473         * utils/exportfs/exportfs.c (exportfs) Likewise
474         
475 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
476
477         * support/nfs/exports.c (putexportent): \octal quote any spaces
478         etc in a path name
479         * support/nfs/xio.c (xgettok): recognise double-quote and
480         \octal quoting in path names
481         * utils/exportfs/exports.man: document quoting conventions
482         for path names
483         
484 2001-09-12 NeilBrown <neilb@cse.unsw.edu.au>
485
486         * utils/mountd/auth.c (auth_authenticate_internal): Reverse
487           change from 2000-08-02:  It causes problems if someone exports
488           to both a hostname and IP addresses.  nfs-utils must be
489           consistant about the canonical name that it chooses.
490
491 2001-08-17  Ragnar Kjørstad <nfs@ragnark.vestdata.no>
492             H.J. Lu <hjl@lucon.org>
493
494         * etc/redhat/nfslock.init (STATDARG): New. Pass it to rpc.statd.
495
496         * utils/statd/statd.c (longopts): Add "name".
497         (usage): Add "-n/--name".
498         (main): Set MY_NAME with "-n/--name".
499
500         * utils/statd/state.c (change_state): Set MY_NAME only if it
501         is NULL.
502         
503         * utils/statd/statd.man: Updated for "-n/--name".
504
505 2001-07-26  H.J. Lu <hjl@lucon.org>
506
507         * nfs-utils.spec (Release): Set to 8.
508
509 2001-07-25  H.J. Lu <hjl@lucon.org>
510
511         * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
512         anything about it.
513
514 2001-06-27  H.J. Lu <hjl@lucon.org>
515
516         * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
517
518 2001-06-27  H.J. Lu <hjl@lucon.org>
519
520         * utils/rquotad/rquota_server.c: Don't call statfs () for
521         the block size. Use BLOCK_SIZE instead.
522
523 2001-06-27  H.J. Lu <hjl@lucon.org>
524
525         * config.mk.in (CC_FOR_BUILD): Renamed from BUILD_CC.
526         (CFLAGS_FOR_BUILD): New. Don't use @CFLAGS@.
527
528         * configure.in (enable_nfsv3): Set to yes by default.
529         (--enable-rquotad): Added
530         (AC_PROG_CXX): Removed.
531         (AC_OUTPUT): Add utils/Makefile.
532         (CC_FOR_BUILD): Renamed from BUILD_CC.
533         * configure: Regenerated.
534
535         * utils/Makefile: Removed.
536
537         * utils/Makefile.in: New.
538
539         * nfs-utils.spec.in (rquotad): New. Set to 0 to disable
540         rquotad.
541         (CC_FOR_BUILD): Renamed from BUILD_CC.
542         * nfs-utils.spec: Regenerated.
543
544 2001-06-15  Chip Salzenberg  <chip@debian.org>
545
546         * debian/changelog: Version 0.3.2-2.
547         * debian/*.init: Minor fixes.
548
549 2001-06-07  Lon H. Hohberger <hohberger@missioncriticallinux.com>
550
551         * etc/nodist/nfs-server: Fixed a bug where the script would
552         disable mounts from NFSv3 clients if NFSv3 is present.
553
554 2001-06-05  H.J. Lu <hjl@lucon.org>
555
556         * utils/mountd/mountd.c (longopts): Add "descriptors/o".
557         (main): Support --descriptors/-o to set the limit of the number
558         of open file descriptors.
559         (usage): Updated.
560
561         * utils/mountd/mountd.man: Updated for --descriptors/-o.
562
563 2001-06-04  H.J. Lu <hjl@lucon.org>
564
565         * nfs-utils.spec (Release): Set to 6.
566
567 2001-05-28  H.J. Lu <hjl@lucon.org>
568
569         * utils/lockd/lockd.c (main): chdir to NFS_STATEDIR.
570         * utils/mountd/mountd.c (main): Likewise.
571         * utils/nfsd/nfsd.c (main): Likewise.
572         * utils/rquotad/rquota_svc.c (main): Likewise.
573
574 2001-05-06  Anne Milicia <milicia@missioncriticallinux.com>
575
576         * support/export/client.c (client_check): Check IP address
577         againet netgroup.
578
579 2001-05-06  Neil Brown <neilb@cse.unsw.edu.au>
580
581         * support/export/client.c (client_gettype): Treat `*' as
582         MCL_ANONYMOUS.
583
584 2001-04-22  H.J. Lu <hjl@lucon.org>
585
586         * nfs-utils.spec.in: Fix a typo.
587         * nfs-utils.spec: Regenerated.
588
589 2001-04-21  H.J. Lu <hjl@lucon.org>
590
591         * nfs-utils.spec.in: Fix cross build.
592         * nfs-utils.spec: Regenerated.
593         (Release): Set to 5.
594
595 2001-04-18  H.J. Lu <hjl@lucon.org>
596
597         * nfs-utils.spec.in: Support cross build.
598         * nfs-utils.spec: Regenerated.
599         (Release): Set to 4.
600
601         * config.sub: New.
602         * config.guess: New.
603
604         * config.mk.in (BUILD_CC): New.
605         (CC): Set to $(BUILD_CC) if BUILD is defined.
606         (AR): Set to @AR@.
607         (LD): Set to @LD@.
608         (RANLIB): Set to @RANLIB@.
609
610         * configure.in: Check BUILD_CC, RANLIB, AR and LD.
611         * configure: Regenerated.
612
613         * tools/rpcgen/Makefile (BUILD): Set to true.
614
615 2001-04-01  Chip Salzenberg  <chip@valinux.com>
616
617         * tools/rpcgen/rpc_svcout.c (write_timeout_func): Remove
618         redundant, and sometimes broken, declaration of svc_fdset;
619         it may be a macro.
620         * support/nfs/rpcmisc.c (closedown): Likewise.
621         
622 2001-03-21  H.J. Lu <hjl@lucon.org>
623
624         * nfs-utils.spec: Regenerated.
625         (Release): Set to 3.
626
627 2001-03-21  Ion Badulescu  <ionut@cs.columbia.edu>
628
629         * utils/statd/statd.c (main): make sure file descriptors 0-2
630         are open to /dev/null.
631
632 2001-03-21  H.J. Lu <hjl@lucon.org>
633
634         * support/nfs/rpcmisc.c: Restore the change made on 2001-03-10.
635         * support/nfs/rpcmisc.c: Likewise.
636         * utils/rquotad/rquota_svc.c: Likewise.
637         * utils/rquotad/rquotad.man: Likewise.
638         * utils/statd/Makefile: Likewise.
639         * utils/statd/rmtcall.c: Likewise.
640         * utils/statd/simulate.c: Likewise.
641         * utils/statd/statd.c: Likewise.
642         * utils/statd/statd.man: Likewise.
643
644 2001-03-11  H.J. Lu <hjl@lucon.org>
645
646         * configure.in (RELEASE): New. Default to 1, set by
647         --with-release=XXX. Substitute nfs-utils.spec.
648         * nfs-utils.spec.in (Release): Set to @RELEASE@.
649         * configure: Regenerated.
650         * nfs-utils.spec: Likewise.
651
652 2001-03-11  H.J. Lu <hjl@lucon.org>
653
654         * utils/rquotad/rquotad.man: Fix a typo.
655
656 2001-03-11  H.J. Lu <hjl@lucon.org>
657
658         * support/include/rpcmisc.h: Undo the change made on 2001-03-10.
659         * support/nfs/rpcmisc.c: Likewise.
660         * utils/rquotad/rquota_svc.c: Likewise.
661         * utils/rquotad/rquotad.man: Likewise.
662         * utils/statd/Makefile: Likewise.
663         * utils/statd/rmtcall.c: Likewise.
664         * utils/statd/simulate.c: Likewise.
665         * utils/statd/statd.c: Likewise.
666         * utils/statd/statd.man: Likewise.
667
668 2001-03-10  H.J. Lu <hjl@lucon.org>
669
670         * configure.in (VERSION): Set to "0.3.2".
671         * configure: Regenerated.
672         * nfs-utils.spec: Likewise.
673
674         * README: Updated for 0.3.2.
675
676 2001-03-10  Tavis Barr <tavis@boole.isetr.columbia.edu>
677
678         * utils/rquotad/rquotad.man: Updated for -p.
679         * utils/statd/statd.man: Likewise.
680
681 2001-03-10  Ion Badulescu  <ionut@cs.columbia.edu>
682
683         * support/nfs/rpcmisc.c: export makesock()
684
685         * support/include/rpcmisc.h (makesock): Declared.
686
687         * utils/rquotad/rquota_svc.c: added longopts, added support for
688         specifying the port to bind to on the command line.
689
690         * utils/statd/statd.c: ditto, also specify port used for
691         outgoing connections.
692         (do_regist): Removed.
693
694         * utils/statd/rmtcall.c (statd_get_socket): Renamed from
695         get_socket. Make it extern.
696
697         * utils/statd/simulate.c (daemon_simulator): Call rpc_init
698         instead of do_regist.
699
700         * utils/statd/Makefile (LIBS): link with our own libnfs
701
702 2001-03-09  H.J. Lu <hjl@lucon.org>
703
704         * etc/redhat/nfslock.init: Changed chkconfig line to 60 86.
705         * etc/nodist/nfs-client: Likewise.
706
707 2001-02-26  Chip Salzenberg  <chip@valinux.com>
708
709         * debian/changelog: Version 0.3.1-1.
710         * Mention upstream source and license in copyright file.
711         * Add build-Depends for debhelper and libwrap0-dev.
712
713 2001-02-20  Lon Hohberger <hohberger@missioncriticallinux.com>
714
715         * etc/nodist/nfs-server: Changed chkconfig line to 60 20
716         * etc/nodist/nfs-client: Likewise.
717
718 2001-02-18  Lon Hohberger <hohberger@missioncriticallinux.com>
719
720         * utils/statd/statd.man: Changed /usr/sbin/rpc.statd to
721         /sbin/rpc.statd.
722
723 2001-02-17  Patrick J. LoPresti <patl@curl.com>
724
725         * utils/statd/log.c (log_init): Use LOG_DAEMON instead of
726         LOG_LOCAL5.
727
728 2001-02-14  H.J. Lu <hjl@lucon.org>
729
730         * utils/statd/rmtcall.c: Include <time.h>.
731         * utils/statd/svc_run.c: Likewise.
732
733 2001-02-14  H.J. Lu <hjl@lucon.org>
734
735         * configure.in (VERSION): Set to "0.3.1".
736         * configure: Regenerated.
737         * nfs-utils.spec: Likewise.
738
739         * README: Updated for 0.3.1.
740
741 2001-02-14  H.J. Lu <hjl@lucon.org>
742
743         * support/nfs/rpcmisc.c: Include <time.h>.
744
745 2001-02-14  Chip Salzenberg  <chip@valinux.com>
746
747         * debian/control: Change priority of nhfsstone package to 'extra'.
748
749 2001-02-12  Chip Salzenberg  <chip@valinux.com>
750
751         * debian/changelog: Version 0.3-2.
752
753 2001-02-02  H.J. Lu <hjl@lucon.org>
754
755         * support/include/rpcmisc.h (rpc_init): Remove bufsize.
756         
757         * support/nfs/rpcmisc.c (makesock): Remove socksz and comment
758         out SO_SNDBUF/SO_RCVBUF.
759         (rpc_init): Remove bufsize and remove socksz in calls to
760         makesock ().
761
762         * utils/mountd/mountd.c (main): Remove bufsize in calls to
763         rpc_init ().
764
765 2001-01-28  Chip Salzenberg  <chip@valinux.com>
766
767         * debian/changelog: Version 0.3-1.
768
769 2001-01-25  H.J. Lu <hjl@lucon.org>
770
771         * configure.in (VERSION): Set to "0.3".
772         * configure: Regenerated.
773         * nfs-utils.spec: Likewise.
774
775         * README: Updated for 0.3.
776
777 2001-01-25  H.J. Lu <hjl@lucon.org>
778
779         * utils/lockd/lockd.c (main): Ignore errno == EINVAL.
780
781 2001-01-20  Chip Salzenberg  <chip@valinux.com>
782
783         * support/include/xio.h (xgetc): Declare to return int.
784         * support/nfs/xio.c (xgetc): Return int.
785         (xgettok, xskip, xskipcomment): Use int for value of xgetc.
786         * utils/statd/statd.c (main): Use int for value of getopt.
787         * debian/changelog: Version 0.2.1-5.
788         
789 2000-12-10  Chip Salzenberg  <chip@valinux.com>
790
791         * utils/statd/monitor.c (sm_mon_1_svc): Fix buggy check for
792         program and procedure numbers of kernel lockd's callback.  Also,
793         besides the old (and broken) procedure #24, allow #16 per Trond.
794
795 2000-12-03  Chip Salzenberg  <chip@valinux.com>
796
797         * support/nfs/xio.c (xfopen): Initialize x_line to one, not zero.
798         * debian/control: Let nhfsstone replace files in nfs-kernel-server.
799         * debian/changelog: Version 0.2.1-4.
800
801 2000-11-27  Tobias Ringstrom <tori@tellus.mine.nu>
802
803         * utils/mountd/auth.c (auth_authenticate): Log the bad path
804         warning.
805
806 2000-11-24  Neil Brown <neilb@cse.unsw.edu.au>
807
808         * support/nfs/exports.c (getexportent): Check for host name
809         without option, or options without hostname, and print a warning,
810         as this is most likely a typo.
811
812 2000-11-19  Chip Salzenberg  <chip@valinux.com>
813
814         * debian/control: Add dependency on portmap.
815         * debian/changelog: Version 0.2.1-3.
816
817 2000-11-10  H.J. Lu <hjl@lucon.org>
818
819         * nfs-utils.spec.in: Don't use libtool.
820         Add ChangeLog and COPYING to doc.
821         * nfs-utils.spec: Rebuild.
822
823 2000-11-09  H.J. Lu <hjl@lucon.org>
824
825         * etc/redhat/nfs.init (start): Back out the last change.
826
827 2000-11-09  H.J. Lu <hjl@lucon.org>
828
829         * etc/redhat/nfs.init (start): Pass --no-tcp to mountd if
830         TCP is not supported by kernel.
831
832         * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0.
833
834         * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp".
835         (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp".
836
837         * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
838
839 2000-10-24  Lon Hohberger <hohberger@missioncriticallinux.com>
840
841         * utils/statd/callback.c: Fix bug preventing callbacks to local lockd.
842         * utils/statd/rmtcall.c: Add some IP address paranoia when doing
843         callbacks to local lockd.
844
845 2000-10-18  Scott McDermott <mcdermot@questra.com>
846
847         * utils/exportfs/exports.man: Updated for CIDR netmask.
848
849 2000-10-17  Scott McDermott <mcdermot@questra.com>
850
851         * support/export/client.c (client_init): Support CIDR netmask
852         in /etc/exports.
853
854 2000-10-11  H.J. Lu <hjl@lucon.org>
855
856         * aclocal.m4 (AC_TCP_WRAPPER): Fix a typo.
857         * configure: Rebuilt.
858
859 2000-10-06  Lon Hohberger <hohberger@missioncriticallinux.com>
860
861         * utils/statd/statd.man: Change "/var/lib/nfs/sm/state" to
862         "/var/lib/nfs/state".
863
864 2000-10-05  Lon Hohberger <hohberger@missioncriticallinux.com>
865
866         * utils/statd/statd.h (run_mode): New global bitmask of runtime
867         behaviors: fg/bg, logging, etc.
868         * utils/statd/statd.c: New command line options: -V -h -? -d .
869         * utils/statd/statd.man: Update for changes to statd.
870
871         * utils/statd/log.h (log_init): Remove parameter of function; use
872         global variable "name_p" instead.
873         * utils/statd/log.c: Add support for logging to stderr.
874
875         * utils/statd/notlist.c: Partially rewrite notify list handling
876         functions.  Eliminate run-off-end-of-list bug when calling
877         nlist_insert_timer.  Add lots of comments.
878         
879 2000-09-27  H.J. Lu <hjl@lucon.org>
880
881         * README: Updated for RedHat 7.0.
882
883 2000-09-27  H.J. Lu <hjl@lucon.org>
884
885         * nfs-utils.spec: Rebuild.
886
887 2000-09-27  H.J. Lu <hjl@lucon.org>
888
889         * README: Updated for 0.2.1.
890
891 2000-09-27  H.J. Lu <hjl@lucon.org>
892
893         * nfs-utils.spec.in: Updated to use rpm macros and support
894         RedHat 7.0.
895
896 2000-09-25  H.J. Lu <hjl@lucon.org>
897
898         * configure.in (VERSION): Set to "0.2.1".
899         * configure: Regenerated.
900         * nfs-utils.spec: Updated.
901
902 2000-09-25  H.J. Lu <hjl@lucon.org>
903
904         * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
905         non-NULL hostent is always returned.
906
907 2000-09-11  Ion Badulescu  <ionut@cs.columbia.edu>
908
909         * etc/redhat/nfslock.init: don't kill lockd processes that do not
910         have an executable (i.e. kernel threads)
911
912 2000-09-01  H.J. Lu <hjl@lucon.org>
913
914         * README: Updated for 0.2.
915
916 2000-09-01  Jay Weber <jweber@valinux.com>
917
918         * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
919         supporting version 3 of nfs if available, else it will fall back to
920         version 2 support only.
921
922 2000-08-30  H.J. Lu <hjl@lucon.org>
923
924         * configure.in (VERSION): Set to "0.2".
925         * configure: Regenerated.
926         * nfs-utils.spec: Updated.
927
928 2000-08-25  H.J. Lu <hjl@lucon.org>
929
930         * support/misc/tcpwrapper.c (logit): Modify the log output.
931
932 2000-08-25  Ion Badulescu  <ionut@cs.columbia.edu>
933
934         * utils/rquotad/rquotad.man, utils/statd/statd.man,
935         utils/mountd/mountd.man: updated
936         
937         * utils/mountd/Makefile (LIBS): added -lmisc $(LIBWRAP) $(LIBNSL)
938         * utils/rquotad/Makefile: fix comment
939
940         * support/misc/tcpwrapper.c (logit): added comment about waiting
941         for the children after fork()
942         
943         * utils/mountd/mountd.c (main): ignore SIGCHLD to prevent leaving
944         zombies behind (from logit()'s fork)
945         * utils/rquotad/rquota_svc.c (main): ditto
946         * utils/statd/statd.c (main): ditto
947
948         * utils/rquotad/rquota_svc.c (rquotaprog_1): pass RQUOTAPROG
949         to check_default instead of 0, for prognum
950
951         * utils/statd/statd.c (sm_prog_1_wrapper): pass SM_PROG
952         to check_default instead of 0, for prognum
953
954         * utils/mountd/mount_dispatch.c: Include "tcpwrapper.h" if
955         HAVE_TCP_WRAPPER is defined.
956         (mount_dispatch): Call check_default () if HAVE_TCP_WRAPPER is
957         defined. Reject an RPC call if check_default () fails.
958
959 2000-08-25  H.J. Lu <hjl@lucon.org>
960
961         * support/include/tcpwrapper.h: New for the tcp wrapper
962         support.
963         * support/misc/Makefile: Likewise.
964         * support/misc/from_local.c: Likewise.
965         * support/misc/tcpwrapper.c: Likewise.
966
967         * aclocal.m4 (AC_TCP_WRAPPER): New.
968         * configure.in: Use it. Substitute LIBWRAP.
969         * configure: Rebuilt.
970
971         * config.mk.in (LIBNSL): New.
972         (LIBWRAP): Likewise.
973
974         * support/Makefile (SUBDIRS): Add misc.
975
976         * support/lib/Makefile (LIBS): Add libmisc.a.
977
978         * utils/rquotad/Makefile (LIBS): Add
979         
980                 -lmisc $(LIBWRAP) $(LIBNSL)
981
982         * utils/statd/Makefile (LIBS): Likewise.
983
984         * utils/rquotad/rquota_svc.c: Include "tcpwrapper.h" if
985         HAVE_TCP_WRAPPER is defined.
986         (rquotaprog_1): Call check_default () if HAVE_TCP_WRAPPER is
987         defined. Reject an RPC call if check_default () fails.
988
989         * utils/statd/statd.c: Include "tcpwrapper.h" if
990         HAVE_TCP_WRAPPER is defined.
991         (sm_prog_1_wrapper): New. A wrapper for sm_prog_1. Call
992         check_default () before calling sm_prog_1 (). Define it as
993         sm_prog_1_wrapper if HAVE_TCP_WRAPPER is defined.
994
995 2000-08-25  Chip Salzenberg  <chip@valinux.com>
996
997         * debian/*: Complete Debian build support.
998         * etc/debian/*: Remove.
999
1000 2000-08-24  Neil Brown <neilb@cse.unsw.edu.au>
1001
1002         * support/export/client.c(client_check): removed the "dot+1" as a
1003           ypdomain argument to innetgr as this is entirely bogus.
1004           It should always be NULL.
1005         
1006 2000-08-23  Neil Brown <neilb@cse.unsw.edu.au>
1007
1008         * support/export/xtab.c(xtab_read): introduce new mode for
1009            reading xtab. i.e. a list of exports that might be known to the
1010            kernel, or might not.  These are flagged as m_exported == -1
1011         * support/export/xtab.c(xtab_mount_read):  call xtab_read with new
1012            value "2" for xtab, meaning don't trust this too much.
1013         * support/include/exportfs.h(struct mexport): changed m_exported
1014            from one bit to an int so that it can hold new value
1015         * utils/exportfs/exportfs.c(exportfs_ipdate): add an export to the
1016            kernel if it is uncertain whether the kernel knows (m_exported == -1)
1017         * utils/mountd/mountd.c(get_rootfh): similarly export to kernel if
1018            status is uncertain
1019
1020         * support/nfs/xio.c(xflock): added O_CREAT when getting
1021            a write lock so that missing files aren't fatal.
1022
1023         * etc/debian/nfs-common: new file from "potato"
1024         * etc/debian/nfs-kernel-server: new file from "potato" plus fixes.
1025          
1026 2000-08-09  H.J. Lu <hjl@lucon.org>
1027
1028         * etc/redhat/nfs.init: Run /usr/sbin/exportfs first during
1029         startup to ensure all existing clients work fine.
1030
1031         * support/export/xtab.c (xtab_mount_read): Pass 1 instead of 0
1032         to xtab_read () for reading _PATH_XTAB.
1033
1034 2000-08-02  H.J. Lu <hjl@lucon.org>
1035
1036         * utils/mountd/auth.c (auth_authenticate_internal): Try to
1037         avoid the reverse name lookup.
1038
1039 2000-07-04  H.J. Lu <hjl@lucon.org>
1040
1041         * utils/statd/log.c: Include <stdlib.h> for exit ().
1042
1043         * utils/statd/misc.c (xunlink): Add `{' and `}' to quiet the
1044         gcc warning.
1045
1046 2000-07-04  H.J. Lu <hjl@lucon.org>
1047
1048         * configure.in (VERSION): Set to "0.1.9.1".
1049         * configure: Regenerated.
1050         * nfs-utils.spec: Updated.
1051
1052         * README: Updated.
1053
1054 2000-07-04  Neil Brown  <neilb@cse.unsw.edu.au>
1055
1056         * support/export/hostname.c (hostent_dup): Handle the NULL
1057         h_aliases field.
1058
1059 2000-07-03  H.J. Lu <hjl@lucon.org>
1060
1061         * README: Update the util-linux requirement.
1062
1063 2000-07-03  H.J. Lu <hjl@lucon.org>
1064
1065         * configure.in (VERSION): Set to "0.1.9".
1066         * configure: Regenerated.
1067         * nfs-utils.spec: Updated.
1068
1069         * README: Updated.
1070
1071 2000-07-03  H.J. Lu <hjl@lucon.org>
1072
1073         * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1074         stop to ensure all clients can still access the server
1075         before it is shutdown.
1076
1077 2000-06-30  Jeff Uphoff <juphoff@transmeta.com>
1078
1079         * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
1080         calls with format string.
1081         
1082 2000-06-28  Chip Salzenberg  <chip@valinux.com>
1083
1084         * utils/statd/log.c (log): Call syslog with format string.
1085
1086 2000-06-27  H.J. Lu <hjl@lucon.org>
1087
1088         * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
1089         instead of OPEN_MAX.
1090
1091 2000-06-27  H.J. Lu <hjl@lucon.org>
1092
1093         * README: Updated.
1094
1095 2000-06-27  H.J. Lu <hjl@lucon.org>
1096
1097         * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
1098         startup to ensure all existing clients are exported.
1099
1100         * configure.in (VERSION): Set to "0.1.8.2".
1101         * configure: Regenerated.
1102         * nfs-utils.spec: Updated.
1103
1104 2000-06-06  H.J. Lu <hjl@lucon.org>
1105
1106         * configure.in (VERSION): Set to "0.1.8.1".
1107         * configure: Regenerated.
1108         * nfs-utils.spec: Updated.
1109
1110 2000-06-06  H.J. Lu <hjl@lucon.org>
1111
1112         * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
1113         to "struct sockaddr_in *" for glibc 2.2.
1114         (mount_umnt_1_svc): Likewise.
1115         (mount_umntall_1_svc): Likewise.
1116         (mount_export_1_svc): Likewise.
1117         (mount_exportall_1_svc): Likewise.
1118         (mount_pathconf_2_svc): Likewise.
1119         (get_rootfh): Likewise.
1120
1121 2000-06-04  H.J. Lu <hjl@lucon.org>
1122
1123         * etc/redhat/nfs.init: Fix a typo in comment.
1124
1125 2000-05-31  H.J. Lu <hjl@lucon.org>
1126
1127         * configure.in (VERSION): Set to "0.1.8".
1128         * configure: Regenerated.
1129         * nfs-utils.spec: Updated.
1130
1131         * README: Updated.
1132
1133 2000-05-31  H.J. Lu <hjl@lucon.org>
1134
1135         * configure.in (VERSION): Set to "0.1.7.5".
1136         * configure: Regenerated.
1137         * nfs-utils.spec: Updated.
1138
1139         * support/include/nfslib.h (exportent): Add a new field,
1140         r_count, to count the number of mounts from a client.
1141         (getrmtabent): Take a new argument for position in file.
1142         (putrmtabent): Likewise.
1143         (fgetrmtabent): Likewise.
1144         (fputrmtabent): Likewise.
1145         * support/nfs/rmtab.c (getrmtabent): Handle the new argument
1146         for position in file.
1147         (fgetrmtabent): Likewise.
1148         (putrmtabent): Likewise.
1149         (fputrmtabent): Likewise.
1150
1151         * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
1152         field, r_count.
1153
1154         * support/export/rmtab.c (rmtab_read): Pass NULL as the new
1155         argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
1156         and fputrmtabent ().
1157         * utils/mountd/rmtab.c (mountlist_add): Likewise.
1158         (mountlist_del): Likewise.
1159         (mountlist_del_all): Likewise.
1160         (mountlist_list): Likewise.
1161
1162         * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
1163         for the existing entry and initialize "r_count" to 1.
1164         (mountlist_del): Decrement "r_count".
1165
1166 2000-05-18  H.J. Lu <hjl@lucon.org>
1167
1168         * configure.in (VERSION): Set to "0.1.7.4".
1169         * configure: Regenerated.
1170         * nfs-utils.spec: Updated.
1171
1172 2000-05-18  H.J. Lu <hjl@lucon.org>
1173
1174         * etc/redhat/nfs.init (restart): Just do stop and start.
1175
1176 2000-05-09  Jay Weber <jweber@valinux.com>
1177
1178         * utils/rquotad/hasquota.c: added support for ext3 recognition
1179         in rquotad.
1180         * utils/rquotad/mntent.h: Likewise.
1181
1182 2000-05-01  H.J. Lu <hjl@lucon.org>
1183
1184         * configure.in (VERSION): Set to "0.1.7.3".
1185         * configure: Regenerated.
1186         * nfs-utils.spec: Updated.
1187
1188 2000-05-01  H.J. Lu <hjl@lucon.org>
1189
1190         * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
1191         mounting poins in /etc/fstab.
1192
1193 2000-05-01  H.J. Lu <hjl@lucon.org>
1194
1195         * configure.in (VERSION): Set to "0.1.7.2".
1196         * configure: Regenerated.
1197         * nfs-utils.spec: Updated.
1198
1199 2000-05-01  H.J. Lu <hjl@lucon.org>
1200
1201         * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
1202         to check for the mounting point.
1203
1204 2000-04-29  Chip Salzenberg  <chip@valinux.com>
1205             Neil Brown  <neilb@cse.unsw.edu.au>
1206
1207         * Really re-use RPC ports.
1208           (Fixes earlier patch.  Sorry, Neil.)
1209
1210 2000-04-26  H.J. Lu <hjl@lucon.org>
1211
1212         * configure.in (VERSION): Set to "0.1.7.1".
1213         * configure: Regenerated.
1214         * nfs-utils.spec: Updated.
1215
1216 2000-04-26  H.J. Lu <hjl@lucon.org>
1217
1218         * etc/redhat/nfslock.init: Check if lockd exits before killing
1219         it.
1220
1221 2000-04-25  H.J. Lu <hjl@lucon.org>
1222
1223         * README: Require util-linux-2.10f-mount-rpc.patch for mount.
1224
1225 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
1226
1227         * support/nfs/exports.c (parsesquash): Correctly set the
1228         return pointer.
1229
1230 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
1231
1232         * support/include/nfs/nfs.h: Removed knowledge of internals of
1233              kernel filehandles (which can change) and defined nfs_fh_size
1234              which has variable size
1235         
1236         * support/nfs/getfh.c: defined getfh_size to use new syscall to
1237              get variable sized file handles, and change getfh{,old} to
1238              use nfs_fh_size        
1239         
1240         * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
1241              NFSv3 file handles
1242
1243         * tools/Makefile, tools/nlmtest/nlmtest.c
1244              nlmtest.c depended on internel format of file handles, so now
1245              doesn't work.
1246
1247         
1248 2000-03-12  Chip Salzenberg  <chip@valinux.com>
1249             Neil Brown  <neilb@cse.unsw.edu.au>
1250
1251         * support/nfs/rpcmisc.c (rpc_init): Share transports.
1252
1253 2000-03-13 H.J. Lu <hjl@lucon.org>
1254
1255         * etc/redhat/nfsd.init: Updated.
1256
1257         * etc/redhat/nfslock.init: Updated.
1258
1259         * nfs-utils.spec.in: Updated.
1260
1261         * configure.in (VERSION): Set to "0.1.7".
1262         * configure: Regenerated.
1263         * nfs-utils.spec: Updated.
1264
1265         * README: Updated.
1266
1267 Wed Mar  8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
1268
1269         * utils/exportfs/exportfs.c (dump): Included printing of
1270            nohide, no_subtree_check, and insecure_locks
1271
1272 2000-02-26  Chip Salzenberg  <chip@valinux.com>
1273
1274         * config.mk.in (INSTALLSUID): Strip ("-s").
1275         (INSTALLSCRIPT): Define.
1276         * utils/nhfsstone/Makefile: Use it.
1277
1278 2000-02-26  Chip Salzenberg  <chip@valinux.com>
1279
1280         * utils/lockd/lockd.man: Create.
1281         * utils/lockd/Makefile: Install it.
1282         * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
1283         * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
1284         * utils/nhfsstone/Makefile: Install the helper scripts and
1285           all four man pages.
1286         * utils/exportfs/exports.man: Fix typo.
1287
1288 2000-02-26  Chip Salzenberg  <chip@valinux.com>
1289
1290         * support/nfs/xio.c (xungetc): Decrement line number when
1291         character to unget is newline.  Make first parameter int, so
1292         it can distinguish EOF from \377.
1293         * support/include/xio.h (xungetc): Adjust prototype.
1294
1295 Fri Feb  4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
1296
1297         * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
1298         * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
1299         * utils/exportfs/exports.man: added documentation for no_auth_nlm.
1300
1301         This is for supporting a new option introduced in 2.3.42
1302
1303 Thu Feb  3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
1304
1305         * COPYING: Added. GPL.
1306
1307 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
1308
1309         * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
1310         to get the block size.
1311
1312 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
1313
1314         * nfs-utils.spec.in: Update ftp site.
1315
1316 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
1317
1318         * README: Update hostnames.
1319
1320 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
1321
1322         * configure.in (VERSION): Set to "0.1.6".
1323         * configure: Regenerated.
1324         * nfs-utils.spec: Updated.
1325
1326         * README: Updated.
1327
1328 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
1329
1330         * utils/mountd/auth.c (auth_authenticate_internal): Call
1331         xstrdup for hostname before passing it to gethostbyname.
1332
1333         * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
1334         of strdup.
1335
1336 Sun Dec 19 09:35:01 1999  H.J. Lu <hjl@lucon.org>
1337
1338         * README: Update the mailing list address.
1339
1340 Sun Dec 19 09:22:28 1999  H.J. Lu <hjl@lucon.org>
1341
1342         * configure.in (VERSION): Set to "0.1.5".
1343         * configure: Regenerated.
1344         * nfs-utils.spec: Updated.
1345
1346         * README: Updated.
1347
1348 Mon Dec 13 13:40:20 1999  H.J. Lu <hjl@lucon.org>
1349
1350         * utils/rquotad/hasquota.c (hasquota): Malloc one more char
1351         for '/'.
1352
1353 Mon Dec  6 09:42:45 1999  H.J. Lu <hjl@lucon.org>
1354
1355         * configure.in (VERSION): Set to "0.1.4".
1356         * configure: Regenerated.
1357         * nfs-utils.spec: Updated.
1358
1359         * README: Updated.
1360
1361 Mon Dec  6 09:28:07 1999  H.J. Lu <hjl@lucon.org>
1362
1363         * nfs-utils.spec.in: New file.
1364
1365         * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
1366
1367         * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
1368
1369 1999-12-04  Chip Salzenberg  <chip@valinux.com>
1370
1371         * config.mk.in: Use $(CC) as set by configure.
1372
1373 1999-12-04  Chip Salzenberg  <chip@valinux.com>
1374
1375         * rules.mk: Call $(MAKE) with $(MFLAGS).
1376
1377 Mon Nov 29 11:17:35 1999  H.J. Lu <hjl@lucon.org>
1378
1379         * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
1380         IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
1381
1382 Mon Nov 29 11:17:35 1999  H.J. Lu <hjl@lucon.org>
1383
1384         * nfs-utils.spec (Version): Set to 0.1.3.
1385
1386         * configure.in (VERSION): Set to "nfs-utils 0.1.3".
1387         * configure: Regenerated.
1388
1389         * README: Updated.
1390
1391 Mon Nov 29 11:15:47 1999  H.J. Lu <hjl@lucon.org>
1392
1393         * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
1394         (_PATH_DEV_DSK): Likewise.
1395         (getquotainfo): Match the mounting point from /etc/mtab
1396         instead of calling nfsmount_to_devname ().
1397
1398 1999-11-24  Chip Salzenberg  <chip@valinux.com>
1399
1400         * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
1401         to the new port 24 as well as the historical port 100021.
1402
1403 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
1404
1405         * etc/redhat/nfsd.init (stop): moved exportfs -ua after
1406         stopping nfsd to stop spurious ESTALE on server shutdown.
1407         
1408 Tue Nov 23 10:13:39 1999  Neil Brown <neilb@cse.unsw.edu.au>
1409
1410         * support/nfs/exports.c (parseopts): make copy of opt string
1411         before 'nul'ing out commas so that
1412
1413         # exportfs -o option1,option2 hosta:/fs hostb:/fs
1414
1415         applies both options to both exports.
1416
1417 Thu Oct 28 12:55:42 1999  H.J. Lu <hjl@lucon.org>
1418
1419         * README: Fix a few typos.
1420
1421         * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
1422         of long.
1423         * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
1424         * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
1425         * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1426         (unsigned_dec): Likewise.
1427         * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1428         * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1429
1430         * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
1431         instead of LONG.
1432         * tools/rpcgen/rpc_parse.c (get_type): Likewise.
1433         (unsigned_dec): Likewise.
1434         * tools/rpcgen/rpc_scan.c (symbols): Likewise.
1435         * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
1436         * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
1437
1438 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
1439
1440         * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
1441         * support/nfs/exports.c: added {no_,}subtree_check and changed
1442           crossmnt to nohide
1443         * utils/exportfs/exports.man: added no_subtree_check and nohide
1444           and removed irrelevant stuff from unfsd.
1445         * support/export/rmtab.c: rmtab_read didn't quite do the right
1446           thing if a pathname from rmtab was a subdirectory of an export-point
1447
1448 Tue Oct 26 17:22:40 1999  H.J. Lu <hjl@lucon.org>
1449
1450         * README: Updated ftp site.
1451
1452 Mon Oct 25 18:12:45 1999  H.J. Lu <hjl@lucon.org>
1453
1454         * nfs-utils.spec (Version): Set to 0.1.2.
1455
1456         * configure.in (VERSION): Set to "nfs-utils 0.1.2".
1457         * configure: Regenerated.
1458
1459         * README: Updated.
1460
1461 Mon Oct 25 18:11:21 1999  H.J. Lu <hjl@lucon.org>
1462
1463         * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
1464         (auth_authenticate_internal): Check for NULL return on forward
1465         DNS lookup.
1466         (auth_authenticate): Handle "no_forward_dns".
1467
1468 Thu Oct 21 16:22:06 1999  H.J. Lu <hjl@lucon.org>
1469
1470         * Version 0.1.1 released.
1471
1472         * nfs-utils.spec (Version): Set to 0.1.1.
1473
1474         * configure.in (VERSION): Set to "nfs-utils 0.1.1".
1475         * configure: Regenerated.
1476
1477         * README: Updated.
1478
1479 Mon Oct 18 17:43:29 1999  H.J. Lu <hjl@lucon.org>
1480
1481         * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
1482         to knfsd-clients.
1483         (Provides): Likewise.
1484
1485 Mon Oct 18 14:56:22 1999  H.J. Lu <hjl@lucon.org>
1486
1487         * Initial version 0.1 released.
1488
1489         * configure.in (VERSION): Set to "nfs-utils 0.1".
1490         * configure: Regenerated.
1491
1492 Mon Oct 18 14:54:57 1999  H.J. Lu <hjl@lucon.org>
1493
1494         * utils/mountd/mountd.c (get_exportlist): Cleanup.
1495
1496         * utils/exportfs/exportfs.c (unexport_all): Unexport from
1497         kernel only if the entry is exported to kernel.
1498         (unexportfs): Likewise.
1499
1500 Wed Sep 08 16:49:32 1999  Neil Brown <neilb@cse.unsw.edu.au>
1501
1502 1/ utils/mountd/rmtab.c::mountlist_list
1503
1504      This routine stats the rmtab file to see if it has changed.  It
1505      if has, it cleans up it's old copy of the data. But it still
1506      always re-read the file, thus returning multiple copies of the
1507      data on consecutive calls without intervening changes.
1508      "Showmount -a" didn't show this as it appears to sort/unique the
1509      data, but 'strace showmount -a' showed that the size of the
1510      datagram that it received grew.
1511
1512      I moved the getrmtabent loop inside the mtime test.
1513
1514 2/ utils/exportfs/exportfs.c
1515    
1516      Many routines used the m_path field of m_export instead of
1517      e_path.
1518      According to the comment in nfslib.h, m_path should only
1519      be used when processing a mount request (i.e. in mountd)
1520      where the mountpoint may be a subdirectory of the export point.
1521
1522      I changed all occurances of m_path to e_path
1523
1524
1525 3/ utils/exportfs/exportfs.c:main
1526
1527       extra arguments are not meaningful with -a or -r, but
1528       exportfs accepted them and then ignored the -a/-r, expect that
1529       -r would still unexport everything first.
1530
1531       I generate an error if there are extra args and f_all
1532
1533 4/ utils/exportfs/exportfs.c:main
1534      extract dump out as a special case.
1535
1536 5/ utils/exportfs/exportfs.c
1537      made f_reexport a local variable.
1538
1539
1540 6/ utils/exportfs/exportfs.c:main,exportall
1541
1542     support/export/rmtab.c
1543        only  mayexport on newly created entries, don't set xtabent at all
1544
1545 7/ support/include/nfslib.h
1546
1547       add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
1548
1549 8/ support/export/xtab.c
1550
1551       xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
1552       else from xtab
1553
1554
1555 9/ support/export/xtab.c
1556
1557       xtab_mount_read now sets m_exported, and NOT
1558         xtabent and mayexport
1559
1560       removed the append arguement from xtab_write as it was
1561         never used.
1562
1563       added is_export flag to xtab_write similar to xtab_read
1564         if is_export, only write entries with m_xtabent or m_addxtab
1565         if !is_export, only write entries with m_exported
1566      
1567 10/ support/export/export.c::export_allowed_internal
1568
1569       added test for exp->m_mayexport, as the export tree
1570         may have entries that are no longer allowed to be exported,
1571         and so shouldn't caused deduced exported by rmtab_read
1572
1573 11/ utils/exportfs/exportfs.c::main
1574         error checking of flags.
1575
1576 12/ utils/exportfs/exportfs.c
1577
1578         total rewrite of export and unexport logic.
1579         We now:
1580         -  build an exportslist of valid exports, based on
1581            current etab file  and arguments,
1582         -  read rmtab to instantiate relevant wild card entries
1583         -  read etab to find out what is currently exported
1584         -  synchronise intention with reality
1585         -  write out etab and xtab
1586
1587 13/  various
1588         discard the m_addxtab flag
1589         add m_changed flag so we know what to report in exportfs
1590
1591 14/ utils/mountd/auth.c:auth_authenticate
1592
1593         the value returned by gethostbyaddr was trusted.
1594
1595         It now follows this with a call to gethostbyname
1596         and checks that the address is in the list.
1597
1598 15/ support/export/nfsctl.c::cltsetup,expsetup
1599
1600         force client names to lowercase as kernel is
1601         sensitive to case
1602
1603 16/ quietened a few compiler warnings
1604
1605 17/ support/export/client:client_lookup
1606
1607      look for pre-existing client with same name before creating
1608         a new one.
1609
1610 18/ support/include/exportfs.h
1611
1612      The ordering of the MCL_* enum was:
1613         ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
1614
1615      I moved ANONYMOUS to the end.
1616
1617      The ordering is significant when an export entry is being searched for to 
1618         match a given address.  There are two problems with ANONYMOUS being first.
1619
1620         1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
1621            then the ro case will always be found first and the privileged hosts won't get
1622            their privilege
1623         2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
1624            export entry for the specific host, and writes it to xtab.
1625            When another request comes from the same host, the ANONYMOUS entry is found again, 
1626            before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
1627            again.  If causes bloat in xtab.
1628
1629       Putting ANONYMOUS at the end reflects it's nature as a catch-all
1630
1631 19/ utils/exportfs/exportfs.man
1632         many updates to the man page to reflect changes to the code
1633
1634 -----------------------
1635
1636
1637
1638 TODO:
1639
1640 - allow exportfs to modify rmtab file
1641 - make sure kernel never gets two clients with same IP address
1642     - possible kernel should reject
1643     - needs to be some way to lookup client in kernel by IP address
1644 - maybe get kernel to do case-insensitive comparisons on client names
1645 - remove unused clients from kernel
1646
1647 - change etab to xtab and xtab to xtab.active
1648
1649 - timestamp and/or statd-stamp in rmtab for removing old entries.
1650
1651 Mon Oct 18 11:48:07 1999  H.J. Lu <hjl@lucon.org>
1652
1653         * linux-nfs: New directory.
1654         * linux-nfs/ChangeLog: Moved from ..
1655         * linux-nfs/INSTALL: Likewise.
1656         * linux-nfs/KNOWNBUGS: Likewise.
1657         * linux-nfs/NEW: Likewise.
1658         * linux-nfs/README: Likewise.
1659         * linux-nfs/THANKS: Likewise.
1660         * linux-nfs/TODO: Likewise.
1661
1662         * Starting from knfsd 1.4.7.