From owner-freebsd-current@FreeBSD.ORG Thu May 15 22:07:36 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D8741065677 for ; Thu, 15 May 2008 22:07:36 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.188]) by mx1.freebsd.org (Postfix) with ESMTP id 8202E8FC14 for ; Thu, 15 May 2008 22:07:34 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so545213fkk.11 for ; Thu, 15 May 2008 15:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=Q1MOQpdGE2ZJtKhrrPlrhzuRLelc/3VptcHBZmo/VAA=; b=wUBCDB53EXwzb+mtnM/zDg/+6TYFZn2qIh9t81cS6PlJYWFPn9EwOPMDJDSUKCBUbqow6+fh8XKY+iHhtGCms0GBliUwFs3sJx3zEoeTzwkxrNltnlR1prJXtkg7+MFYnANKKBHvr9ZXvWGlyE0CO77w6m671pz4iSISH4agwTs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=X96PKxB0eR8DIaXVkHy9T+T1MLa8AFSv8RRF3GQ0a3WqPF9H80gu7b3q/b/Z+XhUqX7px5Wd1PkzLTNQRvXa3FUcBV+ntflKXcqwA+giUSB6zFL0f+eZ2p5bDKDTz/1a7ijO4Ypl9cPIwnCirAewvScmD6XCE+9o81bR9/ZyF1k= Received: by 10.125.87.8 with SMTP id p8mr1812132mkl.80.1210887607656; Thu, 15 May 2008 14:40:07 -0700 (PDT) Received: by 10.86.36.15 with HTTP; Thu, 15 May 2008 14:40:07 -0700 (PDT) Message-ID: <3bbf2fe10805151440n3b28448dub72a0e7737a53585@mail.gmail.com> Date: Thu, 15 May 2008 23:40:07 +0200 From: "Attilio Rao" Sender: asmrookie@gmail.com To: "John Baldwin" In-Reply-To: <200805080837.11744.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8cb6106e0805062004r681045b5ge2981ae73e777a49@mail.gmail.com> <200805080837.11744.jhb@freebsd.org> X-Google-Sender-Auth: aa7628c7c24508c0 Cc: josh.carroll@gmail.com, freebsd-current@freebsd.org Subject: Re: panic mounting ntfs X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 May 2008 22:07:36 -0000 2008/5/8, John Baldwin : > On Tuesday 06 May 2008 11:04:44 pm Josh Carroll wrote: > > In doing some data recovery for my brother-in-law, I tried to mount > > his win2k partition (NTFS), and the box immediately panic'd. I dd'd > > the partition and was able to mount it on my 7.0-RELEASE box (via > > mdconfig -t vnode ...), but trying to do that on the -CURRENT box also > > panic'd. > > > > > panic: Assertion (flags & ~LK_INIT_MASK) == 0 failed at > > /usr/src/sys/kern/kern_lock.c:298 > > > > And here's the backtrace: > > > > > #13 0xc54a6b00 in ntfs_ntlookup (ntmp=0xc5467800, ino=0, > > ipp=0xe79a47f4) at > > /usr/src/sys/modules/ntfs/../../fs/ntfs/ntfs_subr.c:408 > > > This should fix it: > > Index: ntfs_subr.c > =================================================================== > RCS file: /host/cvs/usr/cvs/src/sys/fs/ntfs/ntfs_subr.c,v > retrieving revision 1.45 > diff -u -r1.45 ntfs_subr.c > --- ntfs_subr.c 13 Feb 2008 13:02:12 -0000 1.45 > +++ ntfs_subr.c 8 May 2008 12:36:10 -0000 > @@ -405,7 +405,7 @@ > > VREF(ip->i_devvp); > > /* init lock and lock the newborn ntnode */ > - lockinit(&ip->i_lock, PINOD, "ntnode", 0, LK_EXCLUSIVE); > > + lockinit(&ip->i_lock, PINOD, "ntnode", 0, 0); > > mtx_init(&ip->i_interlock, "ntnode interlock", NULL, MTX_DEF); > ntfs_ntget(ip); > Fix committed. Attilio -- Peace can only be achieved by understanding - A. Einstein