xfs
[Top] [All Lists]

Re: [PATCH] generic: test accurate shared extent reporting

To: "Darrick J. Wong" <darrick.wong@xxxxxxxxxx>
Subject: Re: [PATCH] generic: test accurate shared extent reporting
From: Eryu Guan <eguan@xxxxxxxxxx>
Date: Fri, 5 Aug 2016 16:14:21 +0800
Cc: dedekind1@xxxxxxxxx, mfasheh@xxxxxxx, fstests@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx, linux-btrfs@xxxxxxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <20160805080212.GH25565@xxxxxxxxxxxxxxxx>
References: <20160805072147.GG25565@xxxxxxxxxxxxxxxx> <20160805074607.GW27776@xxxxxxxxxxxxxxxxxxxxxxxx> <20160805080212.GH25565@xxxxxxxxxxxxxxxx>
User-agent: Mutt/1.6.1 (2016-04-27)
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

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