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