>
>
> 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
|