Date: Sat, 2 Jan 1999 16:39:21 +0100 (CET) From: Robert Eckardt <Robert.Eckardt@rhein-main.netsurf.de> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: kern/9277: NFS-Bug in 3.0 ? Message-ID: <199901021539.QAA07822@eckardt.org>
next in thread | raw e-mail | index | archive | help
>Number: 9277 >Category: kern >Synopsis: NFS-Bug in 3.0 ? >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jan 2 07:40:00 PST 1999 >Last-Modified: >Originator: Robert Eckardt >Organization: >Release: FreeBSD 3.0-RELEASE i386 >Environment: Client 'axion': P5-180 on Iwill MB, 64MB RAM, SMC8216C, Adaptec aic7850 on board, ELSA WINNER 1000/T2D, Hauppauge WinCast/TV, SB16pnp, IDE-HDDs: wd0: QUANTUM FIREBALL1280A, wd2: IBM-DAQA-33240 SCSI: cd0: PLEXTOR PX-12CS, cd1: NEC 501, da0: IBM DCAS-32160 FreeBSD axion 3.0-RELEASE FreeBSD 3.0-RELEASE #1: Mon Dec 21 00:33:54 CET 1998 root@axion:/usr/src/sys/compile/AXION3 i386 Server 'ghost': P5-133 on ASUS MB, 32MB RAM, WD8013EPC, NCR 53c810, Matrox Mystique, SB16pnp w/ IDE Contr. (disabl.), Teles S0/16 IDE-HDD: wd0: WDC AC22100H SCSI: sd0: HP C3725S, sd1: IBM DCAS-34330, st0: WANGTEK 5525ES FreeBSD ghost 2.2.6-RELEASE FreeBSD 2.2.6-RELEASE #1: Sun Dec 20 12:58:54 CET 1998 root@ghost:/usr/src/sys/compile/GHOST226IDSB4 i386 Exported FS on ghost is /big on ccd0c (sd0s1e sd1s1e) is mounted on axion via 'ghost:/big/home /home nfs rw,bg,-s,-i' >Description: The error was observed first with a file with 13056 bytes (= 3*4 KB + 768 B), where some hundred bytes were appended with a perl script (/usr/bin/perl). After appending, the contents looks on the client like 12KB correct data, followed by 768 bytes garbage, followed by the correct data that were appended. At the same time however, the file is ok on the server. If the file is read on the client-side (cat) prior to appending the file will stay intact after appending. >How-To-Repeat: On the server: # The file needs to be new rm -f Testfile # write 3*4 KB + 768 B repeat 408 echo 0123456789ABCDEF0123456789ABCDE >> Testfile On the client: Execution of `nfstest' yields: ...: 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 0123456789ABCDEF 0002ff0: 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 0A 0123456789ABCDE. 0003000: 00 1C 0A 08 00 1C 0A 08 00 18 0A 08 00 18 0A 08 ................ 0003010: 1C C0 0A 08 00 00 00 00 00 00 00 00 62 31 05 00 ............b1.. 0003020: 03 00 00 00 00 04 00 00 00 00 00 00 A9 01 00 00 ................ 0003030: A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ............... 0003040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ * 0003300: 0A 44 61 74 65 09 74 6F 64 61 79 0A 0A 73 6F 6D .Date.today..som 0003310: 65 20 64 61 74 61 20 30 31 32 33 34 35 36 37 38 e data 012345678 0003320: 39 30 31 32 33 34 35 36 37 38 39 30 0A 73 6F 6D 901234567890.som ... Appending less than 256 bytes (approx.) works fine (replace the 8 in the loop below by 7). In any case the file is ok on the server. Instead of the perl script a simple repeat 9 echo 0123456789abcdef0123456789abcde >> Testfile or cat SomeLargerThan256BytesFile >> Testfile will do the job too. Test script `nfstest': #! /usr/bin/perl -w open( TEST, ">> Testfile" ) || die "Can't open Testfile"; printf TEST "\nDate\t%s\n\n", "today"; for( $i=0; $i<8; $i++ ) { printf TEST "some data 012345678901234567890\n"; } close( TEST ); >Fix: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901021539.QAA07822>