]> git.decadent.org.uk Git - nfs-utils.git/blob - ChangeLog
* tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
[nfs-utils.git] / ChangeLog
1 2000-07-03  H.J. Lu <hjl@lucon.org>
2
3         * README: Update the util-linux requirement.
4
5 2000-07-03  H.J. Lu <hjl@lucon.org>
6
7         * configure.in (VERSION): Set to "0.1.9".
8         * configure: Regenerated.
9         * nfs-utils.spec: Updated.
10
11         * README: Updated.
12
13 2000-07-03  H.J. Lu <hjl@lucon.org>
14
15         * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
16         stop to ensure all clients can still access the server
17         before it is shutdown.
18
19 2000-06-30  Jeff Uphoff <juphoff@transmeta.com>
20
21         * tools/rpcgen/rpc_svcout.c (write_msg_out): Generate syslog()
22         calls with format string.
23         
24 2000-06-28  Chip Salzenberg  <chip@valinux.com>
25
26         * utils/statd/log.c (log): Call syslog with format string.
27
28 2000-06-27  H.J. Lu <hjl@lucon.org>
29
30         * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX)
31         instead of OPEN_MAX.
32
33 2000-06-27  H.J. Lu <hjl@lucon.org>
34
35         * README: Updated.
36
37 2000-06-27  H.J. Lu <hjl@lucon.org>
38
39         * etc/redhat/nfs.init: Run /usr/sbin/exportfs last during
40         startup to ensure all existing clients are exported.
41
42         * configure.in (VERSION): Set to "0.1.8.2".
43         * configure: Regenerated.
44         * nfs-utils.spec: Updated.
45
46 2000-06-06  H.J. Lu <hjl@lucon.org>
47
48         * configure.in (VERSION): Set to "0.1.8.1".
49         * configure: Regenerated.
50         * nfs-utils.spec: Updated.
51
52 2000-06-06  H.J. Lu <hjl@lucon.org>
53
54         * utils/mountd/mountd.c (mount_dump_1_svc): Cast svc_getcaller
55         to "struct sockaddr_in *" for glibc 2.2.
56         (mount_umnt_1_svc): Likewise.
57         (mount_umntall_1_svc): Likewise.
58         (mount_export_1_svc): Likewise.
59         (mount_exportall_1_svc): Likewise.
60         (mount_pathconf_2_svc): Likewise.
61         (get_rootfh): Likewise.
62
63 2000-06-04  H.J. Lu <hjl@lucon.org>
64
65         * etc/redhat/nfs.init: Fix a typo in comment.
66
67 2000-05-31  H.J. Lu <hjl@lucon.org>
68
69         * configure.in (VERSION): Set to "0.1.8".
70         * configure: Regenerated.
71         * nfs-utils.spec: Updated.
72
73         * README: Updated.
74
75 2000-05-31  H.J. Lu <hjl@lucon.org>
76
77         * configure.in (VERSION): Set to "0.1.7.5".
78         * configure: Regenerated.
79         * nfs-utils.spec: Updated.
80
81         * support/include/nfslib.h (exportent): Add a new field,
82         r_count, to count the number of mounts from a client.
83         (getrmtabent): Take a new argument for position in file.
84         (putrmtabent): Likewise.
85         (fgetrmtabent): Likewise.
86         (fputrmtabent): Likewise.
87         * support/nfs/rmtab.c (getrmtabent): Handle the new argument
88         for position in file.
89         (fgetrmtabent): Likewise.
90         (putrmtabent): Likewise.
91         (fputrmtabent): Likewise.
92
93         * support/nfs/rmtab.c (fgetrmtabent): Get value for the new
94         field, r_count.
95
96         * support/export/rmtab.c (rmtab_read): Pass NULL as the new
97         argument to getrmtabent (), fgetrmtabent (), putrmtabent ()
98         and fputrmtabent ().
99         * utils/mountd/rmtab.c (mountlist_add): Likewise.
100         (mountlist_del): Likewise.
101         (mountlist_del_all): Likewise.
102         (mountlist_list): Likewise.
103
104         * utils/mountd/rmtab.c (mountlist_add): Increment "r_count"
105         for the existing entry and initialize "r_count" to 1.
106         (mountlist_del): Decrement "r_count".
107
108 2000-05-18  H.J. Lu <hjl@lucon.org>
109
110         * configure.in (VERSION): Set to "0.1.7.4".
111         * configure: Regenerated.
112         * nfs-utils.spec: Updated.
113
114 2000-05-18  H.J. Lu <hjl@lucon.org>
115
116         * etc/redhat/nfs.init (restart): Just do stop and start.
117
118 2000-05-09  Jay Weber <jweber@valinux.com>
119
120         * utils/rquotad/hasquota.c: added support for ext3 recognition
121         in rquotad.
122         * utils/rquotad/mntent.h: Likewise.
123
124 2000-05-01  H.J. Lu <hjl@lucon.org>
125
126         * configure.in (VERSION): Set to "0.1.7.3".
127         * configure: Regenerated.
128         * nfs-utils.spec: Updated.
129
130 2000-05-01  H.J. Lu <hjl@lucon.org>
131
132         * utils/rquotad/rquota_server.c (getquotainfo): Skip bad
133         mounting poins in /etc/fstab.
134
135 2000-05-01  H.J. Lu <hjl@lucon.org>
136
137         * configure.in (VERSION): Set to "0.1.7.2".
138         * configure: Regenerated.
139         * nfs-utils.spec: Updated.
140
141 2000-05-01  H.J. Lu <hjl@lucon.org>
142
143         * utils/rquotad/rquota_server.c (getquotainfo): Call stat ()
144         to check for the mounting point.
145
146 2000-04-29  Chip Salzenberg  <chip@valinux.com>
147             Neil Brown  <neilb@cse.unsw.edu.au>
148
149         * Really re-use RPC ports.
150           (Fixes earlier patch.  Sorry, Neil.)
151
152 2000-04-26  H.J. Lu <hjl@lucon.org>
153
154         * configure.in (VERSION): Set to "0.1.7.1".
155         * configure: Regenerated.
156         * nfs-utils.spec: Updated.
157
158 2000-04-26  H.J. Lu <hjl@lucon.org>
159
160         * etc/redhat/nfslock.init: Check if lockd exits before killing
161         it.
162
163 2000-04-25  H.J. Lu <hjl@lucon.org>
164
165         * README: Require util-linux-2.10f-mount-rpc.patch for mount.
166
167 2000-03-21 Michael Weiser <michael@weiser.saale-net.de>
168
169         * support/nfs/exports.c (parsesquash): Correctly set the
170         return pointer.
171
172 Tue Mar 21 11:38:48 EST 2000 NeilBrown <neilb@cse.unsw.edu.au>
173
174         * support/include/nfs/nfs.h: Removed knowledge of internals of
175              kernel filehandles (which can change) and defined nfs_fh_size
176              which has variable size
177         
178         * support/nfs/getfh.c: defined getfh_size to use new syscall to
179              get variable sized file handles, and change getfh{,old} to
180              use nfs_fh_size        
181         
182         * utils/mountd/mountd.c: use nfd_fh_size and call getfh_size for
183              NFSv3 file handles
184
185         * tools/Makefile, tools/nlmtest/nlmtest.c
186              nlmtest.c depended on internel format of file handles, so now
187              doesn't work.
188
189         
190 2000-03-12  Chip Salzenberg  <chip@valinux.com>
191             Neil Brown  <neilb@cse.unsw.edu.au>
192
193         * support/nfs/rpcmisc.c (rpc_init): Share transports.
194
195 2000-03-13 H.J. Lu <hjl@lucon.org>
196
197         * etc/redhat/nfsd.init: Updated.
198
199         * etc/redhat/nfslock.init: Updated.
200
201         * nfs-utils.spec.in: Updated.
202
203         * configure.in (VERSION): Set to "0.1.7".
204         * configure: Regenerated.
205         * nfs-utils.spec: Updated.
206
207         * README: Updated.
208
209 Wed Mar  8 09:42:43 2000 Neil Brown <neilb@cse.unsw.edu.au>
210
211         * utils/exportfs/exportfs.c (dump): Included printing of
212            nohide, no_subtree_check, and insecure_locks
213
214 2000-02-26  Chip Salzenberg  <chip@valinux.com>
215
216         * config.mk.in (INSTALLSUID): Strip ("-s").
217         (INSTALLSCRIPT): Define.
218         * utils/nhfsstone/Makefile: Use it.
219
220 2000-02-26  Chip Salzenberg  <chip@valinux.com>
221
222         * utils/lockd/lockd.man: Create.
223         * utils/lockd/Makefile: Install it.
224         * utils/nhfsstone/nhfs{run,nums,graph}.man: Create.
225         * utils/nhfsstone/nhfsstone.man: Change suffix from ".1".
226         * utils/nhfsstone/Makefile: Install the helper scripts and
227           all four man pages.
228         * utils/exportfs/exports.man: Fix typo.
229
230 2000-02-26  Chip Salzenberg  <chip@valinux.com>
231
232         * support/nfs/xio.c (xungetc): Decrement line number when
233         character to unget is newline.  Make first parameter int, so
234         it can distinguish EOF from \377.
235         * support/include/xio.h (xungetc): Adjust prototype.
236
237 Fri Feb  4 23:42:23 2000 Neil Brown <neilb@cse.unsw.edu.au>
238
239         * support/include/nfs/export.h: added NFSEXP_NOAUTHNLM
240         * support/nfs/exports.c: added handling for NFSEXP_NOAUTHNLM
241         * utils/exportfs/exports.man: added documentation for no_auth_nlm.
242
243         This is for supporting a new option introduced in 2.3.42
244
245 Thu Feb  3 14:55:48 2000 H.J. Lu <hjl@lucon.org>
246
247         * COPYING: Added. GPL.
248
249 Thu Feb 03 14:40:40 2000 Cristian Gafton <gafton@redhat.com>
250
251         * utils/rquotad/rquota_server.c (getquotainfo): Call statfs ()
252         to get the block size.
253
254 Tue Jan 25 11:04:17 2000 H.J. Lu <hjl@lucon.org>
255
256         * nfs-utils.spec.in: Update ftp site.
257
258 Mon Jan 17 11:48:18 2000 H.J. Lu <hjl@lucon.org>
259
260         * README: Update hostnames.
261
262 Tue Jan 11 10:06:22 2000 H.J. Lu <hjl@lucon.org>
263
264         * configure.in (VERSION): Set to "0.1.6".
265         * configure: Regenerated.
266         * nfs-utils.spec: Updated.
267
268         * README: Updated.
269
270 Mon Jan 10 14:26:33 2000 H.J. Lu <hjl@lucon.org>
271
272         * utils/mountd/auth.c (auth_authenticate_internal): Call
273         xstrdup for hostname before passing it to gethostbyname.
274
275         * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead
276         of strdup.
277
278 Sun Dec 19 09:35:01 1999  H.J. Lu <hjl@lucon.org>
279
280         * README: Update the mailing list address.
281
282 Sun Dec 19 09:22:28 1999  H.J. Lu <hjl@lucon.org>
283
284         * configure.in (VERSION): Set to "0.1.5".
285         * configure: Regenerated.
286         * nfs-utils.spec: Updated.
287
288         * README: Updated.
289
290 Mon Dec 13 13:40:20 1999  H.J. Lu <hjl@lucon.org>
291
292         * utils/rquotad/hasquota.c (hasquota): Malloc one more char
293         for '/'.
294
295 Mon Dec  6 09:42:45 1999  H.J. Lu <hjl@lucon.org>
296
297         * configure.in (VERSION): Set to "0.1.4".
298         * configure: Regenerated.
299         * nfs-utils.spec: Updated.
300
301         * README: Updated.
302
303 Mon Dec  6 09:28:07 1999  H.J. Lu <hjl@lucon.org>
304
305         * nfs-utils.spec.in: New file.
306
307         * config.mk.in (VERSION): Changed to "nfs-utils @VERSION@".
308
309         * configure.in (nfs-utils.spec): Added to AC_OUTPUT.
310
311 1999-12-04  Chip Salzenberg  <chip@valinux.com>
312
313         * config.mk.in: Use $(CC) as set by configure.
314
315 1999-12-04  Chip Salzenberg  <chip@valinux.com>
316
317         * rules.mk: Call $(MAKE) with $(MFLAGS).
318
319 Mon Nov 29 11:17:35 1999  H.J. Lu <hjl@lucon.org>
320
321         * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32,
322         IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32.
323
324 Mon Nov 29 11:17:35 1999  H.J. Lu <hjl@lucon.org>
325
326         * nfs-utils.spec (Version): Set to 0.1.3.
327
328         * configure.in (VERSION): Set to "nfs-utils 0.1.3".
329         * configure: Regenerated.
330
331         * README: Updated.
332
333 Mon Nov 29 11:15:47 1999  H.J. Lu <hjl@lucon.org>
334
335         * utils/rquotad/rquota_server.c (nfsmount_to_devname): Removed.
336         (_PATH_DEV_DSK): Likewise.
337         (getquotainfo): Match the mounting point from /etc/mtab
338         instead of calling nfsmount_to_devname ().
339
340 1999-11-24  Chip Salzenberg  <chip@valinux.com>
341
342         * utils/statd/monitor.c (sm_mon_1_svc): Accept lockd callbacks
343         to the new port 24 as well as the historical port 100021.
344
345 Tue Nov 23 10:21:34 1999 Neil Brown <neilb@cse.unsw.edu.au>
346
347         * etc/redhat/nfsd.init (stop): moved exportfs -ua after
348         stopping nfsd to stop spurious ESTALE on server shutdown.
349         
350 Tue Nov 23 10:13:39 1999  Neil Brown <neilb@cse.unsw.edu.au>
351
352         * support/nfs/exports.c (parseopts): make copy of opt string
353         before 'nul'ing out commas so that
354
355         # exportfs -o option1,option2 hosta:/fs hostb:/fs
356
357         applies both options to both exports.
358
359 Thu Oct 28 12:55:42 1999  H.J. Lu <hjl@lucon.org>
360
361         * README: Fix a few typos.
362
363         * tools/rpcgen/rpc_cout.c (print_header): Use int32_t instead
364         of long.
365         * tools/rpcgen/rpc_hout.c (pdefine): Likewise.
366         * tools/rpcgen/rpc_main.c (c_initialize): Likewise.
367         * tools/rpcgen/rpc_parse.c (get_type): Likewise.
368         (unsigned_dec): Likewise.
369         * tools/rpcgen/rpc_scan.c (symbols): Likewise.
370         * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
371
372         * tools/rpcgen/rpc_cout.c (emit_single_in_line): Use INT32
373         instead of LONG.
374         * tools/rpcgen/rpc_parse.c (get_type): Likewise.
375         (unsigned_dec): Likewise.
376         * tools/rpcgen/rpc_scan.c (symbols): Likewise.
377         * tools/rpcgen/rpc_scan.h (tok_kind): Likewise.
378         * tools/rpcgen/rpc_util.c (tokstrings): Likewise.
379
380 Thu Oct 28 11:27:51 1999 Neil Brown <neilb@cse.unsw.edu.au>
381
382         * support/include/nfs/export.h addedd NFSEXP_NOSUBTREECHECK
383         * support/nfs/exports.c: added {no_,}subtree_check and changed
384           crossmnt to nohide
385         * utils/exportfs/exports.man: added no_subtree_check and nohide
386           and removed irrelevant stuff from unfsd.
387         * support/export/rmtab.c: rmtab_read didn't quite do the right
388           thing if a pathname from rmtab was a subdirectory of an export-point
389
390 Tue Oct 26 17:22:40 1999  H.J. Lu <hjl@lucon.org>
391
392         * README: Updated ftp site.
393
394 Mon Oct 25 18:12:45 1999  H.J. Lu <hjl@lucon.org>
395
396         * nfs-utils.spec (Version): Set to 0.1.2.
397
398         * configure.in (VERSION): Set to "nfs-utils 0.1.2".
399         * configure: Regenerated.
400
401         * README: Updated.
402
403 Mon Oct 25 18:11:21 1999  H.J. Lu <hjl@lucon.org>
404
405         * utils/mountd/auth.c (auth_error): Add "no_forward_dns".
406         (auth_authenticate_internal): Check for NULL return on forward
407         DNS lookup.
408         (auth_authenticate): Handle "no_forward_dns".
409
410 Thu Oct 21 16:22:06 1999  H.J. Lu <hjl@lucon.org>
411
412         * Version 0.1.1 released.
413
414         * nfs-utils.spec (Version): Set to 0.1.1.
415
416         * configure.in (VERSION): Set to "nfs-utils 0.1.1".
417         * configure: Regenerated.
418
419         * README: Updated.
420
421 Mon Oct 18 17:43:29 1999  H.J. Lu <hjl@lucon.org>
422
423         * nfs-utils.spec (Obsoletes): Fixed a typo, change knfsd-client
424         to knfsd-clients.
425         (Provides): Likewise.
426
427 Mon Oct 18 14:56:22 1999  H.J. Lu <hjl@lucon.org>
428
429         * Initial version 0.1 released.
430
431         * configure.in (VERSION): Set to "nfs-utils 0.1".
432         * configure: Regenerated.
433
434 Mon Oct 18 14:54:57 1999  H.J. Lu <hjl@lucon.org>
435
436         * utils/mountd/mountd.c (get_exportlist): Cleanup.
437
438         * utils/exportfs/exportfs.c (unexport_all): Unexport from
439         kernel only if the entry is exported to kernel.
440         (unexportfs): Likewise.
441
442 Wed Sep 08 16:49:32 1999  Neil Brown <neilb@cse.unsw.edu.au>
443
444 1/ utils/mountd/rmtab.c::mountlist_list
445
446      This routine stats the rmtab file to see if it has changed.  It
447      if has, it cleans up it's old copy of the data. But it still
448      always re-read the file, thus returning multiple copies of the
449      data on consecutive calls without intervening changes.
450      "Showmount -a" didn't show this as it appears to sort/unique the
451      data, but 'strace showmount -a' showed that the size of the
452      datagram that it received grew.
453
454      I moved the getrmtabent loop inside the mtime test.
455
456 2/ utils/exportfs/exportfs.c
457    
458      Many routines used the m_path field of m_export instead of
459      e_path.
460      According to the comment in nfslib.h, m_path should only
461      be used when processing a mount request (i.e. in mountd)
462      where the mountpoint may be a subdirectory of the export point.
463
464      I changed all occurances of m_path to e_path
465
466
467 3/ utils/exportfs/exportfs.c:main
468
469       extra arguments are not meaningful with -a or -r, but
470       exportfs accepted them and then ignored the -a/-r, expect that
471       -r would still unexport everything first.
472
473       I generate an error if there are extra args and f_all
474
475 4/ utils/exportfs/exportfs.c:main
476      extract dump out as a special case.
477
478 5/ utils/exportfs/exportfs.c
479      made f_reexport a local variable.
480
481
482 6/ utils/exportfs/exportfs.c:main,exportall
483
484     support/export/rmtab.c
485        only  mayexport on newly created entries, don't set xtabent at all
486
487 7/ support/include/nfslib.h
488
489       add #define _PATH_PROC_EXPORTS to be /proc/fs/nds/exports
490
491 8/ support/export/xtab.c
492
493       xtab_mount_read loads data from _PATH_PROC_EXPORTS if it exists,
494       else from xtab
495
496
497 9/ support/export/xtab.c
498
499       xtab_mount_read now sets m_exported, and NOT
500         xtabent and mayexport
501
502       removed the append arguement from xtab_write as it was
503         never used.
504
505       added is_export flag to xtab_write similar to xtab_read
506         if is_export, only write entries with m_xtabent or m_addxtab
507         if !is_export, only write entries with m_exported
508      
509 10/ support/export/export.c::export_allowed_internal
510
511       added test for exp->m_mayexport, as the export tree
512         may have entries that are no longer allowed to be exported,
513         and so shouldn't caused deduced exported by rmtab_read
514
515 11/ utils/exportfs/exportfs.c::main
516         error checking of flags.
517
518 12/ utils/exportfs/exportfs.c
519
520         total rewrite of export and unexport logic.
521         We now:
522         -  build an exportslist of valid exports, based on
523            current etab file  and arguments,
524         -  read rmtab to instantiate relevant wild card entries
525         -  read etab to find out what is currently exported
526         -  synchronise intention with reality
527         -  write out etab and xtab
528
529 13/  various
530         discard the m_addxtab flag
531         add m_changed flag so we know what to report in exportfs
532
533 14/ utils/mountd/auth.c:auth_authenticate
534
535         the value returned by gethostbyaddr was trusted.
536
537         It now follows this with a call to gethostbyname
538         and checks that the address is in the list.
539
540 15/ support/export/nfsctl.c::cltsetup,expsetup
541
542         force client names to lowercase as kernel is
543         sensitive to case
544
545 16/ quietened a few compiler warnings
546
547 17/ support/export/client:client_lookup
548
549      look for pre-existing client with same name before creating
550         a new one.
551
552 18/ support/include/exportfs.h
553
554      The ordering of the MCL_* enum was:
555         ANONYMOUS, FQDN, SUBNETWORK, WILDCARD, NETGROUP
556
557      I moved ANONYMOUS to the end.
558
559      The ordering is significant when an export entry is being searched for to 
560         match a given address.  There are two problems with ANONYMOUS being first.
561
562         1/ if a directory is exported rw to a couple of hosts and ro to everyone else,
563            then the ro case will always be found first and the privileged hosts won't get
564            their privilege
565         2/ When mountd gets a request to mount an ANONYMOUSly exported tree, it creates a FQDN
566            export entry for the specific host, and writes it to xtab.
567            When another request comes from the same host, the ANONYMOUS entry is found again, 
568            before the new FQDN entry, so it creates another FQDN entry and writes it to xtab
569            again.  If causes bloat in xtab.
570
571       Putting ANONYMOUS at the end reflects it's nature as a catch-all
572
573 19/ utils/exportfs/exportfs.man
574         many updates to the man page to reflect changes to the code
575
576 -----------------------
577
578
579
580 TODO:
581
582 - allow exportfs to modify rmtab file
583 - make sure kernel never gets two clients with same IP address
584     - possible kernel should reject
585     - needs to be some way to lookup client in kernel by IP address
586 - maybe get kernel to do case-insensitive comparisons on client names
587 - remove unused clients from kernel
588
589 - change etab to xtab and xtab to xtab.active
590
591 - timestamp and/or statd-stamp in rmtab for removing old entries.
592
593 Mon Oct 18 11:48:07 1999  H.J. Lu <hjl@lucon.org>
594
595         * linux-nfs: New directory.
596         * linux-nfs/ChangeLog: Moved from ..
597         * linux-nfs/INSTALL: Likewise.
598         * linux-nfs/KNOWNBUGS: Likewise.
599         * linux-nfs/NEW: Likewise.
600         * linux-nfs/README: Likewise.
601         * linux-nfs/THANKS: Likewise.
602         * linux-nfs/TODO: Likewise.
603
604         * Starting from knfsd 1.4.7.