Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Oct 2007 09:55:45 -0500
From:      Eric Anderson <anderson@freebsd.org>
To:        d_elbracht <d_elbracht@ecngs.de>
Cc:        'Ivan Voras' <ivoras@freebsd.org>, freebsd-geom@freebsd.org
Subject:   Re: AW:  Re: AW: g_vfs_done():da3s1a[READ(offset=81064794762854400,  length=8192)]error = 5
Message-ID:  <4714D0F1.2000903@freebsd.org>
In-Reply-To: <000b01c80fdc$12582f10$639049d9@EC1a>
References:  <008801c80e65$47cbe650$639049d9@EC1a> <feu58o$5uo$1@ger.gmane.org> <00cb01c80f04$50b11ed0$639049d9@EC1a> <47137634.1010703@freebsd.org> <000b01c80fdc$12582f10$639049d9@EC1a>

next in thread | previous in thread | raw e-mail | index | archive | help
d_elbracht wrote:
>>> One basic question to ask: where does the value for offset= in 
>>> g_vfs_done() come from ?
>>> >From the time the error shows up in syslog I believe, the error only
>>> happens, when a file get's appended.
>> I wonder if (wild guess follows) there's a 32/64 bit 
>> conversion problem somewhere, like a 32bit number cast as 
>> 64bit or something.
>>
>> I'd like to see a full trace to see what path it takes.  
>> Maybe putting a
>>   panic in the error path would be worth doing.
>>
> 
> can you give me some hints please how to do this ? I'm willing to try about
> everything to get this problem nailed down.


I would add debugging to your kernel config, and then around here:

http://fxr.googlebit.com/source/sys/geom/geom_vfs.c?v=8-CURRENT#L77

change the printf to a panic(), and recompile your kernel.  Also, don't 
forget to set up a dump partition (swap).  You can find out how to do 
the debugging parts and dump partition in the Handbook.

Eric



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