xfs
[Top] [All Lists]

Re: Wierd errors with sync

To: ian.nelson@xxxxxxxxxxxx
Subject: Re: Wierd errors with sync
From: Steve Lord <lord@xxxxxxx>
Date: Fri, 05 Oct 2001 21:44:58 -0500
Cc: Seth Mos <knuffie@xxxxxxxxx>, "linux-xfs@xxxxxxxxxxx" <linux-xfs@xxxxxxxxxxx>
In-reply-to: Message from "Ian S. Nelson" <ian.nelson@echostar.com> of "Fri, 05 Oct 2001 15:32:00 MDT." <3BBE26D0.5EC11066@echostar.com>
Sender: owner-linux-xfs@xxxxxxxxxxx
> I have been seeing kernel BUGs in ll_rw_blk.  To my /dev/hda8,  requests out
> of range, or so it would appear.
> 
> Well it's an embedded platform and we've been slowly turning off items.  Here
> is my new theory.

Ah ha, a minor detail emerges!

> 
> If the drive is blank then I have a flash the detects that and rebuilds it
> in said flash I do mkfs.xfs and then I do a C library call mount()
> That mount behaves different from /bin/mount.  I'm guessing that's my
> problem.  I'm doing mkfs and then it's not syncing or some such garbage.

The xfs metadata cache and the buffer cache used by block devices are
not coherent. There is an ioctl at the end of mkfs which is supposed to
ensure that all buffers for the device are flushed out to disk before
it returns. This ioctl: BLKFLSBUF must work, possibly this is an issue
for you.

> 
> I'm going to retool my flash and try again.  I've taken the problematic
> partitions and on the running system I've unmounted them and rebuilt them and
> everything is cool again..
> 
> Ian
> 

Steve



<Prev in Thread] Current Thread [Next in Thread>