xfs
[Top] [All Lists]

Re: Can any one explain this behavior?

To: William L Jones <jones@xxxxxxxxxxxxxxxxxx>
Subject: Re: Can any one explain this behavior?
From: Steve Lord <lord@xxxxxxx>
Date: Wed, 13 Sep 2000 20:05:53 -0500
Cc: linux-xfs@xxxxxxxxxxx, jones@xxxxxxxxxxxxxxxxxxx
In-reply-to: Your message of "Wed, 13 Sep 2000 19:58:51 CDT
Sender: owner-linux-xfs@xxxxxxxxxxx
> 
> 
> If you create and mount a xfs file system then untar a few files and director
ies in to it 
> then run xfs_check you get errors.   If you do a sync and then run xfs_check 
on the
> file system you still get errors. If you umount and mount the file system the
n
> the errors go away.
> 
> I think this is has to do with the way the log transactions are handled and t
hat their is 
> no problem. 
> 
> But I would like to know for sure!
> 
> 
> Bill Jones

Running check on a mounted filesystem will not always get you a good
picture of the world. One issue is that the data buffered in memory by
XFS will not be visible via the block device interface - the buffering
is in different places.

Also, I think the XFS user space makes the correct calls to flush data
out of the block device driver down to disk, but xfs_check is almost
certainly not doing that since it is a read-only operation. Chances are
if you run it twice it could pick up old data cached by a previous run.

Steve


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