From: Eryu Guan <eguan@redhat.com>
To: fdmanana@kernel.org
Cc: fstests@vger.kernel.org, linux-btrfs@vger.kernel.org,
Filipe Manana <fdmanana@suse.com>,
Robbie Ko <robbieko@synology.com>
Subject: Re: [PATCH v4 2/3] fstests: test btrfs incremental send after moving a directory
Date: Fri, 20 Jan 2017 13:22:58 +0800 [thread overview]
Message-ID: <20170120052258.GU1859@eguan.usersys.redhat.com> (raw)
In-Reply-To: <1484190817-17326-1-git-send-email-fdmanana@kernel.org>
On Thu, Jan 12, 2017 at 03:13:37AM +0000, fdmanana@kernel.org wrote:
> From: Filipe Manana <fdmanana@suse.com>
>
> Test that an incremental send operation works after moving a directory
> into a new parent directory, deleting its previous parent directory and
> creating a new inode that has the same inode number as the old parent.
>
> This issue is fixed by the following patch for the linux kernel:
>
> "Btrfs: incremental send, do not delay rename when parent inode is new"
>
> Signed-off-by: Robbie Ko <robbieko@synology.com>
> Signed-off-by: Filipe Manana <fdmanana@suse.com>
I tested this patchset with/without proposed kernel patches, all tests
worked as expected. Just one tiny update on commit below.
> ---
> +# Remount the filesystem so that the next created inodes will have the numbers
> +# 258 and 259. This is because when a filesystem is mounted, btrfs sets the
> +# subvolume's inode counter to a value corresponding to the highest inode number
> +# in the subvolume plus 1. This inode counter is used to assign a unique number
> +# to each new inode and it's incremented by 1 after very inode creation.
> +# Note: we unmount and then mount instead of doing a mount with "-o remount"
> +# because otherwise the inode counter remains at value 260.
> +_scratch_unmount
> +_scratch_mount
I replaced these with _scratch_cycle_mount.
Thanks,
Eryu
prev parent reply other threads:[~2017-01-20 5:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-12 3:13 [PATCH v4 2/3] fstests: test btrfs incremental send after moving a directory fdmanana
2017-01-20 5:22 ` 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=20170120052258.GU1859@eguan.usersys.redhat.com \
--to=eguan@redhat.com \
--cc=fdmanana@kernel.org \
--cc=fdmanana@suse.com \
--cc=fstests@vger.kernel.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=robbieko@synology.com \
/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