xfs
[Top] [All Lists]

Re: xfs_io bmap confused

To: Ming Lin <mlin@xxxxxxxxxx>
Subject: Re: xfs_io bmap confused
From: Christoph Hellwig <hch@xxxxxx>
Date: Wed, 8 Jul 2015 10:53:41 +0200
Cc: xfs@xxxxxxxxxxx, Christoph Hellwig <hch@xxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1436338913.13729.11.camel@hasee>
References: <1436338913.13729.11.camel@hasee>
User-agent: Mutt/1.5.17 (2007-11-01)
On Wed, Jul 08, 2015 at 12:01:53AM -0700, Ming Lin wrote:
> Hi list,
> 
> I am testing some direct-io patches.
> xfs_tests/xfs/080 failed.
> 
> It's strange.
> There is no hole in "rwtest.file",
> but when read it at some offset it returns zero because of hole.
> 
> root@block:~# xfs_io -c bmap /mnt/test/rwtest.file
> /mnt/test/rwtest.file:
>              0: [0..125671]: 160..125831

Sounds like you see an unwritten extent.  What does xfs_bmap -pv show on
the file?

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