[PATCH] generic: test accurate shared extent reporting
Eryu Guan
eguan at redhat.com
Fri Aug 5 03:14:21 CDT 2016
On Fri, Aug 05, 2016 at 01:02:12AM -0700, Darrick J. Wong wrote:
> On Fri, Aug 05, 2016 at 03:46:07PM +0800, Eryu Guan wrote:
> > On Fri, Aug 05, 2016 at 12:21:47AM -0700, Darrick J. Wong wrote:
> > > +_count_holes $testdir/file2
> > > +echo "file1 shared extents"
> > > +$XFS_IO_PROG -c 'fiemap -v' $testdir/file1 | awk '{print $5}' | grep '0x.*[2367aAbBfF]...$' -c
> >
> > Missing a command at the end?
>
> Nope, it echoes the number of shared extents (that's what that awk and grep
> globule does), which /should/ be exactly 2.
>
> (Unless I'm missing something?)
Ah, thanks! I saw "-c" at the end and thought it was part of xfs_io
command without looking at it carefully.
Thanks,
Eryu
More information about the xfs
mailing list