From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <927af6d00ef4347302df023910d929c6@gmx.de> To: 9fans@cse.psu.edu Subject: Re: [9fans] venti woes with brand new install Date: Sat, 8 Sep 2007 19:07:56 +0200 From: cinap_lenrek@gmx.de In-Reply-To: <3e90b031be3e4fc9eafb1eeadfb9f9e1@quanstro.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-rgasvhxawmsayyefwohwfkiame" Topicbox-Message-UUID: bbdaea58-ead2-11e9-9d60-3106f5b1d025 This is a multi-part message in MIME format. --upas-rgasvhxawmsayyefwohwfkiame Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit > 64 65 66 67 68 69 6a 6b > 6c 6d 6e 6f 70 71 72 73 > 74 75 76 6b 00 00 00 00 > 20 00 00 cd 22 80 01 b8 tailmagic corrupted? we got: defghijklmnopqrstuv | k\0\0\0\0 \0\0\cd\22\80\01\b8 we expect: 1234567890abcdefghijklmnopqrstuv | xyz OverflowCheck is 32 bytes, so xyz are not included in the buffer. i dont think that the zmagic got corrupted. cinap --upas-rgasvhxawmsayyefwohwfkiame Content-Type: message/rfc822 Content-Disposition: inline Return-Path: <9fans-bounces+cinap_lenrek=gmx.de@cse.psu.edu> X-Flags: 1001 Delivered-To: GMX delivery to cinap_lenrek@gmx.de Received: (qmail invoked by alias); 08 Sep 2007 16:52:50 -0000 Received: from psuvax1.cse.psu.edu (EHLO mail.cse.psu.edu) [130.203.4.6] by mx0.gmx.net (mx061) with SMTP; 08 Sep 2007 18:52:50 +0200 Received: from psuvax1.cse.psu.edu (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id A355AC7682 for ; Sat, 8 Sep 2007 12:49:52 -0400 (EDT) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: from localhost (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 2181BC69EC for <9fans@cse.psu.edu>; Sat, 8 Sep 2007 12:49:35 -0400 (EDT) Received: from mail.cse.psu.edu ([127.0.0.1]) by localhost (psuvax1 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21426-01-24 for <9fans@cse.psu.edu>; Sat, 8 Sep 2007 12:49:31 -0400 (EDT) Received: from ladd.quanstro.net (ladd.quanstro.net [69.55.170.73]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id E66A7C692A for <9fans@cse.psu.edu>; Sat, 8 Sep 2007 12:49:30 -0400 (EDT) Message-ID: <3e90b031be3e4fc9eafb1eeadfb9f9e1@quanstro.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] venti woes with brand new install From: erik quanstrom Date: Sat, 8 Sep 2007 12:49:30 -0400 In-Reply-To: <289299487ad8b104193a761eba3fe691@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces+cinap_lenrek=gmx.de@cse.psu.edu Errors-To: 9fans-bounces+cinap_lenrek=gmx.de@cse.psu.edu X-GMX-Antivirus: -1 (not scanned, may not use virus scanner) X-GMX-Antispam: 0 (Mail was not recognized as spam) X-GMX-UID: VuHVceIxbGI1f4YxzmRniKFncmZ1ZhxG > found it! > > that is "defghijklmnopqrstuv..." instead of the expected "1234567890abc..." > > 13 bytes! > > b->data is incremented (and b->len decremented)13 bytes to skip the > "venti config" magic in readifile() ifile.c:39. > and freezblock() alculates the position of the zmagic by b->data + b->_size. > > maybe add a b->_data in ZBuffer or fix ifile.c? > > cinap this might not fix everything as the tail magic was corrupted, too. - erik n/sources/plan9//sys/src/cmd/venti/srv/ifile.c:36,43 - ifile.c:36,44 freepart(p); return -1; } - b->data += m; - b->len -= m; + memmove(b->data, b->data+m, 8192-m); + memset(b->data+8192-m, 0, 8192-m); + z = memchr(b->data, 0, b->len); if(z) b->len = z - b->data; --upas-rgasvhxawmsayyefwohwfkiame--