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