From: Amir Goldstein <amir73il@gmail.com>
To: Eryu Guan <guaneryu@gmail.com>
Cc: Icenowy Zheng <icenowy@aosc.io>,
Chengguang Xu <cgxu519@mykernel.net>,
Xiao Yang <yangx.jy@cn.fujitsu.com>,
Miklos Szeredi <miklos@szeredi.hu>,
linux-unionfs@vger.kernel.org, fstests@vger.kernel.org
Subject: [PATCH 0/4] Tests for overlayfs immutable/append-only files
Date: Sat, 16 Jan 2021 18:56:15 +0200 [thread overview]
Message-ID: <20210116165619.494265-1-amir73il@gmail.com> (raw)
Eryu,
Overlayfs never had full support for immutable/append-only files.
Whatever works is covered by generic/079 and overlay/030 tests.
Both tests cover only upper files and directories.
generic/079 is notrun on kernel < 5.10 and passes on >= 5.10.
This series improves the t_immutable test program and adds a new test
to cover lower files and directories - the test fails on upstream kernel.
Fixing this requires some VFS API changes that Miklos has proposed [1].
The new test covers two reported bug, one of them is a deadlock.
The deadlock trigger is commented out until we have a fix upstream.
Thanks,
Amir.
[1] https://lore.kernel.org/linux-unionfs/20201123141207.GC327006@miu.piliscsaba.redhat.com/
Amir Goldstein (4):
overlay/030: Update comment w.r.t upstream kernel
src/t_immutable: factor out some helpers
src/t_immutable: Allow setting flags on existing files
overlay: Test lost immutable/append-only flags on copy-up
src/t_immutable.c | 241 +++++++++++++++++++++---------------------
tests/overlay/030 | 7 +-
tests/overlay/075 | 97 +++++++++++++++++
tests/overlay/075.out | 11 ++
tests/overlay/group | 1 +
5 files changed, 237 insertions(+), 120 deletions(-)
create mode 100755 tests/overlay/075
create mode 100644 tests/overlay/075.out
--
2.25.1
next reply other threads:[~2021-01-16 17:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-16 16:56 Amir Goldstein [this message]
2021-01-16 16:56 ` [PATCH 1/4] overlay/030: Update comment w.r.t upstream kernel Amir Goldstein
2021-01-16 16:56 ` [PATCH 2/4] src/t_immutable: factor out some helpers Amir Goldstein
2021-01-24 15:09 ` Eryu Guan
2021-01-24 15:29 ` Amir Goldstein
2021-01-25 12:35 ` Eryu Guan
2021-01-16 16:56 ` [PATCH 3/4] src/t_immutable: Allow setting flags on existing files Amir Goldstein
2021-01-24 15:14 ` Eryu Guan
2021-01-24 15:32 ` Amir Goldstein
2021-01-25 12:46 ` Eryu Guan
2021-01-25 13:17 ` Amir Goldstein
2021-01-16 16:56 ` [PATCH 4/4] overlay: Test lost immutable/append-only flags on copy-up Amir Goldstein
2021-01-25 13:24 ` Amir Goldstein
2021-01-26 8:47 ` Miklos Szeredi
2021-01-27 2:57 ` Eryu Guan
2021-01-28 6:45 ` Amir Goldstein
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=20210116165619.494265-1-amir73il@gmail.com \
--to=amir73il@gmail.com \
--cc=cgxu519@mykernel.net \
--cc=fstests@vger.kernel.org \
--cc=guaneryu@gmail.com \
--cc=icenowy@aosc.io \
--cc=linux-unionfs@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=yangx.jy@cn.fujitsu.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).