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