From: Eryu Guan <eguan@redhat.com>
To: "Darrick J. Wong" <darrick.wong@oracle.com>
Cc: linux-xfs@vger.kernel.org, "Darrick J. Wong" <djwong@djwong.org>,
fstests@vger.kernel.org, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH 3/4] reflink: test adjacency of reflinked blocks
Date: Wed, 1 Mar 2017 11:20:13 +0800 [thread overview]
Message-ID: <20170301032013.GA14226@eguan.usersys.redhat.com> (raw)
In-Reply-To: <20170228163150.GA26275@birch.djwong.org>
On Tue, Feb 28, 2017 at 08:31:50AM -0800, Darrick J. Wong wrote:
> On Tue, Feb 28, 2017 at 04:15:02PM +0800, Eryu Guan wrote:
> > On Fri, Feb 24, 2017 at 05:12:57PM -0800, Darrick J. Wong wrote:
> > > From: Darrick J. Wong <darrick.wong@oracle.com>
> > >
> > > If we reflink a file with N blocks to another file one block at a time,
> > > does the destination file end up with the same number of extents as the
> > > source file? In other words, does the filesystem succeed at combining
> > > adjacent mappings into a maximal extents?
> >
> > I'm not sure if this is a standard behavior and applies to btrfs too?
> > But btrfs is failing this test now:
> >
> > +f1 (1) != f2 (32)
> > +s1 (1) != s2 (32)
> >
> > Fix test or btrfs? I'm taking it if btrfs is the one to be fixed :)
>
> btrfs has that weird behavior where it doesn't merge the adjacent
> extents at all (at least not according to FIEMAP) until you remount the
> filesystem. After the remount it's fine, but... WTF? :)
>
> So yes, the test is working as designed. btrfs needs fixing, or I guess
> worst case we can _notrun it on btrfs.
Thanks for the explanation! I'll take it as it is at this moment then.
>
> Snark aside, it was intended originally to make sure that XFS is
> properly merging the extent records together; then it occurred to me to
> rewrite it with fiemap and make it one of the generic reflink tests so
> that ocfs2 can get tested too.
Ah, that reminds me that I need to do testing with ocfs2 too, and test
passed :)
Thanks,
Eryu
prev parent reply other threads:[~2017-03-01 3:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <148798515933.25833.2842247083803775089.stgit@birch.djwong.org>
[not found] ` <148798517790.25833.2585159479268361866.stgit@birch.djwong.org>
2017-02-28 8:15 ` [PATCH 3/4] reflink: test adjacency of reflinked blocks Eryu Guan
2017-02-28 16:31 ` Darrick J. Wong
2017-03-01 3:20 ` Eryu Guan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170301032013.GA14226@eguan.usersys.redhat.com \
--to=eguan@redhat.com \
--cc=darrick.wong@oracle.com \
--cc=djwong@djwong.org \
--cc=fstests@vger.kernel.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).