From: Amir Goldstein <amir73il@gmail.com>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: zhangyi <yi.zhang@huawei.com>, linux-unionfs@vger.kernel.org
Subject: [PATCH 0/3] Overlayfs restoring of origin fh
Date: Tue, 7 Nov 2017 23:38:57 +0200 [thread overview]
Message-ID: <1510090740-7216-1-git-send-email-amir73il@gmail.com> (raw)
Miklos,
This series is complementary to the whiteouts expose patches.
Patch 2 restores origin xattr on lookup of merge dir (that was copied up
before v4.12).
Patch 3 sets a 'null' origin fh on dir if we happen to iterate an 'impure'
dir and find a whiteout while looking for copy ups. This is expected to
happen if merge dir was copied up before v4.12, but files inside it were
copied up after v4.12.
This series is currently based on top of non-samefs series and all patches
for v4.15 are piled on my overlayfs-devel branch [1]. Let me know if you
want me to rebase them differently.
I enhanced Zhangyi's xfstest overlay/031, which tests for exposed whiteouts
to cover the 2 cases addressed by this series. The enhanced test is
available on my xfstests branch [2].
Zhangyi,
I would appreciate a review of those patches and the test changes.
Thanks,
Amir.
[1] https://github.com/amir73il/linux/commits/overlayfs-devel
[2] https://github.com/amir73il/xfstests/commits/overlayfs-devel
Amir Goldstein (3):
ovl: remove unneeded arg from ovl_verify_origin()
ovl: set origin xattr for merge dir on lookup
ovl: recover from whiteouts in impure dir iteration
fs/overlayfs/namei.c | 63 +++++++++++++++++++++++++++++++++++++++---------
fs/overlayfs/overlayfs.h | 5 ++--
fs/overlayfs/readdir.c | 41 ++++++++++++++++++++++++++++---
fs/overlayfs/super.c | 7 +++---
fs/overlayfs/util.c | 21 ++++++++++++++++
5 files changed, 117 insertions(+), 20 deletions(-)
--
2.7.4
next reply other threads:[~2017-11-07 21:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-07 21:38 Amir Goldstein [this message]
2017-11-07 21:38 ` [PATCH 1/3] ovl: remove unneeded arg from ovl_verify_origin() Amir Goldstein
2017-11-07 21:38 ` [PATCH 2/3] ovl: set origin xattr for merge dir on lookup Amir Goldstein
2017-11-08 6:59 ` zhangyi (F)
2017-11-08 8:27 ` Amir Goldstein
2017-11-08 13:30 ` Amir Goldstein
2017-11-09 4:20 ` zhangyi (F)
2017-11-07 21:39 ` [PATCH 3/3] ovl: recover from whiteouts in impure dir iteration Amir Goldstein
2017-11-09 10:07 ` [PATCH 0/3] Overlayfs restoring of origin fh Miklos Szeredi
2017-11-09 11:33 ` Amir Goldstein
2017-11-09 11:46 ` zhangyi (F)
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=1510090740-7216-1-git-send-email-amir73il@gmail.com \
--to=amir73il@gmail.com \
--cc=linux-unionfs@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=yi.zhang@huawei.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;
as well as URLs for NNTP newsgroup(s).