From owner-freebsd-current Wed Oct 23 11:33:25 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9AC8337B431 for ; Wed, 23 Oct 2002 11:33:21 -0700 (PDT) Received: from harrier.mail.pas.earthlink.net (harrier.mail.pas.earthlink.net [207.217.120.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id D090D43E42 for ; Wed, 23 Oct 2002 11:33:20 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0135.cvx21-bradley.dialup.earthlink.net ([209.179.192.135] helo=mindspring.com) by harrier.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 184QJS-0006Gs-00; Wed, 23 Oct 2002 11:33:03 -0700 Message-ID: <3DB6EB16.2025AAE3@mindspring.com> Date: Wed, 23 Oct 2002 11:31:50 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Sheldon Hearn Cc: Vitaly Markitantov , current@FreeBSD.ORG Subject: Re: smbfs broken? References: <3DB664D0.FE0B8018@mindspring.com> <20021023152144.GA10351@iron.del.local> <20021023160014.GM661@starjuice.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Sheldon Hearn wrote: > [client] > $ for i in `jot 512 7680`; do > cp /smb/urchin/pub/bytes/$i . || break; > done > cp: ./8145: Bad address > > If I truss the cp process, I get this: > > [...] > open("/smb/urchin/pub/bytes/8145",0x0,00) = 3 (0x3) > open("./8145",0x401,00) = 4 (0x4) > mmap(0x0,8145,0x1,0x1,3,0x0) = 671461376 (0x2805b000) > > I don't have my laptop set up as a serial debugging client now, so > that's as far as I can go. :-( AHA! The reason an FFS write resulted in an SMBFS read is that you had mmap()'ed an SMBFS file, and then wrote a mapped but-not-in-core page to the target FFS file. Knowing that the code involved is in the paging path of the SMBFS code is important. What happens if you: dd if=/smb/urchin/pub/bytes/8145 of=8145 ? I expect that it works, no problem. This localizes the problem to the VOP_GETPAGES that gets hit in the SMBFS case. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message