Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jan 2008 09:05:19 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        Doug Barton <dougb@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: panic: NTFS VOP_STRATEGY failed
Message-ID:  <200801080905.20321.jhb@freebsd.org>
In-Reply-To: <47832EB5.8000905@FreeBSD.org>
References:  <alpine.BSF.1.00.0712261500011.932@ync.qbhto.arg> <200801071352.42690.jhb@freebsd.org> <47832EB5.8000905@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 08 January 2008 03:05:09 am Doug Barton wrote:
> John Baldwin wrote:
> > On Wednesday 26 December 2007 06:01:47 pm Doug Barton wrote:
> >> I have a dual boot system, and from time to time I use mount_ntfs to read 
> >> stuff from the windows partition. Doing that today I got the following 
> >> with a system built on 23 December:
> >>
> >> #0  doadump () at pcpu.h:195
> >> 195	pcpu.h: No such file or directory.
> >>  	in pcpu.h
> >> (kgdb) bt
> >> #0  doadump () at pcpu.h:195
> >> #1  0xc056a0ae in boot (howto=260)
> >>      at /usr/local/src/sys/kern/kern_shutdown.c:409
> >> #2  0xc056a36b in panic (fmt=Variable "fmt" is not available.
> >> ) at /usr/local/src/sys/kern/kern_shutdown.c:563
> >> #3  0xc05586a2 in _lockmgr (lkp=0xc90049e8, flags=8212, 
> >> interlkp=0xc9004a18,
> >>      td=0xc92d5220, file=0xc077c0ed "/usr/local/src/sys/kern/vfs_subr.c",
> >>      line=2213) at /usr/local/src/sys/kern/kern_lock.c:319
> > 
> > We'd need the actual panic message I think.
> 
> Sure. I updated my -current tonight, then did the following:
> 
> mount_ntfs /dev/ad0s1 /mnt/tmp
> cd /mnt/tmp
> find .
> IFS='
> '
> for file in `find . -type f`; do
> cp $file /tmp
> rm /tmp/${file##*/}
> done
> 
> Took about 45 seconds to panic with:
> 
> ntfs_strategy: ntfs_readattr failed
> panic: NTFS VOP_STRATEGY failed:
> bp=0xd9369988, vp=0xc9a55880, rc=7
> cpuid=1

This is a different panic (your first one was in lockmgr()).  This one I
don't really know what is wrong.  It gets an E2BIG error trying to ask
NTFS for the raw offset of the file's block on disk via ntfs_readattr()
which means it asked for too much of the attribute (so to speak).  I
could see this happening perhaps if it walked off the end of the file,
but ntfs_strategy() already checks for that.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801080905.20321.jhb>